antd.js 4.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137711387113971140711417114271143711447114571146711477114871149711507115171152711537115471155711567115771158711597116071161711627116371164711657116671167711687116971170711717117271173711747117571176711777117871179711807118171182711837118471185711867118771188711897119071191711927119371194711957119671197711987119971200712017120271203712047120571206712077120871209712107121171212712137121471215712167121771218712197122071221712227122371224712257122671227712287122971230712317123271233712347123571236712377123871239712407124171242712437124471245712467124771248712497125071251712527125371254712557125671257712587125971260712617126271263712647126571266712677126871269712707127171272712737127471275712767127771278712797128071281712827128371284712857128671287712887128971290712917129271293712947129571296712977129871299713007130171302713037130471305713067130771308713097131071311713127131371314713157131671317713187131971320713217132271323713247132571326713277132871329713307133171332713337133471335713367133771338713397134071341713427134371344713457134671347713487134971350713517135271353713547135571356713577135871359713607136171362713637136471365713667136771368713697137071371713727137371374713757137671377713787137971380713817138271383713847138571386713877138871389713907139171392713937139471395713967139771398713997140071401714027140371404714057140671407714087140971410714117141271413714147141571416714177141871419714207142171422714237142471425714267142771428714297143071431714327143371434714357143671437714387143971440714417144271443714447144571446714477144871449714507145171452714537145471455714567145771458714597146071461714627146371464714657146671467714687146971470714717147271473714747147571476714777147871479714807148171482714837148471485714867148771488714897149071491714927149371494714957149671497714987149971500715017150271503715047150571506715077150871509715107151171512715137151471515715167151771518715197152071521715227152371524715257152671527715287152971530715317153271533715347153571536715377153871539715407154171542715437154471545715467154771548715497155071551715527155371554715557155671557715587155971560715617156271563715647156571566715677156871569715707157171572715737157471575715767157771578715797158071581715827158371584715857158671587715887158971590715917159271593715947159571596715977159871599716007160171602716037160471605716067160771608716097161071611716127161371614716157161671617716187161971620716217162271623716247162571626716277162871629716307163171632716337163471635716367163771638716397164071641716427164371644716457164671647716487164971650716517165271653716547165571656716577165871659716607166171662716637166471665716667166771668716697167071671716727167371674716757167671677716787167971680716817168271683716847168571686716877168871689716907169171692716937169471695716967169771698716997170071701717027170371704717057170671707717087170971710717117171271713717147171571716717177171871719717207172171722717237172471725717267172771728717297173071731717327173371734717357173671737717387173971740717417174271743717447174571746717477174871749717507175171752717537175471755717567175771758717597176071761717627176371764717657176671767717687176971770717717177271773717747177571776717777177871779717807178171782717837178471785717867178771788717897179071791717927179371794717957179671797717987179971800718017180271803718047180571806718077180871809718107181171812718137181471815718167181771818718197182071821718227182371824718257182671827718287182971830718317183271833718347183571836718377183871839718407184171842718437184471845718467184771848718497185071851718527185371854718557185671857718587185971860718617186271863718647186571866718677186871869718707187171872718737187471875718767187771878718797188071881718827188371884718857188671887718887188971890718917189271893718947189571896718977189871899719007190171902719037190471905719067190771908719097191071911719127191371914719157191671917719187191971920719217192271923719247192571926719277192871929719307193171932719337193471935719367193771938719397194071941719427194371944719457194671947719487194971950719517195271953719547195571956719577195871959719607196171962719637196471965719667196771968719697197071971719727197371974719757197671977719787197971980719817198271983719847198571986719877198871989719907199171992719937199471995719967199771998719997200072001720027200372004720057200672007720087200972010720117201272013720147201572016720177201872019720207202172022720237202472025720267202772028720297203072031720327203372034720357203672037720387203972040720417204272043720447204572046720477204872049720507205172052720537205472055720567205772058720597206072061720627206372064720657206672067720687206972070720717207272073720747207572076720777207872079720807208172082720837208472085720867208772088720897209072091720927209372094720957209672097720987209972100721017210272103721047210572106721077210872109721107211172112721137211472115721167211772118721197212072121721227212372124721257212672127721287212972130721317213272133721347213572136721377213872139721407214172142721437214472145721467214772148721497215072151721527215372154721557215672157721587215972160721617216272163721647216572166721677216872169721707217172172721737217472175721767217772178721797218072181721827218372184721857218672187721887218972190721917219272193721947219572196721977219872199722007220172202722037220472205722067220772208722097221072211722127221372214722157221672217722187221972220722217222272223722247222572226722277222872229722307223172232722337223472235722367223772238722397224072241722427224372244722457224672247722487224972250722517225272253722547225572256722577225872259722607226172262722637226472265722667226772268722697227072271722727227372274722757227672277722787227972280722817228272283722847228572286722877228872289722907229172292722937229472295722967229772298722997230072301723027230372304723057230672307723087230972310723117231272313723147231572316723177231872319723207232172322723237232472325723267232772328723297233072331723327233372334723357233672337723387233972340723417234272343723447234572346723477234872349723507235172352723537235472355723567235772358723597236072361723627236372364723657236672367723687236972370723717237272373723747237572376723777237872379723807238172382723837238472385723867238772388723897239072391723927239372394723957239672397723987239972400724017240272403724047240572406724077240872409724107241172412724137241472415724167241772418724197242072421724227242372424724257242672427724287242972430724317243272433724347243572436724377243872439724407244172442724437244472445724467244772448724497245072451724527245372454724557245672457724587245972460724617246272463724647246572466724677246872469724707247172472724737247472475724767247772478724797248072481724827248372484724857248672487724887248972490724917249272493724947249572496724977249872499725007250172502725037250472505725067250772508725097251072511725127251372514725157251672517725187251972520725217252272523725247252572526725277252872529725307253172532725337253472535725367253772538725397254072541725427254372544725457254672547725487254972550725517255272553725547255572556725577255872559725607256172562725637256472565725667256772568725697257072571725727257372574725757257672577725787257972580725817258272583725847258572586725877258872589725907259172592725937259472595725967259772598725997260072601726027260372604726057260672607726087260972610726117261272613726147261572616726177261872619726207262172622726237262472625726267262772628726297263072631726327263372634726357263672637726387263972640726417264272643726447264572646726477264872649726507265172652726537265472655726567265772658726597266072661726627266372664726657266672667726687266972670726717267272673726747267572676726777267872679726807268172682726837268472685726867268772688726897269072691726927269372694726957269672697726987269972700727017270272703727047270572706727077270872709727107271172712727137271472715727167271772718727197272072721727227272372724727257272672727727287272972730727317273272733727347273572736727377273872739727407274172742727437274472745727467274772748727497275072751727527275372754727557275672757727587275972760727617276272763727647276572766727677276872769727707277172772727737277472775727767277772778727797278072781727827278372784727857278672787727887278972790727917279272793727947279572796727977279872799728007280172802728037280472805728067280772808728097281072811728127281372814728157281672817728187281972820728217282272823728247282572826728277282872829728307283172832728337283472835728367283772838728397284072841728427284372844728457284672847728487284972850728517285272853728547285572856728577285872859728607286172862728637286472865728667286772868728697287072871728727287372874728757287672877728787287972880728817288272883728847288572886728877288872889728907289172892728937289472895728967289772898728997290072901729027290372904729057290672907729087290972910729117291272913729147291572916729177291872919729207292172922729237292472925729267292772928729297293072931729327293372934729357293672937729387293972940729417294272943729447294572946729477294872949729507295172952729537295472955729567295772958729597296072961729627296372964729657296672967729687296972970729717297272973729747297572976729777297872979729807298172982729837298472985729867298772988729897299072991729927299372994729957299672997729987299973000730017300273003730047300573006730077300873009730107301173012730137301473015730167301773018730197302073021730227302373024730257302673027730287302973030730317303273033730347303573036730377303873039730407304173042730437304473045730467304773048730497305073051730527305373054730557305673057730587305973060730617306273063730647306573066730677306873069730707307173072730737307473075730767307773078730797308073081730827308373084730857308673087730887308973090730917309273093730947309573096730977309873099731007310173102731037310473105731067310773108731097311073111731127311373114731157311673117731187311973120731217312273123731247312573126731277312873129731307313173132731337313473135731367313773138731397314073141731427314373144731457314673147731487314973150731517315273153731547315573156731577315873159731607316173162731637316473165731667316773168731697317073171731727317373174731757317673177731787317973180731817318273183731847318573186731877318873189731907319173192731937319473195731967319773198731997320073201732027320373204732057320673207732087320973210732117321273213732147321573216732177321873219732207322173222732237322473225732267322773228732297323073231732327323373234732357323673237732387323973240732417324273243732447324573246732477324873249732507325173252732537325473255732567325773258732597326073261732627326373264732657326673267732687326973270732717327273273732747327573276732777327873279732807328173282732837328473285732867328773288732897329073291732927329373294732957329673297732987329973300733017330273303733047330573306733077330873309733107331173312733137331473315733167331773318733197332073321733227332373324733257332673327733287332973330733317333273333733347333573336733377333873339733407334173342733437334473345733467334773348733497335073351733527335373354733557335673357733587335973360733617336273363733647336573366733677336873369733707337173372733737337473375733767337773378733797338073381733827338373384733857338673387733887338973390733917339273393733947339573396733977339873399734007340173402734037340473405734067340773408734097341073411734127341373414734157341673417734187341973420734217342273423734247342573426734277342873429734307343173432734337343473435734367343773438734397344073441734427344373444734457344673447734487344973450734517345273453734547345573456734577345873459734607346173462734637346473465734667346773468734697347073471734727347373474734757347673477734787347973480734817348273483734847348573486734877348873489734907349173492734937349473495734967349773498734997350073501735027350373504735057350673507735087350973510735117351273513735147351573516735177351873519735207352173522735237352473525735267352773528735297353073531735327353373534735357353673537735387353973540735417354273543735447354573546735477354873549735507355173552735537355473555735567355773558735597356073561735627356373564735657356673567735687356973570735717357273573735747357573576735777357873579735807358173582735837358473585735867358773588735897359073591735927359373594735957359673597735987359973600736017360273603736047360573606736077360873609736107361173612736137361473615736167361773618736197362073621736227362373624736257362673627736287362973630736317363273633736347363573636736377363873639736407364173642736437364473645736467364773648736497365073651736527365373654736557365673657736587365973660736617366273663736647366573666736677366873669736707367173672736737367473675736767367773678736797368073681736827368373684736857368673687736887368973690736917369273693736947369573696736977369873699737007370173702737037370473705737067370773708737097371073711737127371373714737157371673717737187371973720737217372273723737247372573726737277372873729737307373173732737337373473735737367373773738737397374073741737427374373744737457374673747737487374973750737517375273753737547375573756737577375873759737607376173762737637376473765737667376773768737697377073771737727377373774737757377673777737787377973780737817378273783737847378573786737877378873789737907379173792737937379473795737967379773798737997380073801738027380373804738057380673807738087380973810738117381273813738147381573816738177381873819738207382173822738237382473825738267382773828738297383073831738327383373834738357383673837738387383973840738417384273843738447384573846738477384873849738507385173852738537385473855738567385773858738597386073861738627386373864738657386673867738687386973870738717387273873738747387573876738777387873879738807388173882738837388473885738867388773888738897389073891738927389373894738957389673897738987389973900739017390273903739047390573906739077390873909739107391173912739137391473915739167391773918739197392073921739227392373924739257392673927739287392973930739317393273933739347393573936739377393873939739407394173942739437394473945739467394773948739497395073951739527395373954739557395673957739587395973960739617396273963739647396573966739677396873969739707397173972739737397473975739767397773978739797398073981739827398373984739857398673987739887398973990739917399273993739947399573996739977399873999740007400174002740037400474005740067400774008740097401074011740127401374014740157401674017740187401974020740217402274023740247402574026740277402874029740307403174032740337403474035740367403774038740397404074041740427404374044740457404674047740487404974050740517405274053740547405574056740577405874059740607406174062740637406474065740667406774068740697407074071740727407374074740757407674077740787407974080740817408274083740847408574086740877408874089740907409174092740937409474095740967409774098740997410074101741027410374104741057410674107741087410974110741117411274113741147411574116741177411874119741207412174122741237412474125741267412774128741297413074131741327413374134741357413674137741387413974140741417414274143741447414574146741477414874149741507415174152741537415474155741567415774158741597416074161741627416374164741657416674167741687416974170741717417274173741747417574176741777417874179741807418174182741837418474185741867418774188741897419074191741927419374194741957419674197741987419974200742017420274203742047420574206742077420874209742107421174212742137421474215742167421774218742197422074221742227422374224742257422674227742287422974230742317423274233742347423574236742377423874239742407424174242742437424474245742467424774248742497425074251742527425374254742557425674257742587425974260742617426274263742647426574266742677426874269742707427174272742737427474275742767427774278742797428074281742827428374284742857428674287742887428974290742917429274293742947429574296742977429874299743007430174302743037430474305743067430774308743097431074311743127431374314743157431674317743187431974320743217432274323743247432574326743277432874329743307433174332743337433474335743367433774338743397434074341743427434374344743457434674347743487434974350743517435274353743547435574356743577435874359743607436174362743637436474365743667436774368743697437074371743727437374374743757437674377743787437974380743817438274383743847438574386743877438874389743907439174392743937439474395743967439774398743997440074401744027440374404744057440674407744087440974410744117441274413744147441574416744177441874419744207442174422744237442474425744267442774428744297443074431744327443374434744357443674437744387443974440744417444274443744447444574446744477444874449744507445174452744537445474455744567445774458744597446074461744627446374464744657446674467744687446974470744717447274473744747447574476744777447874479744807448174482744837448474485744867448774488744897449074491744927449374494744957449674497744987449974500745017450274503745047450574506745077450874509745107451174512745137451474515745167451774518745197452074521745227452374524745257452674527745287452974530745317453274533745347453574536745377453874539745407454174542745437454474545745467454774548745497455074551745527455374554745557455674557745587455974560745617456274563745647456574566745677456874569745707457174572745737457474575745767457774578745797458074581745827458374584745857458674587745887458974590745917459274593745947459574596745977459874599746007460174602746037460474605746067460774608746097461074611746127461374614746157461674617746187461974620746217462274623746247462574626746277462874629746307463174632746337463474635746367463774638746397464074641746427464374644746457464674647746487464974650746517465274653746547465574656746577465874659746607466174662746637466474665746667466774668746697467074671746727467374674746757467674677746787467974680746817468274683746847468574686746877468874689746907469174692746937469474695746967469774698746997470074701747027470374704747057470674707747087470974710747117471274713747147471574716747177471874719747207472174722747237472474725747267472774728747297473074731747327473374734747357473674737747387473974740747417474274743747447474574746747477474874749747507475174752747537475474755747567475774758747597476074761747627476374764747657476674767747687476974770747717477274773747747477574776747777477874779747807478174782747837478474785747867478774788747897479074791747927479374794747957479674797747987479974800748017480274803748047480574806748077480874809748107481174812748137481474815748167481774818748197482074821748227482374824748257482674827748287482974830748317483274833748347483574836748377483874839748407484174842748437484474845748467484774848748497485074851748527485374854748557485674857748587485974860748617486274863748647486574866748677486874869748707487174872748737487474875748767487774878748797488074881748827488374884748857488674887748887488974890748917489274893748947489574896748977489874899749007490174902749037490474905749067490774908749097491074911749127491374914749157491674917749187491974920749217492274923749247492574926749277492874929749307493174932749337493474935749367493774938749397494074941749427494374944749457494674947749487494974950749517495274953749547495574956749577495874959749607496174962749637496474965749667496774968749697497074971749727497374974749757497674977749787497974980749817498274983749847498574986749877498874989749907499174992749937499474995749967499774998749997500075001750027500375004750057500675007750087500975010750117501275013750147501575016750177501875019750207502175022750237502475025750267502775028750297503075031750327503375034750357503675037750387503975040750417504275043750447504575046750477504875049750507505175052750537505475055750567505775058750597506075061750627506375064750657506675067750687506975070750717507275073750747507575076750777507875079750807508175082750837508475085750867508775088750897509075091750927509375094750957509675097750987509975100751017510275103751047510575106751077510875109751107511175112751137511475115751167511775118751197512075121751227512375124751257512675127751287512975130751317513275133751347513575136751377513875139751407514175142751437514475145751467514775148751497515075151751527515375154751557515675157751587515975160751617516275163751647516575166751677516875169751707517175172751737517475175751767517775178751797518075181751827518375184751857518675187751887518975190751917519275193751947519575196751977519875199752007520175202752037520475205752067520775208752097521075211752127521375214752157521675217752187521975220752217522275223752247522575226752277522875229752307523175232752337523475235752367523775238752397524075241752427524375244752457524675247752487524975250752517525275253752547525575256752577525875259752607526175262752637526475265752667526775268752697527075271752727527375274752757527675277752787527975280752817528275283752847528575286752877528875289752907529175292752937529475295752967529775298752997530075301753027530375304753057530675307753087530975310753117531275313753147531575316753177531875319753207532175322753237532475325753267532775328753297533075331753327533375334753357533675337753387533975340753417534275343753447534575346753477534875349753507535175352753537535475355753567535775358753597536075361753627536375364753657536675367753687536975370753717537275373753747537575376753777537875379753807538175382753837538475385753867538775388753897539075391753927539375394753957539675397753987539975400754017540275403754047540575406754077540875409754107541175412754137541475415754167541775418754197542075421754227542375424754257542675427754287542975430754317543275433754347543575436754377543875439754407544175442754437544475445754467544775448754497545075451754527545375454754557545675457754587545975460754617546275463754647546575466754677546875469754707547175472754737547475475754767547775478754797548075481754827548375484754857548675487754887548975490754917549275493754947549575496754977549875499755007550175502755037550475505755067550775508755097551075511755127551375514755157551675517755187551975520755217552275523755247552575526755277552875529755307553175532755337553475535755367553775538755397554075541755427554375544755457554675547755487554975550755517555275553755547555575556755577555875559755607556175562755637556475565755667556775568755697557075571755727557375574755757557675577755787557975580755817558275583755847558575586755877558875589755907559175592755937559475595755967559775598755997560075601756027560375604756057560675607756087560975610756117561275613756147561575616756177561875619756207562175622756237562475625756267562775628756297563075631756327563375634756357563675637756387563975640756417564275643756447564575646756477564875649756507565175652756537565475655756567565775658756597566075661756627566375664756657566675667756687566975670756717567275673756747567575676756777567875679756807568175682756837568475685756867568775688756897569075691756927569375694756957569675697756987569975700757017570275703757047570575706757077570875709757107571175712757137571475715757167571775718757197572075721757227572375724757257572675727757287572975730757317573275733757347573575736757377573875739757407574175742757437574475745757467574775748757497575075751757527575375754757557575675757757587575975760757617576275763757647576575766757677576875769757707577175772757737577475775757767577775778757797578075781757827578375784757857578675787757887578975790757917579275793757947579575796757977579875799758007580175802758037580475805758067580775808758097581075811758127581375814758157581675817758187581975820758217582275823758247582575826758277582875829758307583175832758337583475835758367583775838758397584075841758427584375844758457584675847758487584975850758517585275853758547585575856758577585875859758607586175862758637586475865758667586775868758697587075871758727587375874758757587675877758787587975880758817588275883758847588575886758877588875889758907589175892758937589475895758967589775898758997590075901759027590375904759057590675907759087590975910759117591275913759147591575916759177591875919759207592175922759237592475925759267592775928759297593075931759327593375934759357593675937759387593975940759417594275943759447594575946759477594875949759507595175952759537595475955759567595775958759597596075961759627596375964759657596675967759687596975970759717597275973759747597575976759777597875979759807598175982759837598475985759867598775988759897599075991759927599375994759957599675997759987599976000760017600276003760047600576006760077600876009760107601176012760137601476015760167601776018760197602076021760227602376024760257602676027760287602976030760317603276033760347603576036760377603876039760407604176042760437604476045760467604776048760497605076051760527605376054760557605676057760587605976060760617606276063760647606576066760677606876069760707607176072760737607476075760767607776078760797608076081760827608376084760857608676087760887608976090760917609276093760947609576096760977609876099761007610176102761037610476105761067610776108761097611076111761127611376114761157611676117761187611976120761217612276123761247612576126761277612876129761307613176132761337613476135761367613776138761397614076141761427614376144761457614676147761487614976150761517615276153761547615576156761577615876159761607616176162761637616476165761667616776168761697617076171761727617376174761757617676177761787617976180761817618276183761847618576186761877618876189761907619176192761937619476195761967619776198761997620076201762027620376204762057620676207762087620976210762117621276213762147621576216762177621876219762207622176222762237622476225762267622776228762297623076231762327623376234762357623676237762387623976240762417624276243762447624576246762477624876249762507625176252762537625476255762567625776258762597626076261762627626376264762657626676267762687626976270762717627276273762747627576276762777627876279762807628176282762837628476285762867628776288762897629076291762927629376294762957629676297762987629976300763017630276303763047630576306763077630876309763107631176312763137631476315763167631776318763197632076321763227632376324763257632676327763287632976330763317633276333763347633576336763377633876339763407634176342763437634476345763467634776348763497635076351763527635376354763557635676357763587635976360763617636276363763647636576366763677636876369763707637176372763737637476375763767637776378763797638076381763827638376384763857638676387763887638976390763917639276393763947639576396763977639876399764007640176402764037640476405764067640776408764097641076411764127641376414764157641676417764187641976420764217642276423764247642576426764277642876429764307643176432764337643476435764367643776438764397644076441764427644376444764457644676447764487644976450764517645276453764547645576456764577645876459764607646176462764637646476465764667646776468764697647076471764727647376474764757647676477764787647976480764817648276483764847648576486764877648876489764907649176492764937649476495764967649776498764997650076501765027650376504765057650676507765087650976510765117651276513765147651576516765177651876519765207652176522765237652476525765267652776528765297653076531765327653376534765357653676537765387653976540765417654276543765447654576546765477654876549765507655176552765537655476555765567655776558765597656076561765627656376564765657656676567765687656976570765717657276573765747657576576765777657876579765807658176582765837658476585765867658776588765897659076591765927659376594765957659676597765987659976600766017660276603766047660576606766077660876609766107661176612766137661476615766167661776618766197662076621766227662376624766257662676627766287662976630766317663276633766347663576636766377663876639766407664176642766437664476645766467664776648766497665076651766527665376654766557665676657766587665976660766617666276663766647666576666766677666876669766707667176672766737667476675766767667776678766797668076681766827668376684766857668676687766887668976690766917669276693766947669576696766977669876699767007670176702767037670476705767067670776708767097671076711767127671376714767157671676717767187671976720767217672276723767247672576726767277672876729767307673176732767337673476735767367673776738767397674076741767427674376744767457674676747767487674976750767517675276753767547675576756767577675876759767607676176762767637676476765767667676776768767697677076771767727677376774767757677676777767787677976780767817678276783767847678576786767877678876789767907679176792767937679476795767967679776798767997680076801768027680376804768057680676807768087680976810768117681276813768147681576816768177681876819768207682176822768237682476825768267682776828768297683076831768327683376834768357683676837768387683976840768417684276843768447684576846768477684876849768507685176852768537685476855768567685776858768597686076861768627686376864768657686676867768687686976870768717687276873768747687576876768777687876879768807688176882768837688476885768867688776888768897689076891768927689376894768957689676897768987689976900769017690276903769047690576906769077690876909769107691176912769137691476915769167691776918769197692076921769227692376924769257692676927769287692976930769317693276933769347693576936769377693876939769407694176942769437694476945769467694776948769497695076951769527695376954769557695676957769587695976960769617696276963769647696576966769677696876969769707697176972769737697476975769767697776978769797698076981769827698376984769857698676987769887698976990769917699276993769947699576996769977699876999770007700177002770037700477005770067700777008770097701077011770127701377014770157701677017770187701977020770217702277023770247702577026770277702877029770307703177032770337703477035770367703777038770397704077041770427704377044770457704677047770487704977050770517705277053770547705577056770577705877059770607706177062770637706477065770667706777068770697707077071770727707377074770757707677077770787707977080770817708277083770847708577086770877708877089770907709177092770937709477095770967709777098770997710077101771027710377104771057710677107771087710977110771117711277113771147711577116771177711877119771207712177122771237712477125771267712777128771297713077131771327713377134771357713677137771387713977140771417714277143771447714577146771477714877149771507715177152771537715477155771567715777158771597716077161771627716377164771657716677167771687716977170771717717277173771747717577176771777717877179771807718177182771837718477185771867718777188771897719077191771927719377194771957719677197771987719977200772017720277203772047720577206772077720877209772107721177212772137721477215772167721777218772197722077221772227722377224772257722677227772287722977230772317723277233772347723577236772377723877239772407724177242772437724477245772467724777248772497725077251772527725377254772557725677257772587725977260772617726277263772647726577266772677726877269772707727177272772737727477275772767727777278772797728077281772827728377284772857728677287772887728977290772917729277293772947729577296772977729877299773007730177302773037730477305773067730777308773097731077311773127731377314773157731677317773187731977320773217732277323773247732577326773277732877329773307733177332773337733477335773367733777338773397734077341773427734377344773457734677347773487734977350773517735277353773547735577356773577735877359773607736177362773637736477365773667736777368773697737077371773727737377374773757737677377773787737977380773817738277383773847738577386773877738877389773907739177392773937739477395773967739777398773997740077401774027740377404774057740677407774087740977410774117741277413774147741577416774177741877419774207742177422774237742477425774267742777428774297743077431774327743377434774357743677437774387743977440774417744277443774447744577446774477744877449774507745177452774537745477455774567745777458774597746077461774627746377464774657746677467774687746977470774717747277473774747747577476774777747877479774807748177482774837748477485774867748777488774897749077491774927749377494774957749677497774987749977500775017750277503775047750577506775077750877509775107751177512775137751477515775167751777518775197752077521775227752377524775257752677527775287752977530775317753277533775347753577536775377753877539775407754177542775437754477545775467754777548775497755077551775527755377554775557755677557775587755977560775617756277563775647756577566775677756877569775707757177572775737757477575775767757777578775797758077581775827758377584775857758677587775887758977590775917759277593775947759577596775977759877599776007760177602776037760477605776067760777608776097761077611776127761377614776157761677617776187761977620776217762277623776247762577626776277762877629776307763177632776337763477635776367763777638776397764077641776427764377644776457764677647776487764977650776517765277653776547765577656776577765877659776607766177662776637766477665776667766777668776697767077671776727767377674776757767677677776787767977680776817768277683776847768577686776877768877689776907769177692776937769477695776967769777698776997770077701777027770377704777057770677707777087770977710777117771277713777147771577716777177771877719777207772177722777237772477725777267772777728777297773077731777327773377734777357773677737777387773977740777417774277743777447774577746777477774877749777507775177752777537775477755777567775777758777597776077761777627776377764777657776677767777687776977770777717777277773777747777577776777777777877779777807778177782777837778477785777867778777788777897779077791777927779377794777957779677797777987779977800778017780277803778047780577806778077780877809778107781177812778137781477815778167781777818778197782077821778227782377824778257782677827778287782977830778317783277833778347783577836778377783877839778407784177842778437784477845778467784777848778497785077851778527785377854778557785677857778587785977860778617786277863778647786577866778677786877869778707787177872778737787477875778767787777878778797788077881778827788377884778857788677887778887788977890778917789277893778947789577896778977789877899779007790177902779037790477905779067790777908779097791077911779127791377914779157791677917779187791977920779217792277923779247792577926779277792877929779307793177932779337793477935779367793777938779397794077941779427794377944779457794677947779487794977950779517795277953779547795577956779577795877959779607796177962779637796477965779667796777968779697797077971779727797377974779757797677977779787797977980779817798277983779847798577986779877798877989779907799177992779937799477995779967799777998779997800078001780027800378004780057800678007780087800978010780117801278013780147801578016780177801878019780207802178022780237802478025780267802778028780297803078031780327803378034780357803678037780387803978040780417804278043780447804578046780477804878049780507805178052780537805478055780567805778058780597806078061780627806378064780657806678067780687806978070780717807278073780747807578076780777807878079780807808178082780837808478085780867808778088780897809078091780927809378094780957809678097780987809978100781017810278103781047810578106781077810878109781107811178112781137811478115781167811778118781197812078121781227812378124781257812678127781287812978130781317813278133781347813578136781377813878139781407814178142781437814478145781467814778148781497815078151781527815378154781557815678157781587815978160781617816278163781647816578166781677816878169781707817178172781737817478175781767817778178781797818078181781827818378184781857818678187781887818978190781917819278193781947819578196781977819878199782007820178202782037820478205782067820778208782097821078211782127821378214782157821678217782187821978220782217822278223782247822578226782277822878229782307823178232782337823478235782367823778238782397824078241782427824378244782457824678247782487824978250782517825278253782547825578256782577825878259782607826178262782637826478265782667826778268782697827078271782727827378274782757827678277782787827978280782817828278283782847828578286782877828878289782907829178292782937829478295782967829778298782997830078301783027830378304783057830678307783087830978310783117831278313783147831578316783177831878319783207832178322783237832478325783267832778328783297833078331783327833378334783357833678337783387833978340783417834278343783447834578346783477834878349783507835178352783537835478355783567835778358783597836078361783627836378364783657836678367783687836978370783717837278373783747837578376783777837878379783807838178382783837838478385783867838778388783897839078391783927839378394783957839678397783987839978400784017840278403784047840578406784077840878409784107841178412784137841478415784167841778418784197842078421784227842378424784257842678427784287842978430784317843278433784347843578436784377843878439784407844178442784437844478445784467844778448784497845078451784527845378454784557845678457784587845978460784617846278463784647846578466784677846878469784707847178472784737847478475784767847778478784797848078481784827848378484784857848678487784887848978490784917849278493784947849578496784977849878499785007850178502785037850478505785067850778508785097851078511785127851378514785157851678517785187851978520785217852278523785247852578526785277852878529785307853178532785337853478535785367853778538785397854078541785427854378544785457854678547785487854978550785517855278553785547855578556785577855878559785607856178562785637856478565785667856778568785697857078571785727857378574785757857678577785787857978580785817858278583785847858578586785877858878589785907859178592785937859478595785967859778598785997860078601786027860378604786057860678607786087860978610786117861278613786147861578616786177861878619786207862178622786237862478625786267862778628786297863078631786327863378634786357863678637786387863978640786417864278643786447864578646786477864878649786507865178652786537865478655786567865778658786597866078661786627866378664786657866678667786687866978670786717867278673786747867578676786777867878679786807868178682786837868478685786867868778688786897869078691786927869378694786957869678697786987869978700787017870278703787047870578706787077870878709787107871178712787137871478715787167871778718787197872078721787227872378724787257872678727787287872978730787317873278733787347873578736787377873878739787407874178742787437874478745787467874778748787497875078751787527875378754787557875678757787587875978760787617876278763787647876578766787677876878769787707877178772787737877478775787767877778778787797878078781787827878378784787857878678787787887878978790787917879278793787947879578796787977879878799788007880178802788037880478805788067880778808788097881078811788127881378814788157881678817788187881978820788217882278823788247882578826788277882878829788307883178832788337883478835788367883778838788397884078841788427884378844788457884678847788487884978850788517885278853788547885578856788577885878859788607886178862788637886478865788667886778868788697887078871788727887378874788757887678877788787887978880788817888278883788847888578886788877888878889788907889178892788937889478895788967889778898788997890078901789027890378904789057890678907789087890978910789117891278913789147891578916789177891878919789207892178922789237892478925789267892778928789297893078931789327893378934789357893678937789387893978940789417894278943789447894578946789477894878949789507895178952789537895478955789567895778958789597896078961789627896378964789657896678967789687896978970789717897278973789747897578976789777897878979789807898178982789837898478985789867898778988789897899078991789927899378994789957899678997789987899979000790017900279003790047900579006790077900879009790107901179012790137901479015790167901779018790197902079021790227902379024790257902679027790287902979030790317903279033790347903579036790377903879039790407904179042790437904479045790467904779048790497905079051790527905379054790557905679057790587905979060790617906279063790647906579066790677906879069790707907179072790737907479075790767907779078790797908079081790827908379084790857908679087790887908979090790917909279093790947909579096790977909879099791007910179102791037910479105791067910779108791097911079111791127911379114791157911679117791187911979120791217912279123791247912579126791277912879129791307913179132791337913479135791367913779138791397914079141791427914379144791457914679147791487914979150791517915279153791547915579156791577915879159791607916179162791637916479165791667916779168791697917079171791727917379174791757917679177791787917979180791817918279183791847918579186791877918879189791907919179192791937919479195791967919779198791997920079201792027920379204792057920679207792087920979210792117921279213792147921579216792177921879219792207922179222792237922479225792267922779228792297923079231792327923379234792357923679237792387923979240792417924279243792447924579246792477924879249792507925179252792537925479255792567925779258792597926079261792627926379264792657926679267792687926979270792717927279273792747927579276792777927879279792807928179282792837928479285792867928779288792897929079291792927929379294792957929679297792987929979300793017930279303793047930579306793077930879309793107931179312793137931479315793167931779318793197932079321793227932379324793257932679327793287932979330793317933279333793347933579336793377933879339793407934179342793437934479345793467934779348793497935079351793527935379354793557935679357793587935979360793617936279363793647936579366793677936879369793707937179372793737937479375793767937779378793797938079381793827938379384793857938679387793887938979390793917939279393793947939579396793977939879399794007940179402794037940479405794067940779408794097941079411794127941379414794157941679417794187941979420794217942279423794247942579426794277942879429794307943179432794337943479435794367943779438794397944079441794427944379444794457944679447794487944979450794517945279453794547945579456794577945879459794607946179462794637946479465794667946779468794697947079471794727947379474794757947679477794787947979480794817948279483794847948579486794877948879489794907949179492794937949479495794967949779498794997950079501795027950379504795057950679507795087950979510795117951279513795147951579516795177951879519795207952179522795237952479525795267952779528795297953079531795327953379534795357953679537795387953979540795417954279543795447954579546795477954879549795507955179552795537955479555795567955779558795597956079561795627956379564795657956679567795687956979570795717957279573795747957579576795777957879579795807958179582795837958479585795867958779588795897959079591795927959379594795957959679597795987959979600796017960279603796047960579606796077960879609796107961179612796137961479615796167961779618796197962079621796227962379624796257962679627796287962979630796317963279633796347963579636796377963879639796407964179642796437964479645796467964779648796497965079651796527965379654796557965679657796587965979660796617966279663796647966579666796677966879669796707967179672796737967479675796767967779678796797968079681796827968379684796857968679687796887968979690796917969279693796947969579696796977969879699797007970179702797037970479705797067970779708797097971079711797127971379714797157971679717797187971979720797217972279723797247972579726797277972879729797307973179732797337973479735797367973779738797397974079741797427974379744797457974679747797487974979750797517975279753797547975579756797577975879759797607976179762797637976479765797667976779768797697977079771797727977379774797757977679777797787977979780797817978279783797847978579786797877978879789797907979179792797937979479795797967979779798797997980079801798027980379804798057980679807798087980979810798117981279813798147981579816798177981879819798207982179822798237982479825798267982779828798297983079831798327983379834798357983679837798387983979840798417984279843798447984579846798477984879849798507985179852798537985479855798567985779858798597986079861798627986379864798657986679867798687986979870798717987279873798747987579876798777987879879798807988179882798837988479885798867988779888798897989079891798927989379894798957989679897798987989979900799017990279903799047990579906799077990879909799107991179912799137991479915799167991779918799197992079921799227992379924799257992679927799287992979930799317993279933799347993579936799377993879939799407994179942799437994479945799467994779948799497995079951799527995379954799557995679957799587995979960799617996279963799647996579966799677996879969799707997179972799737997479975799767997779978799797998079981799827998379984799857998679987799887998979990799917999279993799947999579996799977999879999800008000180002800038000480005800068000780008800098001080011800128001380014800158001680017800188001980020800218002280023800248002580026800278002880029800308003180032800338003480035800368003780038800398004080041800428004380044800458004680047800488004980050800518005280053800548005580056800578005880059800608006180062800638006480065800668006780068800698007080071800728007380074800758007680077800788007980080800818008280083800848008580086800878008880089800908009180092800938009480095800968009780098800998010080101801028010380104801058010680107801088010980110801118011280113801148011580116801178011880119801208012180122801238012480125801268012780128801298013080131801328013380134801358013680137801388013980140801418014280143801448014580146801478014880149801508015180152801538015480155801568015780158801598016080161801628016380164801658016680167801688016980170801718017280173801748017580176801778017880179801808018180182801838018480185801868018780188801898019080191801928019380194801958019680197801988019980200802018020280203802048020580206802078020880209802108021180212802138021480215802168021780218802198022080221802228022380224802258022680227802288022980230802318023280233802348023580236802378023880239802408024180242802438024480245802468024780248802498025080251802528025380254802558025680257802588025980260802618026280263802648026580266802678026880269802708027180272802738027480275802768027780278802798028080281802828028380284802858028680287802888028980290802918029280293802948029580296802978029880299803008030180302803038030480305803068030780308803098031080311803128031380314803158031680317803188031980320803218032280323803248032580326803278032880329803308033180332803338033480335803368033780338803398034080341803428034380344803458034680347803488034980350803518035280353803548035580356803578035880359803608036180362803638036480365803668036780368803698037080371803728037380374803758037680377803788037980380803818038280383803848038580386803878038880389803908039180392803938039480395803968039780398803998040080401804028040380404804058040680407804088040980410804118041280413804148041580416804178041880419804208042180422804238042480425804268042780428804298043080431804328043380434804358043680437804388043980440804418044280443804448044580446804478044880449804508045180452804538045480455804568045780458804598046080461804628046380464804658046680467804688046980470804718047280473804748047580476804778047880479804808048180482804838048480485804868048780488804898049080491804928049380494804958049680497804988049980500805018050280503805048050580506805078050880509805108051180512805138051480515805168051780518805198052080521805228052380524805258052680527805288052980530805318053280533805348053580536805378053880539805408054180542805438054480545805468054780548805498055080551805528055380554805558055680557805588055980560805618056280563805648056580566805678056880569805708057180572805738057480575805768057780578805798058080581805828058380584805858058680587805888058980590805918059280593805948059580596805978059880599806008060180602806038060480605806068060780608806098061080611806128061380614806158061680617806188061980620806218062280623806248062580626806278062880629806308063180632806338063480635806368063780638806398064080641806428064380644806458064680647806488064980650806518065280653806548065580656806578065880659806608066180662806638066480665806668066780668806698067080671806728067380674806758067680677806788067980680806818068280683806848068580686806878068880689806908069180692806938069480695806968069780698806998070080701807028070380704807058070680707807088070980710807118071280713807148071580716807178071880719807208072180722807238072480725807268072780728807298073080731807328073380734807358073680737807388073980740807418074280743807448074580746807478074880749807508075180752807538075480755807568075780758807598076080761807628076380764807658076680767807688076980770807718077280773807748077580776807778077880779807808078180782807838078480785807868078780788807898079080791807928079380794807958079680797807988079980800808018080280803808048080580806808078080880809808108081180812808138081480815808168081780818808198082080821808228082380824808258082680827808288082980830808318083280833808348083580836808378083880839808408084180842808438084480845808468084780848808498085080851808528085380854808558085680857808588085980860808618086280863808648086580866808678086880869808708087180872808738087480875808768087780878808798088080881808828088380884808858088680887808888088980890808918089280893808948089580896808978089880899809008090180902809038090480905809068090780908809098091080911809128091380914809158091680917809188091980920809218092280923809248092580926809278092880929809308093180932809338093480935809368093780938809398094080941809428094380944809458094680947809488094980950809518095280953809548095580956809578095880959809608096180962809638096480965809668096780968809698097080971809728097380974809758097680977809788097980980809818098280983809848098580986809878098880989809908099180992809938099480995809968099780998809998100081001810028100381004810058100681007810088100981010810118101281013810148101581016810178101881019810208102181022810238102481025810268102781028810298103081031810328103381034810358103681037810388103981040810418104281043810448104581046810478104881049810508105181052810538105481055810568105781058810598106081061810628106381064810658106681067810688106981070810718107281073810748107581076810778107881079810808108181082810838108481085810868108781088810898109081091810928109381094810958109681097810988109981100811018110281103811048110581106811078110881109811108111181112811138111481115811168111781118811198112081121811228112381124811258112681127811288112981130811318113281133811348113581136811378113881139811408114181142811438114481145811468114781148811498115081151811528115381154811558115681157811588115981160811618116281163811648116581166811678116881169811708117181172811738117481175811768117781178811798118081181811828118381184811858118681187811888118981190811918119281193811948119581196811978119881199812008120181202812038120481205812068120781208812098121081211812128121381214812158121681217812188121981220812218122281223812248122581226812278122881229812308123181232812338123481235812368123781238812398124081241812428124381244812458124681247812488124981250812518125281253812548125581256812578125881259812608126181262812638126481265812668126781268812698127081271812728127381274812758127681277812788127981280812818128281283812848128581286812878128881289812908129181292812938129481295812968129781298812998130081301813028130381304813058130681307813088130981310813118131281313813148131581316813178131881319813208132181322813238132481325813268132781328813298133081331813328133381334813358133681337813388133981340813418134281343813448134581346813478134881349813508135181352813538135481355813568135781358813598136081361813628136381364813658136681367813688136981370813718137281373813748137581376813778137881379813808138181382813838138481385813868138781388813898139081391813928139381394813958139681397813988139981400814018140281403814048140581406814078140881409814108141181412814138141481415814168141781418814198142081421814228142381424814258142681427814288142981430814318143281433814348143581436814378143881439814408144181442814438144481445814468144781448814498145081451814528145381454814558145681457814588145981460814618146281463814648146581466814678146881469814708147181472814738147481475814768147781478814798148081481814828148381484814858148681487814888148981490814918149281493814948149581496814978149881499815008150181502815038150481505815068150781508815098151081511815128151381514815158151681517815188151981520815218152281523815248152581526815278152881529815308153181532815338153481535815368153781538815398154081541815428154381544815458154681547815488154981550815518155281553815548155581556815578155881559815608156181562815638156481565815668156781568815698157081571815728157381574815758157681577815788157981580815818158281583815848158581586815878158881589815908159181592815938159481595815968159781598815998160081601816028160381604816058160681607816088160981610816118161281613816148161581616816178161881619816208162181622816238162481625816268162781628816298163081631816328163381634816358163681637816388163981640816418164281643816448164581646816478164881649816508165181652816538165481655816568165781658816598166081661816628166381664816658166681667816688166981670816718167281673816748167581676816778167881679816808168181682816838168481685816868168781688816898169081691816928169381694816958169681697816988169981700817018170281703817048170581706817078170881709817108171181712817138171481715817168171781718817198172081721817228172381724817258172681727817288172981730817318173281733817348173581736817378173881739817408174181742817438174481745817468174781748817498175081751817528175381754817558175681757817588175981760817618176281763817648176581766817678176881769817708177181772817738177481775817768177781778817798178081781817828178381784817858178681787817888178981790817918179281793817948179581796817978179881799818008180181802818038180481805818068180781808818098181081811818128181381814818158181681817818188181981820818218182281823818248182581826818278182881829818308183181832818338183481835818368183781838818398184081841818428184381844818458184681847818488184981850818518185281853818548185581856818578185881859818608186181862818638186481865818668186781868818698187081871818728187381874818758187681877818788187981880818818188281883818848188581886818878188881889818908189181892818938189481895818968189781898818998190081901819028190381904819058190681907819088190981910819118191281913819148191581916819178191881919819208192181922819238192481925819268192781928819298193081931819328193381934819358193681937819388193981940819418194281943819448194581946819478194881949819508195181952819538195481955819568195781958819598196081961819628196381964819658196681967819688196981970819718197281973819748197581976819778197881979819808198181982819838198481985819868198781988819898199081991819928199381994819958199681997819988199982000820018200282003820048200582006820078200882009820108201182012820138201482015820168201782018820198202082021820228202382024820258202682027820288202982030820318203282033820348203582036820378203882039820408204182042820438204482045820468204782048820498205082051820528205382054820558205682057820588205982060820618206282063820648206582066820678206882069820708207182072820738207482075820768207782078820798208082081820828208382084820858208682087820888208982090820918209282093820948209582096820978209882099821008210182102821038210482105821068210782108821098211082111821128211382114821158211682117821188211982120821218212282123821248212582126821278212882129821308213182132821338213482135821368213782138821398214082141821428214382144821458214682147821488214982150821518215282153821548215582156821578215882159821608216182162821638216482165821668216782168821698217082171821728217382174821758217682177821788217982180821818218282183821848218582186821878218882189821908219182192821938219482195821968219782198821998220082201822028220382204822058220682207822088220982210822118221282213822148221582216822178221882219822208222182222822238222482225822268222782228822298223082231822328223382234822358223682237822388223982240822418224282243822448224582246822478224882249822508225182252822538225482255822568225782258822598226082261822628226382264822658226682267822688226982270822718227282273822748227582276822778227882279822808228182282822838228482285822868228782288822898229082291822928229382294822958229682297822988229982300823018230282303823048230582306823078230882309823108231182312823138231482315823168231782318823198232082321823228232382324823258232682327823288232982330823318233282333823348233582336823378233882339823408234182342823438234482345823468234782348823498235082351823528235382354823558235682357823588235982360823618236282363823648236582366823678236882369823708237182372823738237482375823768237782378823798238082381823828238382384823858238682387823888238982390823918239282393823948239582396823978239882399824008240182402824038240482405824068240782408824098241082411824128241382414824158241682417824188241982420824218242282423824248242582426824278242882429824308243182432824338243482435824368243782438824398244082441824428244382444824458244682447824488244982450824518245282453824548245582456824578245882459824608246182462824638246482465824668246782468824698247082471824728247382474824758247682477824788247982480824818248282483824848248582486824878248882489824908249182492824938249482495824968249782498824998250082501825028250382504825058250682507825088250982510825118251282513825148251582516825178251882519825208252182522825238252482525825268252782528825298253082531825328253382534825358253682537825388253982540825418254282543825448254582546825478254882549825508255182552825538255482555825568255782558825598256082561825628256382564825658256682567825688256982570825718257282573825748257582576825778257882579825808258182582825838258482585825868258782588825898259082591825928259382594825958259682597825988259982600826018260282603826048260582606826078260882609826108261182612826138261482615826168261782618826198262082621826228262382624826258262682627826288262982630826318263282633826348263582636826378263882639826408264182642826438264482645826468264782648826498265082651826528265382654826558265682657826588265982660826618266282663826648266582666826678266882669826708267182672826738267482675826768267782678826798268082681826828268382684826858268682687826888268982690826918269282693826948269582696826978269882699827008270182702827038270482705827068270782708827098271082711827128271382714827158271682717827188271982720827218272282723827248272582726827278272882729827308273182732827338273482735827368273782738827398274082741827428274382744827458274682747827488274982750827518275282753827548275582756827578275882759827608276182762827638276482765827668276782768827698277082771827728277382774827758277682777827788277982780827818278282783827848278582786827878278882789827908279182792827938279482795827968279782798827998280082801828028280382804828058280682807828088280982810828118281282813828148281582816828178281882819828208282182822828238282482825828268282782828828298283082831828328283382834828358283682837828388283982840828418284282843828448284582846828478284882849828508285182852828538285482855828568285782858828598286082861828628286382864828658286682867828688286982870828718287282873828748287582876828778287882879828808288182882828838288482885828868288782888828898289082891828928289382894828958289682897828988289982900829018290282903829048290582906829078290882909829108291182912829138291482915829168291782918829198292082921829228292382924829258292682927829288292982930829318293282933829348293582936829378293882939829408294182942829438294482945829468294782948829498295082951829528295382954829558295682957829588295982960829618296282963829648296582966829678296882969829708297182972829738297482975829768297782978829798298082981829828298382984829858298682987829888298982990829918299282993829948299582996829978299882999830008300183002830038300483005830068300783008830098301083011830128301383014830158301683017830188301983020830218302283023830248302583026830278302883029830308303183032830338303483035830368303783038830398304083041830428304383044830458304683047830488304983050830518305283053830548305583056830578305883059830608306183062830638306483065830668306783068830698307083071830728307383074830758307683077830788307983080830818308283083830848308583086830878308883089830908309183092830938309483095830968309783098830998310083101831028310383104831058310683107831088310983110831118311283113831148311583116831178311883119831208312183122831238312483125831268312783128831298313083131831328313383134831358313683137831388313983140831418314283143831448314583146831478314883149831508315183152831538315483155831568315783158831598316083161831628316383164831658316683167831688316983170831718317283173831748317583176831778317883179831808318183182831838318483185831868318783188831898319083191831928319383194831958319683197831988319983200832018320283203832048320583206832078320883209832108321183212832138321483215832168321783218832198322083221832228322383224832258322683227832288322983230832318323283233832348323583236832378323883239832408324183242832438324483245832468324783248832498325083251832528325383254832558325683257832588325983260832618326283263832648326583266832678326883269832708327183272832738327483275832768327783278832798328083281832828328383284832858328683287832888328983290832918329283293832948329583296832978329883299833008330183302833038330483305833068330783308833098331083311833128331383314833158331683317833188331983320833218332283323833248332583326833278332883329833308333183332833338333483335833368333783338833398334083341833428334383344833458334683347833488334983350833518335283353833548335583356833578335883359833608336183362833638336483365833668336783368833698337083371833728337383374833758337683377833788337983380833818338283383833848338583386833878338883389833908339183392833938339483395833968339783398833998340083401834028340383404834058340683407834088340983410834118341283413834148341583416834178341883419834208342183422834238342483425834268342783428834298343083431834328343383434834358343683437834388343983440834418344283443834448344583446834478344883449834508345183452834538345483455834568345783458834598346083461834628346383464834658346683467834688346983470834718347283473834748347583476834778347883479834808348183482834838348483485834868348783488834898349083491834928349383494834958349683497834988349983500835018350283503835048350583506835078350883509835108351183512835138351483515835168351783518835198352083521835228352383524835258352683527835288352983530835318353283533835348353583536835378353883539835408354183542835438354483545835468354783548835498355083551835528355383554835558355683557835588355983560835618356283563835648356583566835678356883569835708357183572835738357483575835768357783578835798358083581835828358383584835858358683587835888358983590835918359283593835948359583596835978359883599836008360183602836038360483605836068360783608836098361083611836128361383614836158361683617836188361983620836218362283623836248362583626836278362883629836308363183632836338363483635836368363783638836398364083641836428364383644836458364683647836488364983650836518365283653836548365583656836578365883659836608366183662836638366483665836668366783668836698367083671836728367383674836758367683677836788367983680836818368283683836848368583686836878368883689836908369183692836938369483695836968369783698836998370083701837028370383704837058370683707837088370983710837118371283713837148371583716837178371883719837208372183722837238372483725837268372783728837298373083731837328373383734837358373683737837388373983740837418374283743837448374583746837478374883749837508375183752837538375483755837568375783758837598376083761837628376383764837658376683767837688376983770837718377283773837748377583776837778377883779837808378183782837838378483785837868378783788837898379083791837928379383794837958379683797837988379983800838018380283803838048380583806838078380883809838108381183812838138381483815838168381783818838198382083821838228382383824838258382683827838288382983830838318383283833838348383583836838378383883839838408384183842838438384483845838468384783848838498385083851838528385383854838558385683857838588385983860838618386283863838648386583866838678386883869838708387183872838738387483875838768387783878838798388083881838828388383884838858388683887838888388983890838918389283893838948389583896838978389883899839008390183902839038390483905839068390783908839098391083911839128391383914839158391683917839188391983920839218392283923839248392583926839278392883929839308393183932839338393483935839368393783938839398394083941839428394383944839458394683947839488394983950839518395283953839548395583956839578395883959839608396183962839638396483965839668396783968839698397083971839728397383974839758397683977839788397983980839818398283983839848398583986839878398883989839908399183992839938399483995839968399783998839998400084001840028400384004840058400684007840088400984010840118401284013840148401584016840178401884019840208402184022840238402484025840268402784028840298403084031840328403384034840358403684037840388403984040840418404284043840448404584046840478404884049840508405184052840538405484055840568405784058840598406084061840628406384064840658406684067840688406984070840718407284073840748407584076840778407884079840808408184082840838408484085840868408784088840898409084091840928409384094840958409684097840988409984100841018410284103841048410584106841078410884109841108411184112841138411484115841168411784118841198412084121841228412384124841258412684127841288412984130841318413284133841348413584136841378413884139841408414184142841438414484145841468414784148841498415084151841528415384154841558415684157841588415984160841618416284163841648416584166841678416884169841708417184172841738417484175841768417784178841798418084181841828418384184841858418684187841888418984190841918419284193841948419584196841978419884199842008420184202842038420484205842068420784208842098421084211842128421384214842158421684217842188421984220842218422284223842248422584226842278422884229842308423184232842338423484235842368423784238842398424084241842428424384244842458424684247842488424984250842518425284253842548425584256842578425884259842608426184262842638426484265842668426784268842698427084271842728427384274842758427684277842788427984280842818428284283842848428584286842878428884289842908429184292842938429484295842968429784298842998430084301843028430384304843058430684307843088430984310843118431284313843148431584316843178431884319843208432184322843238432484325843268432784328843298433084331843328433384334843358433684337843388433984340843418434284343843448434584346843478434884349843508435184352843538435484355843568435784358843598436084361843628436384364843658436684367843688436984370843718437284373843748437584376843778437884379843808438184382843838438484385843868438784388843898439084391843928439384394843958439684397843988439984400844018440284403844048440584406844078440884409844108441184412844138441484415844168441784418844198442084421844228442384424844258442684427844288442984430844318443284433844348443584436844378443884439844408444184442844438444484445844468444784448844498445084451844528445384454844558445684457844588445984460844618446284463844648446584466844678446884469844708447184472844738447484475844768447784478844798448084481844828448384484844858448684487844888448984490844918449284493844948449584496844978449884499845008450184502845038450484505845068450784508845098451084511845128451384514845158451684517845188451984520845218452284523845248452584526845278452884529845308453184532845338453484535845368453784538845398454084541845428454384544845458454684547845488454984550845518455284553845548455584556845578455884559845608456184562845638456484565845668456784568845698457084571845728457384574845758457684577845788457984580845818458284583845848458584586845878458884589845908459184592845938459484595845968459784598845998460084601846028460384604846058460684607846088460984610846118461284613846148461584616846178461884619846208462184622846238462484625846268462784628846298463084631846328463384634846358463684637846388463984640846418464284643846448464584646846478464884649846508465184652846538465484655846568465784658846598466084661846628466384664846658466684667846688466984670846718467284673846748467584676846778467884679846808468184682846838468484685846868468784688846898469084691846928469384694846958469684697846988469984700847018470284703847048470584706847078470884709847108471184712847138471484715847168471784718847198472084721847228472384724847258472684727847288472984730847318473284733847348473584736847378473884739847408474184742847438474484745847468474784748847498475084751847528475384754847558475684757847588475984760847618476284763847648476584766847678476884769847708477184772847738477484775847768477784778847798478084781847828478384784847858478684787847888478984790847918479284793847948479584796847978479884799848008480184802848038480484805848068480784808848098481084811848128481384814848158481684817848188481984820848218482284823848248482584826848278482884829848308483184832848338483484835848368483784838848398484084841848428484384844848458484684847848488484984850848518485284853848548485584856848578485884859848608486184862848638486484865848668486784868848698487084871848728487384874848758487684877848788487984880848818488284883848848488584886848878488884889848908489184892848938489484895848968489784898848998490084901849028490384904849058490684907849088490984910849118491284913849148491584916849178491884919849208492184922849238492484925849268492784928849298493084931849328493384934849358493684937849388493984940849418494284943849448494584946849478494884949849508495184952849538495484955849568495784958849598496084961849628496384964849658496684967849688496984970849718497284973849748497584976849778497884979849808498184982849838498484985849868498784988849898499084991849928499384994849958499684997849988499985000850018500285003850048500585006850078500885009850108501185012850138501485015850168501785018850198502085021850228502385024850258502685027850288502985030850318503285033850348503585036850378503885039850408504185042850438504485045850468504785048850498505085051850528505385054850558505685057850588505985060850618506285063850648506585066850678506885069850708507185072850738507485075850768507785078850798508085081850828508385084850858508685087850888508985090850918509285093850948509585096850978509885099851008510185102851038510485105851068510785108851098511085111851128511385114851158511685117851188511985120851218512285123851248512585126851278512885129851308513185132851338513485135851368513785138851398514085141851428514385144851458514685147851488514985150851518515285153851548515585156851578515885159851608516185162851638516485165851668516785168851698517085171851728517385174851758517685177851788517985180851818518285183851848518585186851878518885189851908519185192851938519485195851968519785198851998520085201852028520385204852058520685207852088520985210852118521285213852148521585216852178521885219852208522185222852238522485225852268522785228852298523085231852328523385234852358523685237852388523985240852418524285243852448524585246852478524885249852508525185252852538525485255852568525785258852598526085261852628526385264852658526685267852688526985270852718527285273852748527585276852778527885279852808528185282852838528485285852868528785288852898529085291852928529385294852958529685297852988529985300853018530285303853048530585306853078530885309853108531185312853138531485315853168531785318853198532085321853228532385324853258532685327853288532985330853318533285333853348533585336853378533885339853408534185342853438534485345853468534785348853498535085351853528535385354853558535685357853588535985360853618536285363853648536585366853678536885369853708537185372853738537485375853768537785378853798538085381853828538385384853858538685387853888538985390853918539285393853948539585396853978539885399854008540185402854038540485405854068540785408854098541085411854128541385414854158541685417854188541985420854218542285423854248542585426854278542885429854308543185432854338543485435854368543785438854398544085441854428544385444854458544685447854488544985450854518545285453854548545585456854578545885459854608546185462854638546485465854668546785468854698547085471854728547385474854758547685477854788547985480854818548285483854848548585486854878548885489854908549185492854938549485495854968549785498854998550085501855028550385504855058550685507855088550985510855118551285513855148551585516855178551885519855208552185522855238552485525855268552785528855298553085531855328553385534855358553685537855388553985540855418554285543855448554585546855478554885549855508555185552855538555485555855568555785558855598556085561855628556385564855658556685567855688556985570855718557285573855748557585576855778557885579855808558185582855838558485585855868558785588855898559085591855928559385594855958559685597855988559985600856018560285603856048560585606856078560885609856108561185612856138561485615856168561785618856198562085621856228562385624856258562685627856288562985630856318563285633856348563585636856378563885639856408564185642856438564485645856468564785648856498565085651856528565385654856558565685657856588565985660856618566285663856648566585666856678566885669856708567185672856738567485675856768567785678856798568085681856828568385684856858568685687856888568985690856918569285693856948569585696856978569885699857008570185702857038570485705857068570785708857098571085711857128571385714857158571685717857188571985720857218572285723857248572585726857278572885729857308573185732857338573485735857368573785738857398574085741857428574385744857458574685747857488574985750857518575285753857548575585756857578575885759857608576185762857638576485765857668576785768857698577085771857728577385774857758577685777857788577985780857818578285783857848578585786857878578885789857908579185792857938579485795857968579785798857998580085801858028580385804858058580685807858088580985810858118581285813858148581585816858178581885819858208582185822858238582485825858268582785828858298583085831858328583385834858358583685837858388583985840858418584285843858448584585846858478584885849858508585185852858538585485855858568585785858858598586085861858628586385864858658586685867858688586985870858718587285873858748587585876858778587885879858808588185882858838588485885858868588785888858898589085891858928589385894858958589685897858988589985900859018590285903859048590585906859078590885909859108591185912859138591485915859168591785918859198592085921859228592385924859258592685927859288592985930859318593285933859348593585936859378593885939859408594185942859438594485945859468594785948859498595085951859528595385954859558595685957859588595985960859618596285963859648596585966859678596885969859708597185972859738597485975859768597785978859798598085981859828598385984859858598685987859888598985990859918599285993859948599585996859978599885999860008600186002860038600486005860068600786008860098601086011860128601386014860158601686017860188601986020860218602286023860248602586026860278602886029860308603186032860338603486035860368603786038860398604086041860428604386044860458604686047860488604986050860518605286053860548605586056860578605886059860608606186062860638606486065860668606786068860698607086071860728607386074860758607686077860788607986080860818608286083860848608586086860878608886089860908609186092860938609486095860968609786098860998610086101861028610386104861058610686107861088610986110861118611286113861148611586116861178611886119861208612186122861238612486125861268612786128861298613086131861328613386134861358613686137861388613986140861418614286143861448614586146861478614886149861508615186152861538615486155861568615786158861598616086161861628616386164861658616686167861688616986170861718617286173861748617586176861778617886179861808618186182861838618486185861868618786188861898619086191861928619386194861958619686197861988619986200862018620286203862048620586206862078620886209862108621186212862138621486215862168621786218862198622086221862228622386224862258622686227862288622986230862318623286233862348623586236862378623886239862408624186242862438624486245862468624786248862498625086251862528625386254862558625686257862588625986260862618626286263862648626586266862678626886269862708627186272862738627486275862768627786278862798628086281862828628386284862858628686287862888628986290862918629286293862948629586296862978629886299863008630186302863038630486305863068630786308863098631086311863128631386314863158631686317863188631986320863218632286323863248632586326863278632886329863308633186332863338633486335863368633786338863398634086341863428634386344863458634686347863488634986350863518635286353863548635586356863578635886359863608636186362863638636486365863668636786368863698637086371863728637386374863758637686377863788637986380863818638286383863848638586386863878638886389863908639186392863938639486395863968639786398863998640086401864028640386404864058640686407864088640986410864118641286413864148641586416864178641886419864208642186422864238642486425864268642786428864298643086431864328643386434864358643686437864388643986440864418644286443864448644586446864478644886449864508645186452864538645486455864568645786458864598646086461864628646386464864658646686467864688646986470864718647286473864748647586476864778647886479864808648186482864838648486485864868648786488864898649086491864928649386494864958649686497864988649986500865018650286503865048650586506865078650886509865108651186512865138651486515865168651786518865198652086521865228652386524865258652686527865288652986530865318653286533865348653586536865378653886539865408654186542865438654486545865468654786548865498655086551865528655386554865558655686557865588655986560865618656286563865648656586566865678656886569865708657186572865738657486575865768657786578865798658086581865828658386584865858658686587865888658986590865918659286593865948659586596865978659886599866008660186602866038660486605866068660786608866098661086611866128661386614866158661686617866188661986620866218662286623866248662586626866278662886629866308663186632866338663486635866368663786638866398664086641866428664386644866458664686647866488664986650866518665286653866548665586656866578665886659866608666186662866638666486665866668666786668866698667086671866728667386674866758667686677866788667986680866818668286683866848668586686866878668886689866908669186692866938669486695866968669786698866998670086701867028670386704867058670686707867088670986710867118671286713867148671586716867178671886719867208672186722867238672486725867268672786728867298673086731867328673386734867358673686737867388673986740867418674286743867448674586746867478674886749867508675186752867538675486755867568675786758867598676086761867628676386764867658676686767867688676986770867718677286773867748677586776867778677886779867808678186782867838678486785867868678786788867898679086791867928679386794867958679686797867988679986800868018680286803868048680586806868078680886809868108681186812868138681486815868168681786818868198682086821868228682386824868258682686827868288682986830868318683286833868348683586836868378683886839868408684186842868438684486845868468684786848868498685086851868528685386854868558685686857868588685986860868618686286863868648686586866868678686886869868708687186872868738687486875868768687786878868798688086881868828688386884868858688686887868888688986890868918689286893868948689586896868978689886899869008690186902869038690486905869068690786908869098691086911869128691386914869158691686917869188691986920869218692286923869248692586926869278692886929869308693186932869338693486935869368693786938869398694086941869428694386944869458694686947869488694986950869518695286953869548695586956869578695886959869608696186962869638696486965869668696786968869698697086971869728697386974869758697686977869788697986980869818698286983869848698586986869878698886989869908699186992869938699486995869968699786998869998700087001870028700387004870058700687007870088700987010870118701287013870148701587016870178701887019870208702187022870238702487025870268702787028870298703087031870328703387034870358703687037870388703987040870418704287043870448704587046870478704887049870508705187052870538705487055870568705787058870598706087061870628706387064870658706687067870688706987070870718707287073870748707587076870778707887079870808708187082870838708487085870868708787088870898709087091870928709387094870958709687097870988709987100871018710287103871048710587106871078710887109871108711187112871138711487115871168711787118871198712087121871228712387124871258712687127871288712987130871318713287133871348713587136871378713887139871408714187142871438714487145871468714787148871498715087151871528715387154871558715687157871588715987160871618716287163871648716587166871678716887169871708717187172871738717487175871768717787178871798718087181871828718387184871858718687187871888718987190871918719287193871948719587196871978719887199872008720187202872038720487205872068720787208872098721087211872128721387214872158721687217872188721987220872218722287223872248722587226872278722887229872308723187232872338723487235872368723787238872398724087241872428724387244872458724687247872488724987250872518725287253872548725587256872578725887259872608726187262872638726487265872668726787268872698727087271872728727387274872758727687277872788727987280872818728287283872848728587286872878728887289872908729187292872938729487295872968729787298872998730087301873028730387304873058730687307873088730987310873118731287313873148731587316873178731887319873208732187322873238732487325873268732787328873298733087331873328733387334873358733687337873388733987340873418734287343873448734587346873478734887349873508735187352873538735487355873568735787358873598736087361873628736387364873658736687367873688736987370873718737287373873748737587376873778737887379873808738187382873838738487385873868738787388873898739087391873928739387394873958739687397873988739987400874018740287403874048740587406874078740887409874108741187412874138741487415874168741787418874198742087421874228742387424874258742687427874288742987430874318743287433874348743587436874378743887439874408744187442874438744487445874468744787448874498745087451874528745387454874558745687457874588745987460874618746287463874648746587466874678746887469874708747187472874738747487475874768747787478874798748087481874828748387484874858748687487874888748987490874918749287493874948749587496874978749887499875008750187502875038750487505875068750787508875098751087511875128751387514875158751687517875188751987520875218752287523875248752587526875278752887529875308753187532875338753487535875368753787538875398754087541875428754387544875458754687547875488754987550875518755287553875548755587556875578755887559875608756187562875638756487565875668756787568875698757087571875728757387574875758757687577875788757987580875818758287583875848758587586875878758887589875908759187592875938759487595875968759787598875998760087601876028760387604876058760687607876088760987610876118761287613876148761587616876178761887619876208762187622876238762487625876268762787628876298763087631876328763387634876358763687637876388763987640876418764287643876448764587646876478764887649876508765187652876538765487655876568765787658876598766087661876628766387664876658766687667876688766987670876718767287673876748767587676876778767887679876808768187682876838768487685876868768787688876898769087691876928769387694876958769687697876988769987700877018770287703877048770587706877078770887709877108771187712877138771487715877168771787718877198772087721877228772387724877258772687727877288772987730877318773287733877348773587736877378773887739877408774187742877438774487745877468774787748877498775087751877528775387754877558775687757877588775987760877618776287763877648776587766877678776887769877708777187772877738777487775877768777787778877798778087781877828778387784877858778687787877888778987790877918779287793877948779587796877978779887799878008780187802878038780487805878068780787808878098781087811878128781387814878158781687817878188781987820878218782287823878248782587826878278782887829878308783187832878338783487835878368783787838878398784087841878428784387844878458784687847878488784987850878518785287853878548785587856878578785887859878608786187862878638786487865878668786787868878698787087871878728787387874878758787687877878788787987880878818788287883878848788587886878878788887889878908789187892878938789487895878968789787898878998790087901879028790387904879058790687907879088790987910879118791287913879148791587916879178791887919879208792187922879238792487925879268792787928879298793087931879328793387934879358793687937879388793987940879418794287943879448794587946879478794887949879508795187952879538795487955879568795787958879598796087961879628796387964879658796687967879688796987970879718797287973879748797587976879778797887979879808798187982879838798487985879868798787988879898799087991879928799387994879958799687997879988799988000880018800288003880048800588006880078800888009880108801188012880138801488015880168801788018880198802088021880228802388024880258802688027880288802988030880318803288033880348803588036880378803888039880408804188042880438804488045880468804788048880498805088051880528805388054880558805688057880588805988060880618806288063880648806588066880678806888069880708807188072880738807488075880768807788078880798808088081880828808388084880858808688087880888808988090880918809288093880948809588096880978809888099881008810188102881038810488105881068810788108881098811088111881128811388114881158811688117881188811988120881218812288123881248812588126881278812888129881308813188132881338813488135881368813788138881398814088141881428814388144881458814688147881488814988150881518815288153881548815588156881578815888159881608816188162881638816488165881668816788168881698817088171881728817388174881758817688177881788817988180881818818288183881848818588186881878818888189881908819188192881938819488195881968819788198881998820088201882028820388204882058820688207882088820988210882118821288213882148821588216882178821888219882208822188222882238822488225882268822788228882298823088231882328823388234882358823688237882388823988240882418824288243882448824588246882478824888249882508825188252882538825488255882568825788258882598826088261882628826388264882658826688267882688826988270882718827288273882748827588276882778827888279882808828188282882838828488285882868828788288882898829088291882928829388294882958829688297882988829988300883018830288303883048830588306883078830888309883108831188312883138831488315883168831788318883198832088321883228832388324883258832688327883288832988330883318833288333883348833588336883378833888339883408834188342883438834488345883468834788348883498835088351883528835388354883558835688357883588835988360883618836288363883648836588366883678836888369883708837188372883738837488375883768837788378883798838088381883828838388384883858838688387883888838988390883918839288393883948839588396883978839888399884008840188402884038840488405884068840788408884098841088411884128841388414884158841688417884188841988420884218842288423884248842588426884278842888429884308843188432884338843488435884368843788438884398844088441884428844388444884458844688447884488844988450884518845288453884548845588456884578845888459884608846188462884638846488465884668846788468884698847088471884728847388474884758847688477884788847988480884818848288483884848848588486884878848888489884908849188492884938849488495884968849788498884998850088501885028850388504885058850688507885088850988510885118851288513885148851588516885178851888519885208852188522885238852488525885268852788528885298853088531885328853388534885358853688537885388853988540885418854288543885448854588546885478854888549885508855188552885538855488555885568855788558885598856088561885628856388564885658856688567885688856988570885718857288573885748857588576885778857888579885808858188582885838858488585885868858788588885898859088591885928859388594885958859688597885988859988600886018860288603886048860588606886078860888609886108861188612886138861488615886168861788618886198862088621886228862388624886258862688627886288862988630886318863288633886348863588636886378863888639886408864188642886438864488645886468864788648886498865088651886528865388654886558865688657886588865988660886618866288663886648866588666886678866888669886708867188672886738867488675886768867788678886798868088681886828868388684886858868688687886888868988690886918869288693886948869588696886978869888699887008870188702887038870488705887068870788708887098871088711887128871388714887158871688717887188871988720887218872288723887248872588726887278872888729887308873188732887338873488735887368873788738887398874088741887428874388744887458874688747887488874988750887518875288753887548875588756887578875888759887608876188762887638876488765887668876788768887698877088771887728877388774887758877688777887788877988780887818878288783887848878588786887878878888789887908879188792887938879488795887968879788798887998880088801888028880388804888058880688807888088880988810888118881288813888148881588816888178881888819888208882188822888238882488825888268882788828888298883088831888328883388834888358883688837888388883988840888418884288843888448884588846888478884888849888508885188852888538885488855888568885788858888598886088861888628886388864888658886688867888688886988870888718887288873888748887588876888778887888879888808888188882888838888488885888868888788888888898889088891888928889388894888958889688897888988889988900889018890288903889048890588906889078890888909889108891188912889138891488915889168891788918889198892088921889228892388924889258892688927889288892988930889318893288933889348893588936889378893888939889408894188942889438894488945889468894788948889498895088951889528895388954889558895688957889588895988960889618896288963889648896588966889678896888969889708897188972889738897488975889768897788978889798898088981889828898388984889858898688987889888898988990889918899288993889948899588996889978899888999890008900189002890038900489005890068900789008890098901089011890128901389014890158901689017890188901989020890218902289023890248902589026890278902889029890308903189032890338903489035890368903789038890398904089041890428904389044890458904689047890488904989050890518905289053890548905589056890578905889059890608906189062890638906489065890668906789068890698907089071890728907389074890758907689077890788907989080890818908289083890848908589086890878908889089890908909189092890938909489095890968909789098890998910089101891028910389104891058910689107891088910989110891118911289113891148911589116891178911889119891208912189122891238912489125891268912789128891298913089131891328913389134891358913689137891388913989140891418914289143891448914589146891478914889149891508915189152891538915489155891568915789158891598916089161891628916389164891658916689167891688916989170891718917289173891748917589176891778917889179891808918189182891838918489185891868918789188891898919089191891928919389194891958919689197891988919989200892018920289203892048920589206892078920889209892108921189212892138921489215892168921789218892198922089221892228922389224892258922689227892288922989230892318923289233892348923589236892378923889239892408924189242892438924489245892468924789248892498925089251892528925389254892558925689257892588925989260892618926289263892648926589266892678926889269892708927189272892738927489275892768927789278892798928089281892828928389284892858928689287892888928989290892918929289293892948929589296892978929889299893008930189302893038930489305893068930789308893098931089311893128931389314893158931689317893188931989320893218932289323893248932589326893278932889329893308933189332893338933489335893368933789338893398934089341893428934389344893458934689347893488934989350893518935289353893548935589356893578935889359893608936189362893638936489365893668936789368893698937089371893728937389374893758937689377893788937989380893818938289383893848938589386893878938889389893908939189392893938939489395893968939789398893998940089401894028940389404894058940689407894088940989410894118941289413894148941589416894178941889419894208942189422894238942489425894268942789428894298943089431894328943389434894358943689437894388943989440894418944289443894448944589446894478944889449894508945189452894538945489455894568945789458894598946089461894628946389464894658946689467894688946989470894718947289473894748947589476894778947889479894808948189482894838948489485894868948789488894898949089491894928949389494894958949689497894988949989500895018950289503895048950589506895078950889509895108951189512895138951489515895168951789518895198952089521895228952389524895258952689527895288952989530895318953289533895348953589536895378953889539895408954189542895438954489545895468954789548895498955089551895528955389554895558955689557895588955989560895618956289563895648956589566895678956889569895708957189572895738957489575895768957789578895798958089581895828958389584895858958689587895888958989590895918959289593895948959589596895978959889599896008960189602896038960489605896068960789608896098961089611896128961389614896158961689617896188961989620896218962289623896248962589626896278962889629896308963189632896338963489635896368963789638896398964089641896428964389644896458964689647896488964989650896518965289653896548965589656896578965889659896608966189662896638966489665896668966789668896698967089671896728967389674896758967689677896788967989680896818968289683896848968589686896878968889689896908969189692896938969489695896968969789698896998970089701897028970389704897058970689707897088970989710897118971289713897148971589716897178971889719897208972189722897238972489725897268972789728897298973089731897328973389734897358973689737897388973989740897418974289743897448974589746897478974889749897508975189752897538975489755897568975789758897598976089761897628976389764897658976689767897688976989770897718977289773897748977589776897778977889779897808978189782897838978489785897868978789788897898979089791897928979389794897958979689797897988979989800898018980289803898048980589806898078980889809898108981189812898138981489815898168981789818898198982089821898228982389824898258982689827898288982989830898318983289833898348983589836898378983889839898408984189842898438984489845898468984789848898498985089851898528985389854898558985689857898588985989860898618986289863898648986589866898678986889869898708987189872898738987489875898768987789878898798988089881898828988389884898858988689887898888988989890898918989289893898948989589896898978989889899899008990189902899038990489905899068990789908899098991089911899128991389914899158991689917899188991989920899218992289923899248992589926899278992889929899308993189932899338993489935899368993789938899398994089941899428994389944899458994689947899488994989950899518995289953899548995589956899578995889959899608996189962899638996489965899668996789968899698997089971899728997389974899758997689977899788997989980899818998289983899848998589986899878998889989899908999189992899938999489995899968999789998899999000090001900029000390004900059000690007900089000990010900119001290013900149001590016900179001890019900209002190022900239002490025900269002790028900299003090031900329003390034900359003690037900389003990040900419004290043900449004590046900479004890049900509005190052900539005490055900569005790058900599006090061900629006390064900659006690067900689006990070900719007290073900749007590076900779007890079900809008190082900839008490085900869008790088900899009090091900929009390094900959009690097900989009990100901019010290103901049010590106901079010890109901109011190112901139011490115901169011790118901199012090121901229012390124901259012690127901289012990130901319013290133901349013590136901379013890139901409014190142901439014490145901469014790148901499015090151901529015390154901559015690157901589015990160901619016290163901649016590166901679016890169901709017190172901739017490175901769017790178901799018090181901829018390184901859018690187901889018990190901919019290193901949019590196901979019890199902009020190202902039020490205902069020790208902099021090211902129021390214902159021690217902189021990220902219022290223902249022590226902279022890229902309023190232902339023490235902369023790238902399024090241902429024390244902459024690247902489024990250902519025290253902549025590256902579025890259902609026190262902639026490265902669026790268902699027090271902729027390274902759027690277902789027990280902819028290283902849028590286902879028890289902909029190292902939029490295902969029790298902999030090301903029030390304903059030690307903089030990310903119031290313903149031590316903179031890319903209032190322903239032490325903269032790328903299033090331903329033390334903359033690337903389033990340903419034290343903449034590346903479034890349903509035190352903539035490355903569035790358903599036090361903629036390364903659036690367903689036990370903719037290373903749037590376903779037890379903809038190382903839038490385903869038790388903899039090391903929039390394903959039690397903989039990400904019040290403904049040590406904079040890409904109041190412904139041490415904169041790418904199042090421904229042390424904259042690427904289042990430904319043290433904349043590436904379043890439904409044190442904439044490445904469044790448904499045090451904529045390454904559045690457904589045990460904619046290463904649046590466904679046890469904709047190472904739047490475904769047790478904799048090481904829048390484904859048690487904889048990490904919049290493904949049590496904979049890499905009050190502905039050490505905069050790508905099051090511905129051390514905159051690517905189051990520905219052290523905249052590526905279052890529905309053190532905339053490535905369053790538905399054090541905429054390544905459054690547905489054990550905519055290553905549055590556905579055890559905609056190562905639056490565905669056790568905699057090571905729057390574905759057690577905789057990580905819058290583905849058590586905879058890589905909059190592905939059490595905969059790598905999060090601906029060390604906059060690607906089060990610906119061290613906149061590616906179061890619906209062190622906239062490625906269062790628906299063090631906329063390634906359063690637906389063990640906419064290643906449064590646906479064890649906509065190652906539065490655906569065790658906599066090661906629066390664906659066690667906689066990670906719067290673906749067590676906779067890679906809068190682906839068490685906869068790688906899069090691906929069390694906959069690697906989069990700907019070290703907049070590706907079070890709907109071190712907139071490715907169071790718907199072090721907229072390724907259072690727907289072990730907319073290733907349073590736907379073890739907409074190742907439074490745907469074790748907499075090751907529075390754907559075690757907589075990760907619076290763907649076590766907679076890769907709077190772907739077490775907769077790778907799078090781907829078390784907859078690787907889078990790907919079290793907949079590796907979079890799908009080190802908039080490805908069080790808908099081090811908129081390814908159081690817908189081990820908219082290823908249082590826908279082890829908309083190832908339083490835908369083790838908399084090841908429084390844908459084690847908489084990850908519085290853908549085590856908579085890859908609086190862908639086490865908669086790868908699087090871908729087390874908759087690877908789087990880908819088290883908849088590886908879088890889908909089190892908939089490895908969089790898908999090090901909029090390904909059090690907909089090990910909119091290913909149091590916909179091890919909209092190922909239092490925909269092790928909299093090931909329093390934909359093690937909389093990940909419094290943909449094590946909479094890949909509095190952909539095490955909569095790958909599096090961909629096390964909659096690967909689096990970909719097290973909749097590976909779097890979909809098190982909839098490985909869098790988909899099090991909929099390994909959099690997909989099991000910019100291003910049100591006910079100891009910109101191012910139101491015910169101791018910199102091021910229102391024910259102691027910289102991030910319103291033910349103591036910379103891039910409104191042910439104491045910469104791048910499105091051910529105391054910559105691057910589105991060910619106291063910649106591066910679106891069910709107191072910739107491075910769107791078910799108091081910829108391084910859108691087910889108991090910919109291093910949109591096910979109891099911009110191102911039110491105911069110791108911099111091111911129111391114911159111691117911189111991120911219112291123911249112591126911279112891129911309113191132911339113491135911369113791138911399114091141911429114391144911459114691147911489114991150911519115291153911549115591156911579115891159911609116191162911639116491165911669116791168911699117091171911729117391174911759117691177911789117991180911819118291183911849118591186911879118891189911909119191192911939119491195911969119791198911999120091201912029120391204912059120691207912089120991210912119121291213912149121591216912179121891219912209122191222912239122491225912269122791228912299123091231912329123391234912359123691237912389123991240912419124291243912449124591246912479124891249912509125191252912539125491255912569125791258912599126091261912629126391264912659126691267912689126991270912719127291273912749127591276912779127891279912809128191282912839128491285912869128791288912899129091291912929129391294912959129691297912989129991300913019130291303913049130591306913079130891309913109131191312913139131491315913169131791318913199132091321913229132391324913259132691327913289132991330913319133291333913349133591336913379133891339913409134191342913439134491345913469134791348913499135091351913529135391354913559135691357913589135991360913619136291363913649136591366913679136891369913709137191372913739137491375913769137791378913799138091381913829138391384913859138691387913889138991390913919139291393913949139591396913979139891399914009140191402914039140491405914069140791408914099141091411914129141391414914159141691417914189141991420914219142291423914249142591426914279142891429914309143191432914339143491435914369143791438914399144091441914429144391444914459144691447914489144991450914519145291453914549145591456914579145891459914609146191462914639146491465914669146791468914699147091471914729147391474914759147691477914789147991480914819148291483914849148591486914879148891489914909149191492914939149491495914969149791498914999150091501915029150391504915059150691507915089150991510915119151291513915149151591516915179151891519915209152191522915239152491525915269152791528915299153091531915329153391534915359153691537915389153991540915419154291543915449154591546915479154891549915509155191552915539155491555915569155791558915599156091561915629156391564915659156691567915689156991570915719157291573915749157591576915779157891579915809158191582915839158491585915869158791588915899159091591915929159391594915959159691597915989159991600916019160291603916049160591606916079160891609916109161191612916139161491615916169161791618916199162091621916229162391624916259162691627916289162991630916319163291633916349163591636916379163891639916409164191642916439164491645916469164791648916499165091651916529165391654916559165691657916589165991660916619166291663916649166591666916679166891669916709167191672916739167491675916769167791678916799168091681916829168391684916859168691687916889168991690916919169291693916949169591696916979169891699917009170191702917039170491705917069170791708917099171091711917129171391714917159171691717917189171991720917219172291723917249172591726917279172891729917309173191732917339173491735917369173791738917399174091741917429174391744917459174691747917489174991750917519175291753917549175591756917579175891759917609176191762917639176491765917669176791768917699177091771917729177391774917759177691777917789177991780917819178291783917849178591786917879178891789917909179191792917939179491795917969179791798917999180091801918029180391804918059180691807918089180991810918119181291813918149181591816918179181891819918209182191822918239182491825918269182791828918299183091831918329183391834918359183691837918389183991840918419184291843918449184591846918479184891849918509185191852918539185491855918569185791858918599186091861918629186391864918659186691867918689186991870918719187291873918749187591876918779187891879918809188191882918839188491885918869188791888918899189091891918929189391894918959189691897918989189991900919019190291903919049190591906919079190891909919109191191912919139191491915919169191791918919199192091921919229192391924919259192691927919289192991930919319193291933919349193591936919379193891939919409194191942919439194491945919469194791948919499195091951919529195391954919559195691957919589195991960919619196291963919649196591966919679196891969919709197191972919739197491975919769197791978919799198091981919829198391984919859198691987919889198991990919919199291993919949199591996919979199891999920009200192002920039200492005920069200792008920099201092011920129201392014920159201692017920189201992020920219202292023920249202592026920279202892029920309203192032920339203492035920369203792038920399204092041920429204392044920459204692047920489204992050920519205292053920549205592056920579205892059920609206192062920639206492065920669206792068920699207092071920729207392074920759207692077920789207992080920819208292083920849208592086920879208892089920909209192092920939209492095920969209792098920999210092101921029210392104921059210692107921089210992110921119211292113921149211592116921179211892119921209212192122921239212492125921269212792128921299213092131921329213392134921359213692137921389213992140921419214292143921449214592146921479214892149921509215192152921539215492155921569215792158921599216092161921629216392164921659216692167921689216992170921719217292173921749217592176921779217892179921809218192182921839218492185921869218792188921899219092191921929219392194921959219692197921989219992200922019220292203922049220592206922079220892209922109221192212922139221492215922169221792218922199222092221922229222392224922259222692227922289222992230922319223292233922349223592236922379223892239922409224192242922439224492245922469224792248922499225092251922529225392254922559225692257922589225992260922619226292263922649226592266922679226892269922709227192272922739227492275922769227792278922799228092281922829228392284922859228692287922889228992290922919229292293922949229592296922979229892299923009230192302923039230492305923069230792308923099231092311923129231392314923159231692317923189231992320923219232292323923249232592326923279232892329923309233192332923339233492335923369233792338923399234092341923429234392344923459234692347923489234992350923519235292353923549235592356923579235892359923609236192362923639236492365923669236792368923699237092371923729237392374923759237692377923789237992380923819238292383923849238592386923879238892389923909239192392923939239492395923969239792398923999240092401924029240392404924059240692407924089240992410924119241292413924149241592416924179241892419924209242192422924239242492425924269242792428924299243092431924329243392434924359243692437924389243992440924419244292443924449244592446924479244892449924509245192452924539245492455924569245792458924599246092461924629246392464924659246692467924689246992470924719247292473924749247592476924779247892479924809248192482924839248492485924869248792488924899249092491924929249392494924959249692497924989249992500925019250292503925049250592506925079250892509925109251192512925139251492515925169251792518925199252092521925229252392524925259252692527925289252992530925319253292533925349253592536925379253892539925409254192542925439254492545925469254792548925499255092551925529255392554925559255692557925589255992560925619256292563925649256592566925679256892569925709257192572925739257492575925769257792578925799258092581925829258392584925859258692587925889258992590925919259292593925949259592596925979259892599926009260192602926039260492605926069260792608926099261092611926129261392614926159261692617926189261992620926219262292623926249262592626926279262892629926309263192632926339263492635926369263792638926399264092641926429264392644926459264692647926489264992650926519265292653926549265592656926579265892659926609266192662926639266492665926669266792668926699267092671926729267392674926759267692677926789267992680926819268292683926849268592686926879268892689926909269192692926939269492695926969269792698926999270092701927029270392704927059270692707927089270992710927119271292713927149271592716927179271892719927209272192722927239272492725927269272792728927299273092731927329273392734927359273692737927389273992740927419274292743927449274592746927479274892749927509275192752927539275492755927569275792758927599276092761927629276392764927659276692767927689276992770927719277292773927749277592776927779277892779927809278192782927839278492785927869278792788927899279092791927929279392794927959279692797927989279992800928019280292803928049280592806928079280892809928109281192812928139281492815928169281792818928199282092821928229282392824928259282692827928289282992830928319283292833928349283592836928379283892839928409284192842928439284492845928469284792848928499285092851928529285392854928559285692857928589285992860928619286292863928649286592866928679286892869928709287192872928739287492875928769287792878928799288092881928829288392884928859288692887928889288992890928919289292893928949289592896928979289892899929009290192902929039290492905929069290792908929099291092911929129291392914929159291692917929189291992920929219292292923929249292592926929279292892929929309293192932929339293492935929369293792938929399294092941929429294392944929459294692947929489294992950929519295292953929549295592956929579295892959929609296192962929639296492965929669296792968929699297092971929729297392974929759297692977929789297992980929819298292983929849298592986929879298892989929909299192992929939299492995929969299792998929999300093001930029300393004930059300693007930089300993010930119301293013930149301593016930179301893019930209302193022930239302493025930269302793028930299303093031930329303393034930359303693037930389303993040930419304293043930449304593046930479304893049930509305193052930539305493055930569305793058930599306093061930629306393064930659306693067930689306993070930719307293073930749307593076930779307893079930809308193082930839308493085930869308793088930899309093091930929309393094930959309693097930989309993100931019310293103931049310593106931079310893109931109311193112931139311493115931169311793118931199312093121931229312393124931259312693127931289312993130931319313293133931349313593136931379313893139931409314193142931439314493145931469314793148931499315093151931529315393154931559315693157931589315993160931619316293163931649316593166931679316893169931709317193172931739317493175931769317793178931799318093181931829318393184931859318693187931889318993190931919319293193931949319593196931979319893199932009320193202932039320493205932069320793208932099321093211932129321393214932159321693217932189321993220932219322293223932249322593226932279322893229932309323193232932339323493235932369323793238932399324093241932429324393244932459324693247932489324993250932519325293253932549325593256932579325893259932609326193262932639326493265932669326793268932699327093271932729327393274932759327693277932789327993280932819328293283932849328593286932879328893289932909329193292932939329493295932969329793298932999330093301933029330393304933059330693307933089330993310933119331293313933149331593316933179331893319933209332193322933239332493325933269332793328933299333093331933329333393334933359333693337933389333993340933419334293343933449334593346933479334893349933509335193352933539335493355933569335793358933599336093361933629336393364933659336693367933689336993370933719337293373933749337593376933779337893379933809338193382933839338493385933869338793388933899339093391933929339393394933959339693397933989339993400934019340293403934049340593406934079340893409934109341193412934139341493415934169341793418934199342093421934229342393424934259342693427934289342993430934319343293433934349343593436934379343893439934409344193442934439344493445934469344793448934499345093451934529345393454934559345693457934589345993460934619346293463934649346593466934679346893469934709347193472934739347493475934769347793478934799348093481934829348393484934859348693487934889348993490934919349293493934949349593496934979349893499935009350193502935039350493505935069350793508935099351093511935129351393514935159351693517935189351993520935219352293523935249352593526935279352893529935309353193532935339353493535935369353793538935399354093541935429354393544935459354693547935489354993550935519355293553935549355593556935579355893559935609356193562935639356493565935669356793568935699357093571935729357393574935759357693577935789357993580935819358293583935849358593586935879358893589935909359193592935939359493595935969359793598935999360093601936029360393604936059360693607936089360993610936119361293613936149361593616936179361893619936209362193622936239362493625936269362793628936299363093631936329363393634936359363693637936389363993640936419364293643936449364593646936479364893649936509365193652936539365493655936569365793658936599366093661936629366393664936659366693667936689366993670936719367293673936749367593676936779367893679936809368193682936839368493685936869368793688936899369093691936929369393694936959369693697936989369993700937019370293703937049370593706937079370893709937109371193712937139371493715937169371793718937199372093721937229372393724937259372693727937289372993730937319373293733937349373593736937379373893739937409374193742937439374493745937469374793748937499375093751937529375393754937559375693757937589375993760937619376293763937649376593766937679376893769937709377193772937739377493775937769377793778937799378093781937829378393784937859378693787937889378993790937919379293793937949379593796937979379893799938009380193802938039380493805938069380793808938099381093811938129381393814938159381693817938189381993820938219382293823938249382593826938279382893829938309383193832938339383493835938369383793838938399384093841938429384393844938459384693847938489384993850938519385293853938549385593856938579385893859938609386193862938639386493865938669386793868938699387093871938729387393874938759387693877938789387993880938819388293883938849388593886938879388893889938909389193892938939389493895938969389793898938999390093901939029390393904939059390693907939089390993910939119391293913939149391593916939179391893919939209392193922939239392493925939269392793928939299393093931939329393393934939359393693937939389393993940939419394293943939449394593946939479394893949939509395193952939539395493955939569395793958939599396093961939629396393964939659396693967939689396993970939719397293973939749397593976939779397893979939809398193982939839398493985939869398793988939899399093991939929399393994939959399693997939989399994000940019400294003940049400594006940079400894009940109401194012940139401494015940169401794018940199402094021940229402394024940259402694027940289402994030940319403294033940349403594036940379403894039940409404194042940439404494045940469404794048940499405094051940529405394054940559405694057940589405994060940619406294063940649406594066940679406894069940709407194072940739407494075940769407794078940799408094081940829408394084940859408694087940889408994090940919409294093940949409594096940979409894099941009410194102941039410494105941069410794108941099411094111941129411394114941159411694117941189411994120941219412294123941249412594126941279412894129941309413194132941339413494135941369413794138941399414094141941429414394144941459414694147941489414994150941519415294153941549415594156941579415894159941609416194162941639416494165941669416794168941699417094171941729417394174941759417694177941789417994180941819418294183941849418594186941879418894189941909419194192941939419494195941969419794198941999420094201942029420394204942059420694207942089420994210942119421294213942149421594216942179421894219942209422194222942239422494225942269422794228942299423094231942329423394234942359423694237942389423994240942419424294243942449424594246942479424894249942509425194252942539425494255942569425794258942599426094261942629426394264942659426694267942689426994270942719427294273942749427594276942779427894279942809428194282942839428494285942869428794288942899429094291942929429394294942959429694297942989429994300943019430294303943049430594306943079430894309943109431194312943139431494315943169431794318943199432094321943229432394324943259432694327943289432994330943319433294333943349433594336943379433894339943409434194342943439434494345943469434794348943499435094351943529435394354943559435694357943589435994360943619436294363943649436594366943679436894369943709437194372943739437494375943769437794378943799438094381943829438394384943859438694387943889438994390943919439294393943949439594396943979439894399944009440194402944039440494405944069440794408944099441094411944129441394414944159441694417944189441994420944219442294423944249442594426944279442894429944309443194432944339443494435944369443794438944399444094441944429444394444944459444694447944489444994450944519445294453944549445594456944579445894459944609446194462944639446494465944669446794468944699447094471944729447394474944759447694477944789447994480944819448294483944849448594486944879448894489944909449194492944939449494495944969449794498944999450094501945029450394504945059450694507945089450994510945119451294513945149451594516945179451894519945209452194522945239452494525945269452794528945299453094531945329453394534945359453694537945389453994540945419454294543945449454594546945479454894549945509455194552945539455494555945569455794558945599456094561945629456394564945659456694567945689456994570945719457294573945749457594576945779457894579945809458194582945839458494585945869458794588945899459094591945929459394594945959459694597945989459994600946019460294603946049460594606946079460894609946109461194612946139461494615946169461794618946199462094621946229462394624946259462694627946289462994630946319463294633946349463594636946379463894639946409464194642946439464494645946469464794648946499465094651946529465394654946559465694657946589465994660946619466294663946649466594666946679466894669946709467194672946739467494675946769467794678946799468094681946829468394684946859468694687946889468994690946919469294693946949469594696946979469894699947009470194702947039470494705947069470794708947099471094711947129471394714947159471694717947189471994720947219472294723947249472594726947279472894729947309473194732947339473494735947369473794738947399474094741947429474394744947459474694747947489474994750947519475294753947549475594756947579475894759947609476194762947639476494765947669476794768947699477094771947729477394774947759477694777947789477994780947819478294783947849478594786947879478894789947909479194792947939479494795947969479794798947999480094801948029480394804948059480694807948089480994810948119481294813948149481594816948179481894819948209482194822948239482494825948269482794828948299483094831948329483394834948359483694837948389483994840948419484294843948449484594846948479484894849948509485194852948539485494855948569485794858948599486094861948629486394864948659486694867948689486994870948719487294873948749487594876948779487894879948809488194882948839488494885948869488794888948899489094891948929489394894948959489694897948989489994900949019490294903949049490594906949079490894909949109491194912949139491494915949169491794918949199492094921949229492394924949259492694927949289492994930949319493294933949349493594936949379493894939949409494194942949439494494945949469494794948949499495094951949529495394954949559495694957949589495994960949619496294963949649496594966949679496894969949709497194972949739497494975949769497794978949799498094981949829498394984949859498694987949889498994990949919499294993949949499594996949979499894999950009500195002950039500495005950069500795008950099501095011950129501395014950159501695017950189501995020950219502295023950249502595026950279502895029950309503195032950339503495035950369503795038950399504095041950429504395044950459504695047950489504995050950519505295053950549505595056950579505895059950609506195062950639506495065950669506795068950699507095071950729507395074950759507695077950789507995080950819508295083950849508595086950879508895089950909509195092950939509495095950969509795098950999510095101951029510395104951059510695107951089510995110951119511295113951149511595116951179511895119951209512195122951239512495125951269512795128951299513095131951329513395134951359513695137951389513995140951419514295143951449514595146951479514895149951509515195152951539515495155951569515795158951599516095161951629516395164951659516695167951689516995170951719517295173951749517595176951779517895179951809518195182951839518495185951869518795188951899519095191951929519395194951959519695197951989519995200952019520295203952049520595206952079520895209952109521195212952139521495215952169521795218952199522095221952229522395224952259522695227952289522995230952319523295233952349523595236952379523895239952409524195242952439524495245952469524795248952499525095251952529525395254952559525695257952589525995260952619526295263952649526595266952679526895269952709527195272952739527495275952769527795278952799528095281952829528395284952859528695287952889528995290952919529295293952949529595296952979529895299953009530195302953039530495305953069530795308953099531095311953129531395314953159531695317953189531995320953219532295323953249532595326953279532895329953309533195332953339533495335953369533795338953399534095341953429534395344953459534695347953489534995350953519535295353953549535595356953579535895359953609536195362953639536495365953669536795368953699537095371953729537395374953759537695377953789537995380953819538295383953849538595386953879538895389953909539195392953939539495395953969539795398953999540095401954029540395404954059540695407954089540995410954119541295413954149541595416954179541895419954209542195422954239542495425954269542795428954299543095431954329543395434954359543695437954389543995440954419544295443954449544595446954479544895449954509545195452954539545495455954569545795458954599546095461954629546395464954659546695467954689546995470954719547295473954749547595476954779547895479954809548195482954839548495485954869548795488954899549095491954929549395494954959549695497954989549995500955019550295503955049550595506955079550895509955109551195512955139551495515955169551795518955199552095521955229552395524955259552695527955289552995530955319553295533955349553595536955379553895539955409554195542955439554495545955469554795548955499555095551955529555395554955559555695557955589555995560955619556295563955649556595566955679556895569955709557195572955739557495575955769557795578955799558095581955829558395584955859558695587955889558995590955919559295593955949559595596955979559895599956009560195602956039560495605956069560795608956099561095611956129561395614956159561695617956189561995620956219562295623956249562595626956279562895629956309563195632956339563495635956369563795638956399564095641956429564395644956459564695647956489564995650956519565295653956549565595656956579565895659956609566195662956639566495665956669566795668956699567095671956729567395674956759567695677956789567995680956819568295683956849568595686956879568895689956909569195692956939569495695956969569795698956999570095701957029570395704957059570695707957089570995710957119571295713957149571595716957179571895719957209572195722957239572495725957269572795728957299573095731957329573395734957359573695737957389573995740957419574295743957449574595746957479574895749957509575195752957539575495755957569575795758957599576095761957629576395764957659576695767957689576995770957719577295773957749577595776957779577895779957809578195782957839578495785957869578795788957899579095791957929579395794957959579695797957989579995800958019580295803958049580595806958079580895809958109581195812958139581495815958169581795818958199582095821958229582395824958259582695827958289582995830958319583295833958349583595836958379583895839958409584195842958439584495845958469584795848958499585095851958529585395854958559585695857958589585995860958619586295863958649586595866958679586895869958709587195872958739587495875958769587795878958799588095881958829588395884958859588695887958889588995890958919589295893958949589595896958979589895899959009590195902959039590495905959069590795908959099591095911959129591395914959159591695917959189591995920959219592295923959249592595926959279592895929959309593195932959339593495935959369593795938959399594095941959429594395944959459594695947959489594995950959519595295953959549595595956959579595895959959609596195962959639596495965959669596795968959699597095971959729597395974959759597695977959789597995980959819598295983959849598595986959879598895989959909599195992959939599495995959969599795998959999600096001960029600396004960059600696007960089600996010960119601296013960149601596016960179601896019960209602196022960239602496025960269602796028960299603096031960329603396034960359603696037960389603996040960419604296043960449604596046960479604896049960509605196052960539605496055960569605796058960599606096061960629606396064960659606696067960689606996070960719607296073960749607596076960779607896079960809608196082960839608496085960869608796088960899609096091960929609396094960959609696097960989609996100961019610296103961049610596106961079610896109961109611196112961139611496115961169611796118961199612096121961229612396124961259612696127961289612996130961319613296133961349613596136961379613896139961409614196142961439614496145961469614796148961499615096151961529615396154961559615696157961589615996160961619616296163961649616596166961679616896169961709617196172961739617496175961769617796178961799618096181961829618396184961859618696187961889618996190961919619296193961949619596196961979619896199962009620196202962039620496205962069620796208962099621096211962129621396214962159621696217962189621996220962219622296223962249622596226962279622896229962309623196232962339623496235962369623796238962399624096241962429624396244962459624696247962489624996250962519625296253962549625596256962579625896259962609626196262962639626496265962669626796268962699627096271962729627396274962759627696277962789627996280962819628296283962849628596286962879628896289962909629196292962939629496295962969629796298962999630096301963029630396304963059630696307963089630996310963119631296313963149631596316963179631896319963209632196322963239632496325963269632796328963299633096331963329633396334963359633696337963389633996340963419634296343963449634596346963479634896349963509635196352963539635496355
  1. /*!
  2. *
  3. * ant-design-vue v1.7.5
  4. *
  5. * Copyright 2017-present, ant-design-vue.
  6. * All rights reserved.
  7. *
  8. */
  9. (function webpackUniversalModuleDefinition(root, factory) {
  10. if(typeof exports === 'object' && typeof module === 'object')
  11. module.exports = factory(require("moment"), require("vue"));
  12. else if(typeof define === 'function' && define.amd)
  13. define(["moment", "vue"], factory);
  14. else if(typeof exports === 'object')
  15. exports["antd"] = factory(require("moment"), require("vue"));
  16. else
  17. root["antd"] = factory(root["moment"], root["Vue"]);
  18. })(window, function(__WEBPACK_EXTERNAL_MODULE_moment__, __WEBPACK_EXTERNAL_MODULE_vue__) {
  19. return /******/ (function(modules) { // webpackBootstrap
  20. /******/ // The module cache
  21. /******/ var installedModules = {};
  22. /******/
  23. /******/ // The require function
  24. /******/ function __webpack_require__(moduleId) {
  25. /******/
  26. /******/ // Check if module is in cache
  27. /******/ if(installedModules[moduleId]) {
  28. /******/ return installedModules[moduleId].exports;
  29. /******/ }
  30. /******/ // Create a new module (and put it into the cache)
  31. /******/ var module = installedModules[moduleId] = {
  32. /******/ i: moduleId,
  33. /******/ l: false,
  34. /******/ exports: {}
  35. /******/ };
  36. /******/
  37. /******/ // Execute the module function
  38. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  39. /******/
  40. /******/ // Flag the module as loaded
  41. /******/ module.l = true;
  42. /******/
  43. /******/ // Return the exports of the module
  44. /******/ return module.exports;
  45. /******/ }
  46. /******/
  47. /******/
  48. /******/ // expose the modules object (__webpack_modules__)
  49. /******/ __webpack_require__.m = modules;
  50. /******/
  51. /******/ // expose the module cache
  52. /******/ __webpack_require__.c = installedModules;
  53. /******/
  54. /******/ // define getter function for harmony exports
  55. /******/ __webpack_require__.d = function(exports, name, getter) {
  56. /******/ if(!__webpack_require__.o(exports, name)) {
  57. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  58. /******/ }
  59. /******/ };
  60. /******/
  61. /******/ // define __esModule on exports
  62. /******/ __webpack_require__.r = function(exports) {
  63. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  64. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  65. /******/ }
  66. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  67. /******/ };
  68. /******/
  69. /******/ // create a fake namespace object
  70. /******/ // mode & 1: value is a module id, require it
  71. /******/ // mode & 2: merge all properties of value into the ns
  72. /******/ // mode & 4: return value when already ns object
  73. /******/ // mode & 8|1: behave like require
  74. /******/ __webpack_require__.t = function(value, mode) {
  75. /******/ if(mode & 1) value = __webpack_require__(value);
  76. /******/ if(mode & 8) return value;
  77. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  78. /******/ var ns = Object.create(null);
  79. /******/ __webpack_require__.r(ns);
  80. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  81. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  82. /******/ return ns;
  83. /******/ };
  84. /******/
  85. /******/ // getDefaultExport function for compatibility with non-harmony modules
  86. /******/ __webpack_require__.n = function(module) {
  87. /******/ var getter = module && module.__esModule ?
  88. /******/ function getDefault() { return module['default']; } :
  89. /******/ function getModuleExports() { return module; };
  90. /******/ __webpack_require__.d(getter, 'a', getter);
  91. /******/ return getter;
  92. /******/ };
  93. /******/
  94. /******/ // Object.prototype.hasOwnProperty.call
  95. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  96. /******/
  97. /******/ // __webpack_public_path__
  98. /******/ __webpack_require__.p = "";
  99. /******/
  100. /******/
  101. /******/ // Load entry module and return exports
  102. /******/ return __webpack_require__(__webpack_require__.s = 0);
  103. /******/ })
  104. /************************************************************************/
  105. /******/ ({
  106. /***/ "./components sync recursive ^\\.\\/[^_][\\w-]+\\/style\\/index\\.js?$":
  107. /*!*************************************************************!*\
  108. !*** ./components sync ^\.\/[^_][\w-]+\/style\/index\.js?$ ***!
  109. \*************************************************************/
  110. /*! no static exports found */
  111. /***/ (function(module, exports, __webpack_require__) {
  112. var map = {
  113. "./affix/style/index.js": "./components/affix/style/index.js",
  114. "./alert/style/index.js": "./components/alert/style/index.js",
  115. "./anchor/style/index.js": "./components/anchor/style/index.js",
  116. "./auto-complete/style/index.js": "./components/auto-complete/style/index.js",
  117. "./avatar/style/index.js": "./components/avatar/style/index.js",
  118. "./back-top/style/index.js": "./components/back-top/style/index.js",
  119. "./badge/style/index.js": "./components/badge/style/index.js",
  120. "./base/style/index.js": "./components/base/style/index.js",
  121. "./breadcrumb/style/index.js": "./components/breadcrumb/style/index.js",
  122. "./button/style/index.js": "./components/button/style/index.js",
  123. "./calendar/style/index.js": "./components/calendar/style/index.js",
  124. "./card/style/index.js": "./components/card/style/index.js",
  125. "./carousel/style/index.js": "./components/carousel/style/index.js",
  126. "./cascader/style/index.js": "./components/cascader/style/index.js",
  127. "./checkbox/style/index.js": "./components/checkbox/style/index.js",
  128. "./col/style/index.js": "./components/col/style/index.js",
  129. "./collapse/style/index.js": "./components/collapse/style/index.js",
  130. "./comment/style/index.js": "./components/comment/style/index.js",
  131. "./config-provider/style/index.js": "./components/config-provider/style/index.js",
  132. "./date-picker/style/index.js": "./components/date-picker/style/index.js",
  133. "./descriptions/style/index.js": "./components/descriptions/style/index.js",
  134. "./divider/style/index.js": "./components/divider/style/index.js",
  135. "./drawer/style/index.js": "./components/drawer/style/index.js",
  136. "./dropdown/style/index.js": "./components/dropdown/style/index.js",
  137. "./empty/style/index.js": "./components/empty/style/index.js",
  138. "./form-model/style/index.js": "./components/form-model/style/index.js",
  139. "./form/style/index.js": "./components/form/style/index.js",
  140. "./grid/style/index.js": "./components/grid/style/index.js",
  141. "./icon/style/index.js": "./components/icon/style/index.js",
  142. "./input-number/style/index.js": "./components/input-number/style/index.js",
  143. "./input/style/index.js": "./components/input/style/index.js",
  144. "./layout/style/index.js": "./components/layout/style/index.js",
  145. "./list/style/index.js": "./components/list/style/index.js",
  146. "./locale-provider/style/index.js": "./components/locale-provider/style/index.js",
  147. "./mentions/style/index.js": "./components/mentions/style/index.js",
  148. "./menu/style/index.js": "./components/menu/style/index.js",
  149. "./message/style/index.js": "./components/message/style/index.js",
  150. "./modal/style/index.js": "./components/modal/style/index.js",
  151. "./notification/style/index.js": "./components/notification/style/index.js",
  152. "./page-header/style/index.js": "./components/page-header/style/index.js",
  153. "./pagination/style/index.js": "./components/pagination/style/index.js",
  154. "./popconfirm/style/index.js": "./components/popconfirm/style/index.js",
  155. "./popover/style/index.js": "./components/popover/style/index.js",
  156. "./progress/style/index.js": "./components/progress/style/index.js",
  157. "./radio/style/index.js": "./components/radio/style/index.js",
  158. "./rate/style/index.js": "./components/rate/style/index.js",
  159. "./result/style/index.js": "./components/result/style/index.js",
  160. "./row/style/index.js": "./components/row/style/index.js",
  161. "./select/style/index.js": "./components/select/style/index.js",
  162. "./skeleton/style/index.js": "./components/skeleton/style/index.js",
  163. "./slider/style/index.js": "./components/slider/style/index.js",
  164. "./space/style/index.js": "./components/space/style/index.js",
  165. "./spin/style/index.js": "./components/spin/style/index.js",
  166. "./statistic/style/index.js": "./components/statistic/style/index.js",
  167. "./steps/style/index.js": "./components/steps/style/index.js",
  168. "./switch/style/index.js": "./components/switch/style/index.js",
  169. "./table/style/index.js": "./components/table/style/index.js",
  170. "./tabs/style/index.js": "./components/tabs/style/index.js",
  171. "./tag/style/index.js": "./components/tag/style/index.js",
  172. "./time-picker/style/index.js": "./components/time-picker/style/index.js",
  173. "./timeline/style/index.js": "./components/timeline/style/index.js",
  174. "./tooltip/style/index.js": "./components/tooltip/style/index.js",
  175. "./transfer/style/index.js": "./components/transfer/style/index.js",
  176. "./tree-select/style/index.js": "./components/tree-select/style/index.js",
  177. "./tree/style/index.js": "./components/tree/style/index.js",
  178. "./upload/style/index.js": "./components/upload/style/index.js",
  179. "./version/style/index.js": "./components/version/style/index.js"
  180. };
  181. function webpackContext(req) {
  182. var id = webpackContextResolve(req);
  183. return __webpack_require__(id);
  184. }
  185. function webpackContextResolve(req) {
  186. if(!__webpack_require__.o(map, req)) {
  187. var e = new Error("Cannot find module '" + req + "'");
  188. e.code = 'MODULE_NOT_FOUND';
  189. throw e;
  190. }
  191. return map[req];
  192. }
  193. webpackContext.keys = function webpackContextKeys() {
  194. return Object.keys(map);
  195. };
  196. webpackContext.resolve = webpackContextResolve;
  197. module.exports = webpackContext;
  198. webpackContext.id = "./components sync recursive ^\\.\\/[^_][\\w-]+\\/style\\/index\\.js?$";
  199. /***/ }),
  200. /***/ "./components/_util/BaseMixin.js":
  201. /*!***************************************!*\
  202. !*** ./components/_util/BaseMixin.js ***!
  203. \***************************************/
  204. /*! exports provided: default */
  205. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  206. "use strict";
  207. __webpack_require__.r(__webpack_exports__);
  208. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  209. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  210. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  211. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  212. /* harmony import */ var _props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./props-util */ "./components/_util/props-util.js");
  213. /* harmony default export */ __webpack_exports__["default"] = ({
  214. methods: {
  215. setState: function setState() {
  216. var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  217. var callback = arguments[1];
  218. var newState = typeof state === 'function' ? state(this.$data, this.$props) : state;
  219. if (this.getDerivedStateFromProps) {
  220. var s = this.getDerivedStateFromProps(Object(_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this), babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$data, newState));
  221. if (s === null) {
  222. return;
  223. } else {
  224. newState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, newState, s || {});
  225. }
  226. }
  227. babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()(this.$data, newState);
  228. this.$forceUpdate();
  229. this.$nextTick(function () {
  230. callback && callback();
  231. });
  232. },
  233. __emit: function __emit() {
  234. // 直接调用listeners,底层组件不需要vueTool记录events
  235. var args = [].slice.call(arguments, 0);
  236. var eventName = args[0];
  237. var event = this.$listeners[eventName];
  238. if (args.length && event) {
  239. if (Array.isArray(event)) {
  240. for (var i = 0, l = event.length; i < l; i++) {
  241. event[i].apply(event, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(args.slice(1)));
  242. }
  243. } else {
  244. event.apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(args.slice(1)));
  245. }
  246. }
  247. }
  248. }
  249. });
  250. /***/ }),
  251. /***/ "./components/_util/ContainerRender.jsx":
  252. /*!**********************************************!*\
  253. !*** ./components/_util/ContainerRender.jsx ***!
  254. \**********************************************/
  255. /*! exports provided: default */
  256. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  257. "use strict";
  258. __webpack_require__.r(__webpack_exports__);
  259. /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
  260. /* harmony default export */ __webpack_exports__["default"] = ({
  261. props: {
  262. autoMount: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  263. autoDestroy: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  264. visible: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  265. forceRender: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  266. parent: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  267. getComponent: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
  268. getContainer: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
  269. children: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired
  270. },
  271. mounted: function mounted() {
  272. if (this.autoMount) {
  273. this.renderComponent();
  274. }
  275. },
  276. updated: function updated() {
  277. if (this.autoMount) {
  278. this.renderComponent();
  279. }
  280. },
  281. beforeDestroy: function beforeDestroy() {
  282. if (this.autoDestroy) {
  283. this.removeContainer();
  284. }
  285. },
  286. methods: {
  287. removeContainer: function removeContainer() {
  288. if (this.container) {
  289. this._component && this._component.$destroy();
  290. this.container.parentNode.removeChild(this.container);
  291. this.container = null;
  292. this._component = null;
  293. }
  294. },
  295. renderComponent: function renderComponent() {
  296. var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  297. var ready = arguments[1];
  298. var visible = this.visible,
  299. forceRender = this.forceRender,
  300. getContainer = this.getContainer,
  301. parent = this.parent;
  302. var self = this;
  303. if (visible || parent._component || parent.$refs._component || forceRender) {
  304. var el = this.componentEl;
  305. if (!this.container) {
  306. this.container = getContainer();
  307. el = document.createElement('div');
  308. this.componentEl = el;
  309. this.container.appendChild(el);
  310. }
  311. // self.getComponent 不要放在 render 中,会因为响应式数据问题导致,多次触发 render
  312. var com = { component: self.getComponent(props) };
  313. if (!this._component) {
  314. this._component = new this.$root.constructor({
  315. el: el,
  316. parent: self,
  317. data: {
  318. _com: com
  319. },
  320. mounted: function mounted() {
  321. this.$nextTick(function () {
  322. if (ready) {
  323. ready.call(self);
  324. }
  325. });
  326. },
  327. updated: function updated() {
  328. this.$nextTick(function () {
  329. if (ready) {
  330. ready.call(self);
  331. }
  332. });
  333. },
  334. methods: {
  335. setComponent: function setComponent(_com) {
  336. this.$data._com = _com;
  337. }
  338. },
  339. render: function render() {
  340. return this.$data._com.component;
  341. }
  342. });
  343. } else {
  344. this._component.setComponent(com);
  345. }
  346. }
  347. }
  348. },
  349. render: function render() {
  350. return this.children({
  351. renderComponent: this.renderComponent,
  352. removeContainer: this.removeContainer
  353. });
  354. }
  355. });
  356. /***/ }),
  357. /***/ "./components/_util/FormDecoratorDirective.js":
  358. /*!****************************************************!*\
  359. !*** ./components/_util/FormDecoratorDirective.js ***!
  360. \****************************************************/
  361. /*! exports provided: antDecorator, default */
  362. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  363. "use strict";
  364. __webpack_require__.r(__webpack_exports__);
  365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "antDecorator", function() { return antDecorator; });
  366. function antDecorator(Vue) {
  367. return Vue.directive('decorator', {});
  368. }
  369. /* harmony default export */ __webpack_exports__["default"] = ({
  370. // just for tag
  371. install: function install(Vue) {
  372. antDecorator(Vue);
  373. }
  374. });
  375. /***/ }),
  376. /***/ "./components/_util/KeyCode.js":
  377. /*!*************************************!*\
  378. !*** ./components/_util/KeyCode.js ***!
  379. \*************************************/
  380. /*! exports provided: default */
  381. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  382. "use strict";
  383. __webpack_require__.r(__webpack_exports__);
  384. /**
  385. * @ignore
  386. * some key-codes definition and utils from closure-library
  387. * @author yiminghe@gmail.com
  388. */
  389. var KeyCode = {
  390. /**
  391. * MAC_ENTER
  392. */
  393. MAC_ENTER: 3,
  394. /**
  395. * BACKSPACE
  396. */
  397. BACKSPACE: 8,
  398. /**
  399. * TAB
  400. */
  401. TAB: 9,
  402. /**
  403. * NUMLOCK on FF/Safari Mac
  404. */
  405. NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac
  406. /**
  407. * ENTER
  408. */
  409. ENTER: 13,
  410. /**
  411. * SHIFT
  412. */
  413. SHIFT: 16,
  414. /**
  415. * CTRL
  416. */
  417. CTRL: 17,
  418. /**
  419. * ALT
  420. */
  421. ALT: 18,
  422. /**
  423. * PAUSE
  424. */
  425. PAUSE: 19,
  426. /**
  427. * CAPS_LOCK
  428. */
  429. CAPS_LOCK: 20,
  430. /**
  431. * ESC
  432. */
  433. ESC: 27,
  434. /**
  435. * SPACE
  436. */
  437. SPACE: 32,
  438. /**
  439. * PAGE_UP
  440. */
  441. PAGE_UP: 33, // also NUM_NORTH_EAST
  442. /**
  443. * PAGE_DOWN
  444. */
  445. PAGE_DOWN: 34, // also NUM_SOUTH_EAST
  446. /**
  447. * END
  448. */
  449. END: 35, // also NUM_SOUTH_WEST
  450. /**
  451. * HOME
  452. */
  453. HOME: 36, // also NUM_NORTH_WEST
  454. /**
  455. * LEFT
  456. */
  457. LEFT: 37, // also NUM_WEST
  458. /**
  459. * UP
  460. */
  461. UP: 38, // also NUM_NORTH
  462. /**
  463. * RIGHT
  464. */
  465. RIGHT: 39, // also NUM_EAST
  466. /**
  467. * DOWN
  468. */
  469. DOWN: 40, // also NUM_SOUTH
  470. /**
  471. * PRINT_SCREEN
  472. */
  473. PRINT_SCREEN: 44,
  474. /**
  475. * INSERT
  476. */
  477. INSERT: 45, // also NUM_INSERT
  478. /**
  479. * DELETE
  480. */
  481. DELETE: 46, // also NUM_DELETE
  482. /**
  483. * ZERO
  484. */
  485. ZERO: 48,
  486. /**
  487. * ONE
  488. */
  489. ONE: 49,
  490. /**
  491. * TWO
  492. */
  493. TWO: 50,
  494. /**
  495. * THREE
  496. */
  497. THREE: 51,
  498. /**
  499. * FOUR
  500. */
  501. FOUR: 52,
  502. /**
  503. * FIVE
  504. */
  505. FIVE: 53,
  506. /**
  507. * SIX
  508. */
  509. SIX: 54,
  510. /**
  511. * SEVEN
  512. */
  513. SEVEN: 55,
  514. /**
  515. * EIGHT
  516. */
  517. EIGHT: 56,
  518. /**
  519. * NINE
  520. */
  521. NINE: 57,
  522. /**
  523. * QUESTION_MARK
  524. */
  525. QUESTION_MARK: 63, // needs localization
  526. /**
  527. * A
  528. */
  529. A: 65,
  530. /**
  531. * B
  532. */
  533. B: 66,
  534. /**
  535. * C
  536. */
  537. C: 67,
  538. /**
  539. * D
  540. */
  541. D: 68,
  542. /**
  543. * E
  544. */
  545. E: 69,
  546. /**
  547. * F
  548. */
  549. F: 70,
  550. /**
  551. * G
  552. */
  553. G: 71,
  554. /**
  555. * H
  556. */
  557. H: 72,
  558. /**
  559. * I
  560. */
  561. I: 73,
  562. /**
  563. * J
  564. */
  565. J: 74,
  566. /**
  567. * K
  568. */
  569. K: 75,
  570. /**
  571. * L
  572. */
  573. L: 76,
  574. /**
  575. * M
  576. */
  577. M: 77,
  578. /**
  579. * N
  580. */
  581. N: 78,
  582. /**
  583. * O
  584. */
  585. O: 79,
  586. /**
  587. * P
  588. */
  589. P: 80,
  590. /**
  591. * Q
  592. */
  593. Q: 81,
  594. /**
  595. * R
  596. */
  597. R: 82,
  598. /**
  599. * S
  600. */
  601. S: 83,
  602. /**
  603. * T
  604. */
  605. T: 84,
  606. /**
  607. * U
  608. */
  609. U: 85,
  610. /**
  611. * V
  612. */
  613. V: 86,
  614. /**
  615. * W
  616. */
  617. W: 87,
  618. /**
  619. * X
  620. */
  621. X: 88,
  622. /**
  623. * Y
  624. */
  625. Y: 89,
  626. /**
  627. * Z
  628. */
  629. Z: 90,
  630. /**
  631. * META
  632. */
  633. META: 91, // WIN_KEY_LEFT
  634. /**
  635. * WIN_KEY_RIGHT
  636. */
  637. WIN_KEY_RIGHT: 92,
  638. /**
  639. * CONTEXT_MENU
  640. */
  641. CONTEXT_MENU: 93,
  642. /**
  643. * NUM_ZERO
  644. */
  645. NUM_ZERO: 96,
  646. /**
  647. * NUM_ONE
  648. */
  649. NUM_ONE: 97,
  650. /**
  651. * NUM_TWO
  652. */
  653. NUM_TWO: 98,
  654. /**
  655. * NUM_THREE
  656. */
  657. NUM_THREE: 99,
  658. /**
  659. * NUM_FOUR
  660. */
  661. NUM_FOUR: 100,
  662. /**
  663. * NUM_FIVE
  664. */
  665. NUM_FIVE: 101,
  666. /**
  667. * NUM_SIX
  668. */
  669. NUM_SIX: 102,
  670. /**
  671. * NUM_SEVEN
  672. */
  673. NUM_SEVEN: 103,
  674. /**
  675. * NUM_EIGHT
  676. */
  677. NUM_EIGHT: 104,
  678. /**
  679. * NUM_NINE
  680. */
  681. NUM_NINE: 105,
  682. /**
  683. * NUM_MULTIPLY
  684. */
  685. NUM_MULTIPLY: 106,
  686. /**
  687. * NUM_PLUS
  688. */
  689. NUM_PLUS: 107,
  690. /**
  691. * NUM_MINUS
  692. */
  693. NUM_MINUS: 109,
  694. /**
  695. * NUM_PERIOD
  696. */
  697. NUM_PERIOD: 110,
  698. /**
  699. * NUM_DIVISION
  700. */
  701. NUM_DIVISION: 111,
  702. /**
  703. * F1
  704. */
  705. F1: 112,
  706. /**
  707. * F2
  708. */
  709. F2: 113,
  710. /**
  711. * F3
  712. */
  713. F3: 114,
  714. /**
  715. * F4
  716. */
  717. F4: 115,
  718. /**
  719. * F5
  720. */
  721. F5: 116,
  722. /**
  723. * F6
  724. */
  725. F6: 117,
  726. /**
  727. * F7
  728. */
  729. F7: 118,
  730. /**
  731. * F8
  732. */
  733. F8: 119,
  734. /**
  735. * F9
  736. */
  737. F9: 120,
  738. /**
  739. * F10
  740. */
  741. F10: 121,
  742. /**
  743. * F11
  744. */
  745. F11: 122,
  746. /**
  747. * F12
  748. */
  749. F12: 123,
  750. /**
  751. * NUMLOCK
  752. */
  753. NUMLOCK: 144,
  754. /**
  755. * SEMICOLON
  756. */
  757. SEMICOLON: 186, // needs localization
  758. /**
  759. * DASH
  760. */
  761. DASH: 189, // needs localization
  762. /**
  763. * EQUALS
  764. */
  765. EQUALS: 187, // needs localization
  766. /**
  767. * COMMA
  768. */
  769. COMMA: 188, // needs localization
  770. /**
  771. * PERIOD
  772. */
  773. PERIOD: 190, // needs localization
  774. /**
  775. * SLASH
  776. */
  777. SLASH: 191, // needs localization
  778. /**
  779. * APOSTROPHE
  780. */
  781. APOSTROPHE: 192, // needs localization
  782. /**
  783. * SINGLE_QUOTE
  784. */
  785. SINGLE_QUOTE: 222, // needs localization
  786. /**
  787. * OPEN_SQUARE_BRACKET
  788. */
  789. OPEN_SQUARE_BRACKET: 219, // needs localization
  790. /**
  791. * BACKSLASH
  792. */
  793. BACKSLASH: 220, // needs localization
  794. /**
  795. * CLOSE_SQUARE_BRACKET
  796. */
  797. CLOSE_SQUARE_BRACKET: 221, // needs localization
  798. /**
  799. * WIN_KEY
  800. */
  801. WIN_KEY: 224,
  802. /**
  803. * MAC_FF_META
  804. */
  805. MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91
  806. /**
  807. * WIN_IME
  808. */
  809. WIN_IME: 229
  810. };
  811. /*
  812. whether text and modified key is entered at the same time.
  813. */
  814. KeyCode.isTextModifyingKeyEvent = function isTextModifyingKeyEvent(e) {
  815. var keyCode = e.keyCode;
  816. if (e.altKey && !e.ctrlKey || e.metaKey ||
  817. // Function keys don't generate text
  818. keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
  819. return false;
  820. }
  821. // The following keys are quite harmless, even in combination with
  822. // CTRL, ALT or SHIFT.
  823. switch (keyCode) {
  824. case KeyCode.ALT:
  825. case KeyCode.CAPS_LOCK:
  826. case KeyCode.CONTEXT_MENU:
  827. case KeyCode.CTRL:
  828. case KeyCode.DOWN:
  829. case KeyCode.END:
  830. case KeyCode.ESC:
  831. case KeyCode.HOME:
  832. case KeyCode.INSERT:
  833. case KeyCode.LEFT:
  834. case KeyCode.MAC_FF_META:
  835. case KeyCode.META:
  836. case KeyCode.NUMLOCK:
  837. case KeyCode.NUM_CENTER:
  838. case KeyCode.PAGE_DOWN:
  839. case KeyCode.PAGE_UP:
  840. case KeyCode.PAUSE:
  841. case KeyCode.PRINT_SCREEN:
  842. case KeyCode.RIGHT:
  843. case KeyCode.SHIFT:
  844. case KeyCode.UP:
  845. case KeyCode.WIN_KEY:
  846. case KeyCode.WIN_KEY_RIGHT:
  847. return false;
  848. default:
  849. return true;
  850. }
  851. };
  852. /*
  853. whether character is entered.
  854. */
  855. KeyCode.isCharacterKey = function isCharacterKey(keyCode) {
  856. if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {
  857. return true;
  858. }
  859. if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {
  860. return true;
  861. }
  862. if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {
  863. return true;
  864. }
  865. // Safari sends zero key code for non-latin characters.
  866. if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {
  867. return true;
  868. }
  869. switch (keyCode) {
  870. case KeyCode.SPACE:
  871. case KeyCode.QUESTION_MARK:
  872. case KeyCode.NUM_PLUS:
  873. case KeyCode.NUM_MINUS:
  874. case KeyCode.NUM_PERIOD:
  875. case KeyCode.NUM_DIVISION:
  876. case KeyCode.SEMICOLON:
  877. case KeyCode.DASH:
  878. case KeyCode.EQUALS:
  879. case KeyCode.COMMA:
  880. case KeyCode.PERIOD:
  881. case KeyCode.SLASH:
  882. case KeyCode.APOSTROPHE:
  883. case KeyCode.SINGLE_QUOTE:
  884. case KeyCode.OPEN_SQUARE_BRACKET:
  885. case KeyCode.BACKSLASH:
  886. case KeyCode.CLOSE_SQUARE_BRACKET:
  887. return true;
  888. default:
  889. return false;
  890. }
  891. };
  892. /* harmony default export */ __webpack_exports__["default"] = (KeyCode);
  893. /***/ }),
  894. /***/ "./components/_util/Portal.js":
  895. /*!************************************!*\
  896. !*** ./components/_util/Portal.js ***!
  897. \************************************/
  898. /*! exports provided: default */
  899. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  900. "use strict";
  901. __webpack_require__.r(__webpack_exports__);
  902. /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
  903. /* harmony import */ var _vnode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./vnode */ "./components/_util/vnode.js");
  904. /* harmony default export */ __webpack_exports__["default"] = ({
  905. name: 'Portal',
  906. props: {
  907. getContainer: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
  908. children: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.isRequired,
  909. didUpdate: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
  910. },
  911. mounted: function mounted() {
  912. this.createContainer();
  913. },
  914. updated: function updated() {
  915. var _this = this;
  916. var didUpdate = this.$props.didUpdate;
  917. if (didUpdate) {
  918. this.$nextTick(function () {
  919. didUpdate(_this.$props);
  920. });
  921. }
  922. },
  923. beforeDestroy: function beforeDestroy() {
  924. this.removeContainer();
  925. },
  926. methods: {
  927. createContainer: function createContainer() {
  928. this._container = this.$props.getContainer();
  929. this.$forceUpdate();
  930. },
  931. removeContainer: function removeContainer() {
  932. if (this._container && this._container.parentNode) {
  933. this._container.parentNode.removeChild(this._container);
  934. }
  935. }
  936. },
  937. render: function render() {
  938. if (this._container) {
  939. return Object(_vnode__WEBPACK_IMPORTED_MODULE_1__["cloneElement"])(this.$props.children, {
  940. directives: [{
  941. name: 'ant-portal',
  942. value: this._container
  943. }]
  944. });
  945. }
  946. return null;
  947. }
  948. });
  949. /***/ }),
  950. /***/ "./components/_util/PortalWrapper.js":
  951. /*!*******************************************!*\
  952. !*** ./components/_util/PortalWrapper.js ***!
  953. \*******************************************/
  954. /*! exports provided: default */
  955. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  956. "use strict";
  957. __webpack_require__.r(__webpack_exports__);
  958. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  959. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  960. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  961. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
  962. /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
  963. /* harmony import */ var _switchScrollingEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./switchScrollingEffect */ "./components/_util/switchScrollingEffect.js");
  964. /* harmony import */ var _setStyle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./setStyle */ "./components/_util/setStyle.js");
  965. /* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Portal */ "./components/_util/Portal.js");
  966. var openCount = 0;
  967. var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
  968. // https://github.com/ant-design/ant-design/issues/19340
  969. // https://github.com/ant-design/ant-design/issues/19332
  970. var cacheOverflow = {};
  971. /* harmony default export */ __webpack_exports__["default"] = ({
  972. name: 'PortalWrapper',
  973. props: {
  974. wrapperClassName: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  975. forceRender: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  976. getContainer: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  977. children: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  978. visible: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
  979. },
  980. data: function data() {
  981. var visible = this.$props.visible;
  982. openCount = visible ? openCount + 1 : openCount;
  983. return {};
  984. },
  985. updated: function updated() {
  986. this.setWrapperClassName();
  987. },
  988. watch: {
  989. visible: function visible(val) {
  990. openCount = val ? openCount + 1 : openCount - 1;
  991. },
  992. getContainer: function getContainer(_getContainer, prevGetContainer) {
  993. var getContainerIsFunc = typeof _getContainer === 'function' && typeof prevGetContainer === 'function';
  994. if (getContainerIsFunc ? _getContainer.toString() !== prevGetContainer.toString() : _getContainer !== prevGetContainer) {
  995. this.removeCurrentContainer(false);
  996. }
  997. }
  998. },
  999. beforeDestroy: function beforeDestroy() {
  1000. var visible = this.$props.visible;
  1001. // 离开时不会 render, 导到离开时数值不变,改用 func 。。
  1002. openCount = visible && openCount ? openCount - 1 : openCount;
  1003. this.removeCurrentContainer(visible);
  1004. },
  1005. methods: {
  1006. getParent: function getParent() {
  1007. var getContainer = this.$props.getContainer;
  1008. if (getContainer) {
  1009. if (typeof getContainer === 'string') {
  1010. return document.querySelectorAll(getContainer)[0];
  1011. }
  1012. if (typeof getContainer === 'function') {
  1013. return getContainer();
  1014. }
  1015. if ((typeof getContainer === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(getContainer)) === 'object' && getContainer instanceof window.HTMLElement) {
  1016. return getContainer;
  1017. }
  1018. }
  1019. return document.body;
  1020. },
  1021. getDomContainer: function getDomContainer() {
  1022. if (windowIsUndefined) {
  1023. return null;
  1024. }
  1025. if (!this.container) {
  1026. this.container = document.createElement('div');
  1027. var parent = this.getParent();
  1028. if (parent) {
  1029. parent.appendChild(this.container);
  1030. }
  1031. }
  1032. this.setWrapperClassName();
  1033. return this.container;
  1034. },
  1035. setWrapperClassName: function setWrapperClassName() {
  1036. var wrapperClassName = this.$props.wrapperClassName;
  1037. if (this.container && wrapperClassName && wrapperClassName !== this.container.className) {
  1038. this.container.className = wrapperClassName;
  1039. }
  1040. },
  1041. savePortal: function savePortal(c) {
  1042. // Warning: don't rename _component
  1043. // https://github.com/react-component/util/pull/65#discussion_r352407916
  1044. this._component = c;
  1045. },
  1046. removeCurrentContainer: function removeCurrentContainer() {
  1047. this.container = null;
  1048. this._component = null;
  1049. },
  1050. /**
  1051. * Enhance ./switchScrollingEffect
  1052. * 1. Simulate document body scroll bar with
  1053. * 2. Record body has overflow style and recover when all of PortalWrapper invisible
  1054. * 3. Disable body scroll when PortalWrapper has open
  1055. *
  1056. * @memberof PortalWrapper
  1057. */
  1058. switchScrollingEffect: function switchScrollingEffect() {
  1059. if (openCount === 1 && !Object.keys(cacheOverflow).length) {
  1060. Object(_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_3__["default"])();
  1061. // Must be set after switchScrollingEffect
  1062. cacheOverflow = Object(_setStyle__WEBPACK_IMPORTED_MODULE_4__["default"])({
  1063. overflow: 'hidden',
  1064. overflowX: 'hidden',
  1065. overflowY: 'hidden'
  1066. });
  1067. } else if (!openCount) {
  1068. Object(_setStyle__WEBPACK_IMPORTED_MODULE_4__["default"])(cacheOverflow);
  1069. cacheOverflow = {};
  1070. Object(_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_3__["default"])(true);
  1071. }
  1072. }
  1073. },
  1074. render: function render() {
  1075. var h = arguments[0];
  1076. var _$props = this.$props,
  1077. children = _$props.children,
  1078. forceRender = _$props.forceRender,
  1079. visible = _$props.visible;
  1080. var portal = null;
  1081. var childProps = {
  1082. getOpenCount: function getOpenCount() {
  1083. return openCount;
  1084. },
  1085. getContainer: this.getDomContainer,
  1086. switchScrollingEffect: this.switchScrollingEffect
  1087. };
  1088. if (forceRender || visible || this._component) {
  1089. portal = h(_Portal__WEBPACK_IMPORTED_MODULE_5__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  1090. attrs: {
  1091. getContainer: this.getDomContainer,
  1092. children: children(childProps)
  1093. }
  1094. }, {
  1095. directives: [{
  1096. name: 'ant-ref',
  1097. value: this.savePortal
  1098. }]
  1099. }]));
  1100. }
  1101. return portal;
  1102. }
  1103. });
  1104. /***/ }),
  1105. /***/ "./components/_util/antDirective.js":
  1106. /*!******************************************!*\
  1107. !*** ./components/_util/antDirective.js ***!
  1108. \******************************************/
  1109. /*! exports provided: default */
  1110. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1111. "use strict";
  1112. __webpack_require__.r(__webpack_exports__);
  1113. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  1114. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_0__);
  1115. /* harmony import */ var _antInputDirective__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./antInputDirective */ "./components/_util/antInputDirective.js");
  1116. /* harmony import */ var _FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FormDecoratorDirective */ "./components/_util/FormDecoratorDirective.js");
  1117. /* harmony import */ var _portalDirective__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./portalDirective */ "./components/_util/portalDirective.js");
  1118. /* harmony default export */ __webpack_exports__["default"] = ({
  1119. install: function install(Vue) {
  1120. Vue.use(vue_ref__WEBPACK_IMPORTED_MODULE_0___default.a, { name: 'ant-ref' });
  1121. Object(_antInputDirective__WEBPACK_IMPORTED_MODULE_1__["antInput"])(Vue);
  1122. Object(_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_2__["antDecorator"])(Vue);
  1123. Object(_portalDirective__WEBPACK_IMPORTED_MODULE_3__["antPortal"])(Vue);
  1124. }
  1125. });
  1126. /***/ }),
  1127. /***/ "./components/_util/antInputDirective.js":
  1128. /*!***********************************************!*\
  1129. !*** ./components/_util/antInputDirective.js ***!
  1130. \***********************************************/
  1131. /*! exports provided: inBrowser, UA, isIE9, antInput, default */
  1132. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1133. "use strict";
  1134. __webpack_require__.r(__webpack_exports__);
  1135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inBrowser", function() { return inBrowser; });
  1136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UA", function() { return UA; });
  1137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIE9", function() { return isIE9; });
  1138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "antInput", function() { return antInput; });
  1139. /**
  1140. * Not type checking this file because flow doesn't like attaching
  1141. * properties to Elements.
  1142. */
  1143. var inBrowser = typeof window !== 'undefined';
  1144. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  1145. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  1146. function makeMap(str, expectsLowerCase) {
  1147. var map = Object.create(null);
  1148. var list = str.split(',');
  1149. for (var i = 0; i < list.length; i++) {
  1150. map[list[i]] = true;
  1151. }
  1152. return expectsLowerCase ? function (val) {
  1153. return map[val.toLowerCase()];
  1154. } : function (val) {
  1155. return map[val];
  1156. };
  1157. }
  1158. var isTextInputType = makeMap('text,number,password,search,email,tel,url');
  1159. function onCompositionStart(e) {
  1160. e.target.composing = true;
  1161. }
  1162. function onCompositionEnd(e) {
  1163. // prevent triggering an input event for no reason
  1164. if (!e.target.composing) return;
  1165. e.target.composing = false;
  1166. trigger(e.target, 'input');
  1167. }
  1168. function trigger(el, type) {
  1169. var e = document.createEvent('HTMLEvents');
  1170. e.initEvent(type, true, true);
  1171. el.dispatchEvent(e);
  1172. }
  1173. /* istanbul ignore if */
  1174. if (isIE9) {
  1175. // http://www.matts411.com/post/internet-explorer-9-oninput/
  1176. document.addEventListener('selectionchange', function () {
  1177. var el = document.activeElement;
  1178. if (el && el.vmodel) {
  1179. trigger(el, 'input');
  1180. }
  1181. });
  1182. }
  1183. function antInput(Vue) {
  1184. return Vue.directive('ant-input', {
  1185. inserted: function inserted(el, binding, vnode) {
  1186. if (vnode.tag === 'textarea' || isTextInputType(el.type)) {
  1187. if (!binding.modifiers || !binding.modifiers.lazy) {
  1188. el.addEventListener('compositionstart', onCompositionStart);
  1189. el.addEventListener('compositionend', onCompositionEnd);
  1190. // Safari < 10.2 & UIWebView doesn't fire compositionend when
  1191. // switching focus before confirming composition choice
  1192. // this also fixes the issue where some browsers e.g. iOS Chrome
  1193. // fires "change" instead of "input" on autocomplete.
  1194. el.addEventListener('change', onCompositionEnd);
  1195. /* istanbul ignore if */
  1196. if (isIE9) {
  1197. el.vmodel = true;
  1198. }
  1199. }
  1200. }
  1201. }
  1202. });
  1203. }
  1204. /* harmony default export */ __webpack_exports__["default"] = ({
  1205. install: function install(Vue) {
  1206. antInput(Vue);
  1207. }
  1208. });
  1209. /***/ }),
  1210. /***/ "./components/_util/colors.js":
  1211. /*!************************************!*\
  1212. !*** ./components/_util/colors.js ***!
  1213. \************************************/
  1214. /*! exports provided: PresetColorTypes */
  1215. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1216. "use strict";
  1217. __webpack_require__.r(__webpack_exports__);
  1218. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PresetColorTypes", function() { return PresetColorTypes; });
  1219. /* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./type */ "./components/_util/type.js");
  1220. var PresetColorTypes = Object(_type__WEBPACK_IMPORTED_MODULE_0__["tuple"])('pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime');
  1221. /***/ }),
  1222. /***/ "./components/_util/createChainedFunction.js":
  1223. /*!***************************************************!*\
  1224. !*** ./components/_util/createChainedFunction.js ***!
  1225. \***************************************************/
  1226. /*! exports provided: default */
  1227. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1228. "use strict";
  1229. __webpack_require__.r(__webpack_exports__);
  1230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createChainedFunction; });
  1231. /**
  1232. * Safe chained function
  1233. *
  1234. * Will only create a new function if needed,
  1235. * otherwise will pass back existing functions or null.
  1236. *
  1237. * @returns {function|null}
  1238. */
  1239. function createChainedFunction() {
  1240. var args = [].slice.call(arguments, 0);
  1241. if (args.length === 1) {
  1242. return args[0];
  1243. }
  1244. return function chainedFunction() {
  1245. for (var i = 0; i < args.length; i++) {
  1246. if (args[i] && args[i].apply) {
  1247. args[i].apply(this, arguments);
  1248. }
  1249. }
  1250. };
  1251. }
  1252. /***/ }),
  1253. /***/ "./components/_util/css-animation/Event.js":
  1254. /*!*************************************************!*\
  1255. !*** ./components/_util/css-animation/Event.js ***!
  1256. \*************************************************/
  1257. /*! exports provided: default */
  1258. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1259. "use strict";
  1260. __webpack_require__.r(__webpack_exports__);
  1261. var START_EVENT_NAME_MAP = {
  1262. transitionstart: {
  1263. transition: 'transitionstart',
  1264. WebkitTransition: 'webkitTransitionStart',
  1265. MozTransition: 'mozTransitionStart',
  1266. OTransition: 'oTransitionStart',
  1267. msTransition: 'MSTransitionStart'
  1268. },
  1269. animationstart: {
  1270. animation: 'animationstart',
  1271. WebkitAnimation: 'webkitAnimationStart',
  1272. MozAnimation: 'mozAnimationStart',
  1273. OAnimation: 'oAnimationStart',
  1274. msAnimation: 'MSAnimationStart'
  1275. }
  1276. };
  1277. var END_EVENT_NAME_MAP = {
  1278. transitionend: {
  1279. transition: 'transitionend',
  1280. WebkitTransition: 'webkitTransitionEnd',
  1281. MozTransition: 'mozTransitionEnd',
  1282. OTransition: 'oTransitionEnd',
  1283. msTransition: 'MSTransitionEnd'
  1284. },
  1285. animationend: {
  1286. animation: 'animationend',
  1287. WebkitAnimation: 'webkitAnimationEnd',
  1288. MozAnimation: 'mozAnimationEnd',
  1289. OAnimation: 'oAnimationEnd',
  1290. msAnimation: 'MSAnimationEnd'
  1291. }
  1292. };
  1293. var startEvents = [];
  1294. var endEvents = [];
  1295. function detectEvents() {
  1296. var testEl = document.createElement('div');
  1297. var style = testEl.style;
  1298. if (!('AnimationEvent' in window)) {
  1299. delete START_EVENT_NAME_MAP.animationstart.animation;
  1300. delete END_EVENT_NAME_MAP.animationend.animation;
  1301. }
  1302. if (!('TransitionEvent' in window)) {
  1303. delete START_EVENT_NAME_MAP.transitionstart.transition;
  1304. delete END_EVENT_NAME_MAP.transitionend.transition;
  1305. }
  1306. function process(EVENT_NAME_MAP, events) {
  1307. for (var baseEventName in EVENT_NAME_MAP) {
  1308. if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) {
  1309. var baseEvents = EVENT_NAME_MAP[baseEventName];
  1310. for (var styleName in baseEvents) {
  1311. if (styleName in style) {
  1312. events.push(baseEvents[styleName]);
  1313. break;
  1314. }
  1315. }
  1316. }
  1317. }
  1318. }
  1319. process(START_EVENT_NAME_MAP, startEvents);
  1320. process(END_EVENT_NAME_MAP, endEvents);
  1321. }
  1322. if (typeof window !== 'undefined' && typeof document !== 'undefined') {
  1323. detectEvents();
  1324. }
  1325. function addEventListener(node, eventName, eventListener) {
  1326. node.addEventListener(eventName, eventListener, false);
  1327. }
  1328. function removeEventListener(node, eventName, eventListener) {
  1329. node.removeEventListener(eventName, eventListener, false);
  1330. }
  1331. var TransitionEvents = {
  1332. // Start events
  1333. startEvents: startEvents,
  1334. addStartEventListener: function addStartEventListener(node, eventListener) {
  1335. if (startEvents.length === 0) {
  1336. window.setTimeout(eventListener, 0);
  1337. return;
  1338. }
  1339. startEvents.forEach(function (startEvent) {
  1340. addEventListener(node, startEvent, eventListener);
  1341. });
  1342. },
  1343. removeStartEventListener: function removeStartEventListener(node, eventListener) {
  1344. if (startEvents.length === 0) {
  1345. return;
  1346. }
  1347. startEvents.forEach(function (startEvent) {
  1348. removeEventListener(node, startEvent, eventListener);
  1349. });
  1350. },
  1351. // End events
  1352. endEvents: endEvents,
  1353. addEndEventListener: function addEndEventListener(node, eventListener) {
  1354. if (endEvents.length === 0) {
  1355. window.setTimeout(eventListener, 0);
  1356. return;
  1357. }
  1358. endEvents.forEach(function (endEvent) {
  1359. addEventListener(node, endEvent, eventListener);
  1360. });
  1361. },
  1362. removeEndEventListener: function removeEndEventListener(node, eventListener) {
  1363. if (endEvents.length === 0) {
  1364. return;
  1365. }
  1366. endEvents.forEach(function (endEvent) {
  1367. removeEventListener(node, endEvent, eventListener);
  1368. });
  1369. }
  1370. };
  1371. /* harmony default export */ __webpack_exports__["default"] = (TransitionEvents);
  1372. /***/ }),
  1373. /***/ "./components/_util/css-animation/index.js":
  1374. /*!*************************************************!*\
  1375. !*** ./components/_util/css-animation/index.js ***!
  1376. \*************************************************/
  1377. /*! exports provided: isCssAnimationSupported, default */
  1378. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1379. "use strict";
  1380. __webpack_require__.r(__webpack_exports__);
  1381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCssAnimationSupported", function() { return isCssAnimationSupported; });
  1382. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  1383. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  1384. /* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Event */ "./components/_util/css-animation/Event.js");
  1385. /* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! component-classes */ "./node_modules/component-classes/index.js");
  1386. /* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(component_classes__WEBPACK_IMPORTED_MODULE_2__);
  1387. /* harmony import */ var _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../requestAnimationTimeout */ "./components/_util/requestAnimationTimeout.js");
  1388. // https://github.com/yiminghe/css-animation 1.5.0
  1389. var isCssAnimationSupported = _Event__WEBPACK_IMPORTED_MODULE_1__["default"].endEvents.length !== 0;
  1390. var capitalPrefixes = ['Webkit', 'Moz', 'O',
  1391. // ms is special .... !
  1392. 'ms'];
  1393. var prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', ''];
  1394. function getStyleProperty(node, name) {
  1395. // old ff need null, https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle
  1396. var style = window.getComputedStyle(node, null);
  1397. var ret = '';
  1398. for (var i = 0; i < prefixes.length; i++) {
  1399. ret = style.getPropertyValue(prefixes[i] + name);
  1400. if (ret) {
  1401. break;
  1402. }
  1403. }
  1404. return ret;
  1405. }
  1406. function fixBrowserByTimeout(node) {
  1407. if (isCssAnimationSupported) {
  1408. var transitionDelay = parseFloat(getStyleProperty(node, 'transition-delay')) || 0;
  1409. var transitionDuration = parseFloat(getStyleProperty(node, 'transition-duration')) || 0;
  1410. var animationDelay = parseFloat(getStyleProperty(node, 'animation-delay')) || 0;
  1411. var animationDuration = parseFloat(getStyleProperty(node, 'animation-duration')) || 0;
  1412. var time = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay);
  1413. // sometimes, browser bug
  1414. node.rcEndAnimTimeout = setTimeout(function () {
  1415. node.rcEndAnimTimeout = null;
  1416. if (node.rcEndListener) {
  1417. node.rcEndListener();
  1418. }
  1419. }, time * 1000 + 200);
  1420. }
  1421. }
  1422. function clearBrowserBugTimeout(node) {
  1423. if (node.rcEndAnimTimeout) {
  1424. clearTimeout(node.rcEndAnimTimeout);
  1425. node.rcEndAnimTimeout = null;
  1426. }
  1427. }
  1428. var cssAnimation = function cssAnimation(node, transitionName, endCallback) {
  1429. var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(transitionName)) === 'object';
  1430. var className = nameIsObj ? transitionName.name : transitionName;
  1431. var activeClassName = nameIsObj ? transitionName.active : transitionName + '-active';
  1432. var end = endCallback;
  1433. var start = void 0;
  1434. var active = void 0;
  1435. var nodeClasses = component_classes__WEBPACK_IMPORTED_MODULE_2___default()(node);
  1436. if (endCallback && Object.prototype.toString.call(endCallback) === '[object Object]') {
  1437. end = endCallback.end;
  1438. start = endCallback.start;
  1439. active = endCallback.active;
  1440. }
  1441. if (node.rcEndListener) {
  1442. node.rcEndListener();
  1443. }
  1444. node.rcEndListener = function (e) {
  1445. if (e && e.target !== node) {
  1446. return;
  1447. }
  1448. if (node.rcAnimTimeout) {
  1449. Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["cancelAnimationTimeout"])(node.rcAnimTimeout);
  1450. node.rcAnimTimeout = null;
  1451. }
  1452. clearBrowserBugTimeout(node);
  1453. nodeClasses.remove(className);
  1454. nodeClasses.remove(activeClassName);
  1455. _Event__WEBPACK_IMPORTED_MODULE_1__["default"].removeEndEventListener(node, node.rcEndListener);
  1456. node.rcEndListener = null;
  1457. // Usually this optional end is used for informing an owner of
  1458. // a leave animation and telling it to remove the child.
  1459. if (end) {
  1460. end();
  1461. }
  1462. };
  1463. _Event__WEBPACK_IMPORTED_MODULE_1__["default"].addEndEventListener(node, node.rcEndListener);
  1464. if (start) {
  1465. start();
  1466. }
  1467. nodeClasses.add(className);
  1468. node.rcAnimTimeout = Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["requestAnimationTimeout"])(function () {
  1469. node.rcAnimTimeout = null;
  1470. nodeClasses.add(className);
  1471. nodeClasses.add(activeClassName);
  1472. if (active) {
  1473. Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["requestAnimationTimeout"])(active, 0);
  1474. }
  1475. fixBrowserByTimeout(node);
  1476. // 30ms for firefox
  1477. }, 30);
  1478. return {
  1479. stop: function stop() {
  1480. if (node.rcEndListener) {
  1481. node.rcEndListener();
  1482. }
  1483. }
  1484. };
  1485. };
  1486. cssAnimation.style = function (node, style, callback) {
  1487. if (node.rcEndListener) {
  1488. node.rcEndListener();
  1489. }
  1490. node.rcEndListener = function (e) {
  1491. if (e && e.target !== node) {
  1492. return;
  1493. }
  1494. if (node.rcAnimTimeout) {
  1495. Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["cancelAnimationTimeout"])(node.rcAnimTimeout);
  1496. node.rcAnimTimeout = null;
  1497. }
  1498. clearBrowserBugTimeout(node);
  1499. _Event__WEBPACK_IMPORTED_MODULE_1__["default"].removeEndEventListener(node, node.rcEndListener);
  1500. node.rcEndListener = null;
  1501. // Usually this optional callback is used for informing an owner of
  1502. // a leave animation and telling it to remove the child.
  1503. if (callback) {
  1504. callback();
  1505. }
  1506. };
  1507. _Event__WEBPACK_IMPORTED_MODULE_1__["default"].addEndEventListener(node, node.rcEndListener);
  1508. node.rcAnimTimeout = Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["requestAnimationTimeout"])(function () {
  1509. for (var s in style) {
  1510. if (style.hasOwnProperty(s)) {
  1511. node.style[s] = style[s];
  1512. }
  1513. }
  1514. node.rcAnimTimeout = null;
  1515. fixBrowserByTimeout(node);
  1516. }, 0);
  1517. };
  1518. cssAnimation.setTransition = function (node, p, value) {
  1519. var property = p;
  1520. var v = value;
  1521. if (value === undefined) {
  1522. v = property;
  1523. property = '';
  1524. }
  1525. property = property || '';
  1526. capitalPrefixes.forEach(function (prefix) {
  1527. node.style[prefix + 'Transition' + property] = v;
  1528. });
  1529. };
  1530. cssAnimation.isCssAnimationSupported = isCssAnimationSupported;
  1531. /* harmony default export */ __webpack_exports__["default"] = (cssAnimation);
  1532. /***/ }),
  1533. /***/ "./components/_util/easings.js":
  1534. /*!*************************************!*\
  1535. !*** ./components/_util/easings.js ***!
  1536. \*************************************/
  1537. /*! exports provided: easeInOutCubic */
  1538. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1539. "use strict";
  1540. __webpack_require__.r(__webpack_exports__);
  1541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeInOutCubic", function() { return easeInOutCubic; });
  1542. function easeInOutCubic(t, b, c, d) {
  1543. var cc = c - b;
  1544. t /= d / 2;
  1545. if (t < 1) {
  1546. return cc / 2 * t * t * t + b;
  1547. }
  1548. return cc / 2 * ((t -= 2) * t * t + 2) + b;
  1549. }
  1550. /***/ }),
  1551. /***/ "./components/_util/env.js":
  1552. /*!*********************************!*\
  1553. !*** ./components/_util/env.js ***!
  1554. \*********************************/
  1555. /*! exports provided: inBrowser, inWeex, weexPlatform, UA, isIE, isIE9, isEdge, isAndroid, isIOS, isChrome, isPhantomJS, isFF */
  1556. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1557. "use strict";
  1558. __webpack_require__.r(__webpack_exports__);
  1559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inBrowser", function() { return inBrowser; });
  1560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inWeex", function() { return inWeex; });
  1561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "weexPlatform", function() { return weexPlatform; });
  1562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UA", function() { return UA; });
  1563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIE", function() { return isIE; });
  1564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIE9", function() { return isIE9; });
  1565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEdge", function() { return isEdge; });
  1566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAndroid", function() { return isAndroid; });
  1567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIOS", function() { return isIOS; });
  1568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isChrome", function() { return isChrome; });
  1569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPhantomJS", function() { return isPhantomJS; });
  1570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFF", function() { return isFF; });
  1571. /* eslint-disable no-undef */
  1572. // Browser environment sniffing
  1573. var inBrowser = typeof window !== 'undefined';
  1574. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  1575. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  1576. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  1577. var isIE = UA && /msie|trident/.test(UA);
  1578. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  1579. var isEdge = UA && UA.indexOf('edge/') > 0;
  1580. var isAndroid = UA && UA.indexOf('android') > 0 || weexPlatform === 'android';
  1581. var isIOS = UA && /iphone|ipad|ipod|ios/.test(UA) || weexPlatform === 'ios';
  1582. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  1583. var isPhantomJS = UA && /phantomjs/.test(UA);
  1584. var isFF = UA && UA.match(/firefox\/(\d+)/);
  1585. /***/ }),
  1586. /***/ "./components/_util/getRequestAnimationFrame.js":
  1587. /*!******************************************************!*\
  1588. !*** ./components/_util/getRequestAnimationFrame.js ***!
  1589. \******************************************************/
  1590. /*! exports provided: default, cancelRequestAnimationFrame */
  1591. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1592. "use strict";
  1593. __webpack_require__.r(__webpack_exports__);
  1594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getRequestAnimationFrame; });
  1595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cancelRequestAnimationFrame", function() { return cancelRequestAnimationFrame; });
  1596. var availablePrefixs = ['moz', 'ms', 'webkit'];
  1597. function requestAnimationFramePolyfill() {
  1598. var lastTime = 0;
  1599. return function (callback) {
  1600. var currTime = new Date().getTime();
  1601. var timeToCall = Math.max(0, 16 - (currTime - lastTime));
  1602. var id = window.setTimeout(function () {
  1603. callback(currTime + timeToCall);
  1604. }, timeToCall);
  1605. lastTime = currTime + timeToCall;
  1606. return id;
  1607. };
  1608. }
  1609. function getRequestAnimationFrame() {
  1610. if (typeof window === 'undefined') {
  1611. return function () {};
  1612. }
  1613. if (window.requestAnimationFrame) {
  1614. // https://github.com/vuejs/vue/issues/4465
  1615. return window.requestAnimationFrame.bind(window);
  1616. }
  1617. var prefix = availablePrefixs.filter(function (key) {
  1618. return key + 'RequestAnimationFrame' in window;
  1619. })[0];
  1620. return prefix ? window[prefix + 'RequestAnimationFrame'] : requestAnimationFramePolyfill();
  1621. }
  1622. function cancelRequestAnimationFrame(id) {
  1623. if (typeof window === 'undefined') {
  1624. return null;
  1625. }
  1626. if (window.cancelAnimationFrame) {
  1627. return window.cancelAnimationFrame(id);
  1628. }
  1629. var prefix = availablePrefixs.filter(function (key) {
  1630. return key + 'CancelAnimationFrame' in window || key + 'CancelRequestAnimationFrame' in window;
  1631. })[0];
  1632. return prefix ? (window[prefix + 'CancelAnimationFrame'] || window[prefix + 'CancelRequestAnimationFrame']).call(this, id) : clearTimeout(id);
  1633. }
  1634. /***/ }),
  1635. /***/ "./components/_util/getScroll.js":
  1636. /*!***************************************!*\
  1637. !*** ./components/_util/getScroll.js ***!
  1638. \***************************************/
  1639. /*! exports provided: default */
  1640. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1641. "use strict";
  1642. __webpack_require__.r(__webpack_exports__);
  1643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getScroll; });
  1644. function getScroll(target, top) {
  1645. if (typeof window === 'undefined') {
  1646. return 0;
  1647. }
  1648. var prop = top ? 'pageYOffset' : 'pageXOffset';
  1649. var method = top ? 'scrollTop' : 'scrollLeft';
  1650. var isWindow = target === window;
  1651. var ret = isWindow ? target[prop] : target[method];
  1652. // ie6,7,8 standard mode
  1653. if (isWindow && typeof ret !== 'number') {
  1654. ret = window.document.documentElement[method];
  1655. }
  1656. return ret;
  1657. }
  1658. /***/ }),
  1659. /***/ "./components/_util/getScrollBarSize.js":
  1660. /*!**********************************************!*\
  1661. !*** ./components/_util/getScrollBarSize.js ***!
  1662. \**********************************************/
  1663. /*! exports provided: default */
  1664. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1665. "use strict";
  1666. __webpack_require__.r(__webpack_exports__);
  1667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getScrollBarSize; });
  1668. var cached = void 0;
  1669. function getScrollBarSize(fresh) {
  1670. if (fresh || cached === undefined) {
  1671. var inner = document.createElement('div');
  1672. inner.style.width = '100%';
  1673. inner.style.height = '200px';
  1674. var outer = document.createElement('div');
  1675. var outerStyle = outer.style;
  1676. outerStyle.position = 'absolute';
  1677. outerStyle.top = 0;
  1678. outerStyle.left = 0;
  1679. outerStyle.pointerEvents = 'none';
  1680. outerStyle.visibility = 'hidden';
  1681. outerStyle.width = '200px';
  1682. outerStyle.height = '150px';
  1683. outerStyle.overflow = 'hidden';
  1684. outer.appendChild(inner);
  1685. document.body.appendChild(outer);
  1686. var widthContained = inner.offsetWidth;
  1687. outer.style.overflow = 'scroll';
  1688. var widthScroll = inner.offsetWidth;
  1689. if (widthContained === widthScroll) {
  1690. widthScroll = outer.clientWidth;
  1691. }
  1692. document.body.removeChild(outer);
  1693. cached = widthContained - widthScroll;
  1694. }
  1695. return cached;
  1696. }
  1697. /***/ }),
  1698. /***/ "./components/_util/getTransitionProps.js":
  1699. /*!************************************************!*\
  1700. !*** ./components/_util/getTransitionProps.js ***!
  1701. \************************************************/
  1702. /*! exports provided: default */
  1703. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1704. "use strict";
  1705. __webpack_require__.r(__webpack_exports__);
  1706. /* harmony import */ var _css_animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./css-animation */ "./components/_util/css-animation/index.js");
  1707. var noop = function noop() {};
  1708. var getTransitionProps = function getTransitionProps(transitionName) {
  1709. var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1710. var beforeEnter = opt.beforeEnter,
  1711. enter = opt.enter,
  1712. afterEnter = opt.afterEnter,
  1713. leave = opt.leave,
  1714. afterLeave = opt.afterLeave,
  1715. _opt$appear = opt.appear,
  1716. appear = _opt$appear === undefined ? true : _opt$appear,
  1717. tag = opt.tag,
  1718. nativeOn = opt.nativeOn;
  1719. var transitionProps = {
  1720. props: {
  1721. appear: appear,
  1722. css: false
  1723. },
  1724. on: {
  1725. beforeEnter: beforeEnter || noop,
  1726. enter: enter || function (el, done) {
  1727. Object(_css_animation__WEBPACK_IMPORTED_MODULE_0__["default"])(el, transitionName + '-enter', done);
  1728. },
  1729. afterEnter: afterEnter || noop,
  1730. leave: leave || function (el, done) {
  1731. Object(_css_animation__WEBPACK_IMPORTED_MODULE_0__["default"])(el, transitionName + '-leave', done);
  1732. },
  1733. afterLeave: afterLeave || noop
  1734. },
  1735. nativeOn: nativeOn
  1736. };
  1737. // transition-group
  1738. if (tag) {
  1739. transitionProps.tag = tag;
  1740. }
  1741. return transitionProps;
  1742. };
  1743. /* harmony default export */ __webpack_exports__["default"] = (getTransitionProps);
  1744. /***/ }),
  1745. /***/ "./components/_util/interopDefault.js":
  1746. /*!********************************************!*\
  1747. !*** ./components/_util/interopDefault.js ***!
  1748. \********************************************/
  1749. /*! exports provided: default */
  1750. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1751. "use strict";
  1752. __webpack_require__.r(__webpack_exports__);
  1753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return interopDefault; });
  1754. // https://github.com/moment/moment/issues/3650
  1755. function interopDefault(m) {
  1756. return m["default"] || m;
  1757. }
  1758. /***/ }),
  1759. /***/ "./components/_util/isFlexSupported.js":
  1760. /*!*********************************************!*\
  1761. !*** ./components/_util/isFlexSupported.js ***!
  1762. \*********************************************/
  1763. /*! exports provided: default */
  1764. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1765. "use strict";
  1766. __webpack_require__.r(__webpack_exports__);
  1767. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isFlexSupported; });
  1768. function isFlexSupported() {
  1769. if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
  1770. var documentElement = window.document.documentElement;
  1771. return 'flex' in documentElement.style || 'webkitFlex' in documentElement.style || 'Flex' in documentElement.style || 'msFlex' in documentElement.style;
  1772. }
  1773. return false;
  1774. }
  1775. /***/ }),
  1776. /***/ "./components/_util/isNumeric.js":
  1777. /*!***************************************!*\
  1778. !*** ./components/_util/isNumeric.js ***!
  1779. \***************************************/
  1780. /*! exports provided: default */
  1781. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1782. "use strict";
  1783. __webpack_require__.r(__webpack_exports__);
  1784. var isNumeric = function isNumeric(value) {
  1785. return !isNaN(parseFloat(value)) && isFinite(value);
  1786. };
  1787. /* harmony default export */ __webpack_exports__["default"] = (isNumeric);
  1788. /***/ }),
  1789. /***/ "./components/_util/isValid.js":
  1790. /*!*************************************!*\
  1791. !*** ./components/_util/isValid.js ***!
  1792. \*************************************/
  1793. /*! exports provided: default */
  1794. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1795. "use strict";
  1796. __webpack_require__.r(__webpack_exports__);
  1797. var isValid = function isValid(value) {
  1798. return value !== undefined && value !== null && value !== '';
  1799. };
  1800. /* harmony default export */ __webpack_exports__["default"] = (isValid);
  1801. /***/ }),
  1802. /***/ "./components/_util/moment-util.js":
  1803. /*!*****************************************!*\
  1804. !*** ./components/_util/moment-util.js ***!
  1805. \*****************************************/
  1806. /*! exports provided: TimeType, TimesType, TimeOrTimesType, checkValidate, stringToMoment, momentToString */
  1807. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1808. "use strict";
  1809. __webpack_require__.r(__webpack_exports__);
  1810. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeType", function() { return TimeType; });
  1811. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimesType", function() { return TimesType; });
  1812. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeOrTimesType", function() { return TimeOrTimesType; });
  1813. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkValidate", function() { return checkValidate; });
  1814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stringToMoment", function() { return stringToMoment; });
  1815. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "momentToString", function() { return momentToString; });
  1816. /* harmony import */ var _interopDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interopDefault */ "./components/_util/interopDefault.js");
  1817. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
  1818. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
  1819. /* harmony import */ var _warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./warning */ "./components/_util/warning.js");
  1820. /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js");
  1821. /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
  1822. var TimeType = {
  1823. validator: function validator(value) {
  1824. return typeof value === 'string' || lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(value) || moment__WEBPACK_IMPORTED_MODULE_1__["isMoment"](value);
  1825. }
  1826. };
  1827. var TimesType = {
  1828. validator: function validator(value) {
  1829. if (Array.isArray(value)) {
  1830. return value.length === 0 || value.findIndex(function (val) {
  1831. return typeof val !== 'string';
  1832. }) === -1 || value.findIndex(function (val) {
  1833. return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(val) && !moment__WEBPACK_IMPORTED_MODULE_1__["isMoment"](val);
  1834. }) === -1;
  1835. }
  1836. return false;
  1837. }
  1838. };
  1839. var TimeOrTimesType = {
  1840. validator: function validator(value) {
  1841. if (Array.isArray(value)) {
  1842. return value.length === 0 || value.findIndex(function (val) {
  1843. return typeof val !== 'string';
  1844. }) === -1 || value.findIndex(function (val) {
  1845. return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(val) && !moment__WEBPACK_IMPORTED_MODULE_1__["isMoment"](val);
  1846. }) === -1;
  1847. } else {
  1848. return typeof value === 'string' || lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(value) || moment__WEBPACK_IMPORTED_MODULE_1__["isMoment"](value);
  1849. }
  1850. }
  1851. };
  1852. function checkValidate(componentName, value, propName, valueFormat) {
  1853. var values = Array.isArray(value) ? value : [value];
  1854. values.forEach(function (val) {
  1855. if (!val) return;
  1856. valueFormat && Object(_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)(val, valueFormat).isValid(), componentName, 'When set `valueFormat`, `' + propName + '` should provides invalidate string time. ');
  1857. !valueFormat && Object(_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__).isMoment(val) && val.isValid(), componentName, '`' + propName + '` provides invalidate moment time. If you want to set empty value, use `null` instead.');
  1858. });
  1859. }
  1860. var stringToMoment = function stringToMoment(value, valueFormat) {
  1861. if (Array.isArray(value)) {
  1862. return value.map(function (val) {
  1863. return typeof val === 'string' && val ? Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)(val, valueFormat) : val || null;
  1864. });
  1865. } else {
  1866. return typeof value === 'string' && value ? Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)(value, valueFormat) : value || null;
  1867. }
  1868. };
  1869. var momentToString = function momentToString(value, valueFormat) {
  1870. if (Array.isArray(value)) {
  1871. return value.map(function (val) {
  1872. return Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__).isMoment(val) ? val.format(valueFormat) : val;
  1873. });
  1874. } else {
  1875. return Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__).isMoment(value) ? value.format(valueFormat) : value;
  1876. }
  1877. };
  1878. /***/ }),
  1879. /***/ "./components/_util/openAnimation.js":
  1880. /*!*******************************************!*\
  1881. !*** ./components/_util/openAnimation.js ***!
  1882. \*******************************************/
  1883. /*! exports provided: default */
  1884. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1885. "use strict";
  1886. __webpack_require__.r(__webpack_exports__);
  1887. /* harmony import */ var _css_animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./css-animation */ "./components/_util/css-animation/index.js");
  1888. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
  1889. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_1__);
  1890. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
  1891. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
  1892. function animate(node, show, done) {
  1893. var height = void 0;
  1894. var requestAnimationFrameId = void 0;
  1895. var appearRequestAnimationFrameId = void 0;
  1896. return Object(_css_animation__WEBPACK_IMPORTED_MODULE_0__["default"])(node, 'ant-motion-collapse-legacy', {
  1897. start: function start() {
  1898. if (appearRequestAnimationFrameId) {
  1899. raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(appearRequestAnimationFrameId);
  1900. }
  1901. if (!show) {
  1902. node.style.height = node.offsetHeight + 'px';
  1903. node.style.opacity = '1';
  1904. } else {
  1905. height = node.offsetHeight;
  1906. // not get offsetHeight when appear
  1907. // set it into raf get correct offsetHeight
  1908. if (height === 0) {
  1909. appearRequestAnimationFrameId = raf__WEBPACK_IMPORTED_MODULE_1___default()(function () {
  1910. height = node.offsetHeight;
  1911. node.style.height = '0px';
  1912. node.style.opacity = '0';
  1913. });
  1914. } else {
  1915. node.style.height = '0px';
  1916. node.style.opacity = '0';
  1917. }
  1918. }
  1919. },
  1920. active: function active() {
  1921. if (requestAnimationFrameId) {
  1922. raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(requestAnimationFrameId);
  1923. }
  1924. requestAnimationFrameId = raf__WEBPACK_IMPORTED_MODULE_1___default()(function () {
  1925. node.style.height = (show ? height : 0) + 'px';
  1926. node.style.opacity = show ? '1' : '0';
  1927. });
  1928. },
  1929. end: function end() {
  1930. if (appearRequestAnimationFrameId) {
  1931. raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(appearRequestAnimationFrameId);
  1932. }
  1933. if (requestAnimationFrameId) {
  1934. raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(requestAnimationFrameId);
  1935. }
  1936. node.style.height = '';
  1937. node.style.opacity = '';
  1938. done && done();
  1939. }
  1940. });
  1941. }
  1942. var animation = {
  1943. enter: function enter(node, done) {
  1944. vue__WEBPACK_IMPORTED_MODULE_2___default.a.nextTick(function () {
  1945. animate(node, true, done);
  1946. });
  1947. },
  1948. leave: function leave(node, done) {
  1949. return animate(node, false, done);
  1950. }
  1951. };
  1952. /* harmony default export */ __webpack_exports__["default"] = (animation);
  1953. /***/ }),
  1954. /***/ "./components/_util/portalDirective.js":
  1955. /*!*********************************************!*\
  1956. !*** ./components/_util/portalDirective.js ***!
  1957. \*********************************************/
  1958. /*! exports provided: antPortal, default */
  1959. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1960. "use strict";
  1961. __webpack_require__.r(__webpack_exports__);
  1962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "antPortal", function() { return antPortal; });
  1963. function antPortal(Vue) {
  1964. return Vue.directive('ant-portal', {
  1965. inserted: function inserted(el, binding) {
  1966. var value = binding.value;
  1967. var parentNode = typeof value === 'function' ? value(el) : value;
  1968. if (parentNode !== el.parentNode) {
  1969. parentNode.appendChild(el);
  1970. }
  1971. },
  1972. componentUpdated: function componentUpdated(el, binding) {
  1973. var value = binding.value;
  1974. var parentNode = typeof value === 'function' ? value(el) : value;
  1975. if (parentNode !== el.parentNode) {
  1976. parentNode.appendChild(el);
  1977. }
  1978. }
  1979. });
  1980. }
  1981. /* harmony default export */ __webpack_exports__["default"] = ({
  1982. install: function install(Vue) {
  1983. antPortal(Vue);
  1984. }
  1985. });
  1986. /***/ }),
  1987. /***/ "./components/_util/props-util.js":
  1988. /*!****************************************!*\
  1989. !*** ./components/_util/props-util.js ***!
  1990. \****************************************/
  1991. /*! exports provided: getEvents, getDataEvents, getListeners, getClass, getStyle, getComponentName, isEmptyElement, isStringElement, filterEmpty, mergeProps, hasProp, filterProps, getOptionProps, getComponentFromProp, getSlotOptions, slotHasProp, getPropsData, getKey, getAttrs, getValueByProp, parseStyleText, initDefaultProps, isValidElement, camelize, getSlots, getSlot, getAllProps, getAllChildren, default */
  1992. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1993. "use strict";
  1994. __webpack_require__.r(__webpack_exports__);
  1995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEvents", function() { return getEvents; });
  1996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDataEvents", function() { return getDataEvents; });
  1997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getListeners", function() { return getListeners; });
  1998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClass", function() { return getClass; });
  1999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyle", function() { return getStyle; });
  2000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getComponentName", function() { return getComponentName; });
  2001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmptyElement", function() { return isEmptyElement; });
  2002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isStringElement", function() { return isStringElement; });
  2003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterEmpty", function() { return filterEmpty; });
  2004. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeProps", function() { return mergeProps; });
  2005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasProp", function() { return hasProp; });
  2006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterProps", function() { return filterProps; });
  2007. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOptionProps", function() { return getOptionProps; });
  2008. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getComponentFromProp", function() { return getComponentFromProp; });
  2009. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlotOptions", function() { return getSlotOptions; });
  2010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slotHasProp", function() { return slotHasProp; });
  2011. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPropsData", function() { return getPropsData; });
  2012. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getKey", function() { return getKey; });
  2013. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAttrs", function() { return getAttrs; });
  2014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValueByProp", function() { return getValueByProp; });
  2015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseStyleText", function() { return parseStyleText; });
  2016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initDefaultProps", function() { return initDefaultProps; });
  2017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidElement", function() { return isValidElement; });
  2018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "camelize", function() { return camelize; });
  2019. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlots", function() { return getSlots; });
  2020. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlot", function() { return getSlot; });
  2021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAllProps", function() { return getAllProps; });
  2022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAllChildren", function() { return getAllChildren; });
  2023. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  2024. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  2025. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
  2026. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
  2027. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  2028. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  2029. /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
  2030. /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__);
  2031. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  2032. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
  2033. function getType(fn) {
  2034. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  2035. return match ? match[1] : '';
  2036. }
  2037. var camelizeRE = /-(\w)/g;
  2038. var camelize = function camelize(str) {
  2039. return str.replace(camelizeRE, function (_, c) {
  2040. return c ? c.toUpperCase() : '';
  2041. });
  2042. };
  2043. var parseStyleText = function parseStyleText() {
  2044. var cssText = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  2045. var camel = arguments[1];
  2046. var res = {};
  2047. var listDelimiter = /;(?![^(]*\))/g;
  2048. var propertyDelimiter = /:(.+)/;
  2049. cssText.split(listDelimiter).forEach(function (item) {
  2050. if (item) {
  2051. var tmp = item.split(propertyDelimiter);
  2052. if (tmp.length > 1) {
  2053. var k = camel ? camelize(tmp[0].trim()) : tmp[0].trim();
  2054. res[k] = tmp[1].trim();
  2055. }
  2056. }
  2057. });
  2058. return res;
  2059. };
  2060. var hasProp = function hasProp(instance, prop) {
  2061. var $options = instance.$options || {};
  2062. var propsData = $options.propsData || {};
  2063. return prop in propsData;
  2064. };
  2065. var slotHasProp = function slotHasProp(slot, prop) {
  2066. var $options = slot.componentOptions || {};
  2067. var propsData = $options.propsData || {};
  2068. return prop in propsData;
  2069. };
  2070. var filterProps = function filterProps(props) {
  2071. var propsData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2072. var res = {};
  2073. Object.keys(props).forEach(function (k) {
  2074. if (k in propsData || props[k] !== undefined) {
  2075. res[k] = props[k];
  2076. }
  2077. });
  2078. return res;
  2079. };
  2080. var getScopedSlots = function getScopedSlots(ele) {
  2081. return ele.data && ele.data.scopedSlots || {};
  2082. };
  2083. var getSlots = function getSlots(ele) {
  2084. var componentOptions = ele.componentOptions || {};
  2085. if (ele.$vnode) {
  2086. componentOptions = ele.$vnode.componentOptions || {};
  2087. }
  2088. var children = ele.children || componentOptions.children || [];
  2089. var slots = {};
  2090. children.forEach(function (child) {
  2091. if (!isEmptyElement(child)) {
  2092. var name = child.data && child.data.slot || 'default';
  2093. slots[name] = slots[name] || [];
  2094. slots[name].push(child);
  2095. }
  2096. });
  2097. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, slots, getScopedSlots(ele));
  2098. };
  2099. var getSlot = function getSlot(self) {
  2100. var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
  2101. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  2102. return self.$scopedSlots && self.$scopedSlots[name] && self.$scopedSlots[name](options) || self.$slots[name] || [];
  2103. };
  2104. var getAllChildren = function getAllChildren(ele) {
  2105. var componentOptions = ele.componentOptions || {};
  2106. if (ele.$vnode) {
  2107. componentOptions = ele.$vnode.componentOptions || {};
  2108. }
  2109. return ele.children || componentOptions.children || [];
  2110. };
  2111. var getSlotOptions = function getSlotOptions(ele) {
  2112. if (ele.fnOptions) {
  2113. // 函数式组件
  2114. return ele.fnOptions;
  2115. }
  2116. var componentOptions = ele.componentOptions;
  2117. if (ele.$vnode) {
  2118. componentOptions = ele.$vnode.componentOptions;
  2119. }
  2120. return componentOptions ? componentOptions.Ctor.options || {} : {};
  2121. };
  2122. var getOptionProps = function getOptionProps(instance) {
  2123. if (instance.componentOptions) {
  2124. var componentOptions = instance.componentOptions;
  2125. var _componentOptions$pro = componentOptions.propsData,
  2126. propsData = _componentOptions$pro === undefined ? {} : _componentOptions$pro,
  2127. _componentOptions$Cto = componentOptions.Ctor,
  2128. Ctor = _componentOptions$Cto === undefined ? {} : _componentOptions$Cto;
  2129. var props = (Ctor.options || {}).props || {};
  2130. var res = {};
  2131. var _iteratorNormalCompletion = true;
  2132. var _didIteratorError = false;
  2133. var _iteratorError = undefined;
  2134. try {
  2135. for (var _iterator = Object.entries(props)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  2136. var _ref = _step.value;
  2137. var _ref2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref, 2);
  2138. var k = _ref2[0];
  2139. var v = _ref2[1];
  2140. var def = v['default'];
  2141. if (def !== undefined) {
  2142. res[k] = typeof def === 'function' && getType(v.type) !== 'Function' ? def.call(instance) : def;
  2143. }
  2144. }
  2145. } catch (err) {
  2146. _didIteratorError = true;
  2147. _iteratorError = err;
  2148. } finally {
  2149. try {
  2150. if (!_iteratorNormalCompletion && _iterator['return']) {
  2151. _iterator['return']();
  2152. }
  2153. } finally {
  2154. if (_didIteratorError) {
  2155. throw _iteratorError;
  2156. }
  2157. }
  2158. }
  2159. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, res, propsData);
  2160. }
  2161. var _instance$$options = instance.$options,
  2162. $options = _instance$$options === undefined ? {} : _instance$$options,
  2163. _instance$$props = instance.$props,
  2164. $props = _instance$$props === undefined ? {} : _instance$$props;
  2165. return filterProps($props, $options.propsData);
  2166. };
  2167. var getComponentFromProp = function getComponentFromProp(instance, prop) {
  2168. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : instance;
  2169. var execute = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
  2170. if (instance.$createElement) {
  2171. var h = instance.$createElement;
  2172. var temp = instance[prop];
  2173. if (temp !== undefined) {
  2174. return typeof temp === 'function' && execute ? temp(h, options) : temp;
  2175. }
  2176. return instance.$scopedSlots[prop] && execute && instance.$scopedSlots[prop](options) || instance.$scopedSlots[prop] || instance.$slots[prop] || undefined;
  2177. } else {
  2178. var _h = instance.context.$createElement;
  2179. var _temp = getPropsData(instance)[prop];
  2180. if (_temp !== undefined) {
  2181. return typeof _temp === 'function' && execute ? _temp(_h, options) : _temp;
  2182. }
  2183. var slotScope = getScopedSlots(instance)[prop];
  2184. if (slotScope !== undefined) {
  2185. return typeof slotScope === 'function' && execute ? slotScope(_h, options) : slotScope;
  2186. }
  2187. var slotsProp = [];
  2188. var componentOptions = instance.componentOptions || {};
  2189. (componentOptions.children || []).forEach(function (child) {
  2190. if (child.data && child.data.slot === prop) {
  2191. if (child.data.attrs) {
  2192. delete child.data.attrs.slot;
  2193. }
  2194. if (child.tag === 'template') {
  2195. slotsProp.push(child.children);
  2196. } else {
  2197. slotsProp.push(child);
  2198. }
  2199. }
  2200. });
  2201. return slotsProp.length ? slotsProp : undefined;
  2202. }
  2203. };
  2204. var getAllProps = function getAllProps(ele) {
  2205. var data = ele.data || {};
  2206. var componentOptions = ele.componentOptions || {};
  2207. if (ele.$vnode) {
  2208. data = ele.$vnode.data || {};
  2209. componentOptions = ele.$vnode.componentOptions || {};
  2210. }
  2211. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, data.props, data.attrs, componentOptions.propsData);
  2212. };
  2213. var getPropsData = function getPropsData(ele) {
  2214. var componentOptions = ele.componentOptions;
  2215. if (ele.$vnode) {
  2216. componentOptions = ele.$vnode.componentOptions;
  2217. }
  2218. return componentOptions ? componentOptions.propsData || {} : {};
  2219. };
  2220. var getValueByProp = function getValueByProp(ele, prop) {
  2221. return getPropsData(ele)[prop];
  2222. };
  2223. var getAttrs = function getAttrs(ele) {
  2224. var data = ele.data;
  2225. if (ele.$vnode) {
  2226. data = ele.$vnode.data;
  2227. }
  2228. return data ? data.attrs || {} : {};
  2229. };
  2230. var getKey = function getKey(ele) {
  2231. var key = ele.key;
  2232. if (ele.$vnode) {
  2233. key = ele.$vnode.key;
  2234. }
  2235. return key;
  2236. };
  2237. function getEvents(child) {
  2238. var events = {};
  2239. if (child.componentOptions && child.componentOptions.listeners) {
  2240. events = child.componentOptions.listeners;
  2241. } else if (child.data && child.data.on) {
  2242. events = child.data.on;
  2243. }
  2244. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, events);
  2245. }
  2246. // 获取 xxx.native 或者 原生标签 事件
  2247. function getDataEvents(child) {
  2248. var events = {};
  2249. if (child.data && child.data.on) {
  2250. events = child.data.on;
  2251. }
  2252. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, events);
  2253. }
  2254. // use getListeners instead this.$listeners
  2255. // https://github.com/vueComponent/ant-design-vue/issues/1705
  2256. function getListeners(context) {
  2257. return (context.$vnode ? context.$vnode.componentOptions.listeners : context.$listeners) || {};
  2258. }
  2259. function getClass(ele) {
  2260. var data = {};
  2261. if (ele.data) {
  2262. data = ele.data;
  2263. } else if (ele.$vnode && ele.$vnode.data) {
  2264. data = ele.$vnode.data;
  2265. }
  2266. var tempCls = data['class'] || {};
  2267. var staticClass = data.staticClass;
  2268. var cls = {};
  2269. staticClass && staticClass.split(' ').forEach(function (c) {
  2270. cls[c.trim()] = true;
  2271. });
  2272. if (typeof tempCls === 'string') {
  2273. tempCls.split(' ').forEach(function (c) {
  2274. cls[c.trim()] = true;
  2275. });
  2276. } else if (Array.isArray(tempCls)) {
  2277. classnames__WEBPACK_IMPORTED_MODULE_4___default()(tempCls).split(' ').forEach(function (c) {
  2278. cls[c.trim()] = true;
  2279. });
  2280. } else {
  2281. cls = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, cls, tempCls);
  2282. }
  2283. return cls;
  2284. }
  2285. function getStyle(ele, camel) {
  2286. var data = {};
  2287. if (ele.data) {
  2288. data = ele.data;
  2289. } else if (ele.$vnode && ele.$vnode.data) {
  2290. data = ele.$vnode.data;
  2291. }
  2292. var style = data.style || data.staticStyle;
  2293. if (typeof style === 'string') {
  2294. style = parseStyleText(style, camel);
  2295. } else if (camel && style) {
  2296. // 驼峰化
  2297. var res = {};
  2298. Object.keys(style).forEach(function (k) {
  2299. return res[camelize(k)] = style[k];
  2300. });
  2301. return res;
  2302. }
  2303. return style;
  2304. }
  2305. function getComponentName(opts) {
  2306. return opts && (opts.Ctor.options.name || opts.tag);
  2307. }
  2308. function isEmptyElement(c) {
  2309. return !(c.tag || c.text && c.text.trim() !== '');
  2310. }
  2311. function isStringElement(c) {
  2312. return !c.tag;
  2313. }
  2314. function filterEmpty() {
  2315. var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  2316. return children.filter(function (c) {
  2317. return !isEmptyElement(c);
  2318. });
  2319. }
  2320. var initDefaultProps = function initDefaultProps(propTypes, defaultProps) {
  2321. Object.keys(defaultProps).forEach(function (k) {
  2322. if (propTypes[k]) {
  2323. propTypes[k].def && (propTypes[k] = propTypes[k].def(defaultProps[k]));
  2324. } else {
  2325. throw new Error('not have ' + k + ' prop');
  2326. }
  2327. });
  2328. return propTypes;
  2329. };
  2330. function mergeProps() {
  2331. var args = [].slice.call(arguments, 0);
  2332. var props = {};
  2333. args.forEach(function () {
  2334. var p = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2335. var _iteratorNormalCompletion2 = true;
  2336. var _didIteratorError2 = false;
  2337. var _iteratorError2 = undefined;
  2338. try {
  2339. for (var _iterator2 = Object.entries(p)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
  2340. var _ref3 = _step2.value;
  2341. var _ref4 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref3, 2);
  2342. var k = _ref4[0];
  2343. var v = _ref4[1];
  2344. props[k] = props[k] || {};
  2345. if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default()(v)) {
  2346. babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()(props[k], v);
  2347. } else {
  2348. props[k] = v;
  2349. }
  2350. }
  2351. } catch (err) {
  2352. _didIteratorError2 = true;
  2353. _iteratorError2 = err;
  2354. } finally {
  2355. try {
  2356. if (!_iteratorNormalCompletion2 && _iterator2['return']) {
  2357. _iterator2['return']();
  2358. }
  2359. } finally {
  2360. if (_didIteratorError2) {
  2361. throw _iteratorError2;
  2362. }
  2363. }
  2364. }
  2365. });
  2366. return props;
  2367. }
  2368. function isValidElement(element) {
  2369. return element && (typeof element === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(element)) === 'object' && 'componentOptions' in element && 'context' in element && element.tag !== undefined; // remove text node
  2370. }
  2371. /* harmony default export */ __webpack_exports__["default"] = (hasProp);
  2372. /***/ }),
  2373. /***/ "./components/_util/proxyComponent.jsx":
  2374. /*!*********************************************!*\
  2375. !*** ./components/_util/proxyComponent.jsx ***!
  2376. \*********************************************/
  2377. /*! exports provided: default */
  2378. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2379. "use strict";
  2380. __webpack_require__.r(__webpack_exports__);
  2381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return wrapWithConnect; });
  2382. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  2383. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  2384. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  2385. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  2386. /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
  2387. /* harmony import */ var _props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./props-util */ "./components/_util/props-util.js");
  2388. function getDisplayName(WrappedComponent) {
  2389. return WrappedComponent.name || 'Component';
  2390. }
  2391. function wrapWithConnect(WrappedComponent) {
  2392. var tempProps = WrappedComponent.props || {};
  2393. var methods = WrappedComponent.methods || {};
  2394. var props = {};
  2395. Object.keys(tempProps).forEach(function (k) {
  2396. props[k] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, tempProps[k], { required: false });
  2397. });
  2398. WrappedComponent.props.__propsSymbol__ = _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any;
  2399. WrappedComponent.props.children = _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def([]);
  2400. var ProxyWrappedComponent = {
  2401. props: props,
  2402. model: WrappedComponent.model,
  2403. name: 'Proxy_' + getDisplayName(WrappedComponent),
  2404. methods: {
  2405. getProxyWrappedInstance: function getProxyWrappedInstance() {
  2406. return this.$refs.wrappedInstance;
  2407. }
  2408. },
  2409. render: function render() {
  2410. var h = arguments[0];
  2411. var _$slots = this.$slots,
  2412. $slots = _$slots === undefined ? {} : _$slots,
  2413. $scopedSlots = this.$scopedSlots;
  2414. var props = Object(_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this);
  2415. var wrapProps = {
  2416. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  2417. __propsSymbol__: Symbol(),
  2418. componentWillReceiveProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props),
  2419. children: $slots['default'] || props.children || []
  2420. }),
  2421. on: Object(_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
  2422. };
  2423. if (Object.keys($scopedSlots).length) {
  2424. wrapProps.scopedSlots = $scopedSlots;
  2425. }
  2426. var slotsKey = Object.keys($slots);
  2427. return h(
  2428. WrappedComponent,
  2429. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([wrapProps, { ref: 'wrappedInstance' }]),
  2430. [slotsKey.length ? slotsKey.map(function (name) {
  2431. return h(
  2432. 'template',
  2433. { slot: name },
  2434. [$slots[name]]
  2435. );
  2436. }) : null]
  2437. );
  2438. }
  2439. };
  2440. Object.keys(methods).map(function (m) {
  2441. ProxyWrappedComponent.methods[m] = function () {
  2442. var _getProxyWrappedInsta;
  2443. return (_getProxyWrappedInsta = this.getProxyWrappedInstance())[m].apply(_getProxyWrappedInsta, arguments);
  2444. };
  2445. });
  2446. return ProxyWrappedComponent;
  2447. }
  2448. /***/ }),
  2449. /***/ "./components/_util/raf.js":
  2450. /*!*********************************!*\
  2451. !*** ./components/_util/raf.js ***!
  2452. \*********************************/
  2453. /*! exports provided: default */
  2454. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2455. "use strict";
  2456. __webpack_require__.r(__webpack_exports__);
  2457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return wrapperRaf; });
  2458. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
  2459. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_0__);
  2460. var id = 0;
  2461. var ids = {};
  2462. // Support call raf with delay specified frame
  2463. function wrapperRaf(callback) {
  2464. var delayFrames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
  2465. var myId = id++;
  2466. var restFrames = delayFrames;
  2467. function internalCallback() {
  2468. restFrames -= 1;
  2469. if (restFrames <= 0) {
  2470. callback();
  2471. delete ids[myId];
  2472. } else {
  2473. ids[myId] = raf__WEBPACK_IMPORTED_MODULE_0___default()(internalCallback);
  2474. }
  2475. }
  2476. ids[myId] = raf__WEBPACK_IMPORTED_MODULE_0___default()(internalCallback);
  2477. return myId;
  2478. }
  2479. wrapperRaf.cancel = function (pid) {
  2480. if (pid === undefined) return;
  2481. raf__WEBPACK_IMPORTED_MODULE_0___default.a.cancel(ids[pid]);
  2482. delete ids[pid];
  2483. };
  2484. wrapperRaf.ids = ids; // export this for test usage
  2485. /***/ }),
  2486. /***/ "./components/_util/requestAnimationTimeout.js":
  2487. /*!*****************************************************!*\
  2488. !*** ./components/_util/requestAnimationTimeout.js ***!
  2489. \*****************************************************/
  2490. /*! exports provided: cancelAnimationTimeout, requestAnimationTimeout */
  2491. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2492. "use strict";
  2493. __webpack_require__.r(__webpack_exports__);
  2494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cancelAnimationTimeout", function() { return cancelAnimationTimeout; });
  2495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "requestAnimationTimeout", function() { return requestAnimationTimeout; });
  2496. /* harmony import */ var _getRequestAnimationFrame__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getRequestAnimationFrame */ "./components/_util/getRequestAnimationFrame.js");
  2497. var raf = Object(_getRequestAnimationFrame__WEBPACK_IMPORTED_MODULE_0__["default"])();
  2498. var cancelAnimationTimeout = function cancelAnimationTimeout(frame) {
  2499. return Object(_getRequestAnimationFrame__WEBPACK_IMPORTED_MODULE_0__["cancelRequestAnimationFrame"])(frame.id);
  2500. };
  2501. var requestAnimationTimeout = function requestAnimationTimeout(callback, delay) {
  2502. var start = Date.now();
  2503. function timeout() {
  2504. if (Date.now() - start >= delay) {
  2505. callback.call();
  2506. } else {
  2507. frame.id = raf(timeout);
  2508. }
  2509. }
  2510. var frame = {
  2511. id: raf(timeout)
  2512. };
  2513. return frame;
  2514. };
  2515. /***/ }),
  2516. /***/ "./components/_util/responsiveObserve.js":
  2517. /*!***********************************************!*\
  2518. !*** ./components/_util/responsiveObserve.js ***!
  2519. \***********************************************/
  2520. /*! exports provided: responsiveArray, responsiveMap, default */
  2521. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2522. "use strict";
  2523. __webpack_require__.r(__webpack_exports__);
  2524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "responsiveArray", function() { return responsiveArray; });
  2525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "responsiveMap", function() { return responsiveMap; });
  2526. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  2527. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  2528. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  2529. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  2530. // matchMedia polyfill for
  2531. // https://github.com/WickyNilliams/enquire.js/issues/82
  2532. var enquire = void 0;
  2533. // TODO: Will be removed in antd 4.0 because we will no longer support ie9
  2534. if (typeof window !== 'undefined') {
  2535. var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) {
  2536. return {
  2537. media: mediaQuery,
  2538. matches: false,
  2539. addListener: function addListener() {},
  2540. removeListener: function removeListener() {}
  2541. };
  2542. };
  2543. // ref: https://github.com/ant-design/ant-design/issues/18774
  2544. if (!window.matchMedia) window.matchMedia = matchMediaPolyfill;
  2545. // eslint-disable-next-line global-require
  2546. enquire = __webpack_require__(/*! enquire.js */ "./node_modules/enquire.js/src/index.js");
  2547. }
  2548. var responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
  2549. var responsiveMap = {
  2550. xs: '(max-width: 575px)',
  2551. sm: '(min-width: 576px)',
  2552. md: '(min-width: 768px)',
  2553. lg: '(min-width: 992px)',
  2554. xl: '(min-width: 1200px)',
  2555. xxl: '(min-width: 1600px)'
  2556. };
  2557. var subscribers = [];
  2558. var subUid = -1;
  2559. var screens = {};
  2560. var responsiveObserve = {
  2561. dispatch: function dispatch(pointMap) {
  2562. screens = pointMap;
  2563. if (subscribers.length < 1) {
  2564. return false;
  2565. }
  2566. subscribers.forEach(function (item) {
  2567. item.func(screens);
  2568. });
  2569. return true;
  2570. },
  2571. subscribe: function subscribe(func) {
  2572. if (subscribers.length === 0) {
  2573. this.register();
  2574. }
  2575. var token = (++subUid).toString();
  2576. subscribers.push({
  2577. token: token,
  2578. func: func
  2579. });
  2580. func(screens);
  2581. return token;
  2582. },
  2583. unsubscribe: function unsubscribe(token) {
  2584. subscribers = subscribers.filter(function (item) {
  2585. return item.token !== token;
  2586. });
  2587. if (subscribers.length === 0) {
  2588. this.unregister();
  2589. }
  2590. },
  2591. unregister: function unregister() {
  2592. Object.keys(responsiveMap).map(function (screen) {
  2593. return enquire.unregister(responsiveMap[screen]);
  2594. });
  2595. },
  2596. register: function register() {
  2597. var _this = this;
  2598. Object.keys(responsiveMap).map(function (screen) {
  2599. return enquire.register(responsiveMap[screen], {
  2600. match: function match() {
  2601. var pointMap = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, screens, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, screen, true));
  2602. _this.dispatch(pointMap);
  2603. },
  2604. unmatch: function unmatch() {
  2605. var pointMap = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, screens, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, screen, false));
  2606. _this.dispatch(pointMap);
  2607. },
  2608. // Keep a empty destroy to avoid triggering unmatch when unregister
  2609. destroy: function destroy() {}
  2610. });
  2611. });
  2612. }
  2613. };
  2614. /* harmony default export */ __webpack_exports__["default"] = (responsiveObserve);
  2615. /***/ }),
  2616. /***/ "./components/_util/scrollTo.js":
  2617. /*!**************************************!*\
  2618. !*** ./components/_util/scrollTo.js ***!
  2619. \**************************************/
  2620. /*! exports provided: default */
  2621. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2622. "use strict";
  2623. __webpack_require__.r(__webpack_exports__);
  2624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return scrollTo; });
  2625. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
  2626. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_0__);
  2627. /* harmony import */ var _getScroll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getScroll */ "./components/_util/getScroll.js");
  2628. /* harmony import */ var _easings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./easings */ "./components/_util/easings.js");
  2629. // interface ScrollToOptions {
  2630. // /** Scroll container, default as window */
  2631. // getContainer?: () => HTMLElement | Window;
  2632. // /** Scroll end callback */
  2633. // callback?: () => any;
  2634. // /** Animation duration, default as 450 */
  2635. // duration?: number;
  2636. // }
  2637. function scrollTo(y) {
  2638. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2639. var _options$getContainer = options.getContainer,
  2640. getContainer = _options$getContainer === undefined ? function () {
  2641. return window;
  2642. } : _options$getContainer,
  2643. callback = options.callback,
  2644. _options$duration = options.duration,
  2645. duration = _options$duration === undefined ? 450 : _options$duration;
  2646. var container = getContainer();
  2647. var scrollTop = Object(_getScroll__WEBPACK_IMPORTED_MODULE_1__["default"])(container, true);
  2648. var startTime = Date.now();
  2649. var frameFunc = function frameFunc() {
  2650. var timestamp = Date.now();
  2651. var time = timestamp - startTime;
  2652. var nextScrollTop = Object(_easings__WEBPACK_IMPORTED_MODULE_2__["easeInOutCubic"])(time > duration ? duration : time, scrollTop, y, duration);
  2653. if (container === window) {
  2654. window.scrollTo(window.pageXOffset, nextScrollTop);
  2655. } else {
  2656. container.scrollTop = nextScrollTop;
  2657. }
  2658. if (time < duration) {
  2659. raf__WEBPACK_IMPORTED_MODULE_0___default()(frameFunc);
  2660. } else if (typeof callback === 'function') {
  2661. callback();
  2662. }
  2663. };
  2664. raf__WEBPACK_IMPORTED_MODULE_0___default()(frameFunc);
  2665. }
  2666. /***/ }),
  2667. /***/ "./components/_util/setStyle.js":
  2668. /*!**************************************!*\
  2669. !*** ./components/_util/setStyle.js ***!
  2670. \**************************************/
  2671. /*! exports provided: default */
  2672. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2673. "use strict";
  2674. __webpack_require__.r(__webpack_exports__);
  2675. /**
  2676. * Easy to set element style, return previous style
  2677. * IE browser compatible(IE browser doesn't merge overflow style, need to set it separately)
  2678. * https://github.com/ant-design/ant-design/issues/19393
  2679. *
  2680. */
  2681. function setStyle(style) {
  2682. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  2683. var _options$element = options.element,
  2684. element = _options$element === undefined ? document.body : _options$element;
  2685. var oldStyle = {};
  2686. var styleKeys = Object.keys(style);
  2687. // IE browser compatible
  2688. styleKeys.forEach(function (key) {
  2689. oldStyle[key] = element.style[key];
  2690. });
  2691. styleKeys.forEach(function (key) {
  2692. element.style[key] = style[key];
  2693. });
  2694. return oldStyle;
  2695. }
  2696. /* harmony default export */ __webpack_exports__["default"] = (setStyle);
  2697. /***/ }),
  2698. /***/ "./components/_util/store/PropTypes.js":
  2699. /*!*********************************************!*\
  2700. !*** ./components/_util/store/PropTypes.js ***!
  2701. \*********************************************/
  2702. /*! exports provided: storeShape */
  2703. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2704. "use strict";
  2705. __webpack_require__.r(__webpack_exports__);
  2706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "storeShape", function() { return storeShape; });
  2707. /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vue-types */ "./components/_util/vue-types/index.js");
  2708. var storeShape = _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].shape({
  2709. subscribe: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
  2710. setState: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
  2711. getState: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired
  2712. });
  2713. /***/ }),
  2714. /***/ "./components/_util/store/Provider.jsx":
  2715. /*!*********************************************!*\
  2716. !*** ./components/_util/store/Provider.jsx ***!
  2717. \*********************************************/
  2718. /*! exports provided: default */
  2719. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2720. "use strict";
  2721. __webpack_require__.r(__webpack_exports__);
  2722. /* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PropTypes */ "./components/_util/store/PropTypes.js");
  2723. /* harmony default export */ __webpack_exports__["default"] = ({
  2724. name: 'StoreProvider',
  2725. props: {
  2726. store: _PropTypes__WEBPACK_IMPORTED_MODULE_0__["storeShape"].isRequired
  2727. },
  2728. provide: function provide() {
  2729. return {
  2730. storeContext: this.$props
  2731. };
  2732. },
  2733. render: function render() {
  2734. return this.$slots['default'][0];
  2735. }
  2736. });
  2737. /***/ }),
  2738. /***/ "./components/_util/store/connect.jsx":
  2739. /*!********************************************!*\
  2740. !*** ./components/_util/store/connect.jsx ***!
  2741. \********************************************/
  2742. /*! exports provided: default */
  2743. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2744. "use strict";
  2745. __webpack_require__.r(__webpack_exports__);
  2746. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return connect; });
  2747. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  2748. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  2749. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  2750. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  2751. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
  2752. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_2__);
  2753. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  2754. /* harmony import */ var _props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../props-util */ "./components/_util/props-util.js");
  2755. /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vue-types */ "./components/_util/vue-types/index.js");
  2756. /* harmony import */ var _proxyComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../proxyComponent */ "./components/_util/proxyComponent.jsx");
  2757. function getDisplayName(WrappedComponent) {
  2758. return WrappedComponent.name || 'Component';
  2759. }
  2760. var defaultMapStateToProps = function defaultMapStateToProps() {
  2761. return {};
  2762. };
  2763. function connect(mapStateToProps) {
  2764. var shouldSubscribe = !!mapStateToProps;
  2765. var finalMapStateToProps = mapStateToProps || defaultMapStateToProps;
  2766. return function wrapWithConnect(WrappedComponent) {
  2767. var tempProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(WrappedComponent.props || {}, ['store']);
  2768. var props = {
  2769. __propsSymbol__: _vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any
  2770. };
  2771. Object.keys(tempProps).forEach(function (k) {
  2772. props[k] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, tempProps[k], { required: false });
  2773. });
  2774. var Connect = {
  2775. name: 'Connect_' + getDisplayName(WrappedComponent),
  2776. props: props,
  2777. inject: {
  2778. storeContext: { 'default': function _default() {
  2779. return {};
  2780. } }
  2781. },
  2782. data: function data() {
  2783. this.store = this.storeContext.store;
  2784. this.preProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this), ['__propsSymbol__']);
  2785. return {
  2786. subscribed: finalMapStateToProps(this.store.getState(), this.$props)
  2787. };
  2788. },
  2789. watch: {
  2790. __propsSymbol__: function __propsSymbol__() {
  2791. if (mapStateToProps && mapStateToProps.length === 2) {
  2792. this.subscribed = finalMapStateToProps(this.store.getState(), this.$props);
  2793. }
  2794. }
  2795. },
  2796. mounted: function mounted() {
  2797. this.trySubscribe();
  2798. },
  2799. beforeDestroy: function beforeDestroy() {
  2800. this.tryUnsubscribe();
  2801. },
  2802. methods: {
  2803. handleChange: function handleChange() {
  2804. if (!this.unsubscribe) {
  2805. return;
  2806. }
  2807. var props = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this), ['__propsSymbol__']);
  2808. var nextSubscribed = finalMapStateToProps(this.store.getState(), props);
  2809. if (!shallowequal__WEBPACK_IMPORTED_MODULE_2___default()(this.preProps, props) || !shallowequal__WEBPACK_IMPORTED_MODULE_2___default()(this.subscribed, nextSubscribed)) {
  2810. this.subscribed = nextSubscribed;
  2811. }
  2812. },
  2813. trySubscribe: function trySubscribe() {
  2814. if (shouldSubscribe) {
  2815. this.unsubscribe = this.store.subscribe(this.handleChange);
  2816. this.handleChange();
  2817. }
  2818. },
  2819. tryUnsubscribe: function tryUnsubscribe() {
  2820. if (this.unsubscribe) {
  2821. this.unsubscribe();
  2822. this.unsubscribe = null;
  2823. }
  2824. },
  2825. getWrappedInstance: function getWrappedInstance() {
  2826. return this.$refs.wrappedInstance;
  2827. }
  2828. },
  2829. render: function render() {
  2830. var h = arguments[0];
  2831. var _$slots = this.$slots,
  2832. $slots = _$slots === undefined ? {} : _$slots,
  2833. $scopedSlots = this.$scopedSlots,
  2834. subscribed = this.subscribed,
  2835. store = this.store;
  2836. var props = Object(_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
  2837. this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(props, ['__propsSymbol__']));
  2838. var wrapProps = {
  2839. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, subscribed, {
  2840. store: store
  2841. }),
  2842. on: Object(_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
  2843. scopedSlots: $scopedSlots
  2844. };
  2845. return h(
  2846. WrappedComponent,
  2847. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([wrapProps, { ref: 'wrappedInstance' }]),
  2848. [Object.keys($slots).map(function (name) {
  2849. return h(
  2850. 'template',
  2851. { slot: name },
  2852. [$slots[name]]
  2853. );
  2854. })]
  2855. );
  2856. }
  2857. };
  2858. return Object(_proxyComponent__WEBPACK_IMPORTED_MODULE_6__["default"])(Connect);
  2859. };
  2860. }
  2861. /***/ }),
  2862. /***/ "./components/_util/store/create.js":
  2863. /*!******************************************!*\
  2864. !*** ./components/_util/store/create.js ***!
  2865. \******************************************/
  2866. /*! exports provided: default */
  2867. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2868. "use strict";
  2869. __webpack_require__.r(__webpack_exports__);
  2870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return create; });
  2871. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  2872. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  2873. function create(initialState) {
  2874. var state = initialState;
  2875. var listeners = [];
  2876. function setState(partial) {
  2877. state = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, state, partial);
  2878. for (var i = 0; i < listeners.length; i++) {
  2879. listeners[i]();
  2880. }
  2881. }
  2882. function getState() {
  2883. return state;
  2884. }
  2885. function subscribe(listener) {
  2886. listeners.push(listener);
  2887. return function unsubscribe() {
  2888. var index = listeners.indexOf(listener);
  2889. listeners.splice(index, 1);
  2890. };
  2891. }
  2892. return {
  2893. setState: setState,
  2894. getState: getState,
  2895. subscribe: subscribe
  2896. };
  2897. }
  2898. /***/ }),
  2899. /***/ "./components/_util/store/index.js":
  2900. /*!*****************************************!*\
  2901. !*** ./components/_util/store/index.js ***!
  2902. \*****************************************/
  2903. /*! exports provided: Provider, connect, create */
  2904. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2905. "use strict";
  2906. __webpack_require__.r(__webpack_exports__);
  2907. /* harmony import */ var _Provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Provider */ "./components/_util/store/Provider.jsx");
  2908. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Provider", function() { return _Provider__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  2909. /* harmony import */ var _connect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./connect */ "./components/_util/store/connect.jsx");
  2910. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "connect", function() { return _connect__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  2911. /* harmony import */ var _create__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./create */ "./components/_util/store/create.js");
  2912. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "create", function() { return _create__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  2913. /***/ }),
  2914. /***/ "./components/_util/styleChecker.js":
  2915. /*!******************************************!*\
  2916. !*** ./components/_util/styleChecker.js ***!
  2917. \******************************************/
  2918. /*! exports provided: isFlexSupported, default */
  2919. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2920. "use strict";
  2921. __webpack_require__.r(__webpack_exports__);
  2922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFlexSupported", function() { return isFlexSupported; });
  2923. var isStyleSupport = function isStyleSupport(styleName) {
  2924. if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
  2925. var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
  2926. var documentElement = window.document.documentElement;
  2927. return styleNameList.some(function (name) {
  2928. return name in documentElement.style;
  2929. });
  2930. }
  2931. return false;
  2932. };
  2933. var isFlexSupported = isStyleSupport(['flex', 'webkitFlex', 'Flex', 'msFlex']);
  2934. /* harmony default export */ __webpack_exports__["default"] = (isStyleSupport);
  2935. /***/ }),
  2936. /***/ "./components/_util/switchScrollingEffect.js":
  2937. /*!***************************************************!*\
  2938. !*** ./components/_util/switchScrollingEffect.js ***!
  2939. \***************************************************/
  2940. /*! exports provided: default */
  2941. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2942. "use strict";
  2943. __webpack_require__.r(__webpack_exports__);
  2944. /* harmony import */ var _getScrollBarSize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getScrollBarSize */ "./components/_util/getScrollBarSize.js");
  2945. /* harmony default export */ __webpack_exports__["default"] = (function (close) {
  2946. var bodyIsOverflowing = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
  2947. if (!bodyIsOverflowing) {
  2948. return;
  2949. }
  2950. if (close) {
  2951. document.body.style.position = '';
  2952. document.body.style.width = '';
  2953. return;
  2954. }
  2955. var scrollBarSize = Object(_getScrollBarSize__WEBPACK_IMPORTED_MODULE_0__["default"])();
  2956. if (scrollBarSize) {
  2957. document.body.style.position = 'relative';
  2958. document.body.style.width = 'calc(100% - ' + scrollBarSize + 'px)';
  2959. }
  2960. });
  2961. /***/ }),
  2962. /***/ "./components/_util/throttleByAnimationFrame.js":
  2963. /*!******************************************************!*\
  2964. !*** ./components/_util/throttleByAnimationFrame.js ***!
  2965. \******************************************************/
  2966. /*! exports provided: default, throttleByAnimationFrameDecorator */
  2967. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2968. "use strict";
  2969. __webpack_require__.r(__webpack_exports__);
  2970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return throttleByAnimationFrame; });
  2971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throttleByAnimationFrameDecorator", function() { return throttleByAnimationFrameDecorator; });
  2972. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  2973. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  2974. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
  2975. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_1__);
  2976. function throttleByAnimationFrame(fn) {
  2977. var requestId = void 0;
  2978. var later = function later(args) {
  2979. return function () {
  2980. requestId = null;
  2981. fn.apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(args));
  2982. };
  2983. };
  2984. var throttled = function throttled() {
  2985. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  2986. args[_key] = arguments[_key];
  2987. }
  2988. if (requestId == null) {
  2989. requestId = raf__WEBPACK_IMPORTED_MODULE_1___default()(later(args));
  2990. }
  2991. };
  2992. throttled.cancel = function () {
  2993. return raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(requestId);
  2994. };
  2995. return throttled;
  2996. }
  2997. function throttleByAnimationFrameDecorator() {
  2998. return function (target, key, descriptor) {
  2999. var fn = descriptor.value;
  3000. var definingProperty = false;
  3001. return {
  3002. configurable: true,
  3003. get: function get() {
  3004. if (definingProperty || this === target.prototype || this.hasOwnProperty(key)) {
  3005. return fn;
  3006. }
  3007. var boundFn = throttleByAnimationFrame(fn.bind(this));
  3008. definingProperty = true;
  3009. Object.defineProperty(this, key, {
  3010. value: boundFn,
  3011. configurable: true,
  3012. writable: true
  3013. });
  3014. definingProperty = false;
  3015. return boundFn;
  3016. }
  3017. };
  3018. };
  3019. }
  3020. /***/ }),
  3021. /***/ "./components/_util/transButton.jsx":
  3022. /*!******************************************!*\
  3023. !*** ./components/_util/transButton.jsx ***!
  3024. \******************************************/
  3025. /*! exports provided: default */
  3026. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3027. "use strict";
  3028. __webpack_require__.r(__webpack_exports__);
  3029. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  3030. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  3031. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  3032. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  3033. /* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./KeyCode */ "./components/_util/KeyCode.js");
  3034. /* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
  3035. /**
  3036. * Wrap of sub component which need use as Button capacity (like Icon component).
  3037. * This helps accessibility reader to tread as a interactive button to operation.
  3038. */
  3039. var inlineStyle = {
  3040. border: 0,
  3041. background: 'transparent',
  3042. padding: 0,
  3043. lineHeight: 'inherit',
  3044. display: 'inline-block'
  3045. };
  3046. var TransButton = {
  3047. props: {
  3048. noStyle: _vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
  3049. },
  3050. methods: {
  3051. onKeyDown: function onKeyDown(event) {
  3052. var keyCode = event.keyCode;
  3053. if (keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].ENTER) {
  3054. event.preventDefault();
  3055. }
  3056. },
  3057. onKeyUp: function onKeyUp(event) {
  3058. var keyCode = event.keyCode;
  3059. if (keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].ENTER) {
  3060. this.$emit('click', event);
  3061. }
  3062. },
  3063. setRef: function setRef(btn) {
  3064. this.div = btn;
  3065. },
  3066. focus: function focus() {
  3067. if (this.div) {
  3068. this.div.focus();
  3069. }
  3070. },
  3071. blur: function blur() {
  3072. if (this.div) {
  3073. this.div.blur();
  3074. }
  3075. }
  3076. },
  3077. render: function render() {
  3078. var h = arguments[0];
  3079. var noStyle = this.$props.noStyle;
  3080. return h(
  3081. 'div',
  3082. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  3083. attrs: {
  3084. role: 'button',
  3085. tabIndex: 0
  3086. }
  3087. }, {
  3088. directives: [{
  3089. name: 'ant-ref',
  3090. value: this.setRef
  3091. }],
  3092. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$listeners, {
  3093. keydown: this.onKeyDown,
  3094. keyup: this.onKeyUp
  3095. })
  3096. }, {
  3097. style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, !noStyle ? inlineStyle : null)
  3098. }]),
  3099. [this.$slots['default']]
  3100. );
  3101. }
  3102. };
  3103. /* harmony default export */ __webpack_exports__["default"] = (TransButton);
  3104. /***/ }),
  3105. /***/ "./components/_util/triggerEvent.js":
  3106. /*!******************************************!*\
  3107. !*** ./components/_util/triggerEvent.js ***!
  3108. \******************************************/
  3109. /*! exports provided: default */
  3110. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3111. "use strict";
  3112. __webpack_require__.r(__webpack_exports__);
  3113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return triggerEvent; });
  3114. function triggerEvent(el, type) {
  3115. if ('createEvent' in document) {
  3116. // modern browsers, IE9+
  3117. var e = document.createEvent('HTMLEvents');
  3118. e.initEvent(type, false, true);
  3119. el.dispatchEvent(e);
  3120. }
  3121. }
  3122. /***/ }),
  3123. /***/ "./components/_util/type.js":
  3124. /*!**********************************!*\
  3125. !*** ./components/_util/type.js ***!
  3126. \**********************************/
  3127. /*! exports provided: tuple, tupleNum */
  3128. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3129. "use strict";
  3130. __webpack_require__.r(__webpack_exports__);
  3131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tuple", function() { return tuple; });
  3132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tupleNum", function() { return tupleNum; });
  3133. // https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead
  3134. var tuple = function tuple() {
  3135. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  3136. args[_key] = arguments[_key];
  3137. }
  3138. return args;
  3139. };
  3140. var tupleNum = function tupleNum() {
  3141. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  3142. args[_key2] = arguments[_key2];
  3143. }
  3144. return args;
  3145. };
  3146. /***/ }),
  3147. /***/ "./components/_util/vnode.js":
  3148. /*!***********************************!*\
  3149. !*** ./components/_util/vnode.js ***!
  3150. \***********************************/
  3151. /*! exports provided: cloneVNode, cloneVNodes, cloneElement */
  3152. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3153. "use strict";
  3154. __webpack_require__.r(__webpack_exports__);
  3155. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneVNode", function() { return cloneVNode; });
  3156. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneVNodes", function() { return cloneVNodes; });
  3157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneElement", function() { return cloneElement; });
  3158. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  3159. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  3160. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  3161. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  3162. /* harmony import */ var _props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./props-util */ "./components/_util/props-util.js");
  3163. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  3164. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  3165. function cloneVNode(vnode, deep) {
  3166. var componentOptions = vnode.componentOptions;
  3167. var data = vnode.data;
  3168. var listeners = {};
  3169. if (componentOptions && componentOptions.listeners) {
  3170. listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, componentOptions.listeners);
  3171. }
  3172. var on = {};
  3173. if (data && data.on) {
  3174. on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.on);
  3175. }
  3176. var cloned = new vnode.constructor(vnode.tag, data ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data, { on: on }) : data, vnode.children, vnode.text, vnode.elm, vnode.context, componentOptions ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, componentOptions, { listeners: listeners }) : componentOptions, vnode.asyncFactory);
  3177. cloned.ns = vnode.ns;
  3178. cloned.isStatic = vnode.isStatic;
  3179. cloned.key = vnode.key;
  3180. cloned.isComment = vnode.isComment;
  3181. cloned.fnContext = vnode.fnContext;
  3182. cloned.fnOptions = vnode.fnOptions;
  3183. cloned.fnScopeId = vnode.fnScopeId;
  3184. cloned.isCloned = true;
  3185. if (deep) {
  3186. if (vnode.children) {
  3187. cloned.children = cloneVNodes(vnode.children, true);
  3188. }
  3189. if (componentOptions && componentOptions.children) {
  3190. componentOptions.children = cloneVNodes(componentOptions.children, true);
  3191. }
  3192. }
  3193. return cloned;
  3194. }
  3195. function cloneVNodes(vnodes, deep) {
  3196. var len = vnodes.length;
  3197. var res = new Array(len);
  3198. for (var i = 0; i < len; i++) {
  3199. res[i] = cloneVNode(vnodes[i], deep);
  3200. }
  3201. return res;
  3202. }
  3203. function cloneElement(n) {
  3204. var nodeProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3205. var deep = arguments[2];
  3206. var ele = n;
  3207. if (Array.isArray(n)) {
  3208. ele = Object(_props_util__WEBPACK_IMPORTED_MODULE_2__["filterEmpty"])(n)[0];
  3209. }
  3210. if (!ele) {
  3211. return null;
  3212. }
  3213. var node = cloneVNode(ele, deep);
  3214. // // 函数式组件不支持clone https://github.com/vueComponent/ant-design-vue/pull/1947
  3215. // warning(
  3216. // !(node.fnOptions && node.fnOptions.functional),
  3217. // `can not use cloneElement for functional component (${node.fnOptions && node.fnOptions.name})`,
  3218. // );
  3219. var _nodeProps$props = nodeProps.props,
  3220. props = _nodeProps$props === undefined ? {} : _nodeProps$props,
  3221. key = nodeProps.key,
  3222. _nodeProps$on = nodeProps.on,
  3223. on = _nodeProps$on === undefined ? {} : _nodeProps$on,
  3224. _nodeProps$nativeOn = nodeProps.nativeOn,
  3225. nativeOn = _nodeProps$nativeOn === undefined ? {} : _nodeProps$nativeOn,
  3226. children = nodeProps.children,
  3227. _nodeProps$directives = nodeProps.directives,
  3228. directives = _nodeProps$directives === undefined ? [] : _nodeProps$directives;
  3229. var data = node.data || {};
  3230. var cls = {};
  3231. var style = {};
  3232. var _nodeProps$attrs = nodeProps.attrs,
  3233. attrs = _nodeProps$attrs === undefined ? {} : _nodeProps$attrs,
  3234. ref = nodeProps.ref,
  3235. _nodeProps$domProps = nodeProps.domProps,
  3236. domProps = _nodeProps$domProps === undefined ? {} : _nodeProps$domProps,
  3237. _nodeProps$style = nodeProps.style,
  3238. tempStyle = _nodeProps$style === undefined ? {} : _nodeProps$style,
  3239. _nodeProps$class = nodeProps['class'],
  3240. tempCls = _nodeProps$class === undefined ? {} : _nodeProps$class,
  3241. _nodeProps$scopedSlot = nodeProps.scopedSlots,
  3242. scopedSlots = _nodeProps$scopedSlot === undefined ? {} : _nodeProps$scopedSlot;
  3243. if (typeof data.style === 'string') {
  3244. style = Object(_props_util__WEBPACK_IMPORTED_MODULE_2__["parseStyleText"])(data.style);
  3245. } else {
  3246. style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.style, style);
  3247. }
  3248. if (typeof tempStyle === 'string') {
  3249. style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, style, Object(_props_util__WEBPACK_IMPORTED_MODULE_2__["parseStyleText"])(style));
  3250. } else {
  3251. style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, style, tempStyle);
  3252. }
  3253. if (typeof data['class'] === 'string' && data['class'].trim() !== '') {
  3254. data['class'].split(' ').forEach(function (c) {
  3255. cls[c.trim()] = true;
  3256. });
  3257. } else if (Array.isArray(data['class'])) {
  3258. classnames__WEBPACK_IMPORTED_MODULE_3___default()(data['class']).split(' ').forEach(function (c) {
  3259. cls[c.trim()] = true;
  3260. });
  3261. } else {
  3262. cls = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data['class'], cls);
  3263. }
  3264. if (typeof tempCls === 'string' && tempCls.trim() !== '') {
  3265. tempCls.split(' ').forEach(function (c) {
  3266. cls[c.trim()] = true;
  3267. });
  3268. } else {
  3269. cls = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, cls, tempCls);
  3270. }
  3271. node.data = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data, {
  3272. style: style,
  3273. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.attrs, attrs),
  3274. 'class': cls,
  3275. domProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.domProps, domProps),
  3276. scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.scopedSlots, scopedSlots),
  3277. directives: [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(data.directives || []), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(directives))
  3278. });
  3279. if (node.componentOptions) {
  3280. node.componentOptions.propsData = node.componentOptions.propsData || {};
  3281. node.componentOptions.listeners = node.componentOptions.listeners || {};
  3282. node.componentOptions.propsData = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, node.componentOptions.propsData, props);
  3283. node.componentOptions.listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, node.componentOptions.listeners, on);
  3284. if (children) {
  3285. node.componentOptions.children = children;
  3286. }
  3287. } else {
  3288. if (children) {
  3289. node.children = children;
  3290. }
  3291. node.data.on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, node.data.on || {}, on);
  3292. }
  3293. node.data.on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, node.data.on || {}, nativeOn);
  3294. if (key !== undefined) {
  3295. node.key = key;
  3296. node.data.key = key;
  3297. }
  3298. if (typeof ref === 'string') {
  3299. node.data.ref = ref;
  3300. }
  3301. return node;
  3302. }
  3303. /***/ }),
  3304. /***/ "./components/_util/vue-types/index.js":
  3305. /*!*********************************************!*\
  3306. !*** ./components/_util/vue-types/index.js ***!
  3307. \*********************************************/
  3308. /*! exports provided: default */
  3309. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3310. "use strict";
  3311. __webpack_require__.r(__webpack_exports__);
  3312. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  3313. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  3314. /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
  3315. /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
  3316. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./components/_util/vue-types/utils.js");
  3317. var VuePropTypes = {
  3318. get any() {
  3319. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('any', {
  3320. type: null
  3321. });
  3322. },
  3323. get func() {
  3324. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('function', {
  3325. type: Function
  3326. }).def(currentDefaults.func);
  3327. },
  3328. get bool() {
  3329. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('boolean', {
  3330. type: Boolean
  3331. }).def(currentDefaults.bool);
  3332. },
  3333. get string() {
  3334. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('string', {
  3335. type: String
  3336. }).def(currentDefaults.string);
  3337. },
  3338. get number() {
  3339. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('number', {
  3340. type: Number
  3341. }).def(currentDefaults.number);
  3342. },
  3343. get array() {
  3344. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('array', {
  3345. type: Array
  3346. }).def(currentDefaults.array);
  3347. },
  3348. get object() {
  3349. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('object', {
  3350. type: Object
  3351. }).def(currentDefaults.object);
  3352. },
  3353. get integer() {
  3354. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('integer', {
  3355. type: Number,
  3356. validator: function validator(value) {
  3357. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isInteger"])(value);
  3358. }
  3359. }).def(currentDefaults.integer);
  3360. },
  3361. get symbol() {
  3362. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('symbol', {
  3363. type: null,
  3364. validator: function validator(value) {
  3365. return (typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value)) === 'symbol';
  3366. }
  3367. });
  3368. },
  3369. custom: function custom(validatorFn) {
  3370. var warnMsg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'custom validation failed';
  3371. if (typeof validatorFn !== 'function') {
  3372. throw new TypeError('[VueTypes error]: You must provide a function as argument');
  3373. }
  3374. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])(validatorFn.name || '<<anonymous function>>', {
  3375. validator: function validator() {
  3376. var valid = validatorFn.apply(undefined, arguments);
  3377. if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])(this._vueTypes_name + ' - ' + warnMsg);
  3378. return valid;
  3379. }
  3380. });
  3381. },
  3382. oneOf: function oneOf(arr) {
  3383. if (!Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(arr)) {
  3384. throw new TypeError('[VueTypes error]: You must provide an array as argument');
  3385. }
  3386. var msg = 'oneOf - value should be one of "' + arr.join('", "') + '"';
  3387. var allowedTypes = arr.reduce(function (ret, v) {
  3388. if (v !== null && v !== undefined) {
  3389. ret.indexOf(v.constructor) === -1 && ret.push(v.constructor);
  3390. }
  3391. return ret;
  3392. }, []);
  3393. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('oneOf', {
  3394. type: allowedTypes.length > 0 ? allowedTypes : null,
  3395. validator: function validator(value) {
  3396. var valid = arr.indexOf(value) !== -1;
  3397. if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])(msg);
  3398. return valid;
  3399. }
  3400. });
  3401. },
  3402. instanceOf: function instanceOf(instanceConstructor) {
  3403. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('instanceOf', {
  3404. type: instanceConstructor
  3405. });
  3406. },
  3407. oneOfType: function oneOfType(arr) {
  3408. if (!Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(arr)) {
  3409. throw new TypeError('[VueTypes error]: You must provide an array as argument');
  3410. }
  3411. var hasCustomValidators = false;
  3412. var nativeChecks = arr.reduce(function (ret, type) {
  3413. if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(type)) {
  3414. if (type._vueTypes_name === 'oneOf') {
  3415. return ret.concat(type.type || []);
  3416. }
  3417. if (type.type && !Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(type.validator)) {
  3418. if (Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(type.type)) return ret.concat(type.type);
  3419. ret.push(type.type);
  3420. } else if (Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(type.validator)) {
  3421. hasCustomValidators = true;
  3422. }
  3423. return ret;
  3424. }
  3425. ret.push(type);
  3426. return ret;
  3427. }, []);
  3428. if (!hasCustomValidators) {
  3429. // we got just native objects (ie: Array, Object)
  3430. // delegate to Vue native prop check
  3431. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('oneOfType', {
  3432. type: nativeChecks
  3433. }).def(undefined);
  3434. }
  3435. var typesStr = arr.map(function (type) {
  3436. if (type && Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(type.type)) {
  3437. return type.type.map(_utils__WEBPACK_IMPORTED_MODULE_2__["getType"]);
  3438. }
  3439. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["getType"])(type);
  3440. }).reduce(function (ret, type) {
  3441. return ret.concat(Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(type) ? type : [type]);
  3442. }, []).join('", "');
  3443. return this.custom(function oneOfType(value) {
  3444. var valid = arr.some(function (type) {
  3445. if (type._vueTypes_name === 'oneOf') {
  3446. return type.type ? Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type.type, value, true) : true;
  3447. }
  3448. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type, value, true);
  3449. });
  3450. if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('oneOfType - value type should be one of "' + typesStr + '"');
  3451. return valid;
  3452. }).def(undefined);
  3453. },
  3454. arrayOf: function arrayOf(type) {
  3455. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('arrayOf', {
  3456. type: Array,
  3457. validator: function validator(values) {
  3458. var valid = values.every(function (value) {
  3459. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type, value);
  3460. });
  3461. if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('arrayOf - value must be an array of "' + Object(_utils__WEBPACK_IMPORTED_MODULE_2__["getType"])(type) + '"');
  3462. return valid;
  3463. }
  3464. });
  3465. },
  3466. objectOf: function objectOf(type) {
  3467. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('objectOf', {
  3468. type: Object,
  3469. validator: function validator(obj) {
  3470. var valid = Object.keys(obj).every(function (key) {
  3471. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type, obj[key]);
  3472. });
  3473. if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('objectOf - value must be an object of "' + Object(_utils__WEBPACK_IMPORTED_MODULE_2__["getType"])(type) + '"');
  3474. return valid;
  3475. }
  3476. });
  3477. },
  3478. shape: function shape(obj) {
  3479. var keys = Object.keys(obj);
  3480. var requiredKeys = keys.filter(function (key) {
  3481. return obj[key] && obj[key].required === true;
  3482. });
  3483. var type = Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('shape', {
  3484. type: Object,
  3485. validator: function validator(value) {
  3486. var _this = this;
  3487. if (!lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(value)) {
  3488. return false;
  3489. }
  3490. var valueKeys = Object.keys(value);
  3491. // check for required keys (if any)
  3492. if (requiredKeys.length > 0 && requiredKeys.some(function (req) {
  3493. return valueKeys.indexOf(req) === -1;
  3494. })) {
  3495. Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('shape - at least one of required properties "' + requiredKeys.join('", "') + '" is not present');
  3496. return false;
  3497. }
  3498. return valueKeys.every(function (key) {
  3499. if (keys.indexOf(key) === -1) {
  3500. if (_this._vueTypes_isLoose === true) return true;
  3501. Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('shape - object is missing "' + key + '" property');
  3502. return false;
  3503. }
  3504. var type = obj[key];
  3505. return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type, value[key]);
  3506. });
  3507. }
  3508. });
  3509. Object.defineProperty(type, '_vueTypes_isLoose', {
  3510. enumerable: false,
  3511. writable: true,
  3512. value: false
  3513. });
  3514. Object.defineProperty(type, 'loose', {
  3515. get: function get() {
  3516. this._vueTypes_isLoose = true;
  3517. return this;
  3518. },
  3519. enumerable: false
  3520. });
  3521. return type;
  3522. }
  3523. };
  3524. var typeDefaults = function typeDefaults() {
  3525. return {
  3526. func: undefined,
  3527. bool: undefined,
  3528. string: undefined,
  3529. number: undefined,
  3530. array: undefined,
  3531. object: undefined,
  3532. integer: undefined
  3533. };
  3534. };
  3535. var currentDefaults = typeDefaults();
  3536. Object.defineProperty(VuePropTypes, 'sensibleDefaults', {
  3537. enumerable: false,
  3538. set: function set(value) {
  3539. if (value === false) {
  3540. currentDefaults = {};
  3541. } else if (value === true) {
  3542. currentDefaults = typeDefaults();
  3543. } else if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(value)) {
  3544. currentDefaults = value;
  3545. }
  3546. },
  3547. get: function get() {
  3548. return currentDefaults;
  3549. }
  3550. });
  3551. /* harmony default export */ __webpack_exports__["default"] = (VuePropTypes);
  3552. /***/ }),
  3553. /***/ "./components/_util/vue-types/utils.js":
  3554. /*!*********************************************!*\
  3555. !*** ./components/_util/vue-types/utils.js ***!
  3556. \*********************************************/
  3557. /*! exports provided: hasOwn, getType, getNativeType, noop, has, isInteger, isArray, isFunction, withDefault, withRequired, toType, validateType, warn */
  3558. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3559. "use strict";
  3560. __webpack_require__.r(__webpack_exports__);
  3561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasOwn", function() { return hasOwn; });
  3562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getType", function() { return getType; });
  3563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNativeType", function() { return getNativeType; });
  3564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
  3565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "has", function() { return has; });
  3566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInteger", function() { return isInteger; });
  3567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArray", function() { return isArray; });
  3568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFunction", function() { return isFunction; });
  3569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withDefault", function() { return withDefault; });
  3570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withRequired", function() { return withRequired; });
  3571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toType", function() { return toType; });
  3572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateType", function() { return validateType; });
  3573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warn", function() { return warn; });
  3574. /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
  3575. /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
  3576. var ObjProto = Object.prototype;
  3577. var toString = ObjProto.toString;
  3578. var hasOwn = ObjProto.hasOwnProperty;
  3579. var FN_MATCH_REGEXP = /^\s*function (\w+)/;
  3580. // https://github.com/vuejs/vue/blob/dev/src/core/util/props.js#L159
  3581. var getType = function getType(fn) {
  3582. var type = fn !== null && fn !== undefined ? fn.type ? fn.type : fn : null;
  3583. var match = type && type.toString().match(FN_MATCH_REGEXP);
  3584. return match && match[1];
  3585. };
  3586. var getNativeType = function getNativeType(value) {
  3587. if (value === null || value === undefined) return null;
  3588. var match = value.constructor.toString().match(FN_MATCH_REGEXP);
  3589. return match && match[1];
  3590. };
  3591. /**
  3592. * No-op function
  3593. */
  3594. var noop = function noop() {};
  3595. /**
  3596. * Checks for a own property in an object
  3597. *
  3598. * @param {object} obj - Object
  3599. * @param {string} prop - Property to check
  3600. */
  3601. var has = function has(obj, prop) {
  3602. return hasOwn.call(obj, prop);
  3603. };
  3604. /**
  3605. * Determines whether the passed value is an integer. Uses `Number.isInteger` if available
  3606. *
  3607. * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger
  3608. * @param {*} value - The value to be tested for being an integer.
  3609. * @returns {boolean}
  3610. */
  3611. var isInteger = Number.isInteger || function (value) {
  3612. return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
  3613. };
  3614. /**
  3615. * Determines whether the passed value is an Array.
  3616. *
  3617. * @param {*} value - The value to be tested for being an array.
  3618. * @returns {boolean}
  3619. */
  3620. var isArray = Array.isArray || function (value) {
  3621. return toString.call(value) === '[object Array]';
  3622. };
  3623. /**
  3624. * Checks if a value is a function
  3625. *
  3626. * @param {any} value - Value to check
  3627. * @returns {boolean}
  3628. */
  3629. var isFunction = function isFunction(value) {
  3630. return toString.call(value) === '[object Function]';
  3631. };
  3632. /**
  3633. * Adds a `def` method to the object returning a new object with passed in argument as `default` property
  3634. *
  3635. * @param {object} type - Object to enhance
  3636. */
  3637. var withDefault = function withDefault(type) {
  3638. Object.defineProperty(type, 'def', {
  3639. value: function value(def) {
  3640. if (def === undefined && this['default'] === undefined) {
  3641. this['default'] = undefined;
  3642. return this;
  3643. }
  3644. if (!isFunction(def) && !validateType(this, def)) {
  3645. warn(this._vueTypes_name + ' - invalid default value: "' + def + '"', def);
  3646. return this;
  3647. }
  3648. this['default'] = isArray(def) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(def) ? function () {
  3649. return def;
  3650. } : def;
  3651. return this;
  3652. },
  3653. enumerable: false,
  3654. writable: false
  3655. });
  3656. };
  3657. /**
  3658. * Adds a `isRequired` getter returning a new object with `required: true` key-value
  3659. *
  3660. * @param {object} type - Object to enhance
  3661. */
  3662. var withRequired = function withRequired(type) {
  3663. Object.defineProperty(type, 'isRequired', {
  3664. get: function get() {
  3665. this.required = true;
  3666. return this;
  3667. },
  3668. enumerable: false
  3669. });
  3670. };
  3671. /**
  3672. * Adds `isRequired` and `def` modifiers to an object
  3673. *
  3674. * @param {string} name - Type internal name
  3675. * @param {object} obj - Object to enhance
  3676. * @returns {object}
  3677. */
  3678. var toType = function toType(name, obj) {
  3679. Object.defineProperty(obj, '_vueTypes_name', {
  3680. enumerable: false,
  3681. writable: false,
  3682. value: name
  3683. });
  3684. withRequired(obj);
  3685. withDefault(obj);
  3686. if (isFunction(obj.validator)) {
  3687. obj.validator = obj.validator.bind(obj);
  3688. }
  3689. return obj;
  3690. };
  3691. /**
  3692. * Validates a given value against a prop type object
  3693. *
  3694. * @param {Object|*} type - Type to use for validation. Either a type object or a constructor
  3695. * @param {*} value - Value to check
  3696. * @param {boolean} silent - Silence warnings
  3697. * @returns {boolean}
  3698. */
  3699. var validateType = function validateType(type, value) {
  3700. var silent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  3701. var typeToCheck = type;
  3702. var valid = true;
  3703. var expectedType = void 0;
  3704. if (!lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(type)) {
  3705. typeToCheck = { type: type };
  3706. }
  3707. var namePrefix = typeToCheck._vueTypes_name ? typeToCheck._vueTypes_name + ' - ' : '';
  3708. if (hasOwn.call(typeToCheck, 'type') && typeToCheck.type !== null) {
  3709. if (isArray(typeToCheck.type)) {
  3710. valid = typeToCheck.type.some(function (type) {
  3711. return validateType(type, value, true);
  3712. });
  3713. expectedType = typeToCheck.type.map(function (type) {
  3714. return getType(type);
  3715. }).join(' or ');
  3716. } else {
  3717. expectedType = getType(typeToCheck);
  3718. if (expectedType === 'Array') {
  3719. valid = isArray(value);
  3720. } else if (expectedType === 'Object') {
  3721. valid = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(value);
  3722. } else if (expectedType === 'String' || expectedType === 'Number' || expectedType === 'Boolean' || expectedType === 'Function') {
  3723. valid = getNativeType(value) === expectedType;
  3724. } else {
  3725. valid = value instanceof typeToCheck.type;
  3726. }
  3727. }
  3728. }
  3729. if (!valid) {
  3730. silent === false && warn(namePrefix + 'value "' + value + '" should be of type "' + expectedType + '"');
  3731. return false;
  3732. }
  3733. if (hasOwn.call(typeToCheck, 'validator') && isFunction(typeToCheck.validator)) {
  3734. valid = typeToCheck.validator(value);
  3735. if (!valid && silent === false) warn(namePrefix + 'custom validation failed');
  3736. return valid;
  3737. }
  3738. return valid;
  3739. };
  3740. var warn = noop;
  3741. if (true) {
  3742. var hasConsole = typeof console !== 'undefined';
  3743. warn = function warn(msg) {
  3744. if (hasConsole) {
  3745. console.warn('[VueTypes warn]: ' + msg);
  3746. }
  3747. };
  3748. }
  3749. /***/ }),
  3750. /***/ "./components/_util/warning.js":
  3751. /*!*************************************!*\
  3752. !*** ./components/_util/warning.js ***!
  3753. \*************************************/
  3754. /*! exports provided: resetWarned, default */
  3755. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3756. "use strict";
  3757. __webpack_require__.r(__webpack_exports__);
  3758. /* harmony import */ var _vc_util_warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vc-util/warning */ "./components/vc-util/warning.js");
  3759. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resetWarned", function() { return _vc_util_warning__WEBPACK_IMPORTED_MODULE_0__["resetWarned"]; });
  3760. /* harmony default export */ __webpack_exports__["default"] = (function (valid, component) {
  3761. var message = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  3762. Object(_vc_util_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(valid, '[antdv: ' + component + '] ' + message);
  3763. });
  3764. /***/ }),
  3765. /***/ "./components/_util/wave.jsx":
  3766. /*!***********************************!*\
  3767. !*** ./components/_util/wave.jsx ***!
  3768. \***********************************/
  3769. /*! exports provided: default */
  3770. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3771. "use strict";
  3772. __webpack_require__.r(__webpack_exports__);
  3773. /* harmony import */ var _css_animation_Event__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./css-animation/Event */ "./components/_util/css-animation/Event.js");
  3774. /* harmony import */ var _raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raf */ "./components/_util/raf.js");
  3775. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  3776. var styleForPesudo = void 0;
  3777. // Where el is the DOM element you'd like to test for visibility
  3778. function isHidden(element) {
  3779. if (false) {}
  3780. return !element || element.offsetParent === null;
  3781. }
  3782. function isNotGrey(color) {
  3783. // eslint-disable-next-line no-useless-escape
  3784. var match = (color || '').match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);
  3785. if (match && match[1] && match[2] && match[3]) {
  3786. return !(match[1] === match[2] && match[2] === match[3]);
  3787. }
  3788. return true;
  3789. }
  3790. /* harmony default export */ __webpack_exports__["default"] = ({
  3791. name: 'Wave',
  3792. props: ['insertExtraNode'],
  3793. mounted: function mounted() {
  3794. var _this = this;
  3795. this.$nextTick(function () {
  3796. var node = _this.$el;
  3797. if (node.nodeType !== 1) {
  3798. return;
  3799. }
  3800. _this.instance = _this.bindAnimationEvent(node);
  3801. });
  3802. },
  3803. inject: {
  3804. configProvider: { 'default': function _default() {
  3805. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
  3806. } }
  3807. },
  3808. beforeDestroy: function beforeDestroy() {
  3809. if (this.instance) {
  3810. this.instance.cancel();
  3811. }
  3812. if (this.clickWaveTimeoutId) {
  3813. clearTimeout(this.clickWaveTimeoutId);
  3814. }
  3815. this.destroy = true;
  3816. },
  3817. methods: {
  3818. onClick: function onClick(node, waveColor) {
  3819. if (!node || isHidden(node) || node.className.indexOf('-leave') >= 0) {
  3820. return;
  3821. }
  3822. var insertExtraNode = this.$props.insertExtraNode;
  3823. this.extraNode = document.createElement('div');
  3824. var extraNode = this.extraNode;
  3825. extraNode.className = 'ant-click-animating-node';
  3826. var attributeName = this.getAttributeName();
  3827. node.removeAttribute(attributeName);
  3828. node.setAttribute(attributeName, 'true');
  3829. // Not white or transparent or grey
  3830. styleForPesudo = styleForPesudo || document.createElement('style');
  3831. if (waveColor && waveColor !== '#ffffff' && waveColor !== 'rgb(255, 255, 255)' && isNotGrey(waveColor) && !/rgba\(\d*, \d*, \d*, 0\)/.test(waveColor) && // any transparent rgba color
  3832. waveColor !== 'transparent') {
  3833. // Add nonce if CSP exist
  3834. if (this.csp && this.csp.nonce) {
  3835. styleForPesudo.nonce = this.csp.nonce;
  3836. }
  3837. extraNode.style.borderColor = waveColor;
  3838. styleForPesudo.innerHTML = '\n [ant-click-animating-without-extra-node=\'true\']::after, .ant-click-animating-node {\n --antd-wave-shadow-color: ' + waveColor + ';\n }';
  3839. if (!document.body.contains(styleForPesudo)) {
  3840. document.body.appendChild(styleForPesudo);
  3841. }
  3842. }
  3843. if (insertExtraNode) {
  3844. node.appendChild(extraNode);
  3845. }
  3846. _css_animation_Event__WEBPACK_IMPORTED_MODULE_0__["default"].addStartEventListener(node, this.onTransitionStart);
  3847. _css_animation_Event__WEBPACK_IMPORTED_MODULE_0__["default"].addEndEventListener(node, this.onTransitionEnd);
  3848. },
  3849. onTransitionStart: function onTransitionStart(e) {
  3850. if (this.destroy) return;
  3851. var node = this.$el;
  3852. if (!e || e.target !== node) {
  3853. return;
  3854. }
  3855. if (!this.animationStart) {
  3856. this.resetEffect(node);
  3857. }
  3858. },
  3859. onTransitionEnd: function onTransitionEnd(e) {
  3860. if (!e || e.animationName !== 'fadeEffect') {
  3861. return;
  3862. }
  3863. this.resetEffect(e.target);
  3864. },
  3865. getAttributeName: function getAttributeName() {
  3866. var insertExtraNode = this.$props.insertExtraNode;
  3867. return insertExtraNode ? 'ant-click-animating' : 'ant-click-animating-without-extra-node';
  3868. },
  3869. bindAnimationEvent: function bindAnimationEvent(node) {
  3870. var _this2 = this;
  3871. if (!node || !node.getAttribute || node.getAttribute('disabled') || node.className.indexOf('disabled') >= 0) {
  3872. return;
  3873. }
  3874. var onClick = function onClick(e) {
  3875. // Fix radio button click twice
  3876. if (e.target.tagName === 'INPUT' || isHidden(e.target)) {
  3877. return;
  3878. }
  3879. _this2.resetEffect(node);
  3880. // Get wave color from target
  3881. var waveColor = getComputedStyle(node).getPropertyValue('border-top-color') || // Firefox Compatible
  3882. getComputedStyle(node).getPropertyValue('border-color') || getComputedStyle(node).getPropertyValue('background-color');
  3883. _this2.clickWaveTimeoutId = window.setTimeout(function () {
  3884. return _this2.onClick(node, waveColor);
  3885. }, 0);
  3886. _raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(_this2.animationStartId);
  3887. _this2.animationStart = true;
  3888. // Render to trigger transition event cost 3 frames. Let's delay 10 frames to reset this.
  3889. _this2.animationStartId = Object(_raf__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
  3890. _this2.animationStart = false;
  3891. }, 10);
  3892. };
  3893. node.addEventListener('click', onClick, true);
  3894. return {
  3895. cancel: function cancel() {
  3896. node.removeEventListener('click', onClick, true);
  3897. }
  3898. };
  3899. },
  3900. resetEffect: function resetEffect(node) {
  3901. if (!node || node === this.extraNode || !(node instanceof Element)) {
  3902. return;
  3903. }
  3904. var insertExtraNode = this.$props.insertExtraNode;
  3905. var attributeName = this.getAttributeName();
  3906. node.setAttribute(attributeName, 'false'); // edge has bug on `removeAttribute` #14466
  3907. if (styleForPesudo) {
  3908. styleForPesudo.innerHTML = '';
  3909. }
  3910. if (insertExtraNode && this.extraNode && node.contains(this.extraNode)) {
  3911. node.removeChild(this.extraNode);
  3912. }
  3913. _css_animation_Event__WEBPACK_IMPORTED_MODULE_0__["default"].removeStartEventListener(node, this.onTransitionStart);
  3914. _css_animation_Event__WEBPACK_IMPORTED_MODULE_0__["default"].removeEndEventListener(node, this.onTransitionEnd);
  3915. }
  3916. },
  3917. render: function render() {
  3918. if (this.configProvider.csp) {
  3919. this.csp = this.configProvider.csp;
  3920. }
  3921. return this.$slots['default'] && this.$slots['default'][0];
  3922. }
  3923. });
  3924. /***/ }),
  3925. /***/ "./components/affix/index.jsx":
  3926. /*!************************************!*\
  3927. !*** ./components/affix/index.jsx ***!
  3928. \************************************/
  3929. /*! exports provided: default */
  3930. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3931. "use strict";
  3932. __webpack_require__.r(__webpack_exports__);
  3933. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  3934. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  3935. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  3936. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  3937. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  3938. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  3939. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  3940. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  3941. /* harmony import */ var _vc_resize_observer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-resize-observer */ "./components/vc-resize-observer/index.jsx");
  3942. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  3943. /* harmony import */ var _util_throttleByAnimationFrame__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/throttleByAnimationFrame */ "./components/_util/throttleByAnimationFrame.js");
  3944. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  3945. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  3946. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  3947. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils */ "./components/affix/utils.js");
  3948. function getDefaultTarget() {
  3949. return typeof window !== 'undefined' ? window : null;
  3950. }
  3951. // Affix
  3952. var AffixProps = {
  3953. /**
  3954. * 距离窗口顶部达到指定偏移量后触发
  3955. */
  3956. offsetTop: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  3957. offset: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  3958. /** 距离窗口底部达到指定偏移量后触发 */
  3959. offsetBottom: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  3960. /** 固定状态改变时触发的回调函数 */
  3961. // onChange?: (affixed?: boolean) => void;
  3962. /** 设置 Affix 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数 */
  3963. target: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(getDefaultTarget),
  3964. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
  3965. };
  3966. var AffixStatus = {
  3967. None: 'none',
  3968. Prepare: 'Prepare'
  3969. };
  3970. var Affix = {
  3971. name: 'AAffix',
  3972. props: AffixProps,
  3973. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
  3974. inject: {
  3975. configProvider: { 'default': function _default() {
  3976. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
  3977. } }
  3978. },
  3979. data: function data() {
  3980. return {
  3981. affixStyle: undefined,
  3982. placeholderStyle: undefined,
  3983. status: AffixStatus.None,
  3984. lastAffix: false,
  3985. prevTarget: null
  3986. };
  3987. },
  3988. beforeMount: function beforeMount() {
  3989. this.updatePosition = Object(_util_throttleByAnimationFrame__WEBPACK_IMPORTED_MODULE_7__["default"])(this.updatePosition);
  3990. this.lazyUpdatePosition = Object(_util_throttleByAnimationFrame__WEBPACK_IMPORTED_MODULE_7__["default"])(this.lazyUpdatePosition);
  3991. },
  3992. mounted: function mounted() {
  3993. var _this = this;
  3994. var target = this.target;
  3995. if (target) {
  3996. // [Legacy] Wait for parent component ref has its value.
  3997. // We should use target as directly element instead of function which makes element check hard.
  3998. this.timeout = setTimeout(function () {
  3999. Object(_utils__WEBPACK_IMPORTED_MODULE_11__["addObserveTarget"])(target(), _this);
  4000. // Mock Event object.
  4001. _this.updatePosition();
  4002. });
  4003. }
  4004. },
  4005. updated: function updated() {
  4006. this.measure();
  4007. },
  4008. watch: {
  4009. target: function target(val) {
  4010. var newTarget = null;
  4011. if (val) {
  4012. newTarget = val() || null;
  4013. }
  4014. if (this.prevTarget !== newTarget) {
  4015. Object(_utils__WEBPACK_IMPORTED_MODULE_11__["removeObserveTarget"])(this);
  4016. if (newTarget) {
  4017. Object(_utils__WEBPACK_IMPORTED_MODULE_11__["addObserveTarget"])(newTarget, this);
  4018. // Mock Event object.
  4019. this.updatePosition();
  4020. }
  4021. this.prevTarget = newTarget;
  4022. }
  4023. },
  4024. offsetTop: function offsetTop() {
  4025. this.updatePosition();
  4026. },
  4027. offsetBottom: function offsetBottom() {
  4028. this.updatePosition();
  4029. }
  4030. },
  4031. beforeDestroy: function beforeDestroy() {
  4032. clearTimeout(this.timeout);
  4033. Object(_utils__WEBPACK_IMPORTED_MODULE_11__["removeObserveTarget"])(this);
  4034. this.updatePosition.cancel();
  4035. // https://github.com/ant-design/ant-design/issues/22683
  4036. this.lazyUpdatePosition.cancel();
  4037. },
  4038. methods: {
  4039. getOffsetTop: function getOffsetTop() {
  4040. var offset = this.offset,
  4041. offsetBottom = this.offsetBottom;
  4042. var offsetTop = this.offsetTop;
  4043. if (typeof offsetTop === 'undefined') {
  4044. offsetTop = offset;
  4045. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(typeof offset === 'undefined', 'Affix', '`offset` is deprecated. Please use `offsetTop` instead.');
  4046. }
  4047. if (offsetBottom === undefined && offsetTop === undefined) {
  4048. offsetTop = 0;
  4049. }
  4050. return offsetTop;
  4051. },
  4052. getOffsetBottom: function getOffsetBottom() {
  4053. return this.offsetBottom;
  4054. },
  4055. // =================== Measure ===================
  4056. measure: function measure() {
  4057. var status = this.status,
  4058. lastAffix = this.lastAffix;
  4059. var target = this.target;
  4060. if (status !== AffixStatus.Prepare || !this.$refs.fixedNode || !this.$refs.placeholderNode || !target) {
  4061. return;
  4062. }
  4063. var offsetTop = this.getOffsetTop();
  4064. var offsetBottom = this.getOffsetBottom();
  4065. var targetNode = target();
  4066. if (!targetNode) {
  4067. return;
  4068. }
  4069. var newState = {
  4070. status: AffixStatus.None
  4071. };
  4072. var targetRect = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getTargetRect"])(targetNode);
  4073. var placeholderReact = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getTargetRect"])(this.$refs.placeholderNode);
  4074. var fixedTop = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getFixedTop"])(placeholderReact, targetRect, offsetTop);
  4075. var fixedBottom = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getFixedBottom"])(placeholderReact, targetRect, offsetBottom);
  4076. if (fixedTop !== undefined) {
  4077. newState.affixStyle = {
  4078. position: 'fixed',
  4079. top: fixedTop,
  4080. width: placeholderReact.width + 'px',
  4081. height: placeholderReact.height + 'px'
  4082. };
  4083. newState.placeholderStyle = {
  4084. width: placeholderReact.width + 'px',
  4085. height: placeholderReact.height + 'px'
  4086. };
  4087. } else if (fixedBottom !== undefined) {
  4088. newState.affixStyle = {
  4089. position: 'fixed',
  4090. bottom: fixedBottom,
  4091. width: placeholderReact.width + 'px',
  4092. height: placeholderReact.height + 'px'
  4093. };
  4094. newState.placeholderStyle = {
  4095. width: placeholderReact.width + 'px',
  4096. height: placeholderReact.height + 'px'
  4097. };
  4098. }
  4099. newState.lastAffix = !!newState.affixStyle;
  4100. if (lastAffix !== newState.lastAffix) {
  4101. this.$emit('change', newState.lastAffix);
  4102. }
  4103. this.setState(newState);
  4104. },
  4105. // @ts-ignore TS6133
  4106. prepareMeasure: function prepareMeasure() {
  4107. this.setState({
  4108. status: AffixStatus.Prepare,
  4109. affixStyle: undefined,
  4110. placeholderStyle: undefined
  4111. });
  4112. this.$forceUpdate();
  4113. // Test if `updatePosition` called
  4114. if (false) {}
  4115. },
  4116. updatePosition: function updatePosition() {
  4117. this.prepareMeasure();
  4118. },
  4119. lazyUpdatePosition: function lazyUpdatePosition() {
  4120. var target = this.target;
  4121. var affixStyle = this.affixStyle;
  4122. // Check position change before measure to make Safari smooth
  4123. if (target && affixStyle) {
  4124. var offsetTop = this.getOffsetTop();
  4125. var offsetBottom = this.getOffsetBottom();
  4126. var targetNode = target();
  4127. if (targetNode && this.$refs.placeholderNode) {
  4128. var targetRect = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getTargetRect"])(targetNode);
  4129. var placeholderReact = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getTargetRect"])(this.$refs.placeholderNode);
  4130. var fixedTop = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getFixedTop"])(placeholderReact, targetRect, offsetTop);
  4131. var fixedBottom = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getFixedBottom"])(placeholderReact, targetRect, offsetBottom);
  4132. if (fixedTop !== undefined && affixStyle.top === fixedTop || fixedBottom !== undefined && affixStyle.bottom === fixedBottom) {
  4133. return;
  4134. }
  4135. }
  4136. }
  4137. // Directly call prepare measure since it's already throttled.
  4138. this.prepareMeasure();
  4139. }
  4140. },
  4141. render: function render() {
  4142. var _this2 = this;
  4143. var h = arguments[0];
  4144. var prefixCls = this.prefixCls,
  4145. affixStyle = this.affixStyle,
  4146. placeholderStyle = this.placeholderStyle,
  4147. $slots = this.$slots,
  4148. $props = this.$props;
  4149. var getPrefixCls = this.configProvider.getPrefixCls;
  4150. var className = classnames__WEBPACK_IMPORTED_MODULE_3___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, getPrefixCls('affix', prefixCls), affixStyle));
  4151. var props = {
  4152. attrs: Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])($props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target'])
  4153. };
  4154. return h(
  4155. _vc_resize_observer__WEBPACK_IMPORTED_MODULE_5__["default"],
  4156. {
  4157. on: {
  4158. 'resize': function resize() {
  4159. _this2.updatePosition();
  4160. }
  4161. }
  4162. },
  4163. [h(
  4164. 'div',
  4165. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([props, { style: placeholderStyle, ref: 'placeholderNode' }]),
  4166. [h(
  4167. 'div',
  4168. { 'class': className, ref: 'fixedNode', style: affixStyle },
  4169. [$slots['default']]
  4170. )]
  4171. )]
  4172. );
  4173. }
  4174. };
  4175. /* istanbul ignore next */
  4176. Affix.install = function (Vue) {
  4177. Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
  4178. Vue.component(Affix.name, Affix);
  4179. };
  4180. /* harmony default export */ __webpack_exports__["default"] = (Affix);
  4181. /***/ }),
  4182. /***/ "./components/affix/style/index.js":
  4183. /*!*****************************************!*\
  4184. !*** ./components/affix/style/index.js ***!
  4185. \*****************************************/
  4186. /*! no exports provided */
  4187. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4188. "use strict";
  4189. __webpack_require__.r(__webpack_exports__);
  4190. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  4191. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  4192. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/affix/style/index.less");
  4193. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  4194. /***/ }),
  4195. /***/ "./components/affix/style/index.less":
  4196. /*!*******************************************!*\
  4197. !*** ./components/affix/style/index.less ***!
  4198. \*******************************************/
  4199. /*! no static exports found */
  4200. /***/ (function(module, exports, __webpack_require__) {
  4201. // extracted by mini-css-extract-plugin
  4202. /***/ }),
  4203. /***/ "./components/affix/utils.js":
  4204. /*!***********************************!*\
  4205. !*** ./components/affix/utils.js ***!
  4206. \***********************************/
  4207. /*! exports provided: getTargetRect, getFixedTop, getFixedBottom, getObserverEntities, addObserveTarget, removeObserveTarget */
  4208. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4209. "use strict";
  4210. __webpack_require__.r(__webpack_exports__);
  4211. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTargetRect", function() { return getTargetRect; });
  4212. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFixedTop", function() { return getFixedTop; });
  4213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFixedBottom", function() { return getFixedBottom; });
  4214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getObserverEntities", function() { return getObserverEntities; });
  4215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addObserveTarget", function() { return addObserveTarget; });
  4216. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeObserveTarget", function() { return removeObserveTarget; });
  4217. /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
  4218. function getTargetRect(target) {
  4219. return target !== window ? target.getBoundingClientRect() : { top: 0, bottom: window.innerHeight };
  4220. }
  4221. function getFixedTop(placeholderReact, targetRect, offsetTop) {
  4222. if (offsetTop !== undefined && targetRect.top > placeholderReact.top - offsetTop) {
  4223. return offsetTop + targetRect.top + 'px';
  4224. }
  4225. return undefined;
  4226. }
  4227. function getFixedBottom(placeholderReact, targetRect, offsetBottom) {
  4228. if (offsetBottom !== undefined && targetRect.bottom < placeholderReact.bottom + offsetBottom) {
  4229. var targetBottomOffset = window.innerHeight - targetRect.bottom;
  4230. return offsetBottom + targetBottomOffset + 'px';
  4231. }
  4232. return undefined;
  4233. }
  4234. // ======================== Observer ========================
  4235. var TRIGGER_EVENTS = ['resize', 'scroll', 'touchstart', 'touchmove', 'touchend', 'pageshow', 'load'];
  4236. var observerEntities = [];
  4237. function getObserverEntities() {
  4238. // Only used in test env. Can be removed if refactor.
  4239. return observerEntities;
  4240. }
  4241. function addObserveTarget(target, affix) {
  4242. if (!target) return;
  4243. var entity = observerEntities.find(function (item) {
  4244. return item.target === target;
  4245. });
  4246. if (entity) {
  4247. entity.affixList.push(affix);
  4248. } else {
  4249. entity = {
  4250. target: target,
  4251. affixList: [affix],
  4252. eventHandlers: {}
  4253. };
  4254. observerEntities.push(entity);
  4255. // Add listener
  4256. TRIGGER_EVENTS.forEach(function (eventName) {
  4257. entity.eventHandlers[eventName] = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_0__["default"])(target, eventName, function () {
  4258. entity.affixList.forEach(function (targetAffix) {
  4259. targetAffix.lazyUpdatePosition();
  4260. });
  4261. });
  4262. });
  4263. }
  4264. }
  4265. function removeObserveTarget(affix) {
  4266. var observerEntity = observerEntities.find(function (oriObserverEntity) {
  4267. var hasAffix = oriObserverEntity.affixList.some(function (item) {
  4268. return item === affix;
  4269. });
  4270. if (hasAffix) {
  4271. oriObserverEntity.affixList = oriObserverEntity.affixList.filter(function (item) {
  4272. return item !== affix;
  4273. });
  4274. }
  4275. return hasAffix;
  4276. });
  4277. if (observerEntity && observerEntity.affixList.length === 0) {
  4278. observerEntities = observerEntities.filter(function (item) {
  4279. return item !== observerEntity;
  4280. });
  4281. // Remove listener
  4282. TRIGGER_EVENTS.forEach(function (eventName) {
  4283. var handler = observerEntity.eventHandlers[eventName];
  4284. if (handler && handler.remove) {
  4285. handler.remove();
  4286. }
  4287. });
  4288. }
  4289. }
  4290. /***/ }),
  4291. /***/ "./components/alert/index.jsx":
  4292. /*!************************************!*\
  4293. !*** ./components/alert/index.jsx ***!
  4294. \************************************/
  4295. /*! exports provided: AlertProps, default */
  4296. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4297. "use strict";
  4298. __webpack_require__.r(__webpack_exports__);
  4299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlertProps", function() { return AlertProps; });
  4300. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  4301. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  4302. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  4303. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  4304. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  4305. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  4306. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  4307. /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
  4308. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  4309. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  4310. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  4311. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  4312. function noop() {}
  4313. var AlertProps = {
  4314. /**
  4315. * Type of Alert styles, options:`success`, `info`, `warning`, `error`
  4316. */
  4317. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['success', 'info', 'warning', 'error']),
  4318. /** Whether Alert can be closed */
  4319. closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  4320. /** Close text to show */
  4321. closeText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  4322. /** Content of Alert */
  4323. message: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  4324. /** Additional content of Alert */
  4325. description: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  4326. /** Callback when close Alert */
  4327. // onClose?: React.MouseEventHandler<HTMLAnchorElement>;
  4328. /** Trigger when animation ending of Alert */
  4329. afterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
  4330. /** Whether to show icon */
  4331. showIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  4332. iconType: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  4333. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  4334. banner: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  4335. icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any
  4336. };
  4337. var Alert = {
  4338. name: 'AAlert',
  4339. props: AlertProps,
  4340. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  4341. inject: {
  4342. configProvider: { 'default': function _default() {
  4343. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
  4344. } }
  4345. },
  4346. data: function data() {
  4347. return {
  4348. closing: false,
  4349. closed: false
  4350. };
  4351. },
  4352. methods: {
  4353. handleClose: function handleClose(e) {
  4354. e.preventDefault();
  4355. var dom = this.$el;
  4356. dom.style.height = dom.offsetHeight + 'px';
  4357. // Magic code
  4358. // 重复一次后才能正确设置 height
  4359. dom.style.height = dom.offsetHeight + 'px';
  4360. this.setState({
  4361. closing: true
  4362. });
  4363. this.$emit('close', e);
  4364. },
  4365. animationEnd: function animationEnd() {
  4366. this.setState({
  4367. closing: false,
  4368. closed: true
  4369. });
  4370. this.afterClose();
  4371. }
  4372. },
  4373. render: function render() {
  4374. var _classNames;
  4375. var h = arguments[0];
  4376. var customizePrefixCls = this.prefixCls,
  4377. banner = this.banner,
  4378. closing = this.closing,
  4379. closed = this.closed;
  4380. var getPrefixCls = this.configProvider.getPrefixCls;
  4381. var prefixCls = getPrefixCls('alert', customizePrefixCls);
  4382. var closable = this.closable,
  4383. type = this.type,
  4384. showIcon = this.showIcon,
  4385. iconType = this.iconType;
  4386. var closeText = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'closeText');
  4387. var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'description');
  4388. var message = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'message');
  4389. var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'icon');
  4390. // banner模式默认有 Icon
  4391. showIcon = banner && showIcon === undefined ? true : showIcon;
  4392. // banner模式默认为警告
  4393. type = banner && type === undefined ? 'warning' : type || 'info';
  4394. var iconTheme = 'filled';
  4395. if (!iconType) {
  4396. switch (type) {
  4397. case 'success':
  4398. iconType = 'check-circle';
  4399. break;
  4400. case 'info':
  4401. iconType = 'info-circle';
  4402. break;
  4403. case 'error':
  4404. iconType = 'close-circle';
  4405. break;
  4406. case 'warning':
  4407. iconType = 'exclamation-circle';
  4408. break;
  4409. default:
  4410. iconType = 'default';
  4411. }
  4412. // use outline icon in alert with description
  4413. if (description) {
  4414. iconTheme = 'outlined';
  4415. }
  4416. }
  4417. // closeable when closeText is assigned
  4418. if (closeText) {
  4419. closable = true;
  4420. }
  4421. var alertCls = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-' + type, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-closing', closing), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-with-description', !!description), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-no-icon', !showIcon), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-banner', !!banner), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-closable', closable), _classNames));
  4422. var closeIcon = closable ? h(
  4423. 'button',
  4424. {
  4425. attrs: {
  4426. type: 'button',
  4427. tabIndex: 0
  4428. },
  4429. on: {
  4430. 'click': this.handleClose
  4431. },
  4432. 'class': prefixCls + '-close-icon' },
  4433. [closeText ? h(
  4434. 'span',
  4435. { 'class': prefixCls + '-close-text' },
  4436. [closeText]
  4437. ) : h(_icon__WEBPACK_IMPORTED_MODULE_1__["default"], {
  4438. attrs: { type: 'close' }
  4439. })]
  4440. ) : null;
  4441. var iconNode = icon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(icon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(icon, {
  4442. 'class': prefixCls + '-icon'
  4443. }) : h(
  4444. 'span',
  4445. { 'class': prefixCls + '-icon' },
  4446. [icon]
  4447. )) || h(_icon__WEBPACK_IMPORTED_MODULE_1__["default"], { 'class': prefixCls + '-icon', attrs: { type: iconType, theme: iconTheme }
  4448. });
  4449. var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__["default"])(prefixCls + '-slide-up', {
  4450. appear: false,
  4451. afterLeave: this.animationEnd
  4452. });
  4453. return closed ? null : h(
  4454. 'transition',
  4455. transitionProps,
  4456. [h(
  4457. 'div',
  4458. {
  4459. directives: [{
  4460. name: 'show',
  4461. value: !closing
  4462. }],
  4463. 'class': alertCls, attrs: { 'data-show': !closing }
  4464. },
  4465. [showIcon ? iconNode : null, h(
  4466. 'span',
  4467. { 'class': prefixCls + '-message' },
  4468. [message]
  4469. ), h(
  4470. 'span',
  4471. { 'class': prefixCls + '-description' },
  4472. [description]
  4473. ), closeIcon]
  4474. )]
  4475. );
  4476. }
  4477. };
  4478. /* istanbul ignore next */
  4479. Alert.install = function (Vue) {
  4480. Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
  4481. Vue.component(Alert.name, Alert);
  4482. };
  4483. /* harmony default export */ __webpack_exports__["default"] = (Alert);
  4484. /***/ }),
  4485. /***/ "./components/alert/style/index.js":
  4486. /*!*****************************************!*\
  4487. !*** ./components/alert/style/index.js ***!
  4488. \*****************************************/
  4489. /*! no exports provided */
  4490. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4491. "use strict";
  4492. __webpack_require__.r(__webpack_exports__);
  4493. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  4494. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  4495. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/alert/style/index.less");
  4496. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  4497. /***/ }),
  4498. /***/ "./components/alert/style/index.less":
  4499. /*!*******************************************!*\
  4500. !*** ./components/alert/style/index.less ***!
  4501. \*******************************************/
  4502. /*! no static exports found */
  4503. /***/ (function(module, exports, __webpack_require__) {
  4504. // extracted by mini-css-extract-plugin
  4505. /***/ }),
  4506. /***/ "./components/anchor/Anchor.jsx":
  4507. /*!**************************************!*\
  4508. !*** ./components/anchor/Anchor.jsx ***!
  4509. \**************************************/
  4510. /*! exports provided: AnchorProps, default */
  4511. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4512. "use strict";
  4513. __webpack_require__.r(__webpack_exports__);
  4514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnchorProps", function() { return AnchorProps; });
  4515. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  4516. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  4517. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  4518. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  4519. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  4520. /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
  4521. /* harmony import */ var _affix__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../affix */ "./components/affix/index.jsx");
  4522. /* harmony import */ var _util_scrollTo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/scrollTo */ "./components/_util/scrollTo.js");
  4523. /* harmony import */ var _util_getScroll__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/getScroll */ "./components/_util/getScroll.js");
  4524. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  4525. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  4526. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  4527. function getDefaultContainer() {
  4528. return window;
  4529. }
  4530. function getOffsetTop(element, container) {
  4531. if (!element) {
  4532. return 0;
  4533. }
  4534. if (!element.getClientRects().length) {
  4535. return 0;
  4536. }
  4537. var rect = element.getBoundingClientRect();
  4538. if (rect.width || rect.height) {
  4539. if (container === window) {
  4540. container = element.ownerDocument.documentElement;
  4541. return rect.top - container.clientTop;
  4542. }
  4543. return rect.top - container.getBoundingClientRect().top;
  4544. }
  4545. return rect.top;
  4546. }
  4547. // function easeInOutCubic(t, b, c, d) {
  4548. // const cc = c - b;
  4549. // t /= d / 2;
  4550. // if (t < 1) {
  4551. // return (cc / 2) * t * t * t + b;
  4552. // }
  4553. // return (cc / 2) * ((t -= 2) * t * t + 2) + b;
  4554. // }
  4555. var sharpMatcherRegx = /#([^#]+)$/;
  4556. // function scrollTo(href, offsetTop = 0, getContainer, callback = () => {}) {
  4557. // const container = getContainer();
  4558. // const scrollTop = getScroll(container, true);
  4559. // const sharpLinkMatch = sharpMatcherRegx.exec(href);
  4560. // if (!sharpLinkMatch) {
  4561. // return;
  4562. // }
  4563. // const targetElement = document.getElementById(sharpLinkMatch[1]);
  4564. // if (!targetElement) {
  4565. // return;
  4566. // }
  4567. // const eleOffsetTop = getOffsetTop(targetElement, container);
  4568. // const targetScrollTop = scrollTop + eleOffsetTop - offsetTop;
  4569. // const startTime = Date.now();
  4570. // const frameFunc = () => {
  4571. // const timestamp = Date.now();
  4572. // const time = timestamp - startTime;
  4573. // const nextScrollTop = easeInOutCubic(time, scrollTop, targetScrollTop, 450);
  4574. // if (container === window) {
  4575. // window.scrollTo(window.pageXOffset, nextScrollTop);
  4576. // } else {
  4577. // container.scrollTop = nextScrollTop;
  4578. // }
  4579. // if (time < 450) {
  4580. // raf(frameFunc);
  4581. // } else {
  4582. // callback();
  4583. // }
  4584. // };
  4585. // raf(frameFunc);
  4586. // }
  4587. var AnchorProps = {
  4588. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  4589. offsetTop: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  4590. bounds: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  4591. affix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  4592. showInkInFixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  4593. getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  4594. wrapperClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  4595. wrapperStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  4596. getCurrentAnchor: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  4597. targetOffset: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number
  4598. };
  4599. /* harmony default export */ __webpack_exports__["default"] = ({
  4600. name: 'AAnchor',
  4601. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
  4602. inheritAttrs: false,
  4603. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(AnchorProps, {
  4604. affix: true,
  4605. showInkInFixed: false,
  4606. getContainer: getDefaultContainer
  4607. }),
  4608. inject: {
  4609. configProvider: { 'default': function _default() {
  4610. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
  4611. } }
  4612. },
  4613. data: function data() {
  4614. this.links = [];
  4615. this._sPrefixCls = '';
  4616. return {
  4617. activeLink: null
  4618. };
  4619. },
  4620. provide: function provide() {
  4621. var _this = this;
  4622. return {
  4623. antAnchor: {
  4624. registerLink: function registerLink(link) {
  4625. if (!_this.links.includes(link)) {
  4626. _this.links.push(link);
  4627. }
  4628. },
  4629. unregisterLink: function unregisterLink(link) {
  4630. var index = _this.links.indexOf(link);
  4631. if (index !== -1) {
  4632. _this.links.splice(index, 1);
  4633. }
  4634. },
  4635. $data: this.$data,
  4636. scrollTo: this.handleScrollTo
  4637. },
  4638. antAnchorContext: this
  4639. };
  4640. },
  4641. mounted: function mounted() {
  4642. var _this2 = this;
  4643. this.$nextTick(function () {
  4644. var getContainer = _this2.getContainer;
  4645. _this2.scrollContainer = getContainer();
  4646. _this2.scrollEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_3__["default"])(_this2.scrollContainer, 'scroll', _this2.handleScroll);
  4647. _this2.handleScroll();
  4648. });
  4649. },
  4650. updated: function updated() {
  4651. var _this3 = this;
  4652. this.$nextTick(function () {
  4653. if (_this3.scrollEvent) {
  4654. var getContainer = _this3.getContainer;
  4655. var currentContainer = getContainer();
  4656. if (_this3.scrollContainer !== currentContainer) {
  4657. _this3.scrollContainer = currentContainer;
  4658. _this3.scrollEvent.remove();
  4659. _this3.scrollEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_3__["default"])(_this3.scrollContainer, 'scroll', _this3.handleScroll);
  4660. _this3.handleScroll();
  4661. }
  4662. }
  4663. _this3.updateInk();
  4664. });
  4665. },
  4666. beforeDestroy: function beforeDestroy() {
  4667. if (this.scrollEvent) {
  4668. this.scrollEvent.remove();
  4669. }
  4670. },
  4671. methods: {
  4672. getCurrentActiveLink: function getCurrentActiveLink() {
  4673. var offsetTop = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  4674. var bounds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
  4675. var getCurrentAnchor = this.getCurrentAnchor;
  4676. if (typeof getCurrentAnchor === 'function') {
  4677. return getCurrentAnchor();
  4678. }
  4679. var activeLink = '';
  4680. if (typeof document === 'undefined') {
  4681. return activeLink;
  4682. }
  4683. var linkSections = [];
  4684. var getContainer = this.getContainer;
  4685. var container = getContainer();
  4686. this.links.forEach(function (link) {
  4687. var sharpLinkMatch = sharpMatcherRegx.exec(link.toString());
  4688. if (!sharpLinkMatch) {
  4689. return;
  4690. }
  4691. var target = document.getElementById(sharpLinkMatch[1]);
  4692. if (target) {
  4693. var top = getOffsetTop(target, container);
  4694. if (top < offsetTop + bounds) {
  4695. linkSections.push({
  4696. link: link,
  4697. top: top
  4698. });
  4699. }
  4700. }
  4701. });
  4702. if (linkSections.length) {
  4703. var maxSection = linkSections.reduce(function (prev, curr) {
  4704. return curr.top > prev.top ? curr : prev;
  4705. });
  4706. return maxSection.link;
  4707. }
  4708. return '';
  4709. },
  4710. handleScrollTo: function handleScrollTo(link) {
  4711. var _this4 = this;
  4712. var offsetTop = this.offsetTop,
  4713. getContainer = this.getContainer,
  4714. targetOffset = this.targetOffset;
  4715. this.setCurrentActiveLink(link);
  4716. var container = getContainer();
  4717. var scrollTop = Object(_util_getScroll__WEBPACK_IMPORTED_MODULE_6__["default"])(container, true);
  4718. var sharpLinkMatch = sharpMatcherRegx.exec(link);
  4719. if (!sharpLinkMatch) {
  4720. return;
  4721. }
  4722. var targetElement = document.getElementById(sharpLinkMatch[1]);
  4723. if (!targetElement) {
  4724. return;
  4725. }
  4726. var eleOffsetTop = getOffsetTop(targetElement, container);
  4727. var y = scrollTop + eleOffsetTop;
  4728. y -= targetOffset !== undefined ? targetOffset : offsetTop || 0;
  4729. this.animating = true;
  4730. Object(_util_scrollTo__WEBPACK_IMPORTED_MODULE_5__["default"])(y, {
  4731. callback: function callback() {
  4732. _this4.animating = false;
  4733. },
  4734. getContainer: getContainer
  4735. });
  4736. },
  4737. setCurrentActiveLink: function setCurrentActiveLink(link) {
  4738. var activeLink = this.activeLink;
  4739. if (activeLink !== link) {
  4740. this.setState({
  4741. activeLink: link
  4742. });
  4743. this.$emit('change', link);
  4744. }
  4745. },
  4746. handleScroll: function handleScroll() {
  4747. if (this.animating) {
  4748. return;
  4749. }
  4750. var offsetTop = this.offsetTop,
  4751. bounds = this.bounds,
  4752. targetOffset = this.targetOffset;
  4753. var currentActiveLink = this.getCurrentActiveLink(targetOffset !== undefined ? targetOffset : offsetTop || 0, bounds);
  4754. this.setCurrentActiveLink(currentActiveLink);
  4755. },
  4756. updateInk: function updateInk() {
  4757. if (typeof document === 'undefined') {
  4758. return;
  4759. }
  4760. var _sPrefixCls = this._sPrefixCls;
  4761. var linkNode = this.$el.getElementsByClassName(_sPrefixCls + '-link-title-active')[0];
  4762. if (linkNode) {
  4763. this.$refs.inkNode.style.top = linkNode.offsetTop + linkNode.clientHeight / 2 - 4.5 + 'px';
  4764. }
  4765. }
  4766. },
  4767. render: function render() {
  4768. var h = arguments[0];
  4769. var customizePrefixCls = this.prefixCls,
  4770. offsetTop = this.offsetTop,
  4771. affix = this.affix,
  4772. showInkInFixed = this.showInkInFixed,
  4773. activeLink = this.activeLink,
  4774. $slots = this.$slots,
  4775. getContainer = this.getContainer;
  4776. var getPrefixCls = this.configProvider.getPrefixCls;
  4777. var prefixCls = getPrefixCls('anchor', customizePrefixCls);
  4778. this._sPrefixCls = prefixCls;
  4779. var inkClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls + '-ink-ball', {
  4780. visible: activeLink
  4781. });
  4782. var wrapperClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()(this.wrapperClass, prefixCls + '-wrapper');
  4783. var anchorClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, {
  4784. fixed: !affix && !showInkInFixed
  4785. });
  4786. var wrapperStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  4787. maxHeight: offsetTop ? 'calc(100vh - ' + offsetTop + 'px)' : '100vh'
  4788. }, this.wrapperStyle);
  4789. var anchorContent = h(
  4790. 'div',
  4791. { 'class': wrapperClass, style: wrapperStyle },
  4792. [h(
  4793. 'div',
  4794. { 'class': anchorClass },
  4795. [h(
  4796. 'div',
  4797. { 'class': prefixCls + '-ink' },
  4798. [h('span', { 'class': inkClass, ref: 'inkNode' })]
  4799. ), $slots['default']]
  4800. )]
  4801. );
  4802. return !affix ? anchorContent : h(
  4803. _affix__WEBPACK_IMPORTED_MODULE_4__["default"],
  4804. {
  4805. attrs: { offsetTop: offsetTop, target: getContainer }
  4806. },
  4807. [anchorContent]
  4808. );
  4809. }
  4810. });
  4811. /***/ }),
  4812. /***/ "./components/anchor/AnchorLink.jsx":
  4813. /*!******************************************!*\
  4814. !*** ./components/anchor/AnchorLink.jsx ***!
  4815. \******************************************/
  4816. /*! exports provided: AnchorLinkProps, default */
  4817. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4818. "use strict";
  4819. __webpack_require__.r(__webpack_exports__);
  4820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnchorLinkProps", function() { return AnchorLinkProps; });
  4821. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  4822. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  4823. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  4824. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  4825. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  4826. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  4827. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  4828. var AnchorLinkProps = {
  4829. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  4830. href: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  4831. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  4832. target: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
  4833. };
  4834. /* harmony default export */ __webpack_exports__["default"] = ({
  4835. name: 'AAnchorLink',
  4836. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(AnchorLinkProps, {
  4837. href: '#'
  4838. }),
  4839. inject: {
  4840. antAnchor: { 'default': function _default() {
  4841. return {};
  4842. } },
  4843. antAnchorContext: { 'default': function _default() {
  4844. return {};
  4845. } },
  4846. configProvider: { 'default': function _default() {
  4847. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
  4848. } }
  4849. },
  4850. watch: {
  4851. href: function href(val, oldVal) {
  4852. var _this = this;
  4853. this.$nextTick(function () {
  4854. _this.antAnchor.unregisterLink(oldVal);
  4855. _this.antAnchor.registerLink(val);
  4856. });
  4857. }
  4858. },
  4859. mounted: function mounted() {
  4860. this.antAnchor.registerLink(this.href);
  4861. },
  4862. beforeDestroy: function beforeDestroy() {
  4863. this.antAnchor.unregisterLink(this.href);
  4864. },
  4865. methods: {
  4866. handleClick: function handleClick(e) {
  4867. this.antAnchor.scrollTo(this.href);
  4868. var scrollTo = this.antAnchor.scrollTo;
  4869. var _$props = this.$props,
  4870. href = _$props.href,
  4871. title = _$props.title;
  4872. if (this.antAnchorContext.$emit) {
  4873. this.antAnchorContext.$emit('click', e, { title: title, href: href });
  4874. }
  4875. scrollTo(href);
  4876. }
  4877. },
  4878. render: function render() {
  4879. var h = arguments[0];
  4880. var customizePrefixCls = this.prefixCls,
  4881. href = this.href,
  4882. $slots = this.$slots,
  4883. target = this.target;
  4884. var getPrefixCls = this.configProvider.getPrefixCls;
  4885. var prefixCls = getPrefixCls('anchor', customizePrefixCls);
  4886. var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'title');
  4887. var active = this.antAnchor.$data.activeLink === href;
  4888. var wrapperClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-link', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-link-active', active));
  4889. var titleClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-link-title', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-link-title-active', active));
  4890. return h(
  4891. 'div',
  4892. { 'class': wrapperClassName },
  4893. [h(
  4894. 'a',
  4895. {
  4896. 'class': titleClassName,
  4897. attrs: { href: href,
  4898. title: typeof title === 'string' ? title : '',
  4899. target: target
  4900. },
  4901. on: {
  4902. 'click': this.handleClick
  4903. }
  4904. },
  4905. [title]
  4906. ), $slots['default']]
  4907. );
  4908. }
  4909. });
  4910. /***/ }),
  4911. /***/ "./components/anchor/index.jsx":
  4912. /*!*************************************!*\
  4913. !*** ./components/anchor/index.jsx ***!
  4914. \*************************************/
  4915. /*! exports provided: AnchorProps, AnchorLinkProps, default */
  4916. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4917. "use strict";
  4918. __webpack_require__.r(__webpack_exports__);
  4919. /* harmony import */ var _Anchor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Anchor */ "./components/anchor/Anchor.jsx");
  4920. /* harmony import */ var _AnchorLink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AnchorLink */ "./components/anchor/AnchorLink.jsx");
  4921. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  4922. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnchorProps", function() { return _Anchor__WEBPACK_IMPORTED_MODULE_0__["AnchorProps"]; });
  4923. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnchorLinkProps", function() { return _AnchorLink__WEBPACK_IMPORTED_MODULE_1__["AnchorLinkProps"]; });
  4924. _Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].Link = _AnchorLink__WEBPACK_IMPORTED_MODULE_1__["default"];
  4925. /* istanbul ignore next */
  4926. _Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  4927. Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
  4928. Vue.component(_Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Anchor__WEBPACK_IMPORTED_MODULE_0__["default"]);
  4929. Vue.component(_Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].Link.name, _Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].Link);
  4930. };
  4931. /* harmony default export */ __webpack_exports__["default"] = (_Anchor__WEBPACK_IMPORTED_MODULE_0__["default"]);
  4932. /***/ }),
  4933. /***/ "./components/anchor/style/index.js":
  4934. /*!******************************************!*\
  4935. !*** ./components/anchor/style/index.js ***!
  4936. \******************************************/
  4937. /*! no exports provided */
  4938. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4939. "use strict";
  4940. __webpack_require__.r(__webpack_exports__);
  4941. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  4942. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  4943. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/anchor/style/index.less");
  4944. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  4945. /* harmony import */ var _affix_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../affix/style */ "./components/affix/style/index.js");
  4946. // style dependencies
  4947. /***/ }),
  4948. /***/ "./components/anchor/style/index.less":
  4949. /*!********************************************!*\
  4950. !*** ./components/anchor/style/index.less ***!
  4951. \********************************************/
  4952. /*! no static exports found */
  4953. /***/ (function(module, exports, __webpack_require__) {
  4954. // extracted by mini-css-extract-plugin
  4955. /***/ }),
  4956. /***/ "./components/auto-complete/InputElement.jsx":
  4957. /*!***************************************************!*\
  4958. !*** ./components/auto-complete/InputElement.jsx ***!
  4959. \***************************************************/
  4960. /*! exports provided: default */
  4961. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4962. "use strict";
  4963. __webpack_require__.r(__webpack_exports__);
  4964. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
  4965. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
  4966. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  4967. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  4968. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  4969. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  4970. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  4971. function chaining() {
  4972. for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) {
  4973. fns[_key] = arguments[_key];
  4974. }
  4975. return function () {
  4976. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  4977. args[_key2] = arguments[_key2];
  4978. }
  4979. // eslint-disable-line
  4980. // eslint-disable-line
  4981. for (var i = 0; i < fns.length; i++) {
  4982. if (fns[i] && typeof fns[i] === 'function') {
  4983. fns[i].apply(this, args);
  4984. }
  4985. }
  4986. };
  4987. }
  4988. /* harmony default export */ __webpack_exports__["default"] = ({
  4989. name: 'InputElement',
  4990. inheritAttrs: false,
  4991. props: {
  4992. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  4993. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  4994. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
  4995. },
  4996. render: function render() {
  4997. var _$slots = this.$slots,
  4998. $slots = _$slots === undefined ? {} : _$slots,
  4999. _$attrs = this.$attrs,
  5000. $attrs = _$attrs === undefined ? {} : _$attrs,
  5001. placeholder = this.placeholder;
  5002. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this);
  5003. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
  5004. var value = props.value === undefined ? '' : props.value;
  5005. var children = $slots['default'][0];
  5006. var _$slots$default$0$com = $slots['default'][0].componentOptions,
  5007. componentOptions = _$slots$default$0$com === undefined ? {} : _$slots$default$0$com;
  5008. var _componentOptions$lis = componentOptions.listeners,
  5009. events = _componentOptions$lis === undefined ? {} : _componentOptions$lis;
  5010. var newEvent = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, events);
  5011. var _iteratorNormalCompletion = true;
  5012. var _didIteratorError = false;
  5013. var _iteratorError = undefined;
  5014. try {
  5015. for (var _iterator = Object.entries(listeners)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  5016. var _ref = _step.value;
  5017. var _ref2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 2);
  5018. var eventName = _ref2[0];
  5019. var event = _ref2[1];
  5020. newEvent[eventName] = chaining(event, events[eventName]);
  5021. }
  5022. } catch (err) {
  5023. _didIteratorError = true;
  5024. _iteratorError = err;
  5025. } finally {
  5026. try {
  5027. if (!_iteratorNormalCompletion && _iterator['return']) {
  5028. _iterator['return']();
  5029. }
  5030. } finally {
  5031. if (_didIteratorError) {
  5032. throw _iteratorError;
  5033. }
  5034. }
  5035. }
  5036. var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, $attrs, { value: value });
  5037. // https://github.com/vueComponent/ant-design-vue/issues/1761
  5038. delete props.placeholder;
  5039. if (placeholder) {
  5040. props.placeholder = placeholder;
  5041. attrs.placeholder = placeholder;
  5042. }
  5043. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(children, {
  5044. domProps: {
  5045. value: value
  5046. },
  5047. props: props,
  5048. on: newEvent,
  5049. attrs: attrs,
  5050. ref: 'ele'
  5051. });
  5052. }
  5053. });
  5054. /***/ }),
  5055. /***/ "./components/auto-complete/index.jsx":
  5056. /*!********************************************!*\
  5057. !*** ./components/auto-complete/index.jsx ***!
  5058. \********************************************/
  5059. /*! exports provided: default */
  5060. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5061. "use strict";
  5062. __webpack_require__.r(__webpack_exports__);
  5063. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  5064. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  5065. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  5066. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  5067. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  5068. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  5069. /* harmony import */ var _vc_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-select */ "./components/vc-select/index.js");
  5070. /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
  5071. /* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../input */ "./components/input/index.js");
  5072. /* harmony import */ var _InputElement__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./InputElement */ "./components/auto-complete/InputElement.jsx");
  5073. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  5074. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  5075. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  5076. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  5077. // const DataSourceItemObject = PropTypes.shape({
  5078. // value: String,
  5079. // text: String,
  5080. // }).loose
  5081. // const DataSourceItemType = PropTypes.oneOfType([
  5082. // PropTypes.string,
  5083. // DataSourceItemObject,
  5084. // ]).isRequired
  5085. // export interface AutoCompleteInputProps {
  5086. // onChange?: React.FormEventHandler<any>;
  5087. // value: any;
  5088. // }
  5089. var AutoCompleteProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_select__WEBPACK_IMPORTED_MODULE_4__["AbstractSelectProps"])(), {
  5090. value: _select__WEBPACK_IMPORTED_MODULE_4__["SelectValue"],
  5091. defaultValue: _select__WEBPACK_IMPORTED_MODULE_4__["SelectValue"],
  5092. dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
  5093. dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
  5094. optionLabelProp: String,
  5095. dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool
  5096. // onChange?: (value: SelectValue) => void;
  5097. // onSelect?: (value: SelectValue, option: Object) => any;
  5098. });
  5099. var AutoComplete = {
  5100. name: 'AAutoComplete',
  5101. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, AutoCompleteProps, {
  5102. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string.def('ant-select'),
  5103. showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(false),
  5104. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string.def('slide-up'),
  5105. choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string.def('zoom'),
  5106. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  5107. backfill: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  5108. optionLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string.def('children'),
  5109. filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func]).def(false),
  5110. defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(true)
  5111. }),
  5112. Option: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_select__WEBPACK_IMPORTED_MODULE_3__["Option"], { name: 'AAutoCompleteOption' }),
  5113. OptGroup: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_select__WEBPACK_IMPORTED_MODULE_3__["OptGroup"], { name: 'AAutoCompleteOptGroup' }),
  5114. model: {
  5115. prop: 'value',
  5116. event: 'change'
  5117. },
  5118. inject: {
  5119. configProvider: { 'default': function _default() {
  5120. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
  5121. } }
  5122. },
  5123. provide: function provide() {
  5124. return {
  5125. savePopupRef: this.savePopupRef
  5126. };
  5127. },
  5128. methods: {
  5129. savePopupRef: function savePopupRef(ref) {
  5130. this.popupRef = ref;
  5131. },
  5132. getInputElement: function getInputElement() {
  5133. var h = this.$createElement;
  5134. var $slots = this.$slots,
  5135. placeholder = this.placeholder;
  5136. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["filterEmpty"])($slots['default']);
  5137. var element = children.length ? children[0] : h(_input__WEBPACK_IMPORTED_MODULE_5__["default"], {
  5138. attrs: { lazy: false }
  5139. });
  5140. return h(
  5141. _InputElement__WEBPACK_IMPORTED_MODULE_6__["default"],
  5142. {
  5143. attrs: { placeholder: placeholder }
  5144. },
  5145. [element]
  5146. );
  5147. },
  5148. focus: function focus() {
  5149. if (this.$refs.select) {
  5150. this.$refs.select.focus();
  5151. }
  5152. },
  5153. blur: function blur() {
  5154. if (this.$refs.select) {
  5155. this.$refs.select.blur();
  5156. }
  5157. }
  5158. },
  5159. render: function render() {
  5160. var _cls;
  5161. var h = arguments[0];
  5162. var size = this.size,
  5163. customizePrefixCls = this.prefixCls,
  5164. optionLabelProp = this.optionLabelProp,
  5165. dataSource = this.dataSource,
  5166. $slots = this.$slots;
  5167. var getPrefixCls = this.configProvider.getPrefixCls;
  5168. var prefixCls = getPrefixCls('select', customizePrefixCls);
  5169. var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-show-search', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-auto-complete', true), _cls);
  5170. var options = void 0;
  5171. var childArray = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["filterEmpty"])($slots.dataSource);
  5172. if (childArray.length) {
  5173. options = childArray;
  5174. } else {
  5175. options = dataSource ? dataSource.map(function (item) {
  5176. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(item)) {
  5177. return item;
  5178. }
  5179. switch (typeof item === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(item)) {
  5180. case 'string':
  5181. return h(
  5182. _vc_select__WEBPACK_IMPORTED_MODULE_3__["Option"],
  5183. { key: item },
  5184. [item]
  5185. );
  5186. case 'object':
  5187. return h(
  5188. _vc_select__WEBPACK_IMPORTED_MODULE_3__["Option"],
  5189. { key: item.value },
  5190. [item.text]
  5191. );
  5192. default:
  5193. throw new Error('AutoComplete[dataSource] only supports type `string[] | Object[]`.');
  5194. }
  5195. }) : [];
  5196. }
  5197. var selectProps = {
  5198. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this), {
  5199. mode: _select__WEBPACK_IMPORTED_MODULE_4__["default"].SECRET_COMBOBOX_MODE_DO_NOT_USE,
  5200. optionLabelProp: optionLabelProp,
  5201. getInputElement: this.getInputElement,
  5202. notFoundContent: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'notFoundContent'),
  5203. placeholder: ''
  5204. }),
  5205. 'class': cls,
  5206. ref: 'select',
  5207. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this)
  5208. };
  5209. return h(
  5210. _select__WEBPACK_IMPORTED_MODULE_4__["default"],
  5211. selectProps,
  5212. [options]
  5213. );
  5214. }
  5215. };
  5216. /* istanbul ignore next */
  5217. AutoComplete.install = function (Vue) {
  5218. Vue.use(_base__WEBPACK_IMPORTED_MODULE_10__["default"]);
  5219. Vue.component(AutoComplete.name, AutoComplete);
  5220. Vue.component(AutoComplete.Option.name, AutoComplete.Option);
  5221. Vue.component(AutoComplete.OptGroup.name, AutoComplete.OptGroup);
  5222. };
  5223. /* harmony default export */ __webpack_exports__["default"] = (AutoComplete);
  5224. /***/ }),
  5225. /***/ "./components/auto-complete/style/index.js":
  5226. /*!*************************************************!*\
  5227. !*** ./components/auto-complete/style/index.js ***!
  5228. \*************************************************/
  5229. /*! no exports provided */
  5230. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5231. "use strict";
  5232. __webpack_require__.r(__webpack_exports__);
  5233. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  5234. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  5235. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/auto-complete/style/index.less");
  5236. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  5237. /* harmony import */ var _select_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../select/style */ "./components/select/style/index.js");
  5238. /* harmony import */ var _input_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../input/style */ "./components/input/style/index.js");
  5239. // style dependencies
  5240. /***/ }),
  5241. /***/ "./components/auto-complete/style/index.less":
  5242. /*!***************************************************!*\
  5243. !*** ./components/auto-complete/style/index.less ***!
  5244. \***************************************************/
  5245. /*! no static exports found */
  5246. /***/ (function(module, exports, __webpack_require__) {
  5247. // extracted by mini-css-extract-plugin
  5248. /***/ }),
  5249. /***/ "./components/avatar/Avatar.jsx":
  5250. /*!**************************************!*\
  5251. !*** ./components/avatar/Avatar.jsx ***!
  5252. \**************************************/
  5253. /*! exports provided: default */
  5254. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5255. "use strict";
  5256. __webpack_require__.r(__webpack_exports__);
  5257. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  5258. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  5259. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  5260. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  5261. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  5262. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  5263. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  5264. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  5265. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  5266. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  5267. /* harmony default export */ __webpack_exports__["default"] = ({
  5268. name: 'AAvatar',
  5269. props: {
  5270. prefixCls: {
  5271. type: String,
  5272. 'default': undefined
  5273. },
  5274. shape: {
  5275. validator: function validator(val) {
  5276. return ['circle', 'square'].includes(val);
  5277. },
  5278. 'default': 'circle'
  5279. },
  5280. size: {
  5281. validator: function validator(val) {
  5282. return typeof val === 'number' || ['small', 'large', 'default'].includes(val);
  5283. },
  5284. 'default': 'default'
  5285. },
  5286. src: String,
  5287. /** Srcset of image avatar */
  5288. srcSet: String,
  5289. icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  5290. alt: String,
  5291. loadError: Function
  5292. },
  5293. inject: {
  5294. configProvider: { 'default': function _default() {
  5295. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
  5296. } }
  5297. },
  5298. data: function data() {
  5299. return {
  5300. isImgExist: true,
  5301. isMounted: false,
  5302. scale: 1
  5303. };
  5304. },
  5305. watch: {
  5306. src: function src() {
  5307. var _this = this;
  5308. this.$nextTick(function () {
  5309. _this.isImgExist = true;
  5310. _this.scale = 1;
  5311. // force uodate for position
  5312. _this.$forceUpdate();
  5313. });
  5314. }
  5315. },
  5316. mounted: function mounted() {
  5317. var _this2 = this;
  5318. this.$nextTick(function () {
  5319. _this2.setScale();
  5320. _this2.isMounted = true;
  5321. });
  5322. },
  5323. updated: function updated() {
  5324. var _this3 = this;
  5325. this.$nextTick(function () {
  5326. _this3.setScale();
  5327. });
  5328. },
  5329. methods: {
  5330. setScale: function setScale() {
  5331. if (!this.$refs.avatarChildren || !this.$refs.avatarNode) {
  5332. return;
  5333. }
  5334. var childrenWidth = this.$refs.avatarChildren.offsetWidth; // offsetWidth avoid affecting be transform scale
  5335. var nodeWidth = this.$refs.avatarNode.offsetWidth;
  5336. // denominator is 0 is no meaning
  5337. if (childrenWidth === 0 || nodeWidth === 0 || this.lastChildrenWidth === childrenWidth && this.lastNodeWidth === nodeWidth) {
  5338. return;
  5339. }
  5340. this.lastChildrenWidth = childrenWidth;
  5341. this.lastNodeWidth = nodeWidth;
  5342. // add 4px gap for each side to get better performance
  5343. this.scale = nodeWidth - 8 < childrenWidth ? (nodeWidth - 8) / childrenWidth : 1;
  5344. },
  5345. handleImgLoadError: function handleImgLoadError() {
  5346. var loadError = this.$props.loadError;
  5347. var errorFlag = loadError ? loadError() : undefined;
  5348. if (errorFlag !== false) {
  5349. this.isImgExist = false;
  5350. }
  5351. }
  5352. },
  5353. render: function render() {
  5354. var _sizeCls, _extends3;
  5355. var h = arguments[0];
  5356. var _$props = this.$props,
  5357. customizePrefixCls = _$props.prefixCls,
  5358. shape = _$props.shape,
  5359. size = _$props.size,
  5360. src = _$props.src,
  5361. alt = _$props.alt,
  5362. srcSet = _$props.srcSet;
  5363. var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'icon');
  5364. var getPrefixCls = this.configProvider.getPrefixCls;
  5365. var prefixCls = getPrefixCls('avatar', customizePrefixCls);
  5366. var _$data = this.$data,
  5367. isImgExist = _$data.isImgExist,
  5368. scale = _$data.scale,
  5369. isMounted = _$data.isMounted;
  5370. var sizeCls = (_sizeCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_sizeCls, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_sizeCls, prefixCls + '-sm', size === 'small'), _sizeCls);
  5371. var classString = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, prefixCls, true), sizeCls, (_extends3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends3, prefixCls + '-' + shape, shape), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends3, prefixCls + '-image', src && isImgExist), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends3, prefixCls + '-icon', icon), _extends3));
  5372. var sizeStyle = typeof size === 'number' ? {
  5373. width: size + 'px',
  5374. height: size + 'px',
  5375. lineHeight: size + 'px',
  5376. fontSize: icon ? size / 2 + 'px' : '18px'
  5377. } : {};
  5378. var children = this.$slots['default'];
  5379. if (src && isImgExist) {
  5380. children = h('img', {
  5381. attrs: { src: src, srcSet: srcSet, alt: alt },
  5382. on: {
  5383. 'error': this.handleImgLoadError
  5384. }
  5385. });
  5386. } else if (icon) {
  5387. if (typeof icon === 'string') {
  5388. children = h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
  5389. attrs: { type: icon }
  5390. });
  5391. } else {
  5392. children = icon;
  5393. }
  5394. } else {
  5395. var childrenNode = this.$refs.avatarChildren;
  5396. if (childrenNode || scale !== 1) {
  5397. var transformString = 'scale(' + scale + ') translateX(-50%)';
  5398. var childrenStyle = {
  5399. msTransform: transformString,
  5400. WebkitTransform: transformString,
  5401. transform: transformString
  5402. };
  5403. var sizeChildrenStyle = typeof size === 'number' ? {
  5404. lineHeight: size + 'px'
  5405. } : {};
  5406. children = h(
  5407. 'span',
  5408. {
  5409. 'class': prefixCls + '-string',
  5410. ref: 'avatarChildren',
  5411. style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, sizeChildrenStyle, childrenStyle)
  5412. },
  5413. [children]
  5414. );
  5415. } else {
  5416. var _childrenStyle = {};
  5417. if (!isMounted) {
  5418. _childrenStyle.opacity = 0;
  5419. }
  5420. children = h(
  5421. 'span',
  5422. { 'class': prefixCls + '-string', ref: 'avatarChildren', style: { opacity: 0 } },
  5423. [children]
  5424. );
  5425. }
  5426. }
  5427. return h(
  5428. 'span',
  5429. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ ref: 'avatarNode' }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), 'class': classString, style: sizeStyle }]),
  5430. [children]
  5431. );
  5432. }
  5433. });
  5434. /***/ }),
  5435. /***/ "./components/avatar/index.js":
  5436. /*!************************************!*\
  5437. !*** ./components/avatar/index.js ***!
  5438. \************************************/
  5439. /*! exports provided: default */
  5440. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5441. "use strict";
  5442. __webpack_require__.r(__webpack_exports__);
  5443. /* harmony import */ var _Avatar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Avatar */ "./components/avatar/Avatar.jsx");
  5444. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  5445. /* istanbul ignore next */
  5446. _Avatar__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  5447. Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
  5448. Vue.component(_Avatar__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Avatar__WEBPACK_IMPORTED_MODULE_0__["default"]);
  5449. };
  5450. /* harmony default export */ __webpack_exports__["default"] = (_Avatar__WEBPACK_IMPORTED_MODULE_0__["default"]);
  5451. /***/ }),
  5452. /***/ "./components/avatar/style/index.js":
  5453. /*!******************************************!*\
  5454. !*** ./components/avatar/style/index.js ***!
  5455. \******************************************/
  5456. /*! no exports provided */
  5457. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5458. "use strict";
  5459. __webpack_require__.r(__webpack_exports__);
  5460. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  5461. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  5462. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/avatar/style/index.less");
  5463. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  5464. /***/ }),
  5465. /***/ "./components/avatar/style/index.less":
  5466. /*!********************************************!*\
  5467. !*** ./components/avatar/style/index.less ***!
  5468. \********************************************/
  5469. /*! no static exports found */
  5470. /***/ (function(module, exports, __webpack_require__) {
  5471. // extracted by mini-css-extract-plugin
  5472. /***/ }),
  5473. /***/ "./components/back-top/index.jsx":
  5474. /*!***************************************!*\
  5475. !*** ./components/back-top/index.jsx ***!
  5476. \***************************************/
  5477. /*! exports provided: default */
  5478. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5479. "use strict";
  5480. __webpack_require__.r(__webpack_exports__);
  5481. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  5482. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  5483. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  5484. /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
  5485. /* harmony import */ var _util_getScroll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/getScroll */ "./components/_util/getScroll.js");
  5486. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  5487. /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
  5488. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  5489. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  5490. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  5491. /* harmony import */ var _util_scrollTo__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/scrollTo */ "./components/_util/scrollTo.js");
  5492. function getDefaultTarget() {
  5493. return window;
  5494. }
  5495. var BackTopProps = {
  5496. visibilityHeight: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  5497. // onClick?: React.MouseEventHandler<any>;
  5498. target: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  5499. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
  5500. // visible: PropTypes.bool, // Only for test. Don't use it.
  5501. };
  5502. var BackTop = {
  5503. name: 'ABackTop',
  5504. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  5505. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, BackTopProps, {
  5506. visibilityHeight: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number.def(400)
  5507. }),
  5508. inject: {
  5509. configProvider: { 'default': function _default() {
  5510. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
  5511. } }
  5512. },
  5513. data: function data() {
  5514. this.scrollEvent = null;
  5515. return {
  5516. visible: false
  5517. };
  5518. },
  5519. mounted: function mounted() {
  5520. var _this = this;
  5521. this.$nextTick(function () {
  5522. var getTarget = _this.target || getDefaultTarget;
  5523. _this.scrollEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__["default"])(getTarget(), 'scroll', _this.handleScroll);
  5524. _this.handleScroll();
  5525. });
  5526. },
  5527. activated: function activated() {
  5528. var _this2 = this;
  5529. this.$nextTick(function () {
  5530. _this2.handleScroll();
  5531. });
  5532. },
  5533. beforeDestroy: function beforeDestroy() {
  5534. if (this.scrollEvent) {
  5535. this.scrollEvent.remove();
  5536. }
  5537. },
  5538. methods: {
  5539. getCurrentScrollTop: function getCurrentScrollTop() {
  5540. var getTarget = this.target || getDefaultTarget;
  5541. var targetNode = getTarget();
  5542. if (targetNode === window) {
  5543. return window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;
  5544. }
  5545. return targetNode.scrollTop;
  5546. },
  5547. scrollToTop: function scrollToTop(e) {
  5548. var _target = this.target,
  5549. target = _target === undefined ? getDefaultTarget : _target;
  5550. Object(_util_scrollTo__WEBPACK_IMPORTED_MODULE_9__["default"])(0, {
  5551. getContainer: target
  5552. });
  5553. this.$emit('click', e);
  5554. },
  5555. handleScroll: function handleScroll() {
  5556. var visibilityHeight = this.visibilityHeight,
  5557. _target2 = this.target,
  5558. target = _target2 === undefined ? getDefaultTarget : _target2;
  5559. var scrollTop = Object(_util_getScroll__WEBPACK_IMPORTED_MODULE_3__["default"])(target(), true);
  5560. this.setState({
  5561. visible: scrollTop > visibilityHeight
  5562. });
  5563. }
  5564. },
  5565. render: function render() {
  5566. var h = arguments[0];
  5567. var customizePrefixCls = this.prefixCls,
  5568. $slots = this.$slots;
  5569. var getPrefixCls = this.configProvider.getPrefixCls;
  5570. var prefixCls = getPrefixCls('back-top', customizePrefixCls);
  5571. var defaultElement = h(
  5572. 'div',
  5573. { 'class': prefixCls + '-content' },
  5574. [h('div', { 'class': prefixCls + '-icon' })]
  5575. );
  5576. var divProps = {
  5577. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this), {
  5578. click: this.scrollToTop
  5579. }),
  5580. 'class': prefixCls
  5581. };
  5582. var backTopBtn = this.visible ? h(
  5583. 'div',
  5584. divProps,
  5585. [$slots['default'] || defaultElement]
  5586. ) : null;
  5587. var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__["default"])('fade');
  5588. return h(
  5589. 'transition',
  5590. transitionProps,
  5591. [backTopBtn]
  5592. );
  5593. }
  5594. };
  5595. /* istanbul ignore next */
  5596. BackTop.install = function (Vue) {
  5597. Vue.use(_base__WEBPACK_IMPORTED_MODULE_7__["default"]);
  5598. Vue.component(BackTop.name, BackTop);
  5599. };
  5600. /* harmony default export */ __webpack_exports__["default"] = (BackTop);
  5601. /***/ }),
  5602. /***/ "./components/back-top/style/index.js":
  5603. /*!********************************************!*\
  5604. !*** ./components/back-top/style/index.js ***!
  5605. \********************************************/
  5606. /*! no exports provided */
  5607. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5608. "use strict";
  5609. __webpack_require__.r(__webpack_exports__);
  5610. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  5611. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  5612. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/back-top/style/index.less");
  5613. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  5614. /***/ }),
  5615. /***/ "./components/back-top/style/index.less":
  5616. /*!**********************************************!*\
  5617. !*** ./components/back-top/style/index.less ***!
  5618. \**********************************************/
  5619. /*! no static exports found */
  5620. /***/ (function(module, exports, __webpack_require__) {
  5621. // extracted by mini-css-extract-plugin
  5622. /***/ }),
  5623. /***/ "./components/badge/Badge.jsx":
  5624. /*!************************************!*\
  5625. !*** ./components/badge/Badge.jsx ***!
  5626. \************************************/
  5627. /*! exports provided: default */
  5628. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5629. "use strict";
  5630. __webpack_require__.r(__webpack_exports__);
  5631. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  5632. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  5633. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  5634. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
  5635. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  5636. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  5637. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  5638. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
  5639. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  5640. /* harmony import */ var _ScrollNumber__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ScrollNumber */ "./components/badge/ScrollNumber.jsx");
  5641. /* harmony import */ var _util_colors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/colors */ "./components/_util/colors.js");
  5642. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  5643. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
  5644. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  5645. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  5646. /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
  5647. /* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/isNumeric */ "./components/_util/isNumeric.js");
  5648. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  5649. var BadgeProps = {
  5650. /** Number to show in badge */
  5651. count: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  5652. showZero: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  5653. /** Max count to show */
  5654. overflowCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  5655. /** whether to show red dot without number */
  5656. dot: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  5657. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  5658. scrollNumberPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  5659. status: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['success', 'processing', 'default', 'error', 'warning']),
  5660. color: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  5661. text: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  5662. offset: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
  5663. numberStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
  5664. return {};
  5665. }),
  5666. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string
  5667. };
  5668. function isPresetColor(color) {
  5669. return _util_colors__WEBPACK_IMPORTED_MODULE_6__["PresetColorTypes"].indexOf(color) !== -1;
  5670. }
  5671. /* harmony default export */ __webpack_exports__["default"] = ({
  5672. name: 'ABadge',
  5673. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["initDefaultProps"])(BadgeProps, {
  5674. showZero: false,
  5675. dot: false,
  5676. overflowCount: 99
  5677. }),
  5678. inject: {
  5679. configProvider: { 'default': function _default() {
  5680. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
  5681. } }
  5682. },
  5683. methods: {
  5684. getNumberedDispayCount: function getNumberedDispayCount() {
  5685. var overflowCount = this.$props.overflowCount;
  5686. var count = this.badgeCount;
  5687. var displayCount = count > overflowCount ? overflowCount + '+' : count;
  5688. return displayCount;
  5689. },
  5690. getDispayCount: function getDispayCount() {
  5691. var isDot = this.isDot();
  5692. // dot mode don't need count
  5693. if (isDot) {
  5694. return '';
  5695. }
  5696. return this.getNumberedDispayCount();
  5697. },
  5698. getScrollNumberTitle: function getScrollNumberTitle() {
  5699. var title = this.$props.title;
  5700. var count = this.badgeCount;
  5701. if (title) {
  5702. return title;
  5703. }
  5704. return typeof count === 'string' || typeof count === 'number' ? count : undefined;
  5705. },
  5706. getStyleWithOffset: function getStyleWithOffset() {
  5707. var _$props = this.$props,
  5708. offset = _$props.offset,
  5709. numberStyle = _$props.numberStyle;
  5710. return offset ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
  5711. right: -parseInt(offset[0], 10) + 'px',
  5712. marginTop: Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_11__["default"])(offset[1]) ? offset[1] + 'px' : offset[1]
  5713. }, numberStyle) : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, numberStyle);
  5714. },
  5715. getBadgeClassName: function getBadgeClassName(prefixCls) {
  5716. var _classNames;
  5717. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["filterEmpty"])(this.$slots['default']);
  5718. var hasStatus = this.hasStatus();
  5719. return classnames__WEBPACK_IMPORTED_MODULE_7___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-status', hasStatus), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-dot-status', hasStatus && this.dot && !this.isZero()), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-not-a-wrapper', !children.length), _classNames));
  5720. },
  5721. hasStatus: function hasStatus() {
  5722. var _$props2 = this.$props,
  5723. status = _$props2.status,
  5724. color = _$props2.color;
  5725. return !!status || !!color;
  5726. },
  5727. isZero: function isZero() {
  5728. var numberedDispayCount = this.getNumberedDispayCount();
  5729. return numberedDispayCount === '0' || numberedDispayCount === 0;
  5730. },
  5731. isDot: function isDot() {
  5732. var dot = this.$props.dot;
  5733. var isZero = this.isZero();
  5734. return dot && !isZero || this.hasStatus();
  5735. },
  5736. isHidden: function isHidden() {
  5737. var showZero = this.$props.showZero;
  5738. var displayCount = this.getDispayCount();
  5739. var isZero = this.isZero();
  5740. var isDot = this.isDot();
  5741. var isEmpty = displayCount === null || displayCount === undefined || displayCount === '';
  5742. return (isEmpty || isZero && !showZero) && !isDot;
  5743. },
  5744. renderStatusText: function renderStatusText(prefixCls) {
  5745. var h = this.$createElement;
  5746. var text = this.$props.text;
  5747. var hidden = this.isHidden();
  5748. return hidden || !text ? null : h(
  5749. 'span',
  5750. { 'class': prefixCls + '-status-text' },
  5751. [text]
  5752. );
  5753. },
  5754. renderDispayComponent: function renderDispayComponent() {
  5755. var count = this.badgeCount;
  5756. var customNode = count;
  5757. if (!customNode || (typeof customNode === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(customNode)) !== 'object') {
  5758. return undefined;
  5759. }
  5760. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_9__["cloneElement"])(customNode, {
  5761. style: this.getStyleWithOffset()
  5762. });
  5763. },
  5764. renderBadgeNumber: function renderBadgeNumber(prefixCls, scrollNumberPrefixCls) {
  5765. var _scrollNumberCls;
  5766. var h = this.$createElement;
  5767. var _$props3 = this.$props,
  5768. status = _$props3.status,
  5769. color = _$props3.color;
  5770. var count = this.badgeCount;
  5771. var displayCount = this.getDispayCount();
  5772. var isDot = this.isDot();
  5773. var hidden = this.isHidden();
  5774. var scrollNumberCls = (_scrollNumberCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-dot', isDot), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-count', !isDot), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-multiple-words', !isDot && count && count.toString && count.toString().length > 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-status-' + status, !!status), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-status-' + color, isPresetColor(color)), _scrollNumberCls);
  5775. var statusStyle = this.getStyleWithOffset();
  5776. if (color && !isPresetColor(color)) {
  5777. statusStyle = statusStyle || {};
  5778. statusStyle.background = color;
  5779. }
  5780. return hidden ? null : h(_ScrollNumber__WEBPACK_IMPORTED_MODULE_5__["default"], {
  5781. attrs: {
  5782. prefixCls: scrollNumberPrefixCls,
  5783. 'data-show': !hidden,
  5784. className: scrollNumberCls,
  5785. count: displayCount,
  5786. displayComponent: this.renderDispayComponent() // <Badge status="success" count={<Icon type="xxx" />}></Badge>
  5787. , title: this.getScrollNumberTitle()
  5788. },
  5789. directives: [{
  5790. name: 'show',
  5791. value: !hidden
  5792. }],
  5793. style: statusStyle,
  5794. key: 'scrollNumber'
  5795. });
  5796. }
  5797. },
  5798. render: function render() {
  5799. var _classNames2;
  5800. var h = arguments[0];
  5801. var customizePrefixCls = this.prefixCls,
  5802. customizeScrollNumberPrefixCls = this.scrollNumberPrefixCls,
  5803. status = this.status,
  5804. text = this.text,
  5805. color = this.color,
  5806. $slots = this.$slots;
  5807. var getPrefixCls = this.configProvider.getPrefixCls;
  5808. var prefixCls = getPrefixCls('badge', customizePrefixCls);
  5809. var scrollNumberPrefixCls = getPrefixCls('scroll-number', customizeScrollNumberPrefixCls);
  5810. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["filterEmpty"])($slots['default']);
  5811. var count = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'count');
  5812. if (Array.isArray(count)) {
  5813. count = count[0];
  5814. }
  5815. this.badgeCount = count;
  5816. var scrollNumber = this.renderBadgeNumber(prefixCls, scrollNumberPrefixCls);
  5817. var statusText = this.renderStatusText(prefixCls);
  5818. var statusCls = classnames__WEBPACK_IMPORTED_MODULE_7___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-status-dot', this.hasStatus()), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-status-' + status, !!status), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-status-' + color, isPresetColor(color)), _classNames2));
  5819. var statusStyle = {};
  5820. if (color && !isPresetColor(color)) {
  5821. statusStyle.background = color;
  5822. }
  5823. // <Badge status="success" />
  5824. if (!children.length && this.hasStatus()) {
  5825. var styleWithOffset = this.getStyleWithOffset();
  5826. var statusTextColor = styleWithOffset && styleWithOffset.color;
  5827. return h(
  5828. 'span',
  5829. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this) }, {
  5830. 'class': this.getBadgeClassName(prefixCls),
  5831. style: styleWithOffset
  5832. }]),
  5833. [h('span', { 'class': statusCls, style: statusStyle }), h(
  5834. 'span',
  5835. { style: { color: statusTextColor }, 'class': prefixCls + '-status-text' },
  5836. [text]
  5837. )]
  5838. );
  5839. }
  5840. var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_10__["default"])(children.length ? prefixCls + '-zoom' : '');
  5841. return h(
  5842. 'span',
  5843. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this) }, { 'class': this.getBadgeClassName(prefixCls) }]),
  5844. [children, h(
  5845. 'transition',
  5846. transitionProps,
  5847. [scrollNumber]
  5848. ), statusText]
  5849. );
  5850. }
  5851. });
  5852. /***/ }),
  5853. /***/ "./components/badge/ScrollNumber.jsx":
  5854. /*!*******************************************!*\
  5855. !*** ./components/badge/ScrollNumber.jsx ***!
  5856. \*******************************************/
  5857. /*! exports provided: default */
  5858. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5859. "use strict";
  5860. __webpack_require__.r(__webpack_exports__);
  5861. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  5862. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  5863. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  5864. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
  5865. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  5866. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  5867. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  5868. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  5869. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  5870. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  5871. function getNumberArray(num) {
  5872. return num ? num.toString().split('').reverse().map(function (i) {
  5873. var current = Number(i);
  5874. return isNaN(current) ? i : current;
  5875. }) : [];
  5876. }
  5877. var ScrollNumberProps = {
  5878. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  5879. count: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  5880. component: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  5881. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, null]),
  5882. displayComponent: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  5883. className: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object
  5884. };
  5885. /* harmony default export */ __webpack_exports__["default"] = ({
  5886. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  5887. props: ScrollNumberProps,
  5888. inject: {
  5889. configProvider: { 'default': function _default() {
  5890. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
  5891. } }
  5892. },
  5893. data: function data() {
  5894. return {
  5895. animateStarted: true,
  5896. sCount: this.count
  5897. };
  5898. },
  5899. watch: {
  5900. count: function count() {
  5901. this.lastCount = this.sCount;
  5902. this.setState({
  5903. animateStarted: true
  5904. });
  5905. }
  5906. },
  5907. updated: function updated() {
  5908. var _this = this;
  5909. var animateStarted = this.animateStarted,
  5910. count = this.count;
  5911. if (animateStarted) {
  5912. this.clearTimeout();
  5913. // Let browser has time to reset the scroller before actually
  5914. // performing the transition.
  5915. this.timeout = setTimeout(function () {
  5916. _this.setState({
  5917. animateStarted: false,
  5918. sCount: count
  5919. }, _this.onAnimated);
  5920. });
  5921. }
  5922. },
  5923. beforeDestroy: function beforeDestroy() {
  5924. this.clearTimeout();
  5925. },
  5926. methods: {
  5927. clearTimeout: function (_clearTimeout) {
  5928. function clearTimeout() {
  5929. return _clearTimeout.apply(this, arguments);
  5930. }
  5931. clearTimeout.toString = function () {
  5932. return _clearTimeout.toString();
  5933. };
  5934. return clearTimeout;
  5935. }(function () {
  5936. if (this.timeout) {
  5937. clearTimeout(this.timeout);
  5938. this.timeout = undefined;
  5939. }
  5940. }),
  5941. getPositionByNum: function getPositionByNum(num, i) {
  5942. var sCount = this.sCount;
  5943. var currentCount = Math.abs(Number(sCount));
  5944. var lastCount = Math.abs(Number(this.lastCount));
  5945. var currentDigit = Math.abs(getNumberArray(sCount)[i]);
  5946. var lastDigit = Math.abs(getNumberArray(this.lastCount)[i]);
  5947. if (this.animateStarted) {
  5948. return 10 + num;
  5949. }
  5950. // 同方向则在同一侧切换数字
  5951. if (currentCount > lastCount) {
  5952. if (currentDigit >= lastDigit) {
  5953. return 10 + num;
  5954. }
  5955. return 20 + num;
  5956. }
  5957. if (currentDigit <= lastDigit) {
  5958. return 10 + num;
  5959. }
  5960. return num;
  5961. },
  5962. onAnimated: function onAnimated() {
  5963. this.$emit('animated');
  5964. },
  5965. renderNumberList: function renderNumberList(position, className) {
  5966. var h = this.$createElement;
  5967. var childrenToReturn = [];
  5968. for (var i = 0; i < 30; i++) {
  5969. childrenToReturn.push(h(
  5970. 'p',
  5971. {
  5972. key: i.toString(),
  5973. 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, {
  5974. current: position === i
  5975. })
  5976. },
  5977. [i % 10]
  5978. ));
  5979. }
  5980. return childrenToReturn;
  5981. },
  5982. renderCurrentNumber: function renderCurrentNumber(prefixCls, num, i) {
  5983. var h = this.$createElement;
  5984. if (typeof num === 'number') {
  5985. var position = this.getPositionByNum(num, i);
  5986. var removeTransition = this.animateStarted || getNumberArray(this.lastCount)[i] === undefined;
  5987. var style = {
  5988. transition: removeTransition ? 'none' : undefined,
  5989. msTransform: 'translateY(' + -position * 100 + '%)',
  5990. WebkitTransform: 'translateY(' + -position * 100 + '%)',
  5991. transform: 'translateY(' + -position * 100 + '%)'
  5992. };
  5993. return h(
  5994. 'span',
  5995. { 'class': prefixCls + '-only', style: style, key: i },
  5996. [this.renderNumberList(position, prefixCls + '-only-unit')]
  5997. );
  5998. }
  5999. return h(
  6000. 'span',
  6001. { key: 'symbol', 'class': prefixCls + '-symbol' },
  6002. [num]
  6003. );
  6004. },
  6005. renderNumberElement: function renderNumberElement(prefixCls) {
  6006. var _this2 = this;
  6007. var sCount = this.sCount;
  6008. if (sCount && Number(sCount) % 1 === 0) {
  6009. return getNumberArray(sCount).map(function (num, i) {
  6010. return _this2.renderCurrentNumber(prefixCls, num, i);
  6011. }).reverse();
  6012. }
  6013. return sCount;
  6014. }
  6015. },
  6016. render: function render() {
  6017. var h = arguments[0];
  6018. var customizePrefixCls = this.prefixCls,
  6019. title = this.title,
  6020. _component = this.component,
  6021. Tag = _component === undefined ? 'sup' : _component,
  6022. displayComponent = this.displayComponent,
  6023. className = this.className;
  6024. var getPrefixCls = this.configProvider.getPrefixCls;
  6025. var prefixCls = getPrefixCls('scroll-number', customizePrefixCls);
  6026. if (displayComponent) {
  6027. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(displayComponent, {
  6028. 'class': prefixCls + '-custom-component'
  6029. });
  6030. }
  6031. var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getStyle"])(this, true);
  6032. // fix https://fb.me/react-unknown-prop
  6033. var restProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(this.$props, ['count', 'component', 'prefixCls', 'displayComponent']);
  6034. var newProps = {
  6035. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps),
  6036. attrs: {
  6037. title: title
  6038. },
  6039. style: style,
  6040. 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, className)
  6041. };
  6042. // allow specify the border
  6043. // mock border-color by box-shadow for compatible with old usage:
  6044. // <Badge count={4} style={{ backgroundColor: '#fff', color: '#999', borderColor: '#d9d9d9' }} />
  6045. if (style && style.borderColor) {
  6046. newProps.style.boxShadow = '0 0 0 1px ' + style.borderColor + ' inset';
  6047. }
  6048. return h(
  6049. Tag,
  6050. newProps,
  6051. [this.renderNumberElement(prefixCls)]
  6052. );
  6053. }
  6054. });
  6055. /***/ }),
  6056. /***/ "./components/badge/index.js":
  6057. /*!***********************************!*\
  6058. !*** ./components/badge/index.js ***!
  6059. \***********************************/
  6060. /*! exports provided: default */
  6061. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6062. "use strict";
  6063. __webpack_require__.r(__webpack_exports__);
  6064. /* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Badge */ "./components/badge/Badge.jsx");
  6065. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  6066. /* istanbul ignore next */
  6067. _Badge__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  6068. Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
  6069. Vue.component(_Badge__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Badge__WEBPACK_IMPORTED_MODULE_0__["default"]);
  6070. };
  6071. /* harmony default export */ __webpack_exports__["default"] = (_Badge__WEBPACK_IMPORTED_MODULE_0__["default"]);
  6072. /***/ }),
  6073. /***/ "./components/badge/style/index.js":
  6074. /*!*****************************************!*\
  6075. !*** ./components/badge/style/index.js ***!
  6076. \*****************************************/
  6077. /*! no exports provided */
  6078. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6079. "use strict";
  6080. __webpack_require__.r(__webpack_exports__);
  6081. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  6082. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  6083. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/badge/style/index.less");
  6084. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  6085. /***/ }),
  6086. /***/ "./components/badge/style/index.less":
  6087. /*!*******************************************!*\
  6088. !*** ./components/badge/style/index.less ***!
  6089. \*******************************************/
  6090. /*! no static exports found */
  6091. /***/ (function(module, exports, __webpack_require__) {
  6092. // extracted by mini-css-extract-plugin
  6093. /***/ }),
  6094. /***/ "./components/base/index.js":
  6095. /*!**********************************!*\
  6096. !*** ./components/base/index.js ***!
  6097. \**********************************/
  6098. /*! exports provided: default */
  6099. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6100. "use strict";
  6101. __webpack_require__.r(__webpack_exports__);
  6102. /* harmony import */ var _util_antDirective__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/antDirective */ "./components/_util/antDirective.js");
  6103. var base = {};
  6104. var install = function install(Vue) {
  6105. base.Vue = Vue;
  6106. Vue.use(_util_antDirective__WEBPACK_IMPORTED_MODULE_0__["default"]);
  6107. };
  6108. base.install = install;
  6109. /* harmony default export */ __webpack_exports__["default"] = (base);
  6110. /***/ }),
  6111. /***/ "./components/base/style/index.js":
  6112. /*!****************************************!*\
  6113. !*** ./components/base/style/index.js ***!
  6114. \****************************************/
  6115. /*! no exports provided */
  6116. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6117. "use strict";
  6118. __webpack_require__.r(__webpack_exports__);
  6119. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  6120. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  6121. // empty file prevent babel-plugin-import error
  6122. /***/ }),
  6123. /***/ "./components/breadcrumb/Breadcrumb.jsx":
  6124. /*!**********************************************!*\
  6125. !*** ./components/breadcrumb/Breadcrumb.jsx ***!
  6126. \**********************************************/
  6127. /*! exports provided: default */
  6128. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6129. "use strict";
  6130. __webpack_require__.r(__webpack_exports__);
  6131. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  6132. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  6133. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  6134. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  6135. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  6136. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  6137. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  6138. /* harmony import */ var _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BreadcrumbItem */ "./components/breadcrumb/BreadcrumbItem.jsx");
  6139. /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../menu */ "./components/menu/index.jsx");
  6140. var Route = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
  6141. path: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  6142. breadcrumbName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  6143. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
  6144. }).loose;
  6145. var BreadcrumbProps = {
  6146. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  6147. routes: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(Route),
  6148. params: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  6149. separator: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  6150. itemRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  6151. };
  6152. function getBreadcrumbName(route, params) {
  6153. if (!route.breadcrumbName) {
  6154. return null;
  6155. }
  6156. var paramsKeys = Object.keys(params).join('|');
  6157. var name = route.breadcrumbName.replace(new RegExp(':(' + paramsKeys + ')', 'g'), function (replacement, key) {
  6158. return params[key] || replacement;
  6159. });
  6160. return name;
  6161. }
  6162. /* harmony default export */ __webpack_exports__["default"] = ({
  6163. name: 'ABreadcrumb',
  6164. props: BreadcrumbProps,
  6165. inject: {
  6166. configProvider: { 'default': function _default() {
  6167. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
  6168. } }
  6169. },
  6170. methods: {
  6171. defaultItemRender: function defaultItemRender(_ref) {
  6172. var route = _ref.route,
  6173. params = _ref.params,
  6174. routes = _ref.routes,
  6175. paths = _ref.paths;
  6176. var h = this.$createElement;
  6177. var isLastItem = routes.indexOf(route) === routes.length - 1;
  6178. var name = getBreadcrumbName(route, params);
  6179. return isLastItem ? h('span', [name]) : h(
  6180. 'a',
  6181. {
  6182. attrs: { href: '#/' + paths.join('/') }
  6183. },
  6184. [name]
  6185. );
  6186. },
  6187. getPath: function getPath(path, params) {
  6188. path = (path || '').replace(/^\//, '');
  6189. Object.keys(params).forEach(function (key) {
  6190. path = path.replace(':' + key, params[key]);
  6191. });
  6192. return path;
  6193. },
  6194. addChildPath: function addChildPath(paths, childPath, params) {
  6195. var originalPaths = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(paths));
  6196. var path = this.getPath(childPath, params);
  6197. if (path) {
  6198. originalPaths.push(path);
  6199. }
  6200. return originalPaths;
  6201. },
  6202. genForRoutes: function genForRoutes(_ref2) {
  6203. var _this = this;
  6204. var _ref2$routes = _ref2.routes,
  6205. routes = _ref2$routes === undefined ? [] : _ref2$routes,
  6206. _ref2$params = _ref2.params,
  6207. params = _ref2$params === undefined ? {} : _ref2$params,
  6208. separator = _ref2.separator,
  6209. _ref2$itemRender = _ref2.itemRender,
  6210. itemRender = _ref2$itemRender === undefined ? this.defaultItemRender : _ref2$itemRender;
  6211. var h = this.$createElement;
  6212. var paths = [];
  6213. return routes.map(function (route) {
  6214. var path = _this.getPath(route.path, params);
  6215. if (path) {
  6216. paths.push(path);
  6217. }
  6218. // generated overlay by route.children
  6219. var overlay = null;
  6220. if (route.children && route.children.length) {
  6221. overlay = h(_menu__WEBPACK_IMPORTED_MODULE_7__["default"], [route.children.map(function (child) {
  6222. return h(
  6223. _menu__WEBPACK_IMPORTED_MODULE_7__["default"].Item,
  6224. { key: child.path || child.breadcrumbName },
  6225. [itemRender({
  6226. route: child,
  6227. params: params,
  6228. routes: routes,
  6229. paths: _this.addChildPath(paths, child.path, params),
  6230. h: _this.$createElement
  6231. })]
  6232. );
  6233. })]);
  6234. }
  6235. return h(
  6236. _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_6__["default"],
  6237. {
  6238. attrs: {
  6239. overlay: overlay,
  6240. separator: separator
  6241. },
  6242. key: path || route.breadcrumbName
  6243. },
  6244. [itemRender({ route: route, params: params, routes: routes, paths: paths, h: _this.$createElement })]
  6245. );
  6246. });
  6247. }
  6248. },
  6249. render: function render() {
  6250. var h = arguments[0];
  6251. var crumbs = void 0;
  6252. var customizePrefixCls = this.prefixCls,
  6253. routes = this.routes,
  6254. _params = this.params,
  6255. params = _params === undefined ? {} : _params,
  6256. $slots = this.$slots,
  6257. $scopedSlots = this.$scopedSlots;
  6258. var getPrefixCls = this.configProvider.getPrefixCls;
  6259. var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
  6260. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["filterEmpty"])($slots['default']);
  6261. var separator = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'separator');
  6262. var itemRender = this.itemRender || $scopedSlots.itemRender || this.defaultItemRender;
  6263. if (routes && routes.length > 0) {
  6264. // generated by route
  6265. crumbs = this.genForRoutes({
  6266. routes: routes,
  6267. params: params,
  6268. separator: separator,
  6269. itemRender: itemRender
  6270. });
  6271. } else if (children.length) {
  6272. crumbs = children.map(function (element, index) {
  6273. Object(_util_warning__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getSlotOptions"])(element).__ANT_BREADCRUMB_ITEM || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getSlotOptions"])(element).__ANT_BREADCRUMB_SEPARATOR, 'Breadcrumb', "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children");
  6274. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(element, {
  6275. props: { separator: separator },
  6276. key: index
  6277. });
  6278. });
  6279. }
  6280. return h(
  6281. 'div',
  6282. { 'class': prefixCls },
  6283. [crumbs]
  6284. );
  6285. }
  6286. });
  6287. /***/ }),
  6288. /***/ "./components/breadcrumb/BreadcrumbItem.jsx":
  6289. /*!**************************************************!*\
  6290. !*** ./components/breadcrumb/BreadcrumbItem.jsx ***!
  6291. \**************************************************/
  6292. /*! exports provided: default */
  6293. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6294. "use strict";
  6295. __webpack_require__.r(__webpack_exports__);
  6296. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  6297. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  6298. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  6299. /* harmony import */ var _dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dropdown/dropdown */ "./components/dropdown/dropdown.jsx");
  6300. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  6301. /* harmony default export */ __webpack_exports__["default"] = ({
  6302. name: 'ABreadcrumbItem',
  6303. __ANT_BREADCRUMB_ITEM: true,
  6304. props: {
  6305. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  6306. href: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  6307. separator: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def('/'),
  6308. overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
  6309. },
  6310. inject: {
  6311. configProvider: { 'default': function _default() {
  6312. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
  6313. } }
  6314. },
  6315. methods: {
  6316. /**
  6317. * if overlay is have
  6318. * Wrap a DropDown
  6319. */
  6320. renderBreadcrumbNode: function renderBreadcrumbNode(breadcrumbItem, prefixCls) {
  6321. var h = this.$createElement;
  6322. var overlay = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'overlay');
  6323. if (overlay) {
  6324. return h(
  6325. _dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"],
  6326. {
  6327. attrs: { overlay: overlay, placement: 'bottomCenter' }
  6328. },
  6329. [h(
  6330. 'span',
  6331. { 'class': prefixCls + '-overlay-link' },
  6332. [breadcrumbItem, h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
  6333. attrs: { type: 'down' }
  6334. })]
  6335. )]
  6336. );
  6337. }
  6338. return breadcrumbItem;
  6339. }
  6340. },
  6341. render: function render() {
  6342. var h = arguments[0];
  6343. var customizePrefixCls = this.prefixCls,
  6344. $slots = this.$slots;
  6345. var getPrefixCls = this.configProvider.getPrefixCls;
  6346. var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
  6347. var separator = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'separator');
  6348. var children = $slots['default'];
  6349. var link = void 0;
  6350. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["hasProp"])(this, 'href')) {
  6351. link = h(
  6352. 'a',
  6353. { 'class': prefixCls + '-link' },
  6354. [children]
  6355. );
  6356. } else {
  6357. link = h(
  6358. 'span',
  6359. { 'class': prefixCls + '-link' },
  6360. [children]
  6361. );
  6362. }
  6363. // wrap to dropDown
  6364. link = this.renderBreadcrumbNode(link, prefixCls);
  6365. if (children) {
  6366. return h('span', [link, separator && separator !== '' && h(
  6367. 'span',
  6368. { 'class': prefixCls + '-separator' },
  6369. [separator]
  6370. )]);
  6371. }
  6372. return null;
  6373. }
  6374. });
  6375. /***/ }),
  6376. /***/ "./components/breadcrumb/BreadcrumbSeparator.jsx":
  6377. /*!*******************************************************!*\
  6378. !*** ./components/breadcrumb/BreadcrumbSeparator.jsx ***!
  6379. \*******************************************************/
  6380. /*! exports provided: default */
  6381. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6382. "use strict";
  6383. __webpack_require__.r(__webpack_exports__);
  6384. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  6385. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  6386. /* harmony default export */ __webpack_exports__["default"] = ({
  6387. name: 'ABreadcrumbSeparator',
  6388. __ANT_BREADCRUMB_SEPARATOR: true,
  6389. props: {
  6390. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
  6391. },
  6392. inject: {
  6393. configProvider: { 'default': function _default() {
  6394. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_0__["ConfigConsumerProps"];
  6395. } }
  6396. },
  6397. render: function render() {
  6398. var h = arguments[0];
  6399. var customizePrefixCls = this.prefixCls,
  6400. $slots = this.$slots;
  6401. var getPrefixCls = this.configProvider.getPrefixCls;
  6402. var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
  6403. var children = $slots['default'];
  6404. return h(
  6405. 'span',
  6406. { 'class': prefixCls + '-separator' },
  6407. [children || '/']
  6408. );
  6409. }
  6410. });
  6411. /***/ }),
  6412. /***/ "./components/breadcrumb/index.js":
  6413. /*!****************************************!*\
  6414. !*** ./components/breadcrumb/index.js ***!
  6415. \****************************************/
  6416. /*! exports provided: default */
  6417. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6418. "use strict";
  6419. __webpack_require__.r(__webpack_exports__);
  6420. /* harmony import */ var _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Breadcrumb */ "./components/breadcrumb/Breadcrumb.jsx");
  6421. /* harmony import */ var _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BreadcrumbItem */ "./components/breadcrumb/BreadcrumbItem.jsx");
  6422. /* harmony import */ var _BreadcrumbSeparator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BreadcrumbSeparator */ "./components/breadcrumb/BreadcrumbSeparator.jsx");
  6423. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  6424. _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"].Item = _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_1__["default"];
  6425. _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"].Separator = _BreadcrumbSeparator__WEBPACK_IMPORTED_MODULE_2__["default"];
  6426. /* istanbul ignore next */
  6427. _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  6428. Vue.use(_base__WEBPACK_IMPORTED_MODULE_3__["default"]);
  6429. Vue.component(_Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"]);
  6430. Vue.component(_BreadcrumbItem__WEBPACK_IMPORTED_MODULE_1__["default"].name, _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_1__["default"]);
  6431. Vue.component(_BreadcrumbSeparator__WEBPACK_IMPORTED_MODULE_2__["default"].name, _BreadcrumbSeparator__WEBPACK_IMPORTED_MODULE_2__["default"]);
  6432. };
  6433. /* harmony default export */ __webpack_exports__["default"] = (_Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"]);
  6434. /***/ }),
  6435. /***/ "./components/breadcrumb/style/index.js":
  6436. /*!**********************************************!*\
  6437. !*** ./components/breadcrumb/style/index.js ***!
  6438. \**********************************************/
  6439. /*! no exports provided */
  6440. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6441. "use strict";
  6442. __webpack_require__.r(__webpack_exports__);
  6443. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  6444. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  6445. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/breadcrumb/style/index.less");
  6446. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  6447. /* harmony import */ var _menu_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../menu/style */ "./components/menu/style/index.js");
  6448. /* harmony import */ var _dropdown_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../dropdown/style */ "./components/dropdown/style/index.js");
  6449. /***/ }),
  6450. /***/ "./components/breadcrumb/style/index.less":
  6451. /*!************************************************!*\
  6452. !*** ./components/breadcrumb/style/index.less ***!
  6453. \************************************************/
  6454. /*! no static exports found */
  6455. /***/ (function(module, exports, __webpack_require__) {
  6456. // extracted by mini-css-extract-plugin
  6457. /***/ }),
  6458. /***/ "./components/button/button-group.jsx":
  6459. /*!********************************************!*\
  6460. !*** ./components/button/button-group.jsx ***!
  6461. \********************************************/
  6462. /*! exports provided: ButtonGroupProps, default */
  6463. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6464. "use strict";
  6465. __webpack_require__.r(__webpack_exports__);
  6466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonGroupProps", function() { return ButtonGroupProps; });
  6467. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  6468. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  6469. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  6470. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  6471. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  6472. var ButtonGroupProps = {
  6473. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  6474. size: {
  6475. validator: function validator(value) {
  6476. return ['small', 'large', 'default'].includes(value);
  6477. }
  6478. }
  6479. };
  6480. /* harmony default export */ __webpack_exports__["default"] = ({
  6481. name: 'AButtonGroup',
  6482. props: ButtonGroupProps,
  6483. inject: {
  6484. configProvider: { 'default': function _default() {
  6485. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
  6486. } }
  6487. },
  6488. data: function data() {
  6489. return {
  6490. sizeMap: {
  6491. large: 'lg',
  6492. small: 'sm'
  6493. }
  6494. };
  6495. },
  6496. render: function render() {
  6497. var _classes;
  6498. var h = arguments[0];
  6499. var customizePrefixCls = this.prefixCls,
  6500. size = this.size,
  6501. $slots = this.$slots;
  6502. var getPrefixCls = this.configProvider.getPrefixCls;
  6503. var prefixCls = getPrefixCls('btn-group', customizePrefixCls);
  6504. // large => lg
  6505. // small => sm
  6506. var sizeCls = '';
  6507. switch (size) {
  6508. case 'large':
  6509. sizeCls = 'lg';
  6510. break;
  6511. case 'small':
  6512. sizeCls = 'sm';
  6513. break;
  6514. default:
  6515. break;
  6516. }
  6517. var classes = (_classes = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls + '-' + sizeCls, sizeCls), _classes);
  6518. return h(
  6519. 'div',
  6520. { 'class': classes },
  6521. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["filterEmpty"])($slots['default'])]
  6522. );
  6523. }
  6524. });
  6525. /***/ }),
  6526. /***/ "./components/button/button.jsx":
  6527. /*!**************************************!*\
  6528. !*** ./components/button/button.jsx ***!
  6529. \**************************************/
  6530. /*! exports provided: default */
  6531. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6532. "use strict";
  6533. __webpack_require__.r(__webpack_exports__);
  6534. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  6535. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  6536. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  6537. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  6538. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  6539. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  6540. /* harmony import */ var _util_wave__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/wave */ "./components/_util/wave.jsx");
  6541. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  6542. /* harmony import */ var _buttonTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./buttonTypes */ "./components/button/buttonTypes.js");
  6543. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  6544. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  6545. var rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/;
  6546. var isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);
  6547. var props = Object(_buttonTypes__WEBPACK_IMPORTED_MODULE_5__["default"])();
  6548. /* harmony default export */ __webpack_exports__["default"] = ({
  6549. name: 'AButton',
  6550. inheritAttrs: false,
  6551. __ANT_BUTTON: true,
  6552. props: props,
  6553. inject: {
  6554. configProvider: { 'default': function _default() {
  6555. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
  6556. } }
  6557. },
  6558. data: function data() {
  6559. return {
  6560. sizeMap: {
  6561. large: 'lg',
  6562. small: 'sm'
  6563. },
  6564. sLoading: !!this.loading,
  6565. hasTwoCNChar: false
  6566. };
  6567. },
  6568. computed: {
  6569. classes: function classes() {
  6570. var _ref;
  6571. var customizePrefixCls = this.prefixCls,
  6572. type = this.type,
  6573. shape = this.shape,
  6574. size = this.size,
  6575. hasTwoCNChar = this.hasTwoCNChar,
  6576. sLoading = this.sLoading,
  6577. ghost = this.ghost,
  6578. block = this.block,
  6579. icon = this.icon,
  6580. $slots = this.$slots;
  6581. var getPrefixCls = this.configProvider.getPrefixCls;
  6582. var prefixCls = getPrefixCls('btn', customizePrefixCls);
  6583. var autoInsertSpace = this.configProvider.autoInsertSpaceInButton !== false;
  6584. // large => lg
  6585. // small => sm
  6586. var sizeCls = '';
  6587. switch (size) {
  6588. case 'large':
  6589. sizeCls = 'lg';
  6590. break;
  6591. case 'small':
  6592. sizeCls = 'sm';
  6593. break;
  6594. default:
  6595. break;
  6596. }
  6597. var iconType = sLoading ? 'loading' : icon;
  6598. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])($slots['default']);
  6599. return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-' + type, type), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-' + shape, shape), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-' + sizeCls, sizeCls), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-icon-only', children.length === 0 && iconType), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-loading', sLoading), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-background-ghost', ghost || type === 'ghost'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-two-chinese-chars', hasTwoCNChar && autoInsertSpace), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-block', block), _ref;
  6600. }
  6601. },
  6602. watch: {
  6603. loading: function loading(val, preVal) {
  6604. var _this = this;
  6605. if (preVal && typeof preVal !== 'boolean') {
  6606. clearTimeout(this.delayTimeout);
  6607. }
  6608. if (val && typeof val !== 'boolean' && val.delay) {
  6609. this.delayTimeout = setTimeout(function () {
  6610. _this.sLoading = !!val;
  6611. }, val.delay);
  6612. } else {
  6613. this.sLoading = !!val;
  6614. }
  6615. }
  6616. },
  6617. mounted: function mounted() {
  6618. this.fixTwoCNChar();
  6619. },
  6620. updated: function updated() {
  6621. this.fixTwoCNChar();
  6622. },
  6623. beforeDestroy: function beforeDestroy() {
  6624. // if (this.timeout) {
  6625. // clearTimeout(this.timeout)
  6626. // }
  6627. if (this.delayTimeout) {
  6628. clearTimeout(this.delayTimeout);
  6629. }
  6630. },
  6631. methods: {
  6632. fixTwoCNChar: function fixTwoCNChar() {
  6633. // Fix for HOC usage like <FormatMessage />
  6634. var node = this.$refs.buttonNode;
  6635. if (!node) {
  6636. return;
  6637. }
  6638. var buttonText = node.textContent;
  6639. if (this.isNeedInserted() && isTwoCNChar(buttonText)) {
  6640. if (!this.hasTwoCNChar) {
  6641. this.hasTwoCNChar = true;
  6642. }
  6643. } else if (this.hasTwoCNChar) {
  6644. this.hasTwoCNChar = false;
  6645. }
  6646. },
  6647. handleClick: function handleClick(event) {
  6648. var sLoading = this.$data.sLoading;
  6649. if (sLoading) {
  6650. return;
  6651. }
  6652. this.$emit('click', event);
  6653. },
  6654. insertSpace: function insertSpace(child, needInserted) {
  6655. var h = this.$createElement;
  6656. var SPACE = needInserted ? ' ' : '';
  6657. if (typeof child.text === 'string') {
  6658. var text = child.text.trim();
  6659. if (isTwoCNChar(text)) {
  6660. text = text.split('').join(SPACE);
  6661. }
  6662. return h('span', [text]);
  6663. }
  6664. return child;
  6665. },
  6666. isNeedInserted: function isNeedInserted() {
  6667. var $slots = this.$slots,
  6668. type = this.type;
  6669. var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'icon');
  6670. return $slots['default'] && $slots['default'].length === 1 && !icon && type !== 'link';
  6671. }
  6672. },
  6673. render: function render() {
  6674. var _this2 = this;
  6675. var h = arguments[0];
  6676. var type = this.type,
  6677. htmlType = this.htmlType,
  6678. classes = this.classes,
  6679. disabled = this.disabled,
  6680. handleClick = this.handleClick,
  6681. sLoading = this.sLoading,
  6682. $slots = this.$slots,
  6683. $attrs = this.$attrs;
  6684. var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'icon');
  6685. var buttonProps = {
  6686. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, $attrs, {
  6687. disabled: disabled
  6688. }),
  6689. 'class': classes,
  6690. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this), {
  6691. click: handleClick
  6692. })
  6693. };
  6694. var iconType = sLoading ? 'loading' : icon;
  6695. var iconNode = iconType ? h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
  6696. attrs: { type: iconType }
  6697. }) : null;
  6698. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])($slots['default']);
  6699. var autoInsertSpace = this.configProvider.autoInsertSpaceInButton !== false;
  6700. var kids = children.map(function (child) {
  6701. return _this2.insertSpace(child, _this2.isNeedInserted() && autoInsertSpace);
  6702. });
  6703. if ($attrs.href !== undefined) {
  6704. return h(
  6705. 'a',
  6706. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([buttonProps, { ref: 'buttonNode' }]),
  6707. [iconNode, kids]
  6708. );
  6709. }
  6710. var buttonNode = h(
  6711. 'button',
  6712. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([buttonProps, { ref: 'buttonNode', attrs: { type: htmlType || 'button' }
  6713. }]),
  6714. [iconNode, kids]
  6715. );
  6716. if (type === 'link') {
  6717. return buttonNode;
  6718. }
  6719. return h(_util_wave__WEBPACK_IMPORTED_MODULE_3__["default"], [buttonNode]);
  6720. }
  6721. });
  6722. /***/ }),
  6723. /***/ "./components/button/buttonTypes.js":
  6724. /*!******************************************!*\
  6725. !*** ./components/button/buttonTypes.js ***!
  6726. \******************************************/
  6727. /*! exports provided: default */
  6728. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6729. "use strict";
  6730. __webpack_require__.r(__webpack_exports__);
  6731. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  6732. /* harmony default export */ __webpack_exports__["default"] = (function () {
  6733. return {
  6734. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  6735. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  6736. htmlType: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['button', 'submit', 'reset']).def('button'),
  6737. icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  6738. shape: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['circle', 'circle-outline', 'round']),
  6739. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['small', 'large', 'default']).def('default'),
  6740. loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object]),
  6741. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  6742. ghost: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  6743. block: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
  6744. };
  6745. });
  6746. /***/ }),
  6747. /***/ "./components/button/index.js":
  6748. /*!************************************!*\
  6749. !*** ./components/button/index.js ***!
  6750. \************************************/
  6751. /*! exports provided: default */
  6752. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6753. "use strict";
  6754. __webpack_require__.r(__webpack_exports__);
  6755. /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./button */ "./components/button/button.jsx");
  6756. /* harmony import */ var _button_group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./button-group */ "./components/button/button-group.jsx");
  6757. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  6758. _button__WEBPACK_IMPORTED_MODULE_0__["default"].Group = _button_group__WEBPACK_IMPORTED_MODULE_1__["default"];
  6759. /* istanbul ignore next */
  6760. _button__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  6761. Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
  6762. Vue.component(_button__WEBPACK_IMPORTED_MODULE_0__["default"].name, _button__WEBPACK_IMPORTED_MODULE_0__["default"]);
  6763. Vue.component(_button_group__WEBPACK_IMPORTED_MODULE_1__["default"].name, _button_group__WEBPACK_IMPORTED_MODULE_1__["default"]);
  6764. };
  6765. /* harmony default export */ __webpack_exports__["default"] = (_button__WEBPACK_IMPORTED_MODULE_0__["default"]);
  6766. /***/ }),
  6767. /***/ "./components/button/style/index.js":
  6768. /*!******************************************!*\
  6769. !*** ./components/button/style/index.js ***!
  6770. \******************************************/
  6771. /*! no exports provided */
  6772. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6773. "use strict";
  6774. __webpack_require__.r(__webpack_exports__);
  6775. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  6776. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  6777. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/button/style/index.less");
  6778. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  6779. /***/ }),
  6780. /***/ "./components/button/style/index.less":
  6781. /*!********************************************!*\
  6782. !*** ./components/button/style/index.less ***!
  6783. \********************************************/
  6784. /*! no static exports found */
  6785. /***/ (function(module, exports, __webpack_require__) {
  6786. // extracted by mini-css-extract-plugin
  6787. /***/ }),
  6788. /***/ "./components/calendar/Header.jsx":
  6789. /*!****************************************!*\
  6790. !*** ./components/calendar/Header.jsx ***!
  6791. \****************************************/
  6792. /*! exports provided: HeaderProps, default */
  6793. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6794. "use strict";
  6795. __webpack_require__.r(__webpack_exports__);
  6796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderProps", function() { return HeaderProps; });
  6797. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
  6798. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
  6799. /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
  6800. /* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../radio */ "./components/radio/index.js");
  6801. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  6802. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  6803. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  6804. var Option = _select__WEBPACK_IMPORTED_MODULE_1__["default"].Option;
  6805. function getMonthsLocale(value) {
  6806. var current = value.clone();
  6807. var localeData = value.localeData();
  6808. var months = [];
  6809. for (var i = 0; i < 12; i++) {
  6810. current.month(i);
  6811. months.push(localeData.monthsShort(current));
  6812. }
  6813. return months;
  6814. }
  6815. var HeaderProps = {
  6816. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  6817. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  6818. fullscreen: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].boolean,
  6819. yearSelectOffset: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  6820. yearSelectTotal: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  6821. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  6822. // onValueChange: PropTypes.(value: moment.Moment) => void,
  6823. // onTypeChange: PropTypes.(type: string) => void,
  6824. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  6825. validRange: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  6826. headerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func
  6827. };
  6828. /* harmony default export */ __webpack_exports__["default"] = ({
  6829. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(HeaderProps, {
  6830. yearSelectOffset: 10,
  6831. yearSelectTotal: 20
  6832. }),
  6833. inject: {
  6834. configProvider: { 'default': function _default() {
  6835. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
  6836. } }
  6837. },
  6838. // private calenderHeaderNode: HTMLDivElement;
  6839. methods: {
  6840. getYearSelectElement: function getYearSelectElement(prefixCls, year) {
  6841. var _this = this;
  6842. var h = this.$createElement;
  6843. var yearSelectOffset = this.yearSelectOffset,
  6844. yearSelectTotal = this.yearSelectTotal,
  6845. _locale = this.locale,
  6846. locale = _locale === undefined ? {} : _locale,
  6847. fullscreen = this.fullscreen,
  6848. validRange = this.validRange;
  6849. var start = year - yearSelectOffset;
  6850. var end = start + yearSelectTotal;
  6851. if (validRange) {
  6852. start = validRange[0].get('year');
  6853. end = validRange[1].get('year') + 1;
  6854. }
  6855. var suffix = locale.year === '年' ? '年' : '';
  6856. var options = [];
  6857. for (var index = start; index < end; index++) {
  6858. options.push(h(
  6859. Option,
  6860. { key: '' + index },
  6861. [index + suffix]
  6862. ));
  6863. }
  6864. return h(
  6865. _select__WEBPACK_IMPORTED_MODULE_1__["default"],
  6866. {
  6867. attrs: {
  6868. size: fullscreen ? 'default' : 'small',
  6869. dropdownMatchSelectWidth: false,
  6870. value: String(year),
  6871. getPopupContainer: function getPopupContainer() {
  6872. return _this.getCalenderHeaderNode();
  6873. }
  6874. },
  6875. 'class': prefixCls + '-year-select',
  6876. on: {
  6877. 'change': this.onYearChange
  6878. }
  6879. },
  6880. [options]
  6881. );
  6882. },
  6883. getMonthSelectElement: function getMonthSelectElement(prefixCls, month, months) {
  6884. var _this2 = this;
  6885. var h = this.$createElement;
  6886. var fullscreen = this.fullscreen,
  6887. validRange = this.validRange,
  6888. value = this.value;
  6889. var options = [];
  6890. var start = 0;
  6891. var end = 12;
  6892. if (validRange) {
  6893. var _validRange = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(validRange, 2),
  6894. rangeStart = _validRange[0],
  6895. rangeEnd = _validRange[1];
  6896. var currentYear = value.get('year');
  6897. if (rangeEnd.get('year') === currentYear) {
  6898. end = rangeEnd.get('month') + 1;
  6899. }
  6900. if (rangeStart.get('year') === currentYear) {
  6901. start = rangeStart.get('month');
  6902. }
  6903. }
  6904. for (var index = start; index < end; index++) {
  6905. options.push(h(
  6906. Option,
  6907. { key: '' + index },
  6908. [months[index]]
  6909. ));
  6910. }
  6911. return h(
  6912. _select__WEBPACK_IMPORTED_MODULE_1__["default"],
  6913. {
  6914. attrs: {
  6915. size: fullscreen ? 'default' : 'small',
  6916. dropdownMatchSelectWidth: false,
  6917. value: String(month),
  6918. getPopupContainer: function getPopupContainer() {
  6919. return _this2.getCalenderHeaderNode();
  6920. }
  6921. },
  6922. 'class': prefixCls + '-month-select', on: {
  6923. 'change': this.onMonthChange
  6924. }
  6925. },
  6926. [options]
  6927. );
  6928. },
  6929. onYearChange: function onYearChange(year) {
  6930. var value = this.value,
  6931. validRange = this.validRange;
  6932. var newValue = value.clone();
  6933. newValue.year(parseInt(year, 10));
  6934. // switch the month so that it remains within range when year changes
  6935. if (validRange) {
  6936. var _validRange2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(validRange, 2),
  6937. start = _validRange2[0],
  6938. end = _validRange2[1];
  6939. var newYear = newValue.get('year');
  6940. var newMonth = newValue.get('month');
  6941. if (newYear === end.get('year') && newMonth > end.get('month')) {
  6942. newValue.month(end.get('month'));
  6943. }
  6944. if (newYear === start.get('year') && newMonth < start.get('month')) {
  6945. newValue.month(start.get('month'));
  6946. }
  6947. }
  6948. this.$emit('valueChange', newValue);
  6949. },
  6950. onMonthChange: function onMonthChange(month) {
  6951. var newValue = this.value.clone();
  6952. newValue.month(parseInt(month, 10));
  6953. this.$emit('valueChange', newValue);
  6954. },
  6955. onInternalTypeChange: function onInternalTypeChange(e) {
  6956. this.onTypeChange(e.target.value);
  6957. },
  6958. onTypeChange: function onTypeChange(val) {
  6959. this.$emit('typeChange', val);
  6960. },
  6961. getCalenderHeaderNode: function getCalenderHeaderNode() {
  6962. return this.$refs.calenderHeaderNode;
  6963. },
  6964. getMonthYearSelections: function getMonthYearSelections(getPrefixCls) {
  6965. var _$props = this.$props,
  6966. customizePrefixCls = _$props.prefixCls,
  6967. type = _$props.type,
  6968. value = _$props.value;
  6969. var prefixCls = getPrefixCls('fullcalendar', customizePrefixCls);
  6970. var yearReactNode = this.getYearSelectElement(prefixCls, value.year());
  6971. var monthReactNode = type === 'month' ? this.getMonthSelectElement(prefixCls, value.month(), getMonthsLocale(value)) : null;
  6972. return {
  6973. yearReactNode: yearReactNode,
  6974. monthReactNode: monthReactNode
  6975. };
  6976. },
  6977. getTypeSwitch: function getTypeSwitch() {
  6978. var h = this.$createElement;
  6979. var _$props2 = this.$props,
  6980. _$props2$locale = _$props2.locale,
  6981. locale = _$props2$locale === undefined ? {} : _$props2$locale,
  6982. type = _$props2.type,
  6983. fullscreen = _$props2.fullscreen;
  6984. var size = fullscreen ? 'default' : 'small';
  6985. return h(
  6986. _radio__WEBPACK_IMPORTED_MODULE_2__["Group"],
  6987. {
  6988. on: {
  6989. 'change': this.onInternalTypeChange
  6990. },
  6991. attrs: { value: type, size: size }
  6992. },
  6993. [h(
  6994. _radio__WEBPACK_IMPORTED_MODULE_2__["Button"],
  6995. {
  6996. attrs: { value: 'month' }
  6997. },
  6998. [locale.month]
  6999. ), h(
  7000. _radio__WEBPACK_IMPORTED_MODULE_2__["Button"],
  7001. {
  7002. attrs: { value: 'year' }
  7003. },
  7004. [locale.year]
  7005. )]
  7006. );
  7007. },
  7008. onValueChange: function onValueChange() {
  7009. this.$emit.apply(this, ['valueChange'].concat(Array.prototype.slice.call(arguments)));
  7010. },
  7011. headerRenderCustom: function headerRenderCustom(headerRender) {
  7012. var _$props3 = this.$props,
  7013. type = _$props3.type,
  7014. value = _$props3.value;
  7015. return headerRender({
  7016. value: value,
  7017. type: type || 'month',
  7018. onChange: this.onValueChange,
  7019. onTypeChange: this.onTypeChange
  7020. });
  7021. }
  7022. },
  7023. render: function render() {
  7024. var h = arguments[0];
  7025. var customizePrefixCls = this.prefixCls,
  7026. headerRender = this.headerRender;
  7027. var getPrefixCls = this.configProvider.getPrefixCls;
  7028. var prefixCls = getPrefixCls('fullcalendar', customizePrefixCls);
  7029. var typeSwitch = this.getTypeSwitch();
  7030. var _getMonthYearSelectio = this.getMonthYearSelections(getPrefixCls),
  7031. yearReactNode = _getMonthYearSelectio.yearReactNode,
  7032. monthReactNode = _getMonthYearSelectio.monthReactNode;
  7033. return headerRender ? this.headerRenderCustom(headerRender) : h(
  7034. 'div',
  7035. { 'class': prefixCls + '-header', ref: 'calenderHeaderNode' },
  7036. [yearReactNode, monthReactNode, typeSwitch]
  7037. );
  7038. }
  7039. });
  7040. /***/ }),
  7041. /***/ "./components/calendar/index.jsx":
  7042. /*!***************************************!*\
  7043. !*** ./components/calendar/index.jsx ***!
  7044. \***************************************/
  7045. /*! exports provided: CalendarMode, CalendarProps, HeaderProps, default */
  7046. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7047. "use strict";
  7048. __webpack_require__.r(__webpack_exports__);
  7049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarMode", function() { return CalendarMode; });
  7050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarProps", function() { return CalendarProps; });
  7051. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  7052. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  7053. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
  7054. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
  7055. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  7056. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  7057. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  7058. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! moment */ "moment");
  7059. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_5__);
  7060. /* harmony import */ var _vc_calendar_src_FullCalendar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-calendar/src/FullCalendar */ "./components/vc-calendar/src/FullCalendar.jsx");
  7061. /* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Header */ "./components/calendar/Header.jsx");
  7062. /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
  7063. /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
  7064. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  7065. /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./locale/en_US */ "./components/calendar/locale/en_US.js");
  7066. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  7067. /* harmony import */ var _util_moment_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/moment-util */ "./components/_util/moment-util.js");
  7068. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderProps", function() { return _Header__WEBPACK_IMPORTED_MODULE_7__["HeaderProps"]; });
  7069. function noop() {
  7070. return null;
  7071. }
  7072. function zerofixed(v) {
  7073. if (v < 10) {
  7074. return '0' + v;
  7075. }
  7076. return '' + v;
  7077. }
  7078. function isMomentArray(value) {
  7079. return Array.isArray(value) && !!value.find(function (val) {
  7080. return moment__WEBPACK_IMPORTED_MODULE_5__["isMoment"](val);
  7081. });
  7082. }
  7083. var CalendarMode = _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['month', 'year']);
  7084. var CalendarProps = function CalendarProps() {
  7085. return {
  7086. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  7087. value: _util_moment_util__WEBPACK_IMPORTED_MODULE_13__["TimeType"],
  7088. defaultValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_13__["TimeType"],
  7089. mode: CalendarMode,
  7090. fullscreen: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  7091. // dateCellRender: PropTypes.func,
  7092. // monthCellRender: PropTypes.func,
  7093. // dateFullCellRender: PropTypes.func,
  7094. // monthFullCellRender: PropTypes.func,
  7095. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  7096. // onPanelChange?: (date?: moment.Moment, mode?: CalendarMode) => void;
  7097. // onSelect?: (date?: moment.Moment) => void;
  7098. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  7099. validRange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].custom(isMomentArray),
  7100. headerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  7101. valueFormat: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
  7102. };
  7103. };
  7104. var Calendar = {
  7105. name: 'ACalendar',
  7106. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  7107. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(CalendarProps(), {
  7108. locale: {},
  7109. fullscreen: true
  7110. }),
  7111. model: {
  7112. prop: 'value',
  7113. event: 'change'
  7114. },
  7115. inject: {
  7116. configProvider: { 'default': function _default() {
  7117. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
  7118. } }
  7119. },
  7120. data: function data() {
  7121. var value = this.value,
  7122. defaultValue = this.defaultValue,
  7123. valueFormat = this.valueFormat;
  7124. var sValue = value || defaultValue || Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_9__["default"])(moment__WEBPACK_IMPORTED_MODULE_5__)();
  7125. Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["checkValidate"])('Calendar', defaultValue, 'defaultValue', valueFormat);
  7126. Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["checkValidate"])('Calendar', value, 'value', valueFormat);
  7127. this._sPrefixCls = undefined;
  7128. return {
  7129. sValue: Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["stringToMoment"])(sValue, valueFormat),
  7130. sMode: this.mode || 'month'
  7131. };
  7132. },
  7133. watch: {
  7134. value: function value(val) {
  7135. Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["checkValidate"])('Calendar', val, 'value', this.valueFormat);
  7136. this.setState({
  7137. sValue: Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["stringToMoment"])(val, this.valueFormat)
  7138. });
  7139. },
  7140. mode: function mode(val) {
  7141. this.setState({
  7142. sMode: val
  7143. });
  7144. }
  7145. },
  7146. methods: {
  7147. onHeaderValueChange: function onHeaderValueChange(value) {
  7148. this.setValue(value, 'changePanel');
  7149. },
  7150. onHeaderTypeChange: function onHeaderTypeChange(mode) {
  7151. this.sMode = mode;
  7152. this.onPanelChange(this.sValue, mode);
  7153. },
  7154. onPanelChange: function onPanelChange(value, mode) {
  7155. var val = this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["momentToString"])(value, this.valueFormat) : value;
  7156. this.$emit('panelChange', val, mode);
  7157. if (value !== this.sValue) {
  7158. this.$emit('change', val);
  7159. }
  7160. },
  7161. onSelect: function onSelect(value) {
  7162. this.setValue(value, 'select');
  7163. },
  7164. setValue: function setValue(value, way) {
  7165. var prevValue = this.value ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["stringToMoment"])(this.value, this.valueFormat) : this.sValue;
  7166. var mode = this.sMode,
  7167. valueFormat = this.valueFormat;
  7168. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'value')) {
  7169. this.setState({ sValue: value });
  7170. }
  7171. if (way === 'select') {
  7172. if (prevValue && prevValue.month() !== value.month()) {
  7173. this.onPanelChange(value, mode);
  7174. }
  7175. this.$emit('select', valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["momentToString"])(value, valueFormat) : value);
  7176. } else if (way === 'changePanel') {
  7177. this.onPanelChange(value, mode);
  7178. }
  7179. },
  7180. getDateRange: function getDateRange(validRange, disabledDate) {
  7181. return function (current) {
  7182. if (!current) {
  7183. return false;
  7184. }
  7185. var _validRange = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(validRange, 2),
  7186. startDate = _validRange[0],
  7187. endDate = _validRange[1];
  7188. var inRange = !current.isBetween(startDate, endDate, 'days', '[]');
  7189. if (disabledDate) {
  7190. return disabledDate(current) || inRange;
  7191. }
  7192. return inRange;
  7193. };
  7194. },
  7195. getDefaultLocale: function getDefaultLocale() {
  7196. var result = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _locale_en_US__WEBPACK_IMPORTED_MODULE_11__["default"], this.$props.locale);
  7197. result.lang = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, result.lang, (this.$props.locale || {}).lang);
  7198. return result;
  7199. },
  7200. monthCellRender2: function monthCellRender2(value) {
  7201. var h = this.$createElement;
  7202. var _sPrefixCls = this._sPrefixCls,
  7203. $scopedSlots = this.$scopedSlots;
  7204. var monthCellRender = this.monthCellRender || $scopedSlots.monthCellRender || noop;
  7205. return h(
  7206. 'div',
  7207. { 'class': _sPrefixCls + '-month' },
  7208. [h(
  7209. 'div',
  7210. { 'class': _sPrefixCls + '-value' },
  7211. [value.localeData().monthsShort(value)]
  7212. ), h(
  7213. 'div',
  7214. { 'class': _sPrefixCls + '-content' },
  7215. [monthCellRender(value)]
  7216. )]
  7217. );
  7218. },
  7219. dateCellRender2: function dateCellRender2(value) {
  7220. var h = this.$createElement;
  7221. var _sPrefixCls = this._sPrefixCls,
  7222. $scopedSlots = this.$scopedSlots;
  7223. var dateCellRender = this.dateCellRender || $scopedSlots.dateCellRender || noop;
  7224. return h(
  7225. 'div',
  7226. { 'class': _sPrefixCls + '-date' },
  7227. [h(
  7228. 'div',
  7229. { 'class': _sPrefixCls + '-value' },
  7230. [zerofixed(value.date())]
  7231. ), h(
  7232. 'div',
  7233. { 'class': _sPrefixCls + '-content' },
  7234. [dateCellRender(value)]
  7235. )]
  7236. );
  7237. },
  7238. renderCalendar: function renderCalendar(locale, localeCode) {
  7239. var h = this.$createElement;
  7240. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
  7241. var value = this.sValue,
  7242. mode = this.sMode,
  7243. $scopedSlots = this.$scopedSlots;
  7244. if (value && localeCode) {
  7245. value.locale(localeCode);
  7246. }
  7247. var customizePrefixCls = props.prefixCls,
  7248. fullscreen = props.fullscreen,
  7249. dateFullCellRender = props.dateFullCellRender,
  7250. monthFullCellRender = props.monthFullCellRender;
  7251. var headerRender = this.headerRender || $scopedSlots.headerRender;
  7252. var getPrefixCls = this.configProvider.getPrefixCls;
  7253. var prefixCls = getPrefixCls('fullcalendar', customizePrefixCls);
  7254. // To support old version react.
  7255. // Have to add prefixCls on the instance.
  7256. // https://github.com/facebook/react/issues/12397
  7257. this._sPrefixCls = prefixCls;
  7258. var cls = '';
  7259. if (fullscreen) {
  7260. cls += ' ' + prefixCls + '-fullscreen';
  7261. }
  7262. var monthCellRender = monthFullCellRender || $scopedSlots.monthFullCellRender || this.monthCellRender2;
  7263. var dateCellRender = dateFullCellRender || $scopedSlots.dateFullCellRender || this.dateCellRender2;
  7264. var disabledDate = props.disabledDate;
  7265. if (props.validRange) {
  7266. disabledDate = this.getDateRange(props.validRange, disabledDate);
  7267. }
  7268. var fullCalendarProps = {
  7269. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
  7270. Select: {},
  7271. locale: locale.lang,
  7272. type: mode === 'year' ? 'month' : 'date',
  7273. prefixCls: prefixCls,
  7274. showHeader: false,
  7275. value: value,
  7276. monthCellRender: monthCellRender,
  7277. dateCellRender: dateCellRender,
  7278. disabledDate: disabledDate
  7279. }),
  7280. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this), {
  7281. select: this.onSelect
  7282. })
  7283. };
  7284. return h(
  7285. 'div',
  7286. { 'class': cls },
  7287. [h(_Header__WEBPACK_IMPORTED_MODULE_7__["default"], {
  7288. attrs: {
  7289. fullscreen: fullscreen,
  7290. type: mode,
  7291. headerRender: headerRender,
  7292. value: value,
  7293. locale: locale.lang,
  7294. prefixCls: prefixCls,
  7295. validRange: props.validRange
  7296. },
  7297. on: {
  7298. 'typeChange': this.onHeaderTypeChange,
  7299. 'valueChange': this.onHeaderValueChange
  7300. }
  7301. }), h(_vc_calendar_src_FullCalendar__WEBPACK_IMPORTED_MODULE_6__["default"], fullCalendarProps)]
  7302. );
  7303. }
  7304. },
  7305. render: function render() {
  7306. var h = arguments[0];
  7307. return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_8__["default"], {
  7308. attrs: {
  7309. componentName: 'Calendar',
  7310. defaultLocale: this.getDefaultLocale
  7311. },
  7312. scopedSlots: { 'default': this.renderCalendar }
  7313. });
  7314. }
  7315. };
  7316. /* istanbul ignore next */
  7317. Calendar.install = function (Vue) {
  7318. Vue.use(_base__WEBPACK_IMPORTED_MODULE_12__["default"]);
  7319. Vue.component(Calendar.name, Calendar);
  7320. };
  7321. /* harmony default export */ __webpack_exports__["default"] = (Calendar);
  7322. /***/ }),
  7323. /***/ "./components/calendar/locale/en_US.js":
  7324. /*!*********************************************!*\
  7325. !*** ./components/calendar/locale/en_US.js ***!
  7326. \*********************************************/
  7327. /*! exports provided: default */
  7328. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7329. "use strict";
  7330. __webpack_require__.r(__webpack_exports__);
  7331. /* harmony import */ var _date_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../date-picker/locale/en_US */ "./components/date-picker/locale/en_US.js");
  7332. /* harmony default export */ __webpack_exports__["default"] = (_date_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_0__["default"]);
  7333. /***/ }),
  7334. /***/ "./components/calendar/style/index.js":
  7335. /*!********************************************!*\
  7336. !*** ./components/calendar/style/index.js ***!
  7337. \********************************************/
  7338. /*! no exports provided */
  7339. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7340. "use strict";
  7341. __webpack_require__.r(__webpack_exports__);
  7342. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  7343. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  7344. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/calendar/style/index.less");
  7345. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  7346. /* harmony import */ var _select_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../select/style */ "./components/select/style/index.js");
  7347. /* harmony import */ var _radio_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../radio/style */ "./components/radio/style/index.js");
  7348. // style dependencies
  7349. /***/ }),
  7350. /***/ "./components/calendar/style/index.less":
  7351. /*!**********************************************!*\
  7352. !*** ./components/calendar/style/index.less ***!
  7353. \**********************************************/
  7354. /*! no static exports found */
  7355. /***/ (function(module, exports, __webpack_require__) {
  7356. // extracted by mini-css-extract-plugin
  7357. /***/ }),
  7358. /***/ "./components/card/Card.jsx":
  7359. /*!**********************************!*\
  7360. !*** ./components/card/Card.jsx ***!
  7361. \**********************************/
  7362. /*! exports provided: default */
  7363. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7364. "use strict";
  7365. __webpack_require__.r(__webpack_exports__);
  7366. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  7367. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  7368. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  7369. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  7370. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  7371. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  7372. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  7373. /* harmony import */ var _tabs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tabs */ "./components/tabs/index.js");
  7374. /* harmony import */ var _row__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../row */ "./components/row/index.js");
  7375. /* harmony import */ var _col__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../col */ "./components/col/index.js");
  7376. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  7377. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  7378. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  7379. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  7380. var TabPane = _tabs__WEBPACK_IMPORTED_MODULE_4__["default"].TabPane;
  7381. /* harmony default export */ __webpack_exports__["default"] = ({
  7382. name: 'ACard',
  7383. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__["default"]],
  7384. props: {
  7385. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  7386. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  7387. extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  7388. bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(true),
  7389. bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
  7390. headStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
  7391. loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(false),
  7392. hoverable: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(false),
  7393. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  7394. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOf(['default', 'small']),
  7395. actions: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  7396. tabList: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
  7397. tabProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
  7398. tabBarExtraContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  7399. activeTabKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  7400. defaultActiveTabKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string
  7401. },
  7402. inject: {
  7403. configProvider: { 'default': function _default() {
  7404. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
  7405. } }
  7406. },
  7407. data: function data() {
  7408. return {
  7409. widerPadding: false
  7410. };
  7411. },
  7412. methods: {
  7413. getAction: function getAction(actions) {
  7414. var h = this.$createElement;
  7415. var actionList = actions.map(function (action, index) {
  7416. return h(
  7417. 'li',
  7418. { style: { width: 100 / actions.length + '%' }, key: 'action-' + index },
  7419. [h('span', [action])]
  7420. );
  7421. });
  7422. return actionList;
  7423. },
  7424. onTabChange: function onTabChange(key) {
  7425. this.$emit('tabChange', key);
  7426. },
  7427. isContainGrid: function isContainGrid() {
  7428. var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  7429. var containGrid = void 0;
  7430. obj.forEach(function (element) {
  7431. if (element && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getSlotOptions"])(element).__ANT_CARD_GRID) {
  7432. containGrid = true;
  7433. }
  7434. });
  7435. return containGrid;
  7436. }
  7437. },
  7438. render: function render() {
  7439. var _classString, _extends2;
  7440. var h = arguments[0];
  7441. var _$props = this.$props,
  7442. customizePrefixCls = _$props.prefixCls,
  7443. _$props$headStyle = _$props.headStyle,
  7444. headStyle = _$props$headStyle === undefined ? {} : _$props$headStyle,
  7445. _$props$bodyStyle = _$props.bodyStyle,
  7446. bodyStyle = _$props$bodyStyle === undefined ? {} : _$props$bodyStyle,
  7447. loading = _$props.loading,
  7448. _$props$bordered = _$props.bordered,
  7449. bordered = _$props$bordered === undefined ? true : _$props$bordered,
  7450. _$props$size = _$props.size,
  7451. size = _$props$size === undefined ? 'default' : _$props$size,
  7452. type = _$props.type,
  7453. tabList = _$props.tabList,
  7454. _$props$tabProps = _$props.tabProps,
  7455. tabProps = _$props$tabProps === undefined ? {} : _$props$tabProps,
  7456. hoverable = _$props.hoverable,
  7457. activeTabKey = _$props.activeTabKey,
  7458. defaultActiveTabKey = _$props.defaultActiveTabKey;
  7459. var getPrefixCls = this.configProvider.getPrefixCls;
  7460. var prefixCls = getPrefixCls('card', customizePrefixCls);
  7461. var $slots = this.$slots,
  7462. $scopedSlots = this.$scopedSlots;
  7463. var tabBarExtraContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'tabBarExtraContent');
  7464. var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-loading', loading), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-bordered', bordered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-hoverable', !!hoverable), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-contain-grid', this.isContainGrid($slots['default'])), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-contain-tabs', tabList && tabList.length), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-' + size, size !== 'default'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-type-' + type, !!type), _classString);
  7465. var loadingBlockStyle = bodyStyle.padding === 0 || bodyStyle.padding === '0px' ? { padding: 24 } : undefined;
  7466. var loadingBlock = h(
  7467. 'div',
  7468. { 'class': prefixCls + '-loading-content', style: loadingBlockStyle },
  7469. [h(
  7470. _row__WEBPACK_IMPORTED_MODULE_5__["default"],
  7471. {
  7472. attrs: { gutter: 8 }
  7473. },
  7474. [h(
  7475. _col__WEBPACK_IMPORTED_MODULE_6__["default"],
  7476. {
  7477. attrs: { span: 22 }
  7478. },
  7479. [h('div', { 'class': prefixCls + '-loading-block' })]
  7480. )]
  7481. ), h(
  7482. _row__WEBPACK_IMPORTED_MODULE_5__["default"],
  7483. {
  7484. attrs: { gutter: 8 }
  7485. },
  7486. [h(
  7487. _col__WEBPACK_IMPORTED_MODULE_6__["default"],
  7488. {
  7489. attrs: { span: 8 }
  7490. },
  7491. [h('div', { 'class': prefixCls + '-loading-block' })]
  7492. ), h(
  7493. _col__WEBPACK_IMPORTED_MODULE_6__["default"],
  7494. {
  7495. attrs: { span: 15 }
  7496. },
  7497. [h('div', { 'class': prefixCls + '-loading-block' })]
  7498. )]
  7499. ), h(
  7500. _row__WEBPACK_IMPORTED_MODULE_5__["default"],
  7501. {
  7502. attrs: { gutter: 8 }
  7503. },
  7504. [h(
  7505. _col__WEBPACK_IMPORTED_MODULE_6__["default"],
  7506. {
  7507. attrs: { span: 6 }
  7508. },
  7509. [h('div', { 'class': prefixCls + '-loading-block' })]
  7510. ), h(
  7511. _col__WEBPACK_IMPORTED_MODULE_6__["default"],
  7512. {
  7513. attrs: { span: 18 }
  7514. },
  7515. [h('div', { 'class': prefixCls + '-loading-block' })]
  7516. )]
  7517. ), h(
  7518. _row__WEBPACK_IMPORTED_MODULE_5__["default"],
  7519. {
  7520. attrs: { gutter: 8 }
  7521. },
  7522. [h(
  7523. _col__WEBPACK_IMPORTED_MODULE_6__["default"],
  7524. {
  7525. attrs: { span: 13 }
  7526. },
  7527. [h('div', { 'class': prefixCls + '-loading-block' })]
  7528. ), h(
  7529. _col__WEBPACK_IMPORTED_MODULE_6__["default"],
  7530. {
  7531. attrs: { span: 9 }
  7532. },
  7533. [h('div', { 'class': prefixCls + '-loading-block' })]
  7534. )]
  7535. ), h(
  7536. _row__WEBPACK_IMPORTED_MODULE_5__["default"],
  7537. {
  7538. attrs: { gutter: 8 }
  7539. },
  7540. [h(
  7541. _col__WEBPACK_IMPORTED_MODULE_6__["default"],
  7542. {
  7543. attrs: { span: 4 }
  7544. },
  7545. [h('div', { 'class': prefixCls + '-loading-block' })]
  7546. ), h(
  7547. _col__WEBPACK_IMPORTED_MODULE_6__["default"],
  7548. {
  7549. attrs: { span: 3 }
  7550. },
  7551. [h('div', { 'class': prefixCls + '-loading-block' })]
  7552. ), h(
  7553. _col__WEBPACK_IMPORTED_MODULE_6__["default"],
  7554. {
  7555. attrs: { span: 16 }
  7556. },
  7557. [h('div', { 'class': prefixCls + '-loading-block' })]
  7558. )]
  7559. )]
  7560. );
  7561. var hasActiveTabKey = activeTabKey !== undefined;
  7562. var tabsProps = {
  7563. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
  7564. size: 'large'
  7565. }, tabProps, (_extends2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends2, hasActiveTabKey ? 'activeKey' : 'defaultActiveKey', hasActiveTabKey ? activeTabKey : defaultActiveTabKey), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends2, 'tabBarExtraContent', tabBarExtraContent), _extends2)),
  7566. on: {
  7567. change: this.onTabChange
  7568. },
  7569. 'class': prefixCls + '-head-tabs'
  7570. };
  7571. var head = void 0;
  7572. var tabs = tabList && tabList.length ? h(
  7573. _tabs__WEBPACK_IMPORTED_MODULE_4__["default"],
  7574. tabsProps,
  7575. [tabList.map(function (item) {
  7576. var temp = item.tab,
  7577. _item$scopedSlots = item.scopedSlots,
  7578. scopedSlots = _item$scopedSlots === undefined ? {} : _item$scopedSlots;
  7579. var name = scopedSlots.tab;
  7580. var tab = temp !== undefined ? temp : $scopedSlots[name] ? $scopedSlots[name](item) : null;
  7581. return h(TabPane, {
  7582. attrs: { tab: tab, disabled: item.disabled },
  7583. key: item.key });
  7584. })]
  7585. ) : null;
  7586. var titleDom = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'title');
  7587. var extraDom = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'extra');
  7588. if (titleDom || extraDom || tabs) {
  7589. head = h(
  7590. 'div',
  7591. { 'class': prefixCls + '-head', style: headStyle },
  7592. [h(
  7593. 'div',
  7594. { 'class': prefixCls + '-head-wrapper' },
  7595. [titleDom && h(
  7596. 'div',
  7597. { 'class': prefixCls + '-head-title' },
  7598. [titleDom]
  7599. ), extraDom && h(
  7600. 'div',
  7601. { 'class': prefixCls + '-extra' },
  7602. [extraDom]
  7603. )]
  7604. ), tabs]
  7605. );
  7606. }
  7607. var children = $slots['default'];
  7608. var cover = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'cover');
  7609. var coverDom = cover ? h(
  7610. 'div',
  7611. { 'class': prefixCls + '-cover' },
  7612. [cover]
  7613. ) : null;
  7614. var body = h(
  7615. 'div',
  7616. { 'class': prefixCls + '-body', style: bodyStyle },
  7617. [loading ? loadingBlock : children]
  7618. );
  7619. var actions = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["filterEmpty"])(this.$slots.actions);
  7620. var actionDom = actions && actions.length ? h(
  7621. 'ul',
  7622. { 'class': prefixCls + '-actions' },
  7623. [this.getAction(actions)]
  7624. ) : null;
  7625. return h(
  7626. 'div',
  7627. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  7628. 'class': classString,
  7629. ref: 'cardContainerRef'
  7630. }, { on: Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this), ['tabChange', 'tab-change']) }]),
  7631. [head, coverDom, children ? body : null, actionDom]
  7632. );
  7633. }
  7634. });
  7635. /***/ }),
  7636. /***/ "./components/card/Grid.jsx":
  7637. /*!**********************************!*\
  7638. !*** ./components/card/Grid.jsx ***!
  7639. \**********************************/
  7640. /*! exports provided: default */
  7641. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7642. "use strict";
  7643. __webpack_require__.r(__webpack_exports__);
  7644. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  7645. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  7646. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  7647. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  7648. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  7649. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  7650. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  7651. /* harmony default export */ __webpack_exports__["default"] = ({
  7652. name: 'ACardGrid',
  7653. __ANT_CARD_GRID: true,
  7654. props: {
  7655. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  7656. hoverable: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
  7657. },
  7658. inject: {
  7659. configProvider: { 'default': function _default() {
  7660. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
  7661. } }
  7662. },
  7663. render: function render() {
  7664. var _classString;
  7665. var h = arguments[0];
  7666. var _$props = this.$props,
  7667. customizePrefixCls = _$props.prefixCls,
  7668. _$props$hoverable = _$props.hoverable,
  7669. hoverable = _$props$hoverable === undefined ? true : _$props$hoverable;
  7670. var getPrefixCls = this.configProvider.getPrefixCls;
  7671. var prefixCls = getPrefixCls('card', customizePrefixCls);
  7672. var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-grid', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-grid-hoverable', hoverable), _classString);
  7673. return h(
  7674. 'div',
  7675. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this) }, { 'class': classString }]),
  7676. [this.$slots['default']]
  7677. );
  7678. }
  7679. });
  7680. /***/ }),
  7681. /***/ "./components/card/Meta.jsx":
  7682. /*!**********************************!*\
  7683. !*** ./components/card/Meta.jsx ***!
  7684. \**********************************/
  7685. /*! exports provided: default */
  7686. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7687. "use strict";
  7688. __webpack_require__.r(__webpack_exports__);
  7689. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  7690. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  7691. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  7692. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  7693. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  7694. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  7695. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  7696. /* harmony default export */ __webpack_exports__["default"] = ({
  7697. name: 'ACardMeta',
  7698. props: {
  7699. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  7700. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  7701. description: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any
  7702. },
  7703. inject: {
  7704. configProvider: { 'default': function _default() {
  7705. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
  7706. } }
  7707. },
  7708. render: function render() {
  7709. var h = arguments[0];
  7710. var customizePrefixCls = this.$props.prefixCls;
  7711. var getPrefixCls = this.configProvider.getPrefixCls;
  7712. var prefixCls = getPrefixCls('card', customizePrefixCls);
  7713. var classString = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-meta', true);
  7714. var avatar = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'avatar');
  7715. var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'title');
  7716. var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'description');
  7717. var avatarDom = avatar ? h(
  7718. 'div',
  7719. { 'class': prefixCls + '-meta-avatar' },
  7720. [avatar]
  7721. ) : null;
  7722. var titleDom = title ? h(
  7723. 'div',
  7724. { 'class': prefixCls + '-meta-title' },
  7725. [title]
  7726. ) : null;
  7727. var descriptionDom = description ? h(
  7728. 'div',
  7729. { 'class': prefixCls + '-meta-description' },
  7730. [description]
  7731. ) : null;
  7732. var MetaDetail = titleDom || descriptionDom ? h(
  7733. 'div',
  7734. { 'class': prefixCls + '-meta-detail' },
  7735. [titleDom, descriptionDom]
  7736. ) : null;
  7737. return h(
  7738. 'div',
  7739. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this) }, { 'class': classString }]),
  7740. [avatarDom, MetaDetail]
  7741. );
  7742. }
  7743. });
  7744. /***/ }),
  7745. /***/ "./components/card/index.js":
  7746. /*!**********************************!*\
  7747. !*** ./components/card/index.js ***!
  7748. \**********************************/
  7749. /*! exports provided: default */
  7750. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7751. "use strict";
  7752. __webpack_require__.r(__webpack_exports__);
  7753. /* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Card */ "./components/card/Card.jsx");
  7754. /* harmony import */ var _Meta__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Meta */ "./components/card/Meta.jsx");
  7755. /* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Grid */ "./components/card/Grid.jsx");
  7756. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  7757. _Card__WEBPACK_IMPORTED_MODULE_0__["default"].Meta = _Meta__WEBPACK_IMPORTED_MODULE_1__["default"];
  7758. _Card__WEBPACK_IMPORTED_MODULE_0__["default"].Grid = _Grid__WEBPACK_IMPORTED_MODULE_2__["default"];
  7759. /* istanbul ignore next */
  7760. _Card__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  7761. Vue.use(_base__WEBPACK_IMPORTED_MODULE_3__["default"]);
  7762. Vue.component(_Card__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Card__WEBPACK_IMPORTED_MODULE_0__["default"]);
  7763. Vue.component(_Meta__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Meta__WEBPACK_IMPORTED_MODULE_1__["default"]);
  7764. Vue.component(_Grid__WEBPACK_IMPORTED_MODULE_2__["default"].name, _Grid__WEBPACK_IMPORTED_MODULE_2__["default"]);
  7765. };
  7766. /* harmony default export */ __webpack_exports__["default"] = (_Card__WEBPACK_IMPORTED_MODULE_0__["default"]);
  7767. /***/ }),
  7768. /***/ "./components/card/style/index.js":
  7769. /*!****************************************!*\
  7770. !*** ./components/card/style/index.js ***!
  7771. \****************************************/
  7772. /*! no exports provided */
  7773. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7774. "use strict";
  7775. __webpack_require__.r(__webpack_exports__);
  7776. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  7777. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  7778. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/card/style/index.less");
  7779. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  7780. /* harmony import */ var _tabs_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tabs/style */ "./components/tabs/style/index.js");
  7781. /* harmony import */ var _row_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../row/style */ "./components/row/style/index.js");
  7782. /* harmony import */ var _col_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../col/style */ "./components/col/style/index.js");
  7783. // style dependencies
  7784. /***/ }),
  7785. /***/ "./components/card/style/index.less":
  7786. /*!******************************************!*\
  7787. !*** ./components/card/style/index.less ***!
  7788. \******************************************/
  7789. /*! no static exports found */
  7790. /***/ (function(module, exports, __webpack_require__) {
  7791. // extracted by mini-css-extract-plugin
  7792. /***/ }),
  7793. /***/ "./components/carousel/index.jsx":
  7794. /*!***************************************!*\
  7795. !*** ./components/carousel/index.jsx ***!
  7796. \***************************************/
  7797. /*! exports provided: CarouselEffect, CarouselProps, default */
  7798. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7799. "use strict";
  7800. __webpack_require__.r(__webpack_exports__);
  7801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CarouselEffect", function() { return CarouselEffect; });
  7802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CarouselProps", function() { return CarouselProps; });
  7803. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  7804. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  7805. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  7806. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  7807. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  7808. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  7809. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  7810. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
  7811. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_4__);
  7812. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  7813. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  7814. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  7815. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  7816. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  7817. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
  7818. // matchMedia polyfill for
  7819. // https://github.com/WickyNilliams/enquire.js/issues/82
  7820. if (typeof window !== 'undefined') {
  7821. var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) {
  7822. return {
  7823. media: mediaQuery,
  7824. matches: false,
  7825. addListener: function addListener() {},
  7826. removeListener: function removeListener() {}
  7827. };
  7828. };
  7829. // ref: https://github.com/ant-design/ant-design/issues/18774
  7830. if (!window.matchMedia) window.matchMedia = matchMediaPolyfill;
  7831. }
  7832. // Use require over import (will be lifted up)
  7833. // make sure matchMedia polyfill run before require('vc-slick')
  7834. // Fix https://github.com/ant-design/ant-design/issues/6560
  7835. // Fix https://github.com/ant-design/ant-design/issues/3308
  7836. var SlickCarousel = __webpack_require__(/*! ../vc-slick/src */ "./components/vc-slick/src/index.js")['default'];
  7837. var CarouselEffect = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['scrollx', 'fade']);
  7838. // Carousel
  7839. var CarouselProps = {
  7840. effect: CarouselEffect,
  7841. dots: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7842. vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7843. autoplay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7844. easing: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  7845. beforeChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  7846. afterChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  7847. // style: PropTypes.React.CSSProperties,
  7848. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  7849. accessibility: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7850. nextArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  7851. prevArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  7852. pauseOnHover: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7853. // className: PropTypes.string,
  7854. adaptiveHeight: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7855. arrows: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7856. autoplaySpeed: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  7857. centerMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7858. centerPadding: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  7859. cssEase: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  7860. dotsClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  7861. draggable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7862. fade: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7863. focusOnSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7864. infinite: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7865. initialSlide: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  7866. lazyLoad: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7867. rtl: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7868. slide: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  7869. slidesToShow: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  7870. slidesToScroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  7871. speed: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  7872. swipe: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7873. swipeToSlide: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7874. touchMove: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7875. touchThreshold: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  7876. variableWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7877. useCSS: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  7878. slickGoTo: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  7879. responsive: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  7880. dotPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['top', 'bottom', 'left', 'right'])
  7881. };
  7882. var Carousel = {
  7883. name: 'ACarousel',
  7884. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])(CarouselProps, {
  7885. dots: true,
  7886. arrows: false,
  7887. draggable: false
  7888. }),
  7889. inject: {
  7890. configProvider: { 'default': function _default() {
  7891. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
  7892. } }
  7893. },
  7894. beforeMount: function beforeMount() {
  7895. this.onWindowResized = lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default()(this.onWindowResized, 500, {
  7896. leading: false
  7897. });
  7898. },
  7899. mounted: function mounted() {
  7900. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'vertical')) {
  7901. Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(!this.vertical, 'Carousel', '`vertical` is deprecated, please use `dotPosition` instead.');
  7902. }
  7903. var autoplay = this.autoplay;
  7904. if (autoplay) {
  7905. window.addEventListener('resize', this.onWindowResized);
  7906. }
  7907. // https://github.com/ant-design/ant-design/issues/7191
  7908. this.innerSlider = this.$refs.slick && this.$refs.slick.innerSlider;
  7909. },
  7910. beforeDestroy: function beforeDestroy() {
  7911. var autoplay = this.autoplay;
  7912. if (autoplay) {
  7913. window.removeEventListener('resize', this.onWindowResized);
  7914. this.onWindowResized.cancel();
  7915. }
  7916. },
  7917. methods: {
  7918. getDotPosition: function getDotPosition() {
  7919. if (this.dotPosition) {
  7920. return this.dotPosition;
  7921. }
  7922. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'vertical')) {
  7923. return this.vertical ? 'right' : 'bottom';
  7924. }
  7925. return 'bottom';
  7926. },
  7927. onWindowResized: function onWindowResized() {
  7928. // Fix https://github.com/ant-design/ant-design/issues/2550
  7929. var autoplay = this.autoplay;
  7930. if (autoplay && this.$refs.slick && this.$refs.slick.innerSlider && this.$refs.slick.innerSlider.autoPlay) {
  7931. this.$refs.slick.innerSlider.autoPlay();
  7932. }
  7933. },
  7934. next: function next() {
  7935. this.$refs.slick.slickNext();
  7936. },
  7937. prev: function prev() {
  7938. this.$refs.slick.slickPrev();
  7939. },
  7940. goTo: function goTo(slide) {
  7941. var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  7942. this.$refs.slick.slickGoTo(slide, dontAnimate);
  7943. }
  7944. },
  7945. render: function render() {
  7946. var h = arguments[0];
  7947. var props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props);
  7948. var $slots = this.$slots;
  7949. if (props.effect === 'fade') {
  7950. props.fade = true;
  7951. }
  7952. var getPrefixCls = this.configProvider.getPrefixCls;
  7953. var className = getPrefixCls('carousel', props.prefixCls);
  7954. var dotsClass = 'slick-dots';
  7955. var dotPosition = this.getDotPosition();
  7956. props.vertical = dotPosition === 'left' || dotPosition === 'right';
  7957. props.dotsClass = classnames__WEBPACK_IMPORTED_MODULE_9___default()('' + dotsClass, dotsClass + '-' + (dotPosition || 'bottom'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, '' + props.dotsClass, !!props.dotsClass));
  7958. if (props.vertical) {
  7959. className = className + ' ' + className + '-vertical';
  7960. }
  7961. var SlickCarouselProps = {
  7962. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
  7963. nextArrow: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'nextArrow'),
  7964. prevArrow: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'prevArrow')
  7965. }),
  7966. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
  7967. scopedSlots: this.$scopedSlots
  7968. };
  7969. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])($slots['default']);
  7970. return h(
  7971. 'div',
  7972. { 'class': className },
  7973. [h(
  7974. SlickCarousel,
  7975. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ ref: 'slick' }, SlickCarouselProps]),
  7976. [children]
  7977. )]
  7978. );
  7979. }
  7980. };
  7981. /* istanbul ignore next */
  7982. Carousel.install = function (Vue) {
  7983. Vue.use(_base__WEBPACK_IMPORTED_MODULE_7__["default"]);
  7984. Vue.component(Carousel.name, Carousel);
  7985. };
  7986. /* harmony default export */ __webpack_exports__["default"] = (Carousel);
  7987. /***/ }),
  7988. /***/ "./components/carousel/style/index.js":
  7989. /*!********************************************!*\
  7990. !*** ./components/carousel/style/index.js ***!
  7991. \********************************************/
  7992. /*! no exports provided */
  7993. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7994. "use strict";
  7995. __webpack_require__.r(__webpack_exports__);
  7996. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  7997. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  7998. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/carousel/style/index.less");
  7999. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  8000. /***/ }),
  8001. /***/ "./components/carousel/style/index.less":
  8002. /*!**********************************************!*\
  8003. !*** ./components/carousel/style/index.less ***!
  8004. \**********************************************/
  8005. /*! no static exports found */
  8006. /***/ (function(module, exports, __webpack_require__) {
  8007. // extracted by mini-css-extract-plugin
  8008. /***/ }),
  8009. /***/ "./components/cascader/index.jsx":
  8010. /*!***************************************!*\
  8011. !*** ./components/cascader/index.jsx ***!
  8012. \***************************************/
  8013. /*! exports provided: default */
  8014. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8015. "use strict";
  8016. __webpack_require__.r(__webpack_exports__);
  8017. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  8018. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  8019. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  8020. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  8021. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  8022. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  8023. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  8024. /* harmony import */ var _vc_cascader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-cascader */ "./components/vc-cascader/index.js");
  8025. /* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! array-tree-filter */ "./node_modules/array-tree-filter/lib/index.js");
  8026. /* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(array_tree_filter__WEBPACK_IMPORTED_MODULE_5__);
  8027. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  8028. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
  8029. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  8030. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
  8031. /* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../input */ "./components/input/index.js");
  8032. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  8033. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  8034. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  8035. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  8036. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  8037. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  8038. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  8039. var CascaderOptionType = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
  8040. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
  8041. label: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  8042. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  8043. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  8044. key: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number])
  8045. }).loose;
  8046. var FieldNamesType = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
  8047. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
  8048. label: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
  8049. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
  8050. }).loose;
  8051. var CascaderExpandTrigger = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['click', 'hover']);
  8052. var ShowSearchType = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
  8053. filter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  8054. render: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  8055. sort: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  8056. matchInputWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  8057. limit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([Boolean, Number])
  8058. }).loose;
  8059. function noop() {}
  8060. var CascaderProps = {
  8061. /** 可选项数据源 */
  8062. options: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(CascaderOptionType).def([]),
  8063. /** 默认的选中项 */
  8064. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  8065. /** 指定选中项 */
  8066. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  8067. /** 选择完成后的回调 */
  8068. // onChange?: (value: string[], selectedOptions?: CascaderOptionType[]) => void;
  8069. /** 选择后展示的渲染函数 */
  8070. displayRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  8071. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('slide-up'),
  8072. popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object.def(function () {
  8073. return {};
  8074. }),
  8075. /** 自定义浮层类名 */
  8076. popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  8077. /** 浮层预设位置:`bottomLeft` `bottomRight` `topLeft` `topRight` */
  8078. popupPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['bottomLeft', 'bottomRight', 'topLeft', 'topRight']).def('bottomLeft'),
  8079. /** 输入框占位文本*/
  8080. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('Please select'),
  8081. /** 输入框大小,可选 `large` `default` `small` */
  8082. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['large', 'default', 'small']),
  8083. /** 禁用*/
  8084. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
  8085. /** 是否支持清除*/
  8086. allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(true),
  8087. showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([Boolean, ShowSearchType]),
  8088. notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  8089. loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  8090. /** 次级菜单的展开方式,可选 'click' 和 'hover' */
  8091. expandTrigger: CascaderExpandTrigger,
  8092. /** 当此项为 true 时,点选每级菜单选项值都会发生变化 */
  8093. changeOnSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  8094. /** 浮层可见变化时回调 */
  8095. // onPopupVisibleChange?: (popupVisible: boolean) => void;
  8096. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  8097. inputPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  8098. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  8099. popupVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  8100. fieldNames: FieldNamesType,
  8101. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  8102. suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
  8103. };
  8104. // We limit the filtered item count by default
  8105. var defaultLimit = 50;
  8106. function defaultFilterOption(inputValue, path, names) {
  8107. return path.some(function (option) {
  8108. return option[names.label].indexOf(inputValue) > -1;
  8109. });
  8110. }
  8111. function defaultSortFilteredOption(a, b, inputValue, names) {
  8112. function callback(elem) {
  8113. return elem[names.label].indexOf(inputValue) > -1;
  8114. }
  8115. return a.findIndex(callback) - b.findIndex(callback);
  8116. }
  8117. function getFilledFieldNames(_ref) {
  8118. var _ref$fieldNames = _ref.fieldNames,
  8119. fieldNames = _ref$fieldNames === undefined ? {} : _ref$fieldNames;
  8120. var names = {
  8121. children: fieldNames.children || 'children',
  8122. label: fieldNames.label || 'label',
  8123. value: fieldNames.value || 'value'
  8124. };
  8125. return names;
  8126. }
  8127. function flattenTree() {
  8128. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  8129. var props = arguments[1];
  8130. var ancestor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  8131. var names = getFilledFieldNames(props);
  8132. var flattenOptions = [];
  8133. var childrenName = names.children;
  8134. options.forEach(function (option) {
  8135. var path = ancestor.concat(option);
  8136. if (props.changeOnSelect || !option[childrenName] || !option[childrenName].length) {
  8137. flattenOptions.push(path);
  8138. }
  8139. if (option[childrenName]) {
  8140. flattenOptions = flattenOptions.concat(flattenTree(option[childrenName], props, path));
  8141. }
  8142. });
  8143. return flattenOptions;
  8144. }
  8145. var defaultDisplayRender = function defaultDisplayRender(_ref2) {
  8146. var labels = _ref2.labels;
  8147. return labels.join(' / ');
  8148. };
  8149. var Cascader = {
  8150. inheritAttrs: false,
  8151. name: 'ACascader',
  8152. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_12__["default"]],
  8153. props: CascaderProps,
  8154. model: {
  8155. prop: 'value',
  8156. event: 'change'
  8157. },
  8158. provide: function provide() {
  8159. return {
  8160. savePopupRef: this.savePopupRef
  8161. };
  8162. },
  8163. inject: {
  8164. configProvider: { 'default': function _default() {
  8165. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_15__["ConfigConsumerProps"];
  8166. } },
  8167. localeData: { 'default': function _default() {
  8168. return {};
  8169. } }
  8170. },
  8171. data: function data() {
  8172. this.cachedOptions = [];
  8173. var value = this.value,
  8174. defaultValue = this.defaultValue,
  8175. popupVisible = this.popupVisible,
  8176. showSearch = this.showSearch,
  8177. options = this.options;
  8178. return {
  8179. sValue: value || defaultValue || [],
  8180. inputValue: '',
  8181. inputFocused: false,
  8182. sPopupVisible: popupVisible,
  8183. flattenOptions: showSearch ? flattenTree(options, this.$props) : undefined
  8184. };
  8185. },
  8186. mounted: function mounted() {
  8187. var _this = this;
  8188. this.$nextTick(function () {
  8189. if (_this.autoFocus && !_this.showSearch && !_this.disabled) {
  8190. _this.$refs.picker.focus();
  8191. }
  8192. });
  8193. },
  8194. watch: {
  8195. value: function value(val) {
  8196. this.setState({ sValue: val || [] });
  8197. },
  8198. popupVisible: function popupVisible(val) {
  8199. this.setState({ sPopupVisible: val });
  8200. },
  8201. options: function options(val) {
  8202. if (this.showSearch) {
  8203. this.setState({ flattenOptions: flattenTree(val, this.$props) });
  8204. }
  8205. }
  8206. },
  8207. methods: {
  8208. savePopupRef: function savePopupRef(ref) {
  8209. this.popupRef = ref;
  8210. },
  8211. highlightKeyword: function highlightKeyword(str, keyword, prefixCls) {
  8212. var h = this.$createElement;
  8213. return str.split(keyword).map(function (node, index) {
  8214. return index === 0 ? node : [h(
  8215. 'span',
  8216. { 'class': prefixCls + '-menu-item-keyword' },
  8217. [keyword]
  8218. ), node];
  8219. });
  8220. },
  8221. defaultRenderFilteredOption: function defaultRenderFilteredOption(_ref3) {
  8222. var _this2 = this;
  8223. var inputValue = _ref3.inputValue,
  8224. path = _ref3.path,
  8225. prefixCls = _ref3.prefixCls,
  8226. names = _ref3.names;
  8227. return path.map(function (option, index) {
  8228. var label = option[names.label];
  8229. var node = label.indexOf(inputValue) > -1 ? _this2.highlightKeyword(label, inputValue, prefixCls) : label;
  8230. return index === 0 ? node : [' / ', node];
  8231. });
  8232. },
  8233. handleChange: function handleChange(value, selectedOptions) {
  8234. this.setState({ inputValue: '' });
  8235. if (selectedOptions[0].__IS_FILTERED_OPTION) {
  8236. var unwrappedValue = value[0];
  8237. var unwrappedSelectedOptions = selectedOptions[0].path;
  8238. this.setValue(unwrappedValue, unwrappedSelectedOptions);
  8239. return;
  8240. }
  8241. this.setValue(value, selectedOptions);
  8242. },
  8243. handlePopupVisibleChange: function handlePopupVisibleChange(popupVisible) {
  8244. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["hasProp"])(this, 'popupVisible')) {
  8245. this.setState(function (state) {
  8246. return {
  8247. sPopupVisible: popupVisible,
  8248. inputFocused: popupVisible,
  8249. inputValue: popupVisible ? state.inputValue : ''
  8250. };
  8251. });
  8252. }
  8253. this.$emit('popupVisibleChange', popupVisible);
  8254. },
  8255. handleInputFocus: function handleInputFocus(e) {
  8256. this.$emit('focus', e);
  8257. },
  8258. handleInputBlur: function handleInputBlur(e) {
  8259. this.setState({
  8260. inputFocused: false
  8261. });
  8262. this.$emit('blur', e);
  8263. },
  8264. handleInputClick: function handleInputClick(e) {
  8265. var inputFocused = this.inputFocused,
  8266. sPopupVisible = this.sPopupVisible;
  8267. // Prevent `Trigger` behaviour.
  8268. if (inputFocused || sPopupVisible) {
  8269. e.stopPropagation();
  8270. if (e.nativeEvent && e.nativeEvent.stopImmediatePropagation) {
  8271. e.nativeEvent.stopImmediatePropagation();
  8272. }
  8273. }
  8274. },
  8275. handleKeyDown: function handleKeyDown(e) {
  8276. if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].BACKSPACE || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].SPACE) {
  8277. e.stopPropagation();
  8278. }
  8279. },
  8280. handleInputChange: function handleInputChange(e) {
  8281. var inputValue = e.target.value;
  8282. this.setState({ inputValue: inputValue });
  8283. this.$emit('search', inputValue);
  8284. },
  8285. setValue: function setValue(value, selectedOptions) {
  8286. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["hasProp"])(this, 'value')) {
  8287. this.setState({ sValue: value });
  8288. }
  8289. this.$emit('change', value, selectedOptions);
  8290. },
  8291. getLabel: function getLabel() {
  8292. var options = this.options,
  8293. $scopedSlots = this.$scopedSlots;
  8294. var names = getFilledFieldNames(this.$props);
  8295. var displayRender = this.displayRender || $scopedSlots.displayRender || defaultDisplayRender;
  8296. var value = this.sValue;
  8297. var unwrappedValue = Array.isArray(value[0]) ? value[0] : value;
  8298. var selectedOptions = array_tree_filter__WEBPACK_IMPORTED_MODULE_5___default()(options, function (o, level) {
  8299. return o[names.value] === unwrappedValue[level];
  8300. }, { childrenKeyName: names.children });
  8301. var labels = selectedOptions.map(function (o) {
  8302. return o[names.label];
  8303. });
  8304. return displayRender({ labels: labels, selectedOptions: selectedOptions });
  8305. },
  8306. clearSelection: function clearSelection(e) {
  8307. e.preventDefault();
  8308. e.stopPropagation();
  8309. if (!this.inputValue) {
  8310. this.setValue([]);
  8311. this.handlePopupVisibleChange(false);
  8312. } else {
  8313. this.setState({ inputValue: '' });
  8314. }
  8315. },
  8316. generateFilteredOptions: function generateFilteredOptions(prefixCls, renderEmpty) {
  8317. var _ref5;
  8318. var h = this.$createElement;
  8319. var showSearch = this.showSearch,
  8320. notFoundContent = this.notFoundContent,
  8321. $scopedSlots = this.$scopedSlots;
  8322. var names = getFilledFieldNames(this.$props);
  8323. var _showSearch$filter = showSearch.filter,
  8324. filter = _showSearch$filter === undefined ? defaultFilterOption : _showSearch$filter,
  8325. _showSearch$sort = showSearch.sort,
  8326. sort = _showSearch$sort === undefined ? defaultSortFilteredOption : _showSearch$sort,
  8327. _showSearch$limit = showSearch.limit,
  8328. limit = _showSearch$limit === undefined ? defaultLimit : _showSearch$limit;
  8329. var render = showSearch.render || $scopedSlots.showSearchRender || this.defaultRenderFilteredOption;
  8330. var _$data = this.$data,
  8331. _$data$flattenOptions = _$data.flattenOptions,
  8332. flattenOptions = _$data$flattenOptions === undefined ? [] : _$data$flattenOptions,
  8333. inputValue = _$data.inputValue;
  8334. // Limit the filter if needed
  8335. var filtered = void 0;
  8336. if (limit > 0) {
  8337. filtered = [];
  8338. var matchCount = 0;
  8339. // Perf optimization to filter items only below the limit
  8340. flattenOptions.some(function (path) {
  8341. var match = filter(inputValue, path, names);
  8342. if (match) {
  8343. filtered.push(path);
  8344. matchCount += 1;
  8345. }
  8346. return matchCount >= limit;
  8347. });
  8348. } else {
  8349. Object(_util_warning__WEBPACK_IMPORTED_MODULE_14__["default"])(typeof limit !== 'number', 'Cascader', "'limit' of showSearch in Cascader should be positive number or false.");
  8350. filtered = flattenOptions.filter(function (path) {
  8351. return filter(inputValue, path, names);
  8352. });
  8353. }
  8354. filtered.sort(function (a, b) {
  8355. return sort(a, b, inputValue, names);
  8356. });
  8357. if (filtered.length > 0) {
  8358. return filtered.map(function (path) {
  8359. var _ref4;
  8360. return _ref4 = {
  8361. __IS_FILTERED_OPTION: true,
  8362. path: path
  8363. }, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref4, names.label, render({ inputValue: inputValue, path: path, prefixCls: prefixCls, names: names })), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref4, names.value, path.map(function (o) {
  8364. return o[names.value];
  8365. })), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref4, 'disabled', path.some(function (o) {
  8366. return !!o.disabled;
  8367. })), _ref4;
  8368. });
  8369. }
  8370. return [(_ref5 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref5, names.label, notFoundContent || renderEmpty(h, 'Cascader')), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref5, names.value, 'ANT_CASCADER_NOT_FOUND'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref5, 'disabled', true), _ref5)];
  8371. },
  8372. focus: function focus() {
  8373. if (this.showSearch) {
  8374. this.$refs.input.focus();
  8375. } else {
  8376. this.$refs.picker.focus();
  8377. }
  8378. },
  8379. blur: function blur() {
  8380. if (this.showSearch) {
  8381. this.$refs.input.blur();
  8382. } else {
  8383. this.$refs.picker.blur();
  8384. }
  8385. }
  8386. },
  8387. render: function render() {
  8388. var _classNames, _classNames2, _classNames3;
  8389. var h = arguments[0];
  8390. var $slots = this.$slots,
  8391. sPopupVisible = this.sPopupVisible,
  8392. inputValue = this.inputValue,
  8393. configProvider = this.configProvider,
  8394. localeData = this.localeData;
  8395. var _$data2 = this.$data,
  8396. value = _$data2.sValue,
  8397. inputFocused = _$data2.inputFocused;
  8398. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this);
  8399. var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'suffixIcon');
  8400. suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
  8401. var getContextPopupContainer = configProvider.getPopupContainer;
  8402. var customizePrefixCls = props.prefixCls,
  8403. customizeInputPrefixCls = props.inputPrefixCls,
  8404. _props$placeholder = props.placeholder,
  8405. placeholder = _props$placeholder === undefined ? localeData.placeholder : _props$placeholder,
  8406. size = props.size,
  8407. disabled = props.disabled,
  8408. allowClear = props.allowClear,
  8409. _props$showSearch = props.showSearch,
  8410. showSearch = _props$showSearch === undefined ? false : _props$showSearch,
  8411. notFoundContent = props.notFoundContent,
  8412. otherProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(props, ['prefixCls', 'inputPrefixCls', 'placeholder', 'size', 'disabled', 'allowClear', 'showSearch', 'notFoundContent']);
  8413. var getPrefixCls = this.configProvider.getPrefixCls;
  8414. var renderEmpty = this.configProvider.renderEmpty;
  8415. var prefixCls = getPrefixCls('cascader', customizePrefixCls);
  8416. var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
  8417. var sizeCls = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, inputPrefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, inputPrefixCls + '-sm', size === 'small'), _classNames));
  8418. var clearIcon = allowClear && !disabled && value.length > 0 || inputValue ? h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  8419. attrs: {
  8420. type: 'close-circle',
  8421. theme: 'filled'
  8422. },
  8423. 'class': prefixCls + '-picker-clear',
  8424. on: {
  8425. 'click': this.clearSelection
  8426. },
  8427. key: 'clear-icon'
  8428. }) : null;
  8429. var arrowCls = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-picker-arrow', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-picker-arrow-expand', sPopupVisible), _classNames2));
  8430. var pickerCls = classnames__WEBPACK_IMPORTED_MODULE_6___default()(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getClass"])(this), prefixCls + '-picker', (_classNames3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-with-value', inputValue), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-' + size, !!size), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-show-search', !!showSearch), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-focused', inputFocused), _classNames3));
  8431. // Fix bug of https://github.com/facebook/react/pull/5004
  8432. // and https://fb.me/react-unknown-prop
  8433. var tempInputProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_7__["default"])(otherProps, ['options', 'popupPlacement', 'transitionName', 'displayRender', 'changeOnSelect', 'expandTrigger', 'popupVisible', 'getPopupContainer', 'loadData', 'popupClassName', 'filterOption', 'renderFilteredOption', 'sortFilteredOption', 'notFoundContent', 'defaultValue', 'fieldNames']);
  8434. var options = props.options;
  8435. var names = getFilledFieldNames(this.$props);
  8436. if (options && options.length > 0) {
  8437. if (inputValue) {
  8438. options = this.generateFilteredOptions(prefixCls, renderEmpty);
  8439. }
  8440. } else {
  8441. var _ref6;
  8442. options = [(_ref6 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref6, names.label, notFoundContent || renderEmpty(h, 'Cascader')), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref6, names.value, 'ANT_CASCADER_NOT_FOUND'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref6, 'disabled', true), _ref6)];
  8443. }
  8444. // Dropdown menu should keep previous status until it is fully closed.
  8445. if (!sPopupVisible) {
  8446. options = this.cachedOptions;
  8447. } else {
  8448. this.cachedOptions = options;
  8449. }
  8450. var dropdownMenuColumnStyle = {};
  8451. var isNotFound = (options || []).length === 1 && options[0].value === 'ANT_CASCADER_NOT_FOUND';
  8452. if (isNotFound) {
  8453. dropdownMenuColumnStyle.height = 'auto'; // Height of one row.
  8454. }
  8455. // The default value of `matchInputWidth` is `true`
  8456. var resultListMatchInputWidth = showSearch.matchInputWidth !== false;
  8457. if (resultListMatchInputWidth && (inputValue || isNotFound) && this.$refs.input) {
  8458. dropdownMenuColumnStyle.width = this.$refs.input.$el.offsetWidth + 'px';
  8459. }
  8460. // showSearch时,focus、blur在input上触发,反之在ref='picker'上触发
  8461. var inputProps = {
  8462. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, tempInputProps, {
  8463. prefixCls: inputPrefixCls,
  8464. placeholder: value && value.length > 0 ? undefined : placeholder,
  8465. value: inputValue,
  8466. disabled: disabled,
  8467. readOnly: !showSearch,
  8468. autoComplete: 'off'
  8469. }),
  8470. 'class': prefixCls + '-input ' + sizeCls,
  8471. ref: 'input',
  8472. on: {
  8473. focus: showSearch ? this.handleInputFocus : noop,
  8474. click: showSearch ? this.handleInputClick : noop,
  8475. blur: showSearch ? this.handleInputBlur : noop,
  8476. keydown: this.handleKeyDown,
  8477. change: showSearch ? this.handleInputChange : noop
  8478. },
  8479. attrs: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getAttrs"])(this)
  8480. };
  8481. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["filterEmpty"])($slots['default']);
  8482. var inputIcon = suffixIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["isValidElement"])(suffixIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_13__["cloneElement"])(suffixIcon, {
  8483. 'class': babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, prefixCls + '-picker-arrow', true)
  8484. }) : h(
  8485. 'span',
  8486. { 'class': prefixCls + '-picker-arrow' },
  8487. [suffixIcon]
  8488. )) || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  8489. attrs: { type: 'down' },
  8490. 'class': arrowCls });
  8491. var input = children.length ? children : h(
  8492. 'span',
  8493. { 'class': pickerCls, style: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getStyle"])(this), ref: 'picker' },
  8494. [showSearch ? h(
  8495. 'span',
  8496. { 'class': prefixCls + '-picker-label' },
  8497. [this.getLabel()]
  8498. ) : null, h(_input__WEBPACK_IMPORTED_MODULE_9__["default"], inputProps), !showSearch ? h(
  8499. 'span',
  8500. { 'class': prefixCls + '-picker-label' },
  8501. [this.getLabel()]
  8502. ) : null, clearIcon, inputIcon]
  8503. );
  8504. var expandIcon = h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  8505. attrs: { type: 'right' }
  8506. });
  8507. var loadingIcon = h(
  8508. 'span',
  8509. { 'class': prefixCls + '-menu-item-loading-icon' },
  8510. [h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  8511. attrs: { type: 'redo', spin: true }
  8512. })]
  8513. );
  8514. var getPopupContainer = props.getPopupContainer || getContextPopupContainer;
  8515. var cascaderProps = {
  8516. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
  8517. getPopupContainer: getPopupContainer,
  8518. options: options,
  8519. prefixCls: prefixCls,
  8520. value: value,
  8521. popupVisible: sPopupVisible,
  8522. dropdownMenuColumnStyle: dropdownMenuColumnStyle,
  8523. expandIcon: expandIcon,
  8524. loadingIcon: loadingIcon
  8525. }),
  8526. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getListeners"])(this), {
  8527. popupVisibleChange: this.handlePopupVisibleChange,
  8528. change: this.handleChange
  8529. })
  8530. };
  8531. return h(
  8532. _vc_cascader__WEBPACK_IMPORTED_MODULE_4__["default"],
  8533. cascaderProps,
  8534. [input]
  8535. );
  8536. }
  8537. };
  8538. /* istanbul ignore next */
  8539. Cascader.install = function (Vue) {
  8540. Vue.use(_base__WEBPACK_IMPORTED_MODULE_16__["default"]);
  8541. Vue.component(Cascader.name, Cascader);
  8542. };
  8543. /* harmony default export */ __webpack_exports__["default"] = (Cascader);
  8544. /***/ }),
  8545. /***/ "./components/cascader/style/index.js":
  8546. /*!********************************************!*\
  8547. !*** ./components/cascader/style/index.js ***!
  8548. \********************************************/
  8549. /*! no exports provided */
  8550. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8551. "use strict";
  8552. __webpack_require__.r(__webpack_exports__);
  8553. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  8554. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  8555. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/cascader/style/index.less");
  8556. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  8557. /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
  8558. /* harmony import */ var _input_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../input/style */ "./components/input/style/index.js");
  8559. // style dependencies
  8560. /***/ }),
  8561. /***/ "./components/cascader/style/index.less":
  8562. /*!**********************************************!*\
  8563. !*** ./components/cascader/style/index.less ***!
  8564. \**********************************************/
  8565. /*! no static exports found */
  8566. /***/ (function(module, exports, __webpack_require__) {
  8567. // extracted by mini-css-extract-plugin
  8568. /***/ }),
  8569. /***/ "./components/checkbox/Checkbox.jsx":
  8570. /*!******************************************!*\
  8571. !*** ./components/checkbox/Checkbox.jsx ***!
  8572. \******************************************/
  8573. /*! exports provided: default */
  8574. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8575. "use strict";
  8576. __webpack_require__.r(__webpack_exports__);
  8577. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  8578. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  8579. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  8580. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  8581. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  8582. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  8583. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  8584. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);
  8585. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  8586. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  8587. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
  8588. /* harmony import */ var _vc_checkbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-checkbox */ "./components/vc-checkbox/index.js");
  8589. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  8590. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  8591. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  8592. function noop() {}
  8593. /* harmony default export */ __webpack_exports__["default"] = ({
  8594. name: 'ACheckbox',
  8595. inheritAttrs: false,
  8596. __ANT_CHECKBOX: true,
  8597. model: {
  8598. prop: 'checked'
  8599. },
  8600. props: {
  8601. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  8602. defaultChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  8603. checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  8604. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  8605. isGroup: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  8606. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  8607. name: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  8608. id: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  8609. indeterminate: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  8610. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('checkbox'),
  8611. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
  8612. },
  8613. inject: {
  8614. configProvider: { 'default': function _default() {
  8615. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
  8616. } },
  8617. checkboxGroupContext: { 'default': function _default() {
  8618. return undefined;
  8619. } }
  8620. },
  8621. watch: {
  8622. value: function value(_value, prevValue) {
  8623. var _this = this;
  8624. this.$nextTick(function () {
  8625. var _checkboxGroupContext = _this.checkboxGroupContext,
  8626. checkboxGroup = _checkboxGroupContext === undefined ? {} : _checkboxGroupContext;
  8627. if (checkboxGroup.registerValue && checkboxGroup.cancelValue) {
  8628. checkboxGroup.cancelValue(prevValue);
  8629. checkboxGroup.registerValue(_value);
  8630. }
  8631. });
  8632. }
  8633. },
  8634. mounted: function mounted() {
  8635. var value = this.value,
  8636. _checkboxGroupContext2 = this.checkboxGroupContext,
  8637. checkboxGroup = _checkboxGroupContext2 === undefined ? {} : _checkboxGroupContext2;
  8638. if (checkboxGroup.registerValue) {
  8639. checkboxGroup.registerValue(value);
  8640. }
  8641. Object(_util_warning__WEBPACK_IMPORTED_MODULE_9__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["default"])(this, 'checked') || this.checkboxGroupContext || !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["default"])(this, 'value'), 'Checkbox', '`value` is not validate prop, do you mean `checked`?');
  8642. },
  8643. beforeDestroy: function beforeDestroy() {
  8644. var value = this.value,
  8645. _checkboxGroupContext3 = this.checkboxGroupContext,
  8646. checkboxGroup = _checkboxGroupContext3 === undefined ? {} : _checkboxGroupContext3;
  8647. if (checkboxGroup.cancelValue) {
  8648. checkboxGroup.cancelValue(value);
  8649. }
  8650. },
  8651. methods: {
  8652. handleChange: function handleChange(event) {
  8653. var targetChecked = event.target.checked;
  8654. this.$emit('input', targetChecked);
  8655. this.$emit('change', event);
  8656. },
  8657. focus: function focus() {
  8658. this.$refs.vcCheckbox.focus();
  8659. },
  8660. blur: function blur() {
  8661. this.$refs.vcCheckbox.blur();
  8662. }
  8663. },
  8664. render: function render() {
  8665. var _this2 = this,
  8666. _classNames;
  8667. var h = arguments[0];
  8668. var checkboxGroup = this.checkboxGroupContext,
  8669. $slots = this.$slots;
  8670. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
  8671. var children = $slots['default'];
  8672. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
  8673. _getListeners$mouseen = _getListeners.mouseenter,
  8674. mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
  8675. _getListeners$mousele = _getListeners.mouseleave,
  8676. mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele,
  8677. input = _getListeners.input,
  8678. restListeners = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_getListeners, ['mouseenter', 'mouseleave', 'input']);
  8679. var customizePrefixCls = props.prefixCls,
  8680. indeterminate = props.indeterminate,
  8681. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(props, ['prefixCls', 'indeterminate']);
  8682. var getPrefixCls = this.configProvider.getPrefixCls;
  8683. var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
  8684. var checkboxProps = {
  8685. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, { prefixCls: prefixCls }),
  8686. on: restListeners,
  8687. attrs: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getAttrs"])(this)
  8688. };
  8689. if (checkboxGroup) {
  8690. checkboxProps.on.change = function () {
  8691. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  8692. args[_key] = arguments[_key];
  8693. }
  8694. _this2.$emit.apply(_this2, ['change'].concat(args));
  8695. checkboxGroup.toggleOption({ label: children, value: props.value });
  8696. };
  8697. checkboxProps.props.name = checkboxGroup.name;
  8698. checkboxProps.props.checked = checkboxGroup.sValue.indexOf(props.value) !== -1;
  8699. checkboxProps.props.disabled = props.disabled || checkboxGroup.disabled;
  8700. checkboxProps.props.indeterminate = indeterminate;
  8701. } else {
  8702. checkboxProps.on.change = this.handleChange;
  8703. }
  8704. var classString = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper-checked', checkboxProps.props.checked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper-disabled', checkboxProps.props.disabled), _classNames));
  8705. var checkboxClass = classnames__WEBPACK_IMPORTED_MODULE_5___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-indeterminate', indeterminate));
  8706. return h(
  8707. 'label',
  8708. { 'class': classString, on: {
  8709. 'mouseenter': mouseenter,
  8710. 'mouseleave': mouseleave
  8711. }
  8712. },
  8713. [h(_vc_checkbox__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([checkboxProps, { 'class': checkboxClass, ref: 'vcCheckbox' }])), children !== undefined && h('span', [children])]
  8714. );
  8715. }
  8716. });
  8717. /***/ }),
  8718. /***/ "./components/checkbox/Group.jsx":
  8719. /*!***************************************!*\
  8720. !*** ./components/checkbox/Group.jsx ***!
  8721. \***************************************/
  8722. /*! exports provided: default */
  8723. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8724. "use strict";
  8725. __webpack_require__.r(__webpack_exports__);
  8726. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  8727. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  8728. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  8729. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  8730. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  8731. /* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Checkbox */ "./components/checkbox/Checkbox.jsx");
  8732. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  8733. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  8734. function noop() {}
  8735. /* harmony default export */ __webpack_exports__["default"] = ({
  8736. name: 'ACheckboxGroup',
  8737. model: {
  8738. prop: 'value'
  8739. },
  8740. props: {
  8741. name: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  8742. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  8743. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
  8744. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
  8745. options: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def([]),
  8746. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
  8747. },
  8748. provide: function provide() {
  8749. return {
  8750. checkboxGroupContext: this
  8751. };
  8752. },
  8753. inject: {
  8754. configProvider: { 'default': function _default() {
  8755. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
  8756. } }
  8757. },
  8758. data: function data() {
  8759. var value = this.value,
  8760. defaultValue = this.defaultValue;
  8761. return {
  8762. sValue: value || defaultValue || [],
  8763. registeredValues: []
  8764. };
  8765. },
  8766. watch: {
  8767. value: function value(val) {
  8768. this.sValue = val || [];
  8769. }
  8770. },
  8771. methods: {
  8772. getOptions: function getOptions() {
  8773. var options = this.options,
  8774. $scopedSlots = this.$scopedSlots;
  8775. return options.map(function (option) {
  8776. if (typeof option === 'string') {
  8777. return {
  8778. label: option,
  8779. value: option
  8780. };
  8781. }
  8782. var label = option.label;
  8783. if (label === undefined && $scopedSlots.label) {
  8784. label = $scopedSlots.label(option);
  8785. }
  8786. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, option, { label: label });
  8787. });
  8788. },
  8789. cancelValue: function cancelValue(value) {
  8790. this.registeredValues = this.registeredValues.filter(function (val) {
  8791. return val !== value;
  8792. });
  8793. },
  8794. registerValue: function registerValue(value) {
  8795. this.registeredValues = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(this.registeredValues), [value]);
  8796. },
  8797. toggleOption: function toggleOption(option) {
  8798. var registeredValues = this.registeredValues;
  8799. var optionIndex = this.sValue.indexOf(option.value);
  8800. var value = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(this.sValue));
  8801. if (optionIndex === -1) {
  8802. value.push(option.value);
  8803. } else {
  8804. value.splice(optionIndex, 1);
  8805. }
  8806. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'value')) {
  8807. this.sValue = value;
  8808. }
  8809. var options = this.getOptions();
  8810. var val = value.filter(function (val) {
  8811. return registeredValues.indexOf(val) !== -1;
  8812. }).sort(function (a, b) {
  8813. var indexA = options.findIndex(function (opt) {
  8814. return opt.value === a;
  8815. });
  8816. var indexB = options.findIndex(function (opt) {
  8817. return opt.value === b;
  8818. });
  8819. return indexA - indexB;
  8820. });
  8821. this.$emit('input', val);
  8822. this.$emit('change', val);
  8823. }
  8824. },
  8825. render: function render() {
  8826. var h = arguments[0];
  8827. var props = this.$props,
  8828. state = this.$data,
  8829. $slots = this.$slots;
  8830. var customizePrefixCls = props.prefixCls,
  8831. options = props.options;
  8832. var getPrefixCls = this.configProvider.getPrefixCls;
  8833. var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
  8834. var children = $slots['default'];
  8835. var groupPrefixCls = prefixCls + '-group';
  8836. if (options && options.length > 0) {
  8837. children = this.getOptions().map(function (option) {
  8838. return h(
  8839. _Checkbox__WEBPACK_IMPORTED_MODULE_3__["default"],
  8840. {
  8841. attrs: {
  8842. prefixCls: prefixCls,
  8843. disabled: 'disabled' in option ? option.disabled : props.disabled,
  8844. indeterminate: option.indeterminate,
  8845. value: option.value,
  8846. checked: state.sValue.indexOf(option.value) !== -1
  8847. },
  8848. key: option.value.toString(), on: {
  8849. 'change': option.onChange || noop
  8850. },
  8851. 'class': groupPrefixCls + '-item'
  8852. },
  8853. [option.label]
  8854. );
  8855. });
  8856. }
  8857. return h(
  8858. 'div',
  8859. { 'class': groupPrefixCls },
  8860. [children]
  8861. );
  8862. }
  8863. });
  8864. /***/ }),
  8865. /***/ "./components/checkbox/index.js":
  8866. /*!**************************************!*\
  8867. !*** ./components/checkbox/index.js ***!
  8868. \**************************************/
  8869. /*! exports provided: default */
  8870. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8871. "use strict";
  8872. __webpack_require__.r(__webpack_exports__);
  8873. /* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Checkbox */ "./components/checkbox/Checkbox.jsx");
  8874. /* harmony import */ var _Group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Group */ "./components/checkbox/Group.jsx");
  8875. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  8876. _Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"].Group = _Group__WEBPACK_IMPORTED_MODULE_1__["default"];
  8877. /* istanbul ignore next */
  8878. _Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  8879. Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
  8880. Vue.component(_Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]);
  8881. Vue.component(_Group__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Group__WEBPACK_IMPORTED_MODULE_1__["default"]);
  8882. };
  8883. /* harmony default export */ __webpack_exports__["default"] = (_Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]);
  8884. /***/ }),
  8885. /***/ "./components/checkbox/style/index.js":
  8886. /*!********************************************!*\
  8887. !*** ./components/checkbox/style/index.js ***!
  8888. \********************************************/
  8889. /*! no exports provided */
  8890. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8891. "use strict";
  8892. __webpack_require__.r(__webpack_exports__);
  8893. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  8894. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  8895. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/checkbox/style/index.less");
  8896. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  8897. /***/ }),
  8898. /***/ "./components/checkbox/style/index.less":
  8899. /*!**********************************************!*\
  8900. !*** ./components/checkbox/style/index.less ***!
  8901. \**********************************************/
  8902. /*! no static exports found */
  8903. /***/ (function(module, exports, __webpack_require__) {
  8904. // extracted by mini-css-extract-plugin
  8905. /***/ }),
  8906. /***/ "./components/col/index.js":
  8907. /*!*********************************!*\
  8908. !*** ./components/col/index.js ***!
  8909. \*********************************/
  8910. /*! exports provided: default */
  8911. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8912. "use strict";
  8913. __webpack_require__.r(__webpack_exports__);
  8914. /* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../grid */ "./components/grid/index.js");
  8915. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  8916. /* istanbul ignore next */
  8917. _grid__WEBPACK_IMPORTED_MODULE_0__["Col"].install = function (Vue) {
  8918. Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
  8919. Vue.component(_grid__WEBPACK_IMPORTED_MODULE_0__["Col"].name, _grid__WEBPACK_IMPORTED_MODULE_0__["Col"]);
  8920. };
  8921. /* harmony default export */ __webpack_exports__["default"] = (_grid__WEBPACK_IMPORTED_MODULE_0__["Col"]);
  8922. /***/ }),
  8923. /***/ "./components/col/style/index.js":
  8924. /*!***************************************!*\
  8925. !*** ./components/col/style/index.js ***!
  8926. \***************************************/
  8927. /*! no exports provided */
  8928. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8929. "use strict";
  8930. __webpack_require__.r(__webpack_exports__);
  8931. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  8932. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  8933. /* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
  8934. // style dependencies
  8935. // deps-lint-skip: grid
  8936. /***/ }),
  8937. /***/ "./components/collapse/Collapse.jsx":
  8938. /*!******************************************!*\
  8939. !*** ./components/collapse/Collapse.jsx ***!
  8940. \******************************************/
  8941. /*! exports provided: default */
  8942. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8943. "use strict";
  8944. __webpack_require__.r(__webpack_exports__);
  8945. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  8946. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  8947. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  8948. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  8949. /* harmony import */ var _util_openAnimation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/openAnimation */ "./components/_util/openAnimation.js");
  8950. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  8951. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  8952. /* harmony import */ var _vc_collapse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-collapse */ "./components/vc-collapse/index.js");
  8953. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  8954. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  8955. /* harmony default export */ __webpack_exports__["default"] = ({
  8956. name: 'ACollapse',
  8957. model: {
  8958. prop: 'activeKey',
  8959. event: 'change'
  8960. },
  8961. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(Object(_vc_collapse__WEBPACK_IMPORTED_MODULE_5__["collapseProps"])(), {
  8962. bordered: true,
  8963. openAnimation: _util_openAnimation__WEBPACK_IMPORTED_MODULE_2__["default"],
  8964. expandIconPosition: 'left'
  8965. }),
  8966. inject: {
  8967. configProvider: { 'default': function _default() {
  8968. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
  8969. } }
  8970. },
  8971. methods: {
  8972. renderExpandIcon: function renderExpandIcon(panelProps, prefixCls) {
  8973. var h = this.$createElement;
  8974. var expandIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'expandIcon', panelProps);
  8975. var icon = expandIcon || h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
  8976. attrs: { type: 'right', rotate: panelProps.isActive ? 90 : undefined }
  8977. });
  8978. return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["isValidElement"])(Array.isArray(expandIcon) ? icon[0] : icon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(icon, {
  8979. 'class': prefixCls + '-arrow'
  8980. }) : icon;
  8981. }
  8982. },
  8983. render: function render() {
  8984. var _collapseClassName,
  8985. _this = this;
  8986. var h = arguments[0];
  8987. var customizePrefixCls = this.prefixCls,
  8988. bordered = this.bordered,
  8989. expandIconPosition = this.expandIconPosition;
  8990. var getPrefixCls = this.configProvider.getPrefixCls;
  8991. var prefixCls = getPrefixCls('collapse', customizePrefixCls);
  8992. var collapseClassName = (_collapseClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_collapseClassName, prefixCls + '-borderless', !bordered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_collapseClassName, prefixCls + '-icon-position-' + expandIconPosition, true), _collapseClassName);
  8993. var rcCollapeProps = {
  8994. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this), {
  8995. prefixCls: prefixCls,
  8996. expandIcon: function expandIcon(panelProps) {
  8997. return _this.renderExpandIcon(panelProps, prefixCls);
  8998. }
  8999. }),
  9000. 'class': collapseClassName,
  9001. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
  9002. };
  9003. return h(
  9004. _vc_collapse__WEBPACK_IMPORTED_MODULE_5__["default"],
  9005. rcCollapeProps,
  9006. [this.$slots['default']]
  9007. );
  9008. }
  9009. });
  9010. /***/ }),
  9011. /***/ "./components/collapse/CollapsePanel.jsx":
  9012. /*!***********************************************!*\
  9013. !*** ./components/collapse/CollapsePanel.jsx ***!
  9014. \***********************************************/
  9015. /*! exports provided: default */
  9016. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9017. "use strict";
  9018. __webpack_require__.r(__webpack_exports__);
  9019. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  9020. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  9021. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  9022. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  9023. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  9024. /* harmony import */ var _vc_collapse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-collapse */ "./components/vc-collapse/index.js");
  9025. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  9026. /* harmony default export */ __webpack_exports__["default"] = ({
  9027. name: 'ACollapsePanel',
  9028. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_vc_collapse__WEBPACK_IMPORTED_MODULE_3__["panelProps"])()),
  9029. inject: {
  9030. configProvider: { 'default': function _default() {
  9031. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
  9032. } }
  9033. },
  9034. render: function render() {
  9035. var h = arguments[0];
  9036. var customizePrefixCls = this.prefixCls,
  9037. _showArrow = this.showArrow,
  9038. showArrow = _showArrow === undefined ? true : _showArrow;
  9039. var getPrefixCls = this.configProvider.getPrefixCls;
  9040. var prefixCls = getPrefixCls('collapse', customizePrefixCls);
  9041. var collapsePanelClassName = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-no-arrow', !showArrow);
  9042. var rcCollapePanelProps = {
  9043. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this), {
  9044. prefixCls: prefixCls,
  9045. extra: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'extra')
  9046. }),
  9047. 'class': collapsePanelClassName,
  9048. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this)
  9049. };
  9050. var header = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'header');
  9051. return h(
  9052. _vc_collapse__WEBPACK_IMPORTED_MODULE_3__["default"].Panel,
  9053. rcCollapePanelProps,
  9054. [this.$slots['default'], header ? h(
  9055. 'template',
  9056. { slot: 'header' },
  9057. [header]
  9058. ) : null]
  9059. );
  9060. }
  9061. });
  9062. /***/ }),
  9063. /***/ "./components/collapse/index.js":
  9064. /*!**************************************!*\
  9065. !*** ./components/collapse/index.js ***!
  9066. \**************************************/
  9067. /*! exports provided: default */
  9068. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9069. "use strict";
  9070. __webpack_require__.r(__webpack_exports__);
  9071. /* harmony import */ var _Collapse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Collapse */ "./components/collapse/Collapse.jsx");
  9072. /* harmony import */ var _CollapsePanel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CollapsePanel */ "./components/collapse/CollapsePanel.jsx");
  9073. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  9074. _Collapse__WEBPACK_IMPORTED_MODULE_0__["default"].Panel = _CollapsePanel__WEBPACK_IMPORTED_MODULE_1__["default"];
  9075. /* istanbul ignore next */
  9076. _Collapse__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  9077. Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
  9078. Vue.component(_Collapse__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Collapse__WEBPACK_IMPORTED_MODULE_0__["default"]);
  9079. Vue.component(_CollapsePanel__WEBPACK_IMPORTED_MODULE_1__["default"].name, _CollapsePanel__WEBPACK_IMPORTED_MODULE_1__["default"]);
  9080. };
  9081. /* harmony default export */ __webpack_exports__["default"] = (_Collapse__WEBPACK_IMPORTED_MODULE_0__["default"]);
  9082. /***/ }),
  9083. /***/ "./components/collapse/style/index.js":
  9084. /*!********************************************!*\
  9085. !*** ./components/collapse/style/index.js ***!
  9086. \********************************************/
  9087. /*! no exports provided */
  9088. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9089. "use strict";
  9090. __webpack_require__.r(__webpack_exports__);
  9091. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  9092. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  9093. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/collapse/style/index.less");
  9094. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  9095. /***/ }),
  9096. /***/ "./components/collapse/style/index.less":
  9097. /*!**********************************************!*\
  9098. !*** ./components/collapse/style/index.less ***!
  9099. \**********************************************/
  9100. /*! no static exports found */
  9101. /***/ (function(module, exports, __webpack_require__) {
  9102. // extracted by mini-css-extract-plugin
  9103. /***/ }),
  9104. /***/ "./components/comment/index.jsx":
  9105. /*!**************************************!*\
  9106. !*** ./components/comment/index.jsx ***!
  9107. \**************************************/
  9108. /*! exports provided: CommentProps, default */
  9109. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9110. "use strict";
  9111. __webpack_require__.r(__webpack_exports__);
  9112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommentProps", function() { return CommentProps; });
  9113. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  9114. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  9115. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  9116. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  9117. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  9118. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  9119. var CommentProps = {
  9120. actions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  9121. /** The element to display as the comment author. */
  9122. author: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  9123. /** The element to display as the comment avatar - generally an antd Avatar */
  9124. avatar: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  9125. /** The main content of the comment */
  9126. content: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  9127. /** Comment prefix defaults to '.ant-comment' */
  9128. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  9129. /** A datetime element containing the time to be displayed */
  9130. datetime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  9131. };
  9132. var Comment = {
  9133. name: 'AComment',
  9134. props: CommentProps,
  9135. inject: {
  9136. configProvider: { 'default': function _default() {
  9137. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
  9138. } }
  9139. },
  9140. methods: {
  9141. getAction: function getAction(actions) {
  9142. var h = this.$createElement;
  9143. if (!actions || !actions.length) {
  9144. return null;
  9145. }
  9146. var actionList = actions.map(function (action, index) {
  9147. return h(
  9148. 'li',
  9149. { key: 'action-' + index },
  9150. [action]
  9151. );
  9152. });
  9153. return actionList;
  9154. },
  9155. renderNested: function renderNested(prefixCls, children) {
  9156. var h = this.$createElement;
  9157. return h(
  9158. 'div',
  9159. { 'class': prefixCls + '-nested' },
  9160. [children]
  9161. );
  9162. }
  9163. },
  9164. render: function render() {
  9165. var h = arguments[0];
  9166. var customizePrefixCls = this.$props.prefixCls;
  9167. var getPrefixCls = this.configProvider.getPrefixCls;
  9168. var prefixCls = getPrefixCls('comment', customizePrefixCls);
  9169. var actions = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'actions');
  9170. var author = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'author');
  9171. var avatar = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'avatar');
  9172. var content = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'content');
  9173. var datetime = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'datetime');
  9174. var avatarDom = h(
  9175. 'div',
  9176. { 'class': prefixCls + '-avatar' },
  9177. [typeof avatar === 'string' ? h('img', {
  9178. attrs: { src: avatar, alt: 'comment-avatar' }
  9179. }) : avatar]
  9180. );
  9181. var actionDom = actions && actions.length ? h(
  9182. 'ul',
  9183. { 'class': prefixCls + '-actions' },
  9184. [this.getAction(actions)]
  9185. ) : null;
  9186. var authorContent = h(
  9187. 'div',
  9188. { 'class': prefixCls + '-content-author' },
  9189. [author && h(
  9190. 'span',
  9191. { 'class': prefixCls + '-content-author-name' },
  9192. [author]
  9193. ), datetime && h(
  9194. 'span',
  9195. { 'class': prefixCls + '-content-author-time' },
  9196. [datetime]
  9197. )]
  9198. );
  9199. var contentDom = h(
  9200. 'div',
  9201. { 'class': prefixCls + '-content' },
  9202. [authorContent, h(
  9203. 'div',
  9204. { 'class': prefixCls + '-content-detail' },
  9205. [content]
  9206. ), actionDom]
  9207. );
  9208. var comment = h(
  9209. 'div',
  9210. { 'class': prefixCls + '-inner' },
  9211. [avatarDom, contentDom]
  9212. );
  9213. var children = this.$slots['default'];
  9214. return h(
  9215. 'div',
  9216. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': prefixCls }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this) }]),
  9217. [comment, children ? this.renderNested(prefixCls, children) : null]
  9218. );
  9219. }
  9220. };
  9221. /* istanbul ignore next */
  9222. Comment.install = function (Vue) {
  9223. Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
  9224. Vue.component(Comment.name, Comment);
  9225. };
  9226. /* harmony default export */ __webpack_exports__["default"] = (Comment);
  9227. /***/ }),
  9228. /***/ "./components/comment/style/index.js":
  9229. /*!*******************************************!*\
  9230. !*** ./components/comment/style/index.js ***!
  9231. \*******************************************/
  9232. /*! no exports provided */
  9233. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9234. "use strict";
  9235. __webpack_require__.r(__webpack_exports__);
  9236. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  9237. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  9238. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/comment/style/index.less");
  9239. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  9240. /***/ }),
  9241. /***/ "./components/comment/style/index.less":
  9242. /*!*********************************************!*\
  9243. !*** ./components/comment/style/index.less ***!
  9244. \*********************************************/
  9245. /*! no static exports found */
  9246. /***/ (function(module, exports, __webpack_require__) {
  9247. // extracted by mini-css-extract-plugin
  9248. /***/ }),
  9249. /***/ "./components/config-provider/configConsumerProps.jsx":
  9250. /*!************************************************************!*\
  9251. !*** ./components/config-provider/configConsumerProps.jsx ***!
  9252. \************************************************************/
  9253. /*! exports provided: ConfigConsumerProps */
  9254. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9255. "use strict";
  9256. __webpack_require__.r(__webpack_exports__);
  9257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigConsumerProps", function() { return ConfigConsumerProps; });
  9258. /* harmony import */ var _renderEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./renderEmpty */ "./components/config-provider/renderEmpty.jsx");
  9259. var ConfigConsumerProps = {
  9260. getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) {
  9261. if (customizePrefixCls) return customizePrefixCls;
  9262. return 'ant-' + suffixCls;
  9263. },
  9264. renderEmpty: _renderEmpty__WEBPACK_IMPORTED_MODULE_0__["default"]
  9265. };
  9266. /***/ }),
  9267. /***/ "./components/config-provider/index.jsx":
  9268. /*!**********************************************!*\
  9269. !*** ./components/config-provider/index.jsx ***!
  9270. \**********************************************/
  9271. /*! exports provided: default */
  9272. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9273. "use strict";
  9274. __webpack_require__.r(__webpack_exports__);
  9275. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  9276. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  9277. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "vue");
  9278. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
  9279. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  9280. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  9281. /* harmony import */ var _renderEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./renderEmpty */ "./components/config-provider/renderEmpty.jsx");
  9282. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  9283. /* harmony import */ var _locale_provider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../locale-provider */ "./components/locale-provider/index.jsx");
  9284. /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
  9285. function getWatch() {
  9286. var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  9287. var watch = {};
  9288. keys.forEach(function (k) {
  9289. watch[k] = function (value) {
  9290. this._proxyVm._data[k] = value;
  9291. };
  9292. });
  9293. return watch;
  9294. }
  9295. var ConfigProvider = {
  9296. name: 'AConfigProvider',
  9297. props: {
  9298. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  9299. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  9300. renderEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  9301. csp: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  9302. autoInsertSpaceInButton: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  9303. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  9304. pageHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  9305. transformCellText: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
  9306. },
  9307. provide: function provide() {
  9308. var _self = this;
  9309. this._proxyVm = new vue__WEBPACK_IMPORTED_MODULE_1___default.a({
  9310. data: function data() {
  9311. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _self.$props, {
  9312. getPrefixCls: _self.getPrefixCls,
  9313. renderEmpty: _self.renderEmptyComponent
  9314. });
  9315. }
  9316. });
  9317. return {
  9318. configProvider: this._proxyVm._data
  9319. };
  9320. },
  9321. watch: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, getWatch(['prefixCls', 'csp', 'autoInsertSpaceInButton', 'locale', 'pageHeader', 'transformCellText'])),
  9322. methods: {
  9323. renderEmptyComponent: function renderEmptyComponent(h, name) {
  9324. var renderEmpty = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'renderEmpty', {}, false) || _renderEmpty__WEBPACK_IMPORTED_MODULE_4__["default"];
  9325. return renderEmpty(h, name);
  9326. },
  9327. getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) {
  9328. var _$props$prefixCls = this.$props.prefixCls,
  9329. prefixCls = _$props$prefixCls === undefined ? 'ant' : _$props$prefixCls;
  9330. if (customizePrefixCls) return customizePrefixCls;
  9331. return suffixCls ? prefixCls + '-' + suffixCls : prefixCls;
  9332. },
  9333. renderProvider: function renderProvider(legacyLocale) {
  9334. var h = this.$createElement;
  9335. return h(
  9336. _locale_provider__WEBPACK_IMPORTED_MODULE_6__["default"],
  9337. {
  9338. attrs: { locale: this.locale || legacyLocale, _ANT_MARK__: _locale_provider__WEBPACK_IMPORTED_MODULE_6__["ANT_MARK"] }
  9339. },
  9340. [this.$slots['default'] ? Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["filterEmpty"])(this.$slots['default'])[0] : null]
  9341. );
  9342. }
  9343. },
  9344. render: function render() {
  9345. var _this = this;
  9346. var h = arguments[0];
  9347. return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_7__["default"], {
  9348. scopedSlots: { 'default': function _default(_, __, legacyLocale) {
  9349. return _this.renderProvider(legacyLocale);
  9350. } }
  9351. });
  9352. }
  9353. };
  9354. /* istanbul ignore next */
  9355. ConfigProvider.install = function (Vue) {
  9356. Vue.use(_base__WEBPACK_IMPORTED_MODULE_5__["default"]);
  9357. Vue.component(ConfigProvider.name, ConfigProvider);
  9358. };
  9359. /* harmony default export */ __webpack_exports__["default"] = (ConfigProvider);
  9360. /***/ }),
  9361. /***/ "./components/config-provider/renderEmpty.jsx":
  9362. /*!****************************************************!*\
  9363. !*** ./components/config-provider/renderEmpty.jsx ***!
  9364. \****************************************************/
  9365. /*! exports provided: default */
  9366. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9367. "use strict";
  9368. __webpack_require__.r(__webpack_exports__);
  9369. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  9370. /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../empty */ "./components/empty/index.jsx");
  9371. /* harmony import */ var _configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  9372. var RenderEmpty = {
  9373. functional: true,
  9374. inject: {
  9375. configProvider: { 'default': function _default() {
  9376. return _configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
  9377. } }
  9378. },
  9379. props: {
  9380. componentName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string
  9381. },
  9382. render: function render(createElement, context) {
  9383. var h = arguments[0];
  9384. var props = context.props,
  9385. injections = context.injections;
  9386. function renderHtml(componentName) {
  9387. var getPrefixCls = injections.configProvider.getPrefixCls;
  9388. var prefix = getPrefixCls('empty');
  9389. switch (componentName) {
  9390. case 'Table':
  9391. case 'List':
  9392. return h(_empty__WEBPACK_IMPORTED_MODULE_1__["default"], {
  9393. attrs: { image: _empty__WEBPACK_IMPORTED_MODULE_1__["default"].PRESENTED_IMAGE_SIMPLE }
  9394. });
  9395. case 'Select':
  9396. case 'TreeSelect':
  9397. case 'Cascader':
  9398. case 'Transfer':
  9399. case 'Mentions':
  9400. return h(_empty__WEBPACK_IMPORTED_MODULE_1__["default"], {
  9401. attrs: { image: _empty__WEBPACK_IMPORTED_MODULE_1__["default"].PRESENTED_IMAGE_SIMPLE },
  9402. 'class': prefix + '-small' });
  9403. default:
  9404. return h(_empty__WEBPACK_IMPORTED_MODULE_1__["default"]);
  9405. }
  9406. }
  9407. return renderHtml(props.componentName);
  9408. }
  9409. };
  9410. function renderEmpty(h, componentName) {
  9411. return h(RenderEmpty, {
  9412. attrs: { componentName: componentName }
  9413. });
  9414. }
  9415. /* harmony default export */ __webpack_exports__["default"] = (renderEmpty);
  9416. /***/ }),
  9417. /***/ "./components/config-provider/style/index.js":
  9418. /*!***************************************************!*\
  9419. !*** ./components/config-provider/style/index.js ***!
  9420. \***************************************************/
  9421. /*! no exports provided */
  9422. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9423. "use strict";
  9424. __webpack_require__.r(__webpack_exports__);
  9425. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.less */ "./components/config-provider/style/index.less");
  9426. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_0__);
  9427. /***/ }),
  9428. /***/ "./components/config-provider/style/index.less":
  9429. /*!*****************************************************!*\
  9430. !*** ./components/config-provider/style/index.less ***!
  9431. \*****************************************************/
  9432. /*! no static exports found */
  9433. /***/ (function(module, exports, __webpack_require__) {
  9434. // extracted by mini-css-extract-plugin
  9435. /***/ }),
  9436. /***/ "./components/date-picker/InputIcon.js":
  9437. /*!*********************************************!*\
  9438. !*** ./components/date-picker/InputIcon.js ***!
  9439. \*********************************************/
  9440. /*! exports provided: default */
  9441. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9442. "use strict";
  9443. __webpack_require__.r(__webpack_exports__);
  9444. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  9445. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  9446. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  9447. /* harmony default export */ __webpack_exports__["default"] = ({
  9448. functional: true,
  9449. render: function render(h, context) {
  9450. var props = context.props;
  9451. var suffixIcon = props.suffixIcon,
  9452. prefixCls = props.prefixCls;
  9453. return (suffixIcon && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["isValidElement"])(suffixIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(suffixIcon, {
  9454. 'class': prefixCls + '-picker-icon'
  9455. }) : h(
  9456. 'span',
  9457. { 'class': prefixCls + '-picker-icon' },
  9458. [suffixIcon]
  9459. )) || h(_icon__WEBPACK_IMPORTED_MODULE_0__["default"], {
  9460. attrs: { type: 'calendar' },
  9461. 'class': prefixCls + '-picker-icon' });
  9462. }
  9463. });
  9464. /***/ }),
  9465. /***/ "./components/date-picker/RangePicker.jsx":
  9466. /*!************************************************!*\
  9467. !*** ./components/date-picker/RangePicker.jsx ***!
  9468. \************************************************/
  9469. /*! exports provided: default */
  9470. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9471. "use strict";
  9472. __webpack_require__.r(__webpack_exports__);
  9473. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  9474. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  9475. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  9476. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  9477. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
  9478. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__);
  9479. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "moment");
  9480. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
  9481. /* harmony import */ var _vc_calendar_src_RangeCalendar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-calendar/src/RangeCalendar */ "./components/vc-calendar/src/RangeCalendar.jsx");
  9482. /* harmony import */ var _vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-calendar/src/Picker */ "./components/vc-calendar/src/Picker.jsx");
  9483. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  9484. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
  9485. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
  9486. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_7__);
  9487. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  9488. /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tag */ "./components/tag/index.js");
  9489. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  9490. /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
  9491. /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./interface */ "./components/date-picker/interface.js");
  9492. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  9493. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  9494. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./utils */ "./components/date-picker/utils.js");
  9495. /* harmony import */ var _InputIcon__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./InputIcon */ "./components/date-picker/InputIcon.js");
  9496. function noop() {}
  9497. function getShowDateFromValue(value, mode) {
  9498. var _value = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
  9499. start = _value[0],
  9500. end = _value[1];
  9501. // value could be an empty array, then we should not reset showDate
  9502. if (!start && !end) {
  9503. return;
  9504. }
  9505. if (mode && mode[0] === 'month') {
  9506. return [start, end];
  9507. }
  9508. var newEnd = end && end.isSame(start, 'month') ? end.clone().add(1, 'month') : end;
  9509. return [start, newEnd];
  9510. }
  9511. function pickerValueAdapter(value) {
  9512. if (!value) {
  9513. return;
  9514. }
  9515. if (Array.isArray(value)) {
  9516. return value;
  9517. }
  9518. return [value, value.clone().add(1, 'month')];
  9519. }
  9520. function isEmptyArray(arr) {
  9521. if (Array.isArray(arr)) {
  9522. return arr.length === 0 || arr.every(function (i) {
  9523. return !i;
  9524. });
  9525. }
  9526. return false;
  9527. }
  9528. function fixLocale(value, localeCode) {
  9529. if (!localeCode) {
  9530. return;
  9531. }
  9532. if (!value || value.length === 0) {
  9533. return;
  9534. }
  9535. var _value2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
  9536. start = _value2[0],
  9537. end = _value2[1];
  9538. if (start) {
  9539. start.locale(localeCode);
  9540. }
  9541. if (end) {
  9542. end.locale(localeCode);
  9543. }
  9544. }
  9545. /* harmony default export */ __webpack_exports__["default"] = ({
  9546. name: 'ARangePicker',
  9547. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__["default"]],
  9548. model: {
  9549. prop: 'value',
  9550. event: 'change'
  9551. },
  9552. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["initDefaultProps"])(Object(_interface__WEBPACK_IMPORTED_MODULE_12__["RangePickerProps"])(), {
  9553. allowClear: true,
  9554. showToday: false,
  9555. separator: '~'
  9556. }),
  9557. inject: {
  9558. configProvider: { 'default': function _default() {
  9559. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
  9560. } }
  9561. },
  9562. data: function data() {
  9563. var value = this.value || this.defaultValue || [];
  9564. var _value3 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
  9565. start = _value3[0],
  9566. end = _value3[1];
  9567. if (start && !Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_11__["default"])(moment__WEBPACK_IMPORTED_MODULE_3__).isMoment(start) || end && !Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_11__["default"])(moment__WEBPACK_IMPORTED_MODULE_3__).isMoment(end)) {
  9568. throw new Error('The value/defaultValue of RangePicker must be a moment object array after `antd@2.0`, ' + 'see: https://u.ant.design/date-picker-value');
  9569. }
  9570. var pickerValue = !value || isEmptyArray(value) ? this.defaultPickerValue : value;
  9571. return {
  9572. sValue: value,
  9573. sShowDate: pickerValueAdapter(pickerValue || Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_11__["default"])(moment__WEBPACK_IMPORTED_MODULE_3__)()),
  9574. sOpen: this.open,
  9575. sHoverValue: []
  9576. };
  9577. },
  9578. watch: {
  9579. value: function value(val) {
  9580. var value = val || [];
  9581. var state = { sValue: value };
  9582. if (!shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(val, this.sValue)) {
  9583. state = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, state, {
  9584. sShowDate: getShowDateFromValue(value, this.mode) || this.sShowDate
  9585. });
  9586. }
  9587. this.setState(state);
  9588. },
  9589. open: function open(val) {
  9590. var state = { sOpen: val };
  9591. this.setState(state);
  9592. },
  9593. sOpen: function sOpen(val, oldVal) {
  9594. var _this = this;
  9595. this.$nextTick(function () {
  9596. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["hasProp"])(_this, 'open') && oldVal && !val) {
  9597. _this.focus();
  9598. }
  9599. });
  9600. }
  9601. },
  9602. methods: {
  9603. setValue: function setValue(value, hidePanel) {
  9604. this.handleChange(value);
  9605. if ((hidePanel || !this.showTime) && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["hasProp"])(this, 'open')) {
  9606. this.setState({ sOpen: false });
  9607. }
  9608. },
  9609. clearSelection: function clearSelection(e) {
  9610. e.preventDefault();
  9611. e.stopPropagation();
  9612. this.setState({ sValue: [] });
  9613. this.handleChange([]);
  9614. },
  9615. clearHoverValue: function clearHoverValue() {
  9616. this.setState({ sHoverValue: [] });
  9617. },
  9618. handleChange: function handleChange(value) {
  9619. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["hasProp"])(this, 'value')) {
  9620. this.setState(function (_ref) {
  9621. var sShowDate = _ref.sShowDate;
  9622. return {
  9623. sValue: value,
  9624. sShowDate: getShowDateFromValue(value) || sShowDate
  9625. };
  9626. });
  9627. }
  9628. if (value[0] && value[1] && value[0].diff(value[1]) > 0) {
  9629. value[1] = undefined;
  9630. }
  9631. var _value4 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
  9632. start = _value4[0],
  9633. end = _value4[1];
  9634. this.$emit('change', value, [Object(_utils__WEBPACK_IMPORTED_MODULE_15__["formatDate"])(start, this.format), Object(_utils__WEBPACK_IMPORTED_MODULE_15__["formatDate"])(end, this.format)]);
  9635. },
  9636. handleOpenChange: function handleOpenChange(open) {
  9637. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["hasProp"])(this, 'open')) {
  9638. this.setState({ sOpen: open });
  9639. }
  9640. if (open === false) {
  9641. this.clearHoverValue();
  9642. }
  9643. this.$emit('openChange', open);
  9644. },
  9645. handleShowDateChange: function handleShowDateChange(showDate) {
  9646. this.setState({ sShowDate: showDate });
  9647. },
  9648. handleHoverChange: function handleHoverChange(hoverValue) {
  9649. this.setState({ sHoverValue: hoverValue });
  9650. },
  9651. handleRangeMouseLeave: function handleRangeMouseLeave() {
  9652. if (this.sOpen) {
  9653. this.clearHoverValue();
  9654. }
  9655. },
  9656. handleCalendarInputSelect: function handleCalendarInputSelect(value) {
  9657. var _value5 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 1),
  9658. start = _value5[0];
  9659. if (!start) {
  9660. return;
  9661. }
  9662. this.setState(function (_ref2) {
  9663. var sShowDate = _ref2.sShowDate;
  9664. return {
  9665. sValue: value,
  9666. sShowDate: getShowDateFromValue(value) || sShowDate
  9667. };
  9668. });
  9669. },
  9670. handleRangeClick: function handleRangeClick(value) {
  9671. if (typeof value === 'function') {
  9672. value = value();
  9673. }
  9674. this.setValue(value, true);
  9675. this.$emit('ok', value);
  9676. this.$emit('openChange', false);
  9677. },
  9678. onMouseEnter: function onMouseEnter(e) {
  9679. this.$emit('mouseenter', e);
  9680. },
  9681. onMouseLeave: function onMouseLeave(e) {
  9682. this.$emit('mouseleave', e);
  9683. },
  9684. focus: function focus() {
  9685. this.$refs.picker.focus();
  9686. },
  9687. blur: function blur() {
  9688. this.$refs.picker.blur();
  9689. },
  9690. renderFooter: function renderFooter() {
  9691. var _this2 = this;
  9692. var h = this.$createElement;
  9693. var ranges = this.ranges,
  9694. $scopedSlots = this.$scopedSlots,
  9695. $slots = this.$slots;
  9696. var prefixCls = this._prefixCls,
  9697. tagPrefixCls = this._tagPrefixCls;
  9698. var renderExtraFooter = this.renderExtraFooter || $scopedSlots.renderExtraFooter || $slots.renderExtraFooter;
  9699. if (!ranges && !renderExtraFooter) {
  9700. return null;
  9701. }
  9702. var customFooter = renderExtraFooter ? h(
  9703. 'div',
  9704. { 'class': prefixCls + '-footer-extra', key: 'extra' },
  9705. [typeof renderExtraFooter === 'function' ? renderExtraFooter() : renderExtraFooter]
  9706. ) : null;
  9707. var operations = ranges && Object.keys(ranges).map(function (range) {
  9708. var value = ranges[range];
  9709. var hoverValue = typeof value === 'function' ? value.call(_this2) : value;
  9710. return h(
  9711. _tag__WEBPACK_IMPORTED_MODULE_9__["default"],
  9712. {
  9713. key: range,
  9714. attrs: { prefixCls: tagPrefixCls,
  9715. color: 'blue'
  9716. },
  9717. on: {
  9718. 'click': function click() {
  9719. return _this2.handleRangeClick(value);
  9720. },
  9721. 'mouseenter': function mouseenter() {
  9722. return _this2.setState({ sHoverValue: hoverValue });
  9723. },
  9724. 'mouseleave': _this2.handleRangeMouseLeave
  9725. }
  9726. },
  9727. [range]
  9728. );
  9729. });
  9730. var rangeNode = operations && operations.length > 0 ? h(
  9731. 'div',
  9732. { 'class': prefixCls + '-footer-extra ' + prefixCls + '-range-quick-selector', key: 'range' },
  9733. [operations]
  9734. ) : null;
  9735. return [rangeNode, customFooter];
  9736. }
  9737. },
  9738. render: function render() {
  9739. var _classNames,
  9740. _this3 = this;
  9741. var h = arguments[0];
  9742. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getOptionProps"])(this);
  9743. var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getComponentFromProp"])(this, 'suffixIcon');
  9744. suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
  9745. var value = this.sValue,
  9746. showDate = this.sShowDate,
  9747. hoverValue = this.sHoverValue,
  9748. open = this.sOpen,
  9749. $scopedSlots = this.$scopedSlots;
  9750. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getListeners"])(this);
  9751. var _listeners$calendarCh = listeners.calendarChange,
  9752. calendarChange = _listeners$calendarCh === undefined ? noop : _listeners$calendarCh,
  9753. _listeners$ok = listeners.ok,
  9754. ok = _listeners$ok === undefined ? noop : _listeners$ok,
  9755. _listeners$focus = listeners.focus,
  9756. focus = _listeners$focus === undefined ? noop : _listeners$focus,
  9757. _listeners$blur = listeners.blur,
  9758. blur = _listeners$blur === undefined ? noop : _listeners$blur,
  9759. _listeners$panelChang = listeners.panelChange,
  9760. panelChange = _listeners$panelChang === undefined ? noop : _listeners$panelChang;
  9761. var customizePrefixCls = props.prefixCls,
  9762. customizeTagPrefixCls = props.tagPrefixCls,
  9763. popupStyle = props.popupStyle,
  9764. disabledDate = props.disabledDate,
  9765. disabledTime = props.disabledTime,
  9766. showTime = props.showTime,
  9767. showToday = props.showToday,
  9768. ranges = props.ranges,
  9769. locale = props.locale,
  9770. localeCode = props.localeCode,
  9771. format = props.format,
  9772. separator = props.separator,
  9773. inputReadOnly = props.inputReadOnly;
  9774. var getPrefixCls = this.configProvider.getPrefixCls;
  9775. var prefixCls = getPrefixCls('calendar', customizePrefixCls);
  9776. var tagPrefixCls = getPrefixCls('tag', customizeTagPrefixCls);
  9777. this._prefixCls = prefixCls;
  9778. this._tagPrefixCls = tagPrefixCls;
  9779. var dateRender = props.dateRender || $scopedSlots.dateRender;
  9780. fixLocale(value, localeCode);
  9781. fixLocale(showDate, localeCode);
  9782. var calendarClassName = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-time', showTime), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-range-with-ranges', ranges), _classNames));
  9783. // 需要选择时间时,点击 ok 时才触发 onChange
  9784. var pickerChangeHandler = {
  9785. on: {
  9786. change: this.handleChange
  9787. }
  9788. };
  9789. var calendarProps = {
  9790. on: {
  9791. ok: this.handleChange
  9792. },
  9793. props: {}
  9794. };
  9795. if (props.timePicker) {
  9796. pickerChangeHandler.on.change = function (changedValue) {
  9797. return _this3.handleChange(changedValue);
  9798. };
  9799. } else {
  9800. calendarProps = { on: {}, props: {} };
  9801. }
  9802. if ('mode' in props) {
  9803. calendarProps.props.mode = props.mode;
  9804. }
  9805. var startPlaceholder = Array.isArray(props.placeholder) ? props.placeholder[0] : locale.lang.rangePlaceholder[0];
  9806. var endPlaceholder = Array.isArray(props.placeholder) ? props.placeholder[1] : locale.lang.rangePlaceholder[1];
  9807. var rangeCalendarProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["mergeProps"])(calendarProps, {
  9808. props: {
  9809. separator: separator,
  9810. format: format,
  9811. prefixCls: prefixCls,
  9812. renderFooter: this.renderFooter,
  9813. timePicker: props.timePicker,
  9814. disabledDate: disabledDate,
  9815. disabledTime: disabledTime,
  9816. dateInputPlaceholder: [startPlaceholder, endPlaceholder],
  9817. locale: locale.lang,
  9818. dateRender: dateRender,
  9819. value: showDate,
  9820. hoverValue: hoverValue,
  9821. showToday: showToday,
  9822. inputReadOnly: inputReadOnly
  9823. },
  9824. on: {
  9825. change: calendarChange,
  9826. ok: ok,
  9827. valueChange: this.handleShowDateChange,
  9828. hoverChange: this.handleHoverChange,
  9829. panelChange: panelChange,
  9830. inputSelect: this.handleCalendarInputSelect
  9831. },
  9832. 'class': calendarClassName,
  9833. scopedSlots: $scopedSlots
  9834. });
  9835. var calendar = h(_vc_calendar_src_RangeCalendar__WEBPACK_IMPORTED_MODULE_4__["default"], rangeCalendarProps);
  9836. // default width for showTime
  9837. var pickerStyle = {};
  9838. if (props.showTime) {
  9839. pickerStyle.width = '350px';
  9840. }
  9841. var _value6 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
  9842. startValue = _value6[0],
  9843. endValue = _value6[1];
  9844. var clearIcon = !props.disabled && props.allowClear && value && (startValue || endValue) ? h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
  9845. attrs: {
  9846. type: 'close-circle',
  9847. theme: 'filled'
  9848. },
  9849. 'class': prefixCls + '-picker-clear',
  9850. on: {
  9851. 'click': this.clearSelection
  9852. }
  9853. }) : null;
  9854. var inputIcon = h(_InputIcon__WEBPACK_IMPORTED_MODULE_16__["default"], {
  9855. attrs: { suffixIcon: suffixIcon, prefixCls: prefixCls }
  9856. });
  9857. var input = function input(_ref3) {
  9858. var inputValue = _ref3.value;
  9859. var _inputValue = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(inputValue, 2),
  9860. start = _inputValue[0],
  9861. end = _inputValue[1];
  9862. return h(
  9863. 'span',
  9864. { 'class': props.pickerInputClass },
  9865. [h('input', {
  9866. attrs: {
  9867. disabled: props.disabled,
  9868. readOnly: true,
  9869. placeholder: startPlaceholder,
  9870. tabIndex: -1
  9871. },
  9872. domProps: {
  9873. 'value': Object(_utils__WEBPACK_IMPORTED_MODULE_15__["formatDate"])(start, props.format)
  9874. },
  9875. 'class': prefixCls + '-range-picker-input' }), h(
  9876. 'span',
  9877. { 'class': prefixCls + '-range-picker-separator' },
  9878. [' ', separator, ' ']
  9879. ), h('input', {
  9880. attrs: {
  9881. disabled: props.disabled,
  9882. readOnly: true,
  9883. placeholder: endPlaceholder,
  9884. tabIndex: -1
  9885. },
  9886. domProps: {
  9887. 'value': Object(_utils__WEBPACK_IMPORTED_MODULE_15__["formatDate"])(end, props.format)
  9888. },
  9889. 'class': prefixCls + '-range-picker-input' }), clearIcon, inputIcon]
  9890. );
  9891. };
  9892. var vcDatePickerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["mergeProps"])({
  9893. props: props,
  9894. on: listeners
  9895. }, pickerChangeHandler, {
  9896. props: {
  9897. calendar: calendar,
  9898. value: value,
  9899. open: open,
  9900. prefixCls: prefixCls + '-picker-container'
  9901. },
  9902. on: {
  9903. openChange: this.handleOpenChange
  9904. },
  9905. style: popupStyle,
  9906. scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({ 'default': input }, $scopedSlots)
  9907. });
  9908. return h(
  9909. 'span',
  9910. {
  9911. ref: 'picker',
  9912. 'class': props.pickerClass,
  9913. style: pickerStyle,
  9914. attrs: { tabIndex: props.disabled ? -1 : 0
  9915. },
  9916. on: {
  9917. 'focus': focus,
  9918. 'blur': blur,
  9919. 'mouseenter': this.onMouseEnter,
  9920. 'mouseleave': this.onMouseLeave
  9921. }
  9922. },
  9923. [h(_vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_5__["default"], vcDatePickerProps)]
  9924. );
  9925. }
  9926. });
  9927. /***/ }),
  9928. /***/ "./components/date-picker/WeekPicker.jsx":
  9929. /*!***********************************************!*\
  9930. !*** ./components/date-picker/WeekPicker.jsx ***!
  9931. \***********************************************/
  9932. /*! exports provided: default */
  9933. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9934. "use strict";
  9935. __webpack_require__.r(__webpack_exports__);
  9936. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  9937. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  9938. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
  9939. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
  9940. /* harmony import */ var _vc_calendar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-calendar */ "./components/vc-calendar/index.js");
  9941. /* harmony import */ var _vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-calendar/src/Picker */ "./components/vc-calendar/src/Picker.jsx");
  9942. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  9943. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  9944. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  9945. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  9946. /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./interface */ "./components/date-picker/interface.js");
  9947. /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
  9948. /* harmony import */ var _InputIcon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./InputIcon */ "./components/date-picker/InputIcon.js");
  9949. function formatValue(value, format) {
  9950. return value && value.format(format) || '';
  9951. }
  9952. function noop() {}
  9953. /* harmony default export */ __webpack_exports__["default"] = ({
  9954. // static defaultProps = {
  9955. // format: 'YYYY-wo',
  9956. // allowClear: true,
  9957. // };
  9958. // private input: any;
  9959. name: 'AWeekPicker',
  9960. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
  9961. model: {
  9962. prop: 'value',
  9963. event: 'change'
  9964. },
  9965. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(Object(_interface__WEBPACK_IMPORTED_MODULE_8__["WeekPickerProps"])(), {
  9966. format: 'gggg-wo',
  9967. allowClear: true
  9968. }),
  9969. inject: {
  9970. configProvider: { 'default': function _default() {
  9971. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
  9972. } }
  9973. },
  9974. data: function data() {
  9975. var value = this.value || this.defaultValue;
  9976. if (value && !Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_9__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__).isMoment(value)) {
  9977. throw new Error('The value/defaultValue of WeekPicker or MonthPicker must be ' + 'a moment object');
  9978. }
  9979. return {
  9980. _value: value,
  9981. _open: this.open
  9982. };
  9983. },
  9984. watch: {
  9985. value: function value(val) {
  9986. var state = { _value: val };
  9987. this.setState(state);
  9988. this.prevState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$data, state);
  9989. },
  9990. open: function open(val) {
  9991. var state = { _open: val };
  9992. this.setState(state);
  9993. this.prevState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$data, state);
  9994. },
  9995. _open: function _open(val, oldVal) {
  9996. var _this = this;
  9997. this.$nextTick(function () {
  9998. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(_this, 'open') && oldVal && !val) {
  9999. _this.focus();
  10000. }
  10001. });
  10002. }
  10003. },
  10004. mounted: function mounted() {
  10005. this.prevState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$data);
  10006. },
  10007. updated: function updated() {
  10008. var _this2 = this;
  10009. this.$nextTick(function () {
  10010. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(_this2, 'open') && _this2.prevState._open && !_this2._open) {
  10011. _this2.focus();
  10012. }
  10013. });
  10014. },
  10015. methods: {
  10016. weekDateRender: function weekDateRender(current) {
  10017. var h = this.$createElement;
  10018. var selectedValue = this.$data._value;
  10019. var prefixCls = this._prefixCls,
  10020. $scopedSlots = this.$scopedSlots;
  10021. var dateRender = this.dateRender || $scopedSlots.dateRender;
  10022. var dateNode = dateRender ? dateRender(current) : current.date();
  10023. if (selectedValue && current.year() === selectedValue.year() && current.week() === selectedValue.week()) {
  10024. return h(
  10025. 'div',
  10026. { 'class': prefixCls + '-selected-day' },
  10027. [h(
  10028. 'div',
  10029. { 'class': prefixCls + '-date' },
  10030. [dateNode]
  10031. )]
  10032. );
  10033. }
  10034. return h(
  10035. 'div',
  10036. { 'class': prefixCls + '-date' },
  10037. [dateNode]
  10038. );
  10039. },
  10040. handleChange: function handleChange(value) {
  10041. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'value')) {
  10042. this.setState({ _value: value });
  10043. }
  10044. this.$emit('change', value, formatValue(value, this.format));
  10045. },
  10046. handleOpenChange: function handleOpenChange(open) {
  10047. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'open')) {
  10048. this.setState({ _open: open });
  10049. }
  10050. this.$emit('openChange', open);
  10051. },
  10052. clearSelection: function clearSelection(e) {
  10053. e.preventDefault();
  10054. e.stopPropagation();
  10055. this.handleChange(null);
  10056. },
  10057. focus: function focus() {
  10058. this.$refs.input.focus();
  10059. },
  10060. blur: function blur() {
  10061. this.$refs.input.blur();
  10062. },
  10063. renderFooter: function renderFooter() {
  10064. var h = this.$createElement;
  10065. var prefixCls = this._prefixCls,
  10066. $scopedSlots = this.$scopedSlots;
  10067. var renderExtraFooter = this.renderExtraFooter || $scopedSlots.renderExtraFooter;
  10068. return renderExtraFooter ? h(
  10069. 'div',
  10070. { 'class': prefixCls + '-footer-extra' },
  10071. [renderExtraFooter.apply(undefined, arguments)]
  10072. ) : null;
  10073. }
  10074. },
  10075. render: function render() {
  10076. var h = arguments[0];
  10077. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
  10078. var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'suffixIcon');
  10079. suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
  10080. var customizePrefixCls = this.prefixCls,
  10081. disabled = this.disabled,
  10082. pickerClass = this.pickerClass,
  10083. popupStyle = this.popupStyle,
  10084. pickerInputClass = this.pickerInputClass,
  10085. format = this.format,
  10086. allowClear = this.allowClear,
  10087. locale = this.locale,
  10088. localeCode = this.localeCode,
  10089. disabledDate = this.disabledDate,
  10090. defaultPickerValue = this.defaultPickerValue,
  10091. $data = this.$data,
  10092. $scopedSlots = this.$scopedSlots;
  10093. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this);
  10094. var getPrefixCls = this.configProvider.getPrefixCls;
  10095. var prefixCls = getPrefixCls('calendar', customizePrefixCls);
  10096. this._prefixCls = prefixCls;
  10097. var pickerValue = $data._value,
  10098. open = $data._open;
  10099. var _listeners$focus = listeners.focus,
  10100. focus = _listeners$focus === undefined ? noop : _listeners$focus,
  10101. _listeners$blur = listeners.blur,
  10102. blur = _listeners$blur === undefined ? noop : _listeners$blur;
  10103. if (pickerValue && localeCode) {
  10104. pickerValue.locale(localeCode);
  10105. }
  10106. var placeholder = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'placeholder') ? this.placeholder : locale.lang.placeholder;
  10107. var weekDateRender = this.dateRender || $scopedSlots.dateRender || this.weekDateRender;
  10108. var calendar = h(_vc_calendar__WEBPACK_IMPORTED_MODULE_2__["default"], {
  10109. attrs: {
  10110. showWeekNumber: true,
  10111. dateRender: weekDateRender,
  10112. prefixCls: prefixCls,
  10113. format: format,
  10114. locale: locale.lang,
  10115. showDateInput: false,
  10116. showToday: false,
  10117. disabledDate: disabledDate,
  10118. renderFooter: this.renderFooter,
  10119. defaultValue: defaultPickerValue
  10120. }
  10121. });
  10122. var clearIcon = !disabled && allowClear && $data._value ? h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
  10123. attrs: {
  10124. type: 'close-circle',
  10125. theme: 'filled'
  10126. },
  10127. 'class': prefixCls + '-picker-clear',
  10128. on: {
  10129. 'click': this.clearSelection
  10130. }
  10131. }) : null;
  10132. var inputIcon = h(_InputIcon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  10133. attrs: { suffixIcon: suffixIcon, prefixCls: prefixCls }
  10134. });
  10135. var input = function input(_ref) {
  10136. var value = _ref.value;
  10137. return h(
  10138. 'span',
  10139. { style: { display: 'inline-block', width: '100%' } },
  10140. [h('input', {
  10141. ref: 'input',
  10142. attrs: { disabled: disabled,
  10143. readOnly: true,
  10144. placeholder: placeholder
  10145. },
  10146. domProps: {
  10147. 'value': value && value.format(format) || ''
  10148. },
  10149. 'class': pickerInputClass,
  10150. on: {
  10151. 'focus': focus,
  10152. 'blur': blur
  10153. }
  10154. }), clearIcon, inputIcon]
  10155. );
  10156. };
  10157. var vcDatePickerProps = {
  10158. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
  10159. calendar: calendar,
  10160. prefixCls: prefixCls + '-picker-container',
  10161. value: pickerValue,
  10162. open: open
  10163. }),
  10164. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, {
  10165. change: this.handleChange,
  10166. openChange: this.handleOpenChange
  10167. }),
  10168. style: popupStyle,
  10169. scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ 'default': input }, $scopedSlots)
  10170. };
  10171. return h(
  10172. 'span',
  10173. { 'class': pickerClass },
  10174. [h(_vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_3__["default"], vcDatePickerProps)]
  10175. );
  10176. }
  10177. });
  10178. /***/ }),
  10179. /***/ "./components/date-picker/createPicker.js":
  10180. /*!************************************************!*\
  10181. !*** ./components/date-picker/createPicker.js ***!
  10182. \************************************************/
  10183. /*! exports provided: default */
  10184. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10185. "use strict";
  10186. __webpack_require__.r(__webpack_exports__);
  10187. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createPicker; });
  10188. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  10189. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  10190. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  10191. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  10192. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "moment");
  10193. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
  10194. /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
  10195. /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_3__);
  10196. /* harmony import */ var _vc_calendar_src_MonthCalendar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-calendar/src/MonthCalendar */ "./components/vc-calendar/src/MonthCalendar.jsx");
  10197. /* harmony import */ var _vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-calendar/src/Picker */ "./components/vc-calendar/src/Picker.jsx");
  10198. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  10199. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
  10200. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  10201. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  10202. /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
  10203. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  10204. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  10205. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  10206. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ "./components/date-picker/utils.js");
  10207. // export const PickerProps = {
  10208. // value?: moment.Moment;
  10209. // prefixCls: string;
  10210. // }
  10211. function noop() {}
  10212. function createPicker(TheCalendar, props) {
  10213. return {
  10214. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["initDefaultProps"])(props, {
  10215. allowClear: true,
  10216. showToday: true
  10217. }),
  10218. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__["default"]],
  10219. model: {
  10220. prop: 'value',
  10221. event: 'change'
  10222. },
  10223. inject: {
  10224. configProvider: { 'default': function _default() {
  10225. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
  10226. } }
  10227. },
  10228. data: function data() {
  10229. var value = this.value || this.defaultValue;
  10230. if (value && !Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_9__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__).isMoment(value)) {
  10231. throw new Error('The value/defaultValue of DatePicker or MonthPicker must be ' + 'a moment object');
  10232. }
  10233. return {
  10234. sValue: value,
  10235. showDate: value,
  10236. _open: !!this.open
  10237. };
  10238. },
  10239. watch: {
  10240. open: function open(val) {
  10241. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this);
  10242. var state = {};
  10243. state._open = val;
  10244. if ('value' in props && !val && props.value !== this.showDate) {
  10245. state.showDate = props.value;
  10246. }
  10247. this.setState(state);
  10248. },
  10249. value: function value(val) {
  10250. var state = {};
  10251. state.sValue = val;
  10252. if (val !== this.sValue) {
  10253. state.showDate = val;
  10254. }
  10255. this.setState(state);
  10256. },
  10257. _open: function _open(val, oldVal) {
  10258. var _this = this;
  10259. this.$nextTick(function () {
  10260. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["hasProp"])(_this, 'open') && oldVal && !val) {
  10261. _this.focus();
  10262. }
  10263. });
  10264. }
  10265. },
  10266. methods: {
  10267. clearSelection: function clearSelection(e) {
  10268. e.preventDefault();
  10269. e.stopPropagation();
  10270. this.handleChange(null);
  10271. },
  10272. handleChange: function handleChange(value) {
  10273. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["hasProp"])(this, 'value')) {
  10274. this.setState({
  10275. sValue: value,
  10276. showDate: value
  10277. });
  10278. }
  10279. this.$emit('change', value, Object(_utils__WEBPACK_IMPORTED_MODULE_13__["formatDate"])(value, this.format));
  10280. },
  10281. handleCalendarChange: function handleCalendarChange(value) {
  10282. this.setState({ showDate: value });
  10283. },
  10284. handleOpenChange: function handleOpenChange(open) {
  10285. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this);
  10286. if (!('open' in props)) {
  10287. this.setState({ _open: open });
  10288. }
  10289. this.$emit('openChange', open);
  10290. },
  10291. focus: function focus() {
  10292. this.$refs.input.focus();
  10293. },
  10294. blur: function blur() {
  10295. this.$refs.input.blur();
  10296. },
  10297. renderFooter: function renderFooter() {
  10298. var h = this.$createElement;
  10299. var $scopedSlots = this.$scopedSlots,
  10300. $slots = this.$slots,
  10301. prefixCls = this._prefixCls;
  10302. var renderExtraFooter = this.renderExtraFooter || $scopedSlots.renderExtraFooter || $slots.renderExtraFooter;
  10303. return renderExtraFooter ? h(
  10304. 'div',
  10305. { 'class': prefixCls + '-footer-extra' },
  10306. [typeof renderExtraFooter === 'function' ? renderExtraFooter.apply(undefined, arguments) : renderExtraFooter]
  10307. ) : null;
  10308. },
  10309. onMouseEnter: function onMouseEnter(e) {
  10310. this.$emit('mouseenter', e);
  10311. },
  10312. onMouseLeave: function onMouseLeave(e) {
  10313. this.$emit('mouseleave', e);
  10314. }
  10315. },
  10316. render: function render() {
  10317. var _classNames,
  10318. _this2 = this;
  10319. var h = arguments[0];
  10320. var $scopedSlots = this.$scopedSlots;
  10321. var _$data = this.$data,
  10322. value = _$data.sValue,
  10323. showDate = _$data.showDate,
  10324. open = _$data._open;
  10325. var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'suffixIcon');
  10326. suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
  10327. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getListeners"])(this);
  10328. var _listeners$panelChang = listeners.panelChange,
  10329. panelChange = _listeners$panelChang === undefined ? noop : _listeners$panelChang,
  10330. _listeners$focus = listeners.focus,
  10331. focus = _listeners$focus === undefined ? noop : _listeners$focus,
  10332. _listeners$blur = listeners.blur,
  10333. blur = _listeners$blur === undefined ? noop : _listeners$blur,
  10334. _listeners$ok = listeners.ok,
  10335. ok = _listeners$ok === undefined ? noop : _listeners$ok;
  10336. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this);
  10337. var customizePrefixCls = props.prefixCls,
  10338. locale = props.locale,
  10339. localeCode = props.localeCode,
  10340. inputReadOnly = props.inputReadOnly;
  10341. var getPrefixCls = this.configProvider.getPrefixCls;
  10342. var prefixCls = getPrefixCls('calendar', customizePrefixCls);
  10343. this._prefixCls = prefixCls;
  10344. var dateRender = props.dateRender || $scopedSlots.dateRender;
  10345. var monthCellContentRender = props.monthCellContentRender || $scopedSlots.monthCellContentRender;
  10346. var placeholder = 'placeholder' in props ? props.placeholder : locale.lang.placeholder;
  10347. var disabledTime = props.showTime ? props.disabledTime : null;
  10348. var calendarClassName = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-time', props.showTime), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-month', _vc_calendar_src_MonthCalendar__WEBPACK_IMPORTED_MODULE_4__["default"] === TheCalendar), _classNames));
  10349. if (value && localeCode) {
  10350. value.locale(localeCode);
  10351. }
  10352. var pickerProps = { props: {}, on: {} };
  10353. var calendarProps = { props: {}, on: {} };
  10354. var pickerStyle = {};
  10355. if (props.showTime) {
  10356. // fix https://github.com/ant-design/ant-design/issues/1902
  10357. calendarProps.on.select = this.handleChange;
  10358. pickerStyle.minWidth = '195px';
  10359. } else {
  10360. pickerProps.on.change = this.handleChange;
  10361. }
  10362. if ('mode' in props) {
  10363. calendarProps.props.mode = props.mode;
  10364. }
  10365. var theCalendarProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["mergeProps"])(calendarProps, {
  10366. props: {
  10367. disabledDate: props.disabledDate,
  10368. disabledTime: disabledTime,
  10369. locale: locale.lang,
  10370. timePicker: props.timePicker,
  10371. defaultValue: props.defaultPickerValue || Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_9__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__)(),
  10372. dateInputPlaceholder: placeholder,
  10373. prefixCls: prefixCls,
  10374. dateRender: dateRender,
  10375. format: props.format,
  10376. showToday: props.showToday,
  10377. monthCellContentRender: monthCellContentRender,
  10378. renderFooter: this.renderFooter,
  10379. value: showDate,
  10380. inputReadOnly: inputReadOnly
  10381. },
  10382. on: {
  10383. ok: ok,
  10384. panelChange: panelChange,
  10385. change: this.handleCalendarChange
  10386. },
  10387. 'class': calendarClassName,
  10388. scopedSlots: $scopedSlots
  10389. });
  10390. var calendar = h(TheCalendar, theCalendarProps);
  10391. var clearIcon = !props.disabled && props.allowClear && value ? h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
  10392. attrs: {
  10393. type: 'close-circle',
  10394. theme: 'filled'
  10395. },
  10396. 'class': prefixCls + '-picker-clear',
  10397. on: {
  10398. 'click': this.clearSelection
  10399. }
  10400. }) : null;
  10401. var inputIcon = suffixIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["isValidElement"])(suffixIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_12__["cloneElement"])(suffixIcon, {
  10402. 'class': prefixCls + '-picker-icon'
  10403. }) : h(
  10404. 'span',
  10405. { 'class': prefixCls + '-picker-icon' },
  10406. [suffixIcon]
  10407. )) || h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
  10408. attrs: { type: 'calendar' },
  10409. 'class': prefixCls + '-picker-icon' });
  10410. var input = function input(_ref) {
  10411. var inputValue = _ref.value;
  10412. return h('div', [h('input', {
  10413. ref: 'input',
  10414. attrs: { disabled: props.disabled,
  10415. readOnly: true,
  10416. placeholder: placeholder,
  10417. tabIndex: props.tabIndex,
  10418. name: _this2.name
  10419. },
  10420. on: {
  10421. 'focus': focus,
  10422. 'blur': blur
  10423. },
  10424. domProps: {
  10425. 'value': Object(_utils__WEBPACK_IMPORTED_MODULE_13__["formatDate"])(inputValue, _this2.format)
  10426. },
  10427. 'class': props.pickerInputClass }), clearIcon, inputIcon]);
  10428. };
  10429. var vcDatePickerProps = {
  10430. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, pickerProps.props, {
  10431. calendar: calendar,
  10432. value: value,
  10433. prefixCls: prefixCls + '-picker-container'
  10434. }),
  10435. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, lodash_omit__WEBPACK_IMPORTED_MODULE_3___default()(listeners, 'change'), pickerProps.on, {
  10436. open: open,
  10437. onOpenChange: this.handleOpenChange
  10438. }),
  10439. style: props.popupStyle,
  10440. scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ 'default': input }, $scopedSlots)
  10441. };
  10442. return h(
  10443. 'span',
  10444. {
  10445. 'class': props.pickerClass,
  10446. style: pickerStyle
  10447. // tabIndex={props.disabled ? -1 : 0}
  10448. // onFocus={focus}
  10449. // onBlur={blur}
  10450. , on: {
  10451. 'mouseenter': this.onMouseEnter,
  10452. 'mouseleave': this.onMouseLeave
  10453. }
  10454. },
  10455. [h(_vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_5__["default"], vcDatePickerProps)]
  10456. );
  10457. }
  10458. };
  10459. }
  10460. /***/ }),
  10461. /***/ "./components/date-picker/index.js":
  10462. /*!*****************************************!*\
  10463. !*** ./components/date-picker/index.js ***!
  10464. \*****************************************/
  10465. /*! exports provided: default */
  10466. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10467. "use strict";
  10468. __webpack_require__.r(__webpack_exports__);
  10469. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  10470. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  10471. /* harmony import */ var _vc_calendar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-calendar */ "./components/vc-calendar/index.js");
  10472. /* harmony import */ var _vc_calendar_src_MonthCalendar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-calendar/src/MonthCalendar */ "./components/vc-calendar/src/MonthCalendar.jsx");
  10473. /* harmony import */ var _createPicker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createPicker */ "./components/date-picker/createPicker.js");
  10474. /* harmony import */ var _wrapPicker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./wrapPicker */ "./components/date-picker/wrapPicker.js");
  10475. /* harmony import */ var _RangePicker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./RangePicker */ "./components/date-picker/RangePicker.jsx");
  10476. /* harmony import */ var _WeekPicker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WeekPicker */ "./components/date-picker/WeekPicker.jsx");
  10477. /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./interface */ "./components/date-picker/interface.js");
  10478. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  10479. var DatePicker = Object(_wrapPicker__WEBPACK_IMPORTED_MODULE_4__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_createPicker__WEBPACK_IMPORTED_MODULE_3__["default"])(_vc_calendar__WEBPACK_IMPORTED_MODULE_1__["default"], Object(_interface__WEBPACK_IMPORTED_MODULE_7__["DatePickerProps"])()), { name: 'ADatePicker' }), Object(_interface__WEBPACK_IMPORTED_MODULE_7__["DatePickerProps"])(), 'date');
  10480. var MonthPicker = Object(_wrapPicker__WEBPACK_IMPORTED_MODULE_4__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_createPicker__WEBPACK_IMPORTED_MODULE_3__["default"])(_vc_calendar_src_MonthCalendar__WEBPACK_IMPORTED_MODULE_2__["default"], Object(_interface__WEBPACK_IMPORTED_MODULE_7__["MonthPickerProps"])()), { name: 'AMonthPicker' }), Object(_interface__WEBPACK_IMPORTED_MODULE_7__["MonthPickerProps"])(), 'month');
  10481. babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()(DatePicker, {
  10482. RangePicker: Object(_wrapPicker__WEBPACK_IMPORTED_MODULE_4__["default"])(_RangePicker__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_interface__WEBPACK_IMPORTED_MODULE_7__["RangePickerProps"])(), 'date'),
  10483. MonthPicker: MonthPicker,
  10484. WeekPicker: Object(_wrapPicker__WEBPACK_IMPORTED_MODULE_4__["default"])(_WeekPicker__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_interface__WEBPACK_IMPORTED_MODULE_7__["WeekPickerProps"])(), 'week')
  10485. });
  10486. /* istanbul ignore next */
  10487. DatePicker.install = function (Vue) {
  10488. Vue.use(_base__WEBPACK_IMPORTED_MODULE_8__["default"]);
  10489. Vue.component(DatePicker.name, DatePicker);
  10490. Vue.component(DatePicker.RangePicker.name, DatePicker.RangePicker);
  10491. Vue.component(DatePicker.MonthPicker.name, DatePicker.MonthPicker);
  10492. Vue.component(DatePicker.WeekPicker.name, DatePicker.WeekPicker);
  10493. };
  10494. /* harmony default export */ __webpack_exports__["default"] = (DatePicker);
  10495. /***/ }),
  10496. /***/ "./components/date-picker/interface.js":
  10497. /*!*********************************************!*\
  10498. !*** ./components/date-picker/interface.js ***!
  10499. \*********************************************/
  10500. /*! exports provided: PickerProps, SinglePickerProps, DatePickerProps, MonthPickerProps, RangePickerProps, WeekPickerProps */
  10501. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10502. "use strict";
  10503. __webpack_require__.r(__webpack_exports__);
  10504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PickerProps", function() { return PickerProps; });
  10505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SinglePickerProps", function() { return SinglePickerProps; });
  10506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatePickerProps", function() { return DatePickerProps; });
  10507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonthPickerProps", function() { return MonthPickerProps; });
  10508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RangePickerProps", function() { return RangePickerProps; });
  10509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WeekPickerProps", function() { return WeekPickerProps; });
  10510. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  10511. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  10512. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  10513. /* harmony import */ var _util_moment_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/moment-util */ "./components/_util/moment-util.js");
  10514. // import { TimePickerProps } from '../time-picker'
  10515. var PickerProps = function PickerProps() {
  10516. return {
  10517. name: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  10518. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  10519. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  10520. inputPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  10521. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
  10522. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  10523. allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  10524. suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  10525. popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  10526. dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  10527. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  10528. localeCode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  10529. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['large', 'small', 'default']),
  10530. getCalendarContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  10531. open: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  10532. // onOpenChange: PropTypes.(status: bool) => void,
  10533. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  10534. showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  10535. dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any, // (current: moment.Moment, today: moment.Moment) => React.ReactNode,
  10536. pickerClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  10537. pickerInputClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  10538. timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  10539. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  10540. tagPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  10541. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
  10542. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def(function () {
  10543. return {};
  10544. }),
  10545. inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  10546. valueFormat: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
  10547. };
  10548. };
  10549. var SinglePickerProps = function SinglePickerProps() {
  10550. return {
  10551. value: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimeType"],
  10552. defaultValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimeType"],
  10553. defaultPickerValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimeType"],
  10554. renderExtraFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  10555. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
  10556. // onChange?: (date: moment.Moment, dateString: string) => void;
  10557. };
  10558. };
  10559. var DatePickerProps = function DatePickerProps() {
  10560. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PickerProps(), SinglePickerProps(), {
  10561. showTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
  10562. open: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  10563. disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  10564. // onOpenChange?: (status: bool) => void;
  10565. // onOk?: (selectedTime: moment.Moment) => void;
  10566. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['time', 'date', 'month', 'year', 'decade'])
  10567. });
  10568. };
  10569. var MonthPickerProps = function MonthPickerProps() {
  10570. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PickerProps(), SinglePickerProps(), {
  10571. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  10572. monthCellContentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  10573. });
  10574. };
  10575. // export const RangePickerPresetRange = PropTypes.oneOfType([TimesType, PropTypes.func])
  10576. var RangePickerProps = function RangePickerProps() {
  10577. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PickerProps(), {
  10578. tagPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  10579. value: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimesType"],
  10580. defaultValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimesType"],
  10581. defaultPickerValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimesType"],
  10582. timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  10583. // onChange?: (dates: TimesType, dateStrings: [string, string]) => void;
  10584. // onCalendarChange?: (dates: TimesType, dateStrings: [string, string]) => void;
  10585. // onOk?: (selectedTime: moment.Moment) => void;
  10586. showTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
  10587. ranges: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  10588. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(String),
  10589. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(String)]),
  10590. separator: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  10591. disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  10592. showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  10593. renderExtraFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  10594. // onPanelChange?: (value?: TimesType, mode?: string | string[]) => void;
  10595. });
  10596. };
  10597. var WeekPickerProps = function WeekPickerProps() {
  10598. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PickerProps(), SinglePickerProps(), {
  10599. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
  10600. });
  10601. };
  10602. // export interface DatePickerDecorator extends React.ClassicComponentClass<DatePickerProps> {
  10603. // RangePicker: React.ClassicComponentClass<RangePickerProps>;
  10604. // MonthPicker: React.ClassicComponentClass<MonthPickerProps>;
  10605. // WeekPicker: React.ClassicComponentClass<WeexPickerProps>;
  10606. // }
  10607. /***/ }),
  10608. /***/ "./components/date-picker/locale/en_US.js":
  10609. /*!************************************************!*\
  10610. !*** ./components/date-picker/locale/en_US.js ***!
  10611. \************************************************/
  10612. /*! exports provided: default */
  10613. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10614. "use strict";
  10615. __webpack_require__.r(__webpack_exports__);
  10616. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  10617. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  10618. /* harmony import */ var _vc_calendar_src_locale_en_US__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vc-calendar/src/locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
  10619. /* harmony import */ var _time_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../time-picker/locale/en_US */ "./components/time-picker/locale/en_US.js");
  10620. // Merge into a locale object
  10621. var locale = {
  10622. lang: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  10623. placeholder: 'Select date',
  10624. rangePlaceholder: ['Start date', 'End date']
  10625. }, _vc_calendar_src_locale_en_US__WEBPACK_IMPORTED_MODULE_1__["default"]),
  10626. timePickerLocale: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _time_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_2__["default"])
  10627. };
  10628. // All settings at:
  10629. // https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
  10630. /* harmony default export */ __webpack_exports__["default"] = (locale);
  10631. /***/ }),
  10632. /***/ "./components/date-picker/style/index.js":
  10633. /*!***********************************************!*\
  10634. !*** ./components/date-picker/style/index.js ***!
  10635. \***********************************************/
  10636. /*! no exports provided */
  10637. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10638. "use strict";
  10639. __webpack_require__.r(__webpack_exports__);
  10640. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  10641. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  10642. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/date-picker/style/index.less");
  10643. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  10644. /* harmony import */ var _input_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../input/style */ "./components/input/style/index.js");
  10645. /* harmony import */ var _time_picker_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../time-picker/style */ "./components/time-picker/style/index.js");
  10646. /* harmony import */ var _tag_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../tag/style */ "./components/tag/style/index.js");
  10647. // style dependencies
  10648. // deps-lint-skip: input
  10649. /***/ }),
  10650. /***/ "./components/date-picker/style/index.less":
  10651. /*!*************************************************!*\
  10652. !*** ./components/date-picker/style/index.less ***!
  10653. \*************************************************/
  10654. /*! no static exports found */
  10655. /***/ (function(module, exports, __webpack_require__) {
  10656. // extracted by mini-css-extract-plugin
  10657. /***/ }),
  10658. /***/ "./components/date-picker/utils.js":
  10659. /*!*****************************************!*\
  10660. !*** ./components/date-picker/utils.js ***!
  10661. \*****************************************/
  10662. /*! exports provided: formatDate */
  10663. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10664. "use strict";
  10665. __webpack_require__.r(__webpack_exports__);
  10666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatDate", function() { return formatDate; });
  10667. function formatDate(value, format) {
  10668. if (!value) {
  10669. return '';
  10670. }
  10671. if (Array.isArray(format)) {
  10672. format = format[0];
  10673. }
  10674. if (typeof format === 'function') {
  10675. var result = format(value);
  10676. if (typeof result === 'string') {
  10677. return result;
  10678. } else {
  10679. throw new Error('The function of format does not return a string');
  10680. }
  10681. }
  10682. return value.format(format);
  10683. }
  10684. /***/ }),
  10685. /***/ "./components/date-picker/wrapPicker.js":
  10686. /*!**********************************************!*\
  10687. !*** ./components/date-picker/wrapPicker.js ***!
  10688. \**********************************************/
  10689. /*! exports provided: default */
  10690. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10691. "use strict";
  10692. __webpack_require__.r(__webpack_exports__);
  10693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return wrapPicker; });
  10694. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  10695. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  10696. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  10697. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  10698. /* harmony import */ var _vc_time_picker_Panel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-time-picker/Panel */ "./components/vc-time-picker/Panel.jsx");
  10699. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  10700. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  10701. /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
  10702. /* harmony import */ var _time_picker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../time-picker */ "./components/time-picker/index.jsx");
  10703. /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./locale/en_US */ "./components/date-picker/locale/en_US.js");
  10704. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  10705. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  10706. /* harmony import */ var _util_moment_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/moment-util */ "./components/_util/moment-util.js");
  10707. var DEFAULT_FORMAT = {
  10708. date: 'YYYY-MM-DD',
  10709. dateTime: 'YYYY-MM-DD HH:mm:ss',
  10710. week: 'gggg-wo',
  10711. month: 'YYYY-MM'
  10712. };
  10713. var LOCALE_FORMAT_MAPPING = {
  10714. date: 'dateFormat',
  10715. dateTime: 'dateTimeFormat',
  10716. week: 'weekFormat',
  10717. month: 'monthFormat'
  10718. };
  10719. function getColumns(_ref) {
  10720. var showHour = _ref.showHour,
  10721. showMinute = _ref.showMinute,
  10722. showSecond = _ref.showSecond,
  10723. use12Hours = _ref.use12Hours;
  10724. var column = 0;
  10725. if (showHour) {
  10726. column += 1;
  10727. }
  10728. if (showMinute) {
  10729. column += 1;
  10730. }
  10731. if (showSecond) {
  10732. column += 1;
  10733. }
  10734. if (use12Hours) {
  10735. column += 1;
  10736. }
  10737. return column;
  10738. }
  10739. function wrapPicker(Picker, props, pickerType) {
  10740. return {
  10741. name: Picker.name,
  10742. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(props, {
  10743. transitionName: 'slide-up',
  10744. popupStyle: {},
  10745. locale: {}
  10746. }),
  10747. model: {
  10748. prop: 'value',
  10749. event: 'change'
  10750. },
  10751. inject: {
  10752. configProvider: { 'default': function _default() {
  10753. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
  10754. } }
  10755. },
  10756. provide: function provide() {
  10757. return {
  10758. savePopupRef: this.savePopupRef
  10759. };
  10760. },
  10761. mounted: function mounted() {
  10762. var _this = this;
  10763. var autoFocus = this.autoFocus,
  10764. disabled = this.disabled,
  10765. value = this.value,
  10766. defaultValue = this.defaultValue,
  10767. valueFormat = this.valueFormat;
  10768. Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["checkValidate"])('DatePicker', defaultValue, 'defaultValue', valueFormat);
  10769. Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["checkValidate"])('DatePicker', value, 'value', valueFormat);
  10770. if (autoFocus && !disabled) {
  10771. this.$nextTick(function () {
  10772. _this.focus();
  10773. });
  10774. }
  10775. },
  10776. watch: {
  10777. value: function value(val) {
  10778. Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["checkValidate"])('DatePicker', val, 'value', this.valueFormat);
  10779. }
  10780. },
  10781. methods: {
  10782. getDefaultLocale: function getDefaultLocale() {
  10783. var result = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _locale_en_US__WEBPACK_IMPORTED_MODULE_6__["default"], this.locale);
  10784. result.lang = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, result.lang, (this.locale || {}).lang);
  10785. return result;
  10786. },
  10787. savePopupRef: function savePopupRef(ref) {
  10788. this.popupRef = ref;
  10789. },
  10790. handleOpenChange: function handleOpenChange(open) {
  10791. this.$emit('openChange', open);
  10792. },
  10793. handleFocus: function handleFocus(e) {
  10794. this.$emit('focus', e);
  10795. },
  10796. handleBlur: function handleBlur(e) {
  10797. this.$emit('blur', e);
  10798. },
  10799. handleMouseEnter: function handleMouseEnter(e) {
  10800. this.$emit('mouseenter', e);
  10801. },
  10802. handleMouseLeave: function handleMouseLeave(e) {
  10803. this.$emit('mouseleave', e);
  10804. },
  10805. handleChange: function handleChange(date, dateString) {
  10806. this.$emit('change', this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["momentToString"])(date, this.valueFormat) : date, dateString);
  10807. },
  10808. handleOk: function handleOk(val) {
  10809. this.$emit('ok', this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["momentToString"])(val, this.valueFormat) : val);
  10810. },
  10811. handleCalendarChange: function handleCalendarChange(date, dateString) {
  10812. this.$emit('calendarChange', this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["momentToString"])(date, this.valueFormat) : date, dateString);
  10813. },
  10814. focus: function focus() {
  10815. this.$refs.picker.focus();
  10816. },
  10817. blur: function blur() {
  10818. this.$refs.picker.blur();
  10819. },
  10820. transformValue: function transformValue(props) {
  10821. if ('value' in props) {
  10822. props.value = Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["stringToMoment"])(props.value, this.valueFormat);
  10823. }
  10824. if ('defaultValue' in props) {
  10825. props.defaultValue = Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["stringToMoment"])(props.defaultValue, this.valueFormat);
  10826. }
  10827. if ('defaultPickerValue' in props) {
  10828. props.defaultPickerValue = Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["stringToMoment"])(props.defaultPickerValue, this.valueFormat);
  10829. }
  10830. },
  10831. renderPicker: function renderPicker(locale, localeCode) {
  10832. var _classNames2,
  10833. _this2 = this;
  10834. var h = this.$createElement;
  10835. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
  10836. this.transformValue(props);
  10837. var customizePrefixCls = props.prefixCls,
  10838. customizeInputPrefixCls = props.inputPrefixCls,
  10839. getCalendarContainer = props.getCalendarContainer,
  10840. size = props.size,
  10841. showTime = props.showTime,
  10842. disabled = props.disabled,
  10843. format = props.format;
  10844. var mergedPickerType = showTime ? pickerType + 'Time' : pickerType;
  10845. var mergedFormat = format || locale[LOCALE_FORMAT_MAPPING[mergedPickerType]] || DEFAULT_FORMAT[mergedPickerType];
  10846. var _configProvider = this.configProvider,
  10847. getPrefixCls = _configProvider.getPrefixCls,
  10848. getContextPopupContainer = _configProvider.getPopupContainer;
  10849. var getPopupContainer = getCalendarContainer || getContextPopupContainer;
  10850. var prefixCls = getPrefixCls('calendar', customizePrefixCls);
  10851. var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
  10852. var pickerClass = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-picker', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-picker-' + size, !!size));
  10853. var pickerInputClass = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-picker-input', inputPrefixCls, (_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, inputPrefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, inputPrefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, inputPrefixCls + '-disabled', disabled), _classNames2));
  10854. var timeFormat = showTime && showTime.format || 'HH:mm:ss';
  10855. var vcTimePickerProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_time_picker__WEBPACK_IMPORTED_MODULE_5__["generateShowHourMinuteSecond"])(timeFormat), {
  10856. format: timeFormat,
  10857. use12Hours: showTime && showTime.use12Hours
  10858. });
  10859. var columns = getColumns(vcTimePickerProps);
  10860. var timePickerCls = prefixCls + '-time-picker-column-' + columns;
  10861. var timePickerPanelProps = {
  10862. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, vcTimePickerProps, showTime, {
  10863. prefixCls: prefixCls + '-time-picker',
  10864. placeholder: locale.timePickerLocale.placeholder,
  10865. transitionName: 'slide-up'
  10866. }),
  10867. 'class': timePickerCls,
  10868. on: {
  10869. esc: function esc() {}
  10870. }
  10871. };
  10872. var timePicker = showTime ? h(_vc_time_picker_Panel__WEBPACK_IMPORTED_MODULE_2__["default"], timePickerPanelProps) : null;
  10873. var pickerProps = {
  10874. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  10875. getCalendarContainer: getPopupContainer,
  10876. format: mergedFormat,
  10877. pickerClass: pickerClass,
  10878. pickerInputClass: pickerInputClass,
  10879. locale: locale,
  10880. localeCode: localeCode,
  10881. timePicker: timePicker
  10882. }),
  10883. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), {
  10884. openChange: this.handleOpenChange,
  10885. focus: this.handleFocus,
  10886. blur: this.handleBlur,
  10887. mouseenter: this.handleMouseEnter,
  10888. mouseleave: this.handleMouseLeave,
  10889. change: this.handleChange,
  10890. ok: this.handleOk,
  10891. calendarChange: this.handleCalendarChange
  10892. }),
  10893. ref: 'picker',
  10894. scopedSlots: this.$scopedSlots || {}
  10895. };
  10896. return h(
  10897. Picker,
  10898. pickerProps,
  10899. [this.$slots && Object.keys(this.$slots).map(function (key) {
  10900. return h(
  10901. 'template',
  10902. { slot: key, key: key },
  10903. [_this2.$slots[key]]
  10904. );
  10905. })]
  10906. );
  10907. }
  10908. },
  10909. render: function render() {
  10910. var h = arguments[0];
  10911. return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_4__["default"], {
  10912. attrs: {
  10913. componentName: 'DatePicker',
  10914. defaultLocale: this.getDefaultLocale
  10915. },
  10916. scopedSlots: { 'default': this.renderPicker }
  10917. });
  10918. }
  10919. };
  10920. }
  10921. /***/ }),
  10922. /***/ "./components/descriptions/Col.jsx":
  10923. /*!*****************************************!*\
  10924. !*** ./components/descriptions/Col.jsx ***!
  10925. \*****************************************/
  10926. /*! exports provided: default */
  10927. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10928. "use strict";
  10929. __webpack_require__.r(__webpack_exports__);
  10930. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  10931. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  10932. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  10933. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  10934. var ColProps = {
  10935. child: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  10936. bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  10937. colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  10938. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['label', 'content']),
  10939. layout: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['horizontal', 'vertical'])
  10940. };
  10941. var Col = {
  10942. functional: true,
  10943. props: ColProps,
  10944. render: function render(h, ctx) {
  10945. var _ref;
  10946. var _ctx$props = ctx.props,
  10947. child = _ctx$props.child,
  10948. bordered = _ctx$props.bordered,
  10949. colon = _ctx$props.colon,
  10950. type = _ctx$props.type,
  10951. layout = _ctx$props.layout;
  10952. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(child),
  10953. prefixCls = _getOptionProps.prefixCls,
  10954. _getOptionProps$span = _getOptionProps.span,
  10955. span = _getOptionProps$span === undefined ? 1 : _getOptionProps$span;
  10956. var key = ctx.data.key;
  10957. var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(child, 'label');
  10958. var slots = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getSlots"])(child);
  10959. var labelProps = {
  10960. attrs: {},
  10961. 'class': [prefixCls + '-item-label', (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-item-colon', colon), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-item-no-label', !label), _ref)],
  10962. key: key + '-label'
  10963. };
  10964. if (layout === 'vertical') {
  10965. labelProps.attrs.colSpan = span * 2 - 1;
  10966. }
  10967. if (bordered) {
  10968. if (type === 'label') {
  10969. return h(
  10970. 'th',
  10971. labelProps,
  10972. [label]
  10973. );
  10974. }
  10975. return h(
  10976. 'td',
  10977. { 'class': prefixCls + '-item-content', key: key + '-content', attrs: { colSpan: span * 2 - 1 }
  10978. },
  10979. [slots['default']]
  10980. );
  10981. }
  10982. if (layout === 'vertical') {
  10983. if (type === 'content') {
  10984. return h(
  10985. 'td',
  10986. {
  10987. attrs: { colSpan: span },
  10988. 'class': prefixCls + '-item' },
  10989. [h(
  10990. 'span',
  10991. { 'class': prefixCls + '-item-content', key: key + '-content' },
  10992. [slots['default']]
  10993. )]
  10994. );
  10995. }
  10996. return h(
  10997. 'td',
  10998. {
  10999. attrs: { colSpan: span },
  11000. 'class': prefixCls + '-item' },
  11001. [h(
  11002. 'span',
  11003. {
  11004. 'class': [prefixCls + '-item-label', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-item-colon', colon)],
  11005. key: key + '-label'
  11006. },
  11007. [label]
  11008. )]
  11009. );
  11010. }
  11011. return h(
  11012. 'td',
  11013. {
  11014. attrs: { colSpan: span },
  11015. 'class': prefixCls + '-item' },
  11016. [h(
  11017. 'span',
  11018. labelProps,
  11019. [label]
  11020. ), h(
  11021. 'span',
  11022. { 'class': prefixCls + '-item-content', key: key + '-content' },
  11023. [slots['default']]
  11024. )]
  11025. );
  11026. }
  11027. };
  11028. /* harmony default export */ __webpack_exports__["default"] = (Col);
  11029. /***/ }),
  11030. /***/ "./components/descriptions/index.jsx":
  11031. /*!*******************************************!*\
  11032. !*** ./components/descriptions/index.jsx ***!
  11033. \*******************************************/
  11034. /*! exports provided: DescriptionsItemProps, DescriptionsItem, DescriptionsProps, default */
  11035. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11036. "use strict";
  11037. __webpack_require__.r(__webpack_exports__);
  11038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescriptionsItemProps", function() { return DescriptionsItemProps; });
  11039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescriptionsItem", function() { return DescriptionsItem; });
  11040. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescriptionsProps", function() { return DescriptionsProps; });
  11041. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  11042. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  11043. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  11044. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
  11045. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  11046. /* harmony import */ var _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/responsiveObserve */ "./components/_util/responsiveObserve.js");
  11047. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  11048. /* harmony import */ var _Col__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Col */ "./components/descriptions/Col.jsx");
  11049. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  11050. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  11051. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  11052. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  11053. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  11054. var DescriptionsItemProps = {
  11055. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  11056. label: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  11057. span: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number
  11058. };
  11059. function toArray(value) {
  11060. var ret = value;
  11061. if (value === undefined) {
  11062. ret = [];
  11063. } else if (!Array.isArray(value)) {
  11064. ret = [value];
  11065. }
  11066. return ret;
  11067. }
  11068. var DescriptionsItem = {
  11069. name: 'ADescriptionsItem',
  11070. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(DescriptionsItemProps, { span: 1 })
  11071. };
  11072. var DescriptionsProps = {
  11073. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  11074. bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  11075. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['default', 'middle', 'small']).def('default'),
  11076. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  11077. column: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object]),
  11078. layout: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['horizontal', 'vertical']),
  11079. colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool
  11080. };
  11081. /**
  11082. * Convert children into `column` groups.
  11083. * @param children: DescriptionsItem
  11084. * @param column: number
  11085. */
  11086. var generateChildrenRows = function generateChildrenRows(children, column) {
  11087. var rows = [];
  11088. var columns = null;
  11089. var leftSpans = void 0;
  11090. var itemNodes = toArray(children);
  11091. itemNodes.forEach(function (node, index) {
  11092. var itemProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(node);
  11093. var itemNode = node;
  11094. if (!columns) {
  11095. leftSpans = column;
  11096. columns = [];
  11097. rows.push(columns);
  11098. }
  11099. // Always set last span to align the end of Descriptions
  11100. var lastItem = index === itemNodes.length - 1;
  11101. var lastSpanSame = true;
  11102. if (lastItem) {
  11103. lastSpanSame = !itemProps.span || itemProps.span === leftSpans;
  11104. itemNode = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_10__["cloneElement"])(itemNode, {
  11105. props: {
  11106. span: leftSpans
  11107. }
  11108. });
  11109. }
  11110. // Calculate left fill span
  11111. var _itemProps$span = itemProps.span,
  11112. span = _itemProps$span === undefined ? 1 : _itemProps$span;
  11113. columns.push(itemNode);
  11114. leftSpans -= span;
  11115. if (leftSpans <= 0) {
  11116. columns = null;
  11117. Object(_util_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(leftSpans === 0 && lastSpanSame, 'Descriptions', 'Sum of column `span` in a line exceeds `column` of Descriptions.');
  11118. }
  11119. });
  11120. return rows;
  11121. };
  11122. var defaultColumnMap = {
  11123. xxl: 3,
  11124. xl: 3,
  11125. lg: 3,
  11126. md: 3,
  11127. sm: 2,
  11128. xs: 1
  11129. };
  11130. var Descriptions = {
  11131. name: 'ADescriptions',
  11132. Item: DescriptionsItem,
  11133. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
  11134. inject: {
  11135. configProvider: { 'default': function _default() {
  11136. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
  11137. } }
  11138. },
  11139. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(DescriptionsProps, {
  11140. column: defaultColumnMap
  11141. }),
  11142. data: function data() {
  11143. return {
  11144. screens: {},
  11145. token: undefined
  11146. };
  11147. },
  11148. methods: {
  11149. getColumn: function getColumn() {
  11150. var column = this.$props.column;
  11151. if ((typeof column === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(column)) === 'object') {
  11152. for (var i = 0; i < _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__["responsiveArray"].length; i++) {
  11153. var breakpoint = _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__["responsiveArray"][i];
  11154. if (this.screens[breakpoint] && column[breakpoint] !== undefined) {
  11155. return column[breakpoint] || defaultColumnMap[breakpoint];
  11156. }
  11157. }
  11158. }
  11159. // If the configuration is not an object, it is a number, return number
  11160. if (typeof column === 'number') {
  11161. return column;
  11162. }
  11163. // If it is an object, but no response is found, this happens only in the test.
  11164. // Maybe there are some strange environments
  11165. return 3;
  11166. },
  11167. renderRow: function renderRow(children, index, _ref, bordered, layout, colon) {
  11168. var prefixCls = _ref.prefixCls;
  11169. var h = this.$createElement;
  11170. var renderCol = function renderCol(colItem, type, idx) {
  11171. return h(_Col__WEBPACK_IMPORTED_MODULE_5__["default"], {
  11172. attrs: {
  11173. child: colItem,
  11174. bordered: bordered,
  11175. colon: colon,
  11176. type: type,
  11177. layout: layout
  11178. },
  11179. key: type + '-' + (colItem.key || idx) });
  11180. };
  11181. var cloneChildren = [];
  11182. var cloneContentChildren = [];
  11183. toArray(children).forEach(function (childrenItem, idx) {
  11184. cloneChildren.push(renderCol(childrenItem, 'label', idx));
  11185. if (layout === 'vertical') {
  11186. cloneContentChildren.push(renderCol(childrenItem, 'content', idx));
  11187. } else if (bordered) {
  11188. cloneChildren.push(renderCol(childrenItem, 'content', idx));
  11189. }
  11190. });
  11191. if (layout === 'vertical') {
  11192. return [h(
  11193. 'tr',
  11194. { 'class': prefixCls + '-row', key: 'label-' + index },
  11195. [cloneChildren]
  11196. ), h(
  11197. 'tr',
  11198. { 'class': prefixCls + '-row', key: 'content-' + index },
  11199. [cloneContentChildren]
  11200. )];
  11201. }
  11202. return h(
  11203. 'tr',
  11204. { 'class': prefixCls + '-row', key: index },
  11205. [cloneChildren]
  11206. );
  11207. }
  11208. },
  11209. mounted: function mounted() {
  11210. var _this = this;
  11211. var column = this.$props.column;
  11212. this.token = _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__["default"].subscribe(function (screens) {
  11213. if ((typeof column === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(column)) !== 'object') {
  11214. return;
  11215. }
  11216. _this.setState({
  11217. screens: screens
  11218. });
  11219. });
  11220. },
  11221. beforeDestroy: function beforeDestroy() {
  11222. _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__["default"].unsubscribe(this.token);
  11223. },
  11224. render: function render() {
  11225. var _ref2,
  11226. _this2 = this;
  11227. var h = arguments[0];
  11228. var _$props = this.$props,
  11229. customizePrefixCls = _$props.prefixCls,
  11230. size = _$props.size,
  11231. _$props$bordered = _$props.bordered,
  11232. bordered = _$props$bordered === undefined ? false : _$props$bordered,
  11233. _$props$layout = _$props.layout,
  11234. layout = _$props$layout === undefined ? 'horizontal' : _$props$layout,
  11235. _$props$colon = _$props.colon,
  11236. colon = _$props$colon === undefined ? true : _$props$colon;
  11237. var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'title') || null;
  11238. var getPrefixCls = this.configProvider.getPrefixCls;
  11239. var prefixCls = getPrefixCls('descriptions', customizePrefixCls);
  11240. var column = this.getColumn();
  11241. var children = this.$slots['default'];
  11242. var cloneChildren = toArray(children).map(function (child) {
  11243. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["isValidElement"])(child)) {
  11244. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_10__["cloneElement"])(child, {
  11245. props: {
  11246. prefixCls: prefixCls
  11247. }
  11248. });
  11249. }
  11250. return null;
  11251. }).filter(function (node) {
  11252. return node;
  11253. });
  11254. var childrenArray = generateChildrenRows(cloneChildren, column);
  11255. return h(
  11256. 'div',
  11257. {
  11258. 'class': [prefixCls, (_ref2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref2, prefixCls + '-' + size, size !== 'default'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref2, prefixCls + '-bordered', !!bordered), _ref2)]
  11259. },
  11260. [title && h(
  11261. 'div',
  11262. { 'class': prefixCls + '-title' },
  11263. [title]
  11264. ), h(
  11265. 'div',
  11266. { 'class': prefixCls + '-view' },
  11267. [h('table', [h('tbody', [childrenArray.map(function (child, index) {
  11268. return _this2.renderRow(child, index, {
  11269. prefixCls: prefixCls
  11270. }, bordered, layout, colon);
  11271. })])])]
  11272. )]
  11273. );
  11274. }
  11275. };
  11276. Descriptions.install = function (Vue) {
  11277. Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
  11278. Vue.component(Descriptions.name, Descriptions);
  11279. Vue.component(Descriptions.Item.name, Descriptions.Item);
  11280. };
  11281. /* harmony default export */ __webpack_exports__["default"] = (Descriptions);
  11282. /***/ }),
  11283. /***/ "./components/descriptions/style/index.js":
  11284. /*!************************************************!*\
  11285. !*** ./components/descriptions/style/index.js ***!
  11286. \************************************************/
  11287. /*! no exports provided */
  11288. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11289. "use strict";
  11290. __webpack_require__.r(__webpack_exports__);
  11291. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  11292. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  11293. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/descriptions/style/index.less");
  11294. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  11295. /***/ }),
  11296. /***/ "./components/descriptions/style/index.less":
  11297. /*!**************************************************!*\
  11298. !*** ./components/descriptions/style/index.less ***!
  11299. \**************************************************/
  11300. /*! no static exports found */
  11301. /***/ (function(module, exports, __webpack_require__) {
  11302. // extracted by mini-css-extract-plugin
  11303. /***/ }),
  11304. /***/ "./components/divider/index.jsx":
  11305. /*!**************************************!*\
  11306. !*** ./components/divider/index.jsx ***!
  11307. \**************************************/
  11308. /*! exports provided: default */
  11309. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11310. "use strict";
  11311. __webpack_require__.r(__webpack_exports__);
  11312. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  11313. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  11314. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  11315. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  11316. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  11317. var Divider = {
  11318. name: 'ADivider',
  11319. props: {
  11320. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  11321. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['horizontal', 'vertical', '']).def('horizontal'),
  11322. dashed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  11323. orientation: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['left', 'right', 'center'])
  11324. },
  11325. inject: {
  11326. configProvider: { 'default': function _default() {
  11327. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
  11328. } }
  11329. },
  11330. render: function render() {
  11331. var _classString;
  11332. var h = arguments[0];
  11333. var customizePrefixCls = this.prefixCls,
  11334. type = this.type,
  11335. $slots = this.$slots,
  11336. dashed = this.dashed,
  11337. _orientation = this.orientation,
  11338. orientation = _orientation === undefined ? 'center' : _orientation;
  11339. var getPrefixCls = this.configProvider.getPrefixCls;
  11340. var prefixCls = getPrefixCls('divider', customizePrefixCls);
  11341. var orientationPrefix = orientation.length > 0 ? '-' + orientation : orientation;
  11342. var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classString, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classString, prefixCls + '-' + type, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classString, prefixCls + '-with-text' + orientationPrefix, $slots['default']), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classString, prefixCls + '-dashed', !!dashed), _classString);
  11343. return h(
  11344. 'div',
  11345. { 'class': classString, attrs: { role: 'separator' }
  11346. },
  11347. [$slots['default'] && h(
  11348. 'span',
  11349. { 'class': prefixCls + '-inner-text' },
  11350. [$slots['default']]
  11351. )]
  11352. );
  11353. }
  11354. };
  11355. /* istanbul ignore next */
  11356. Divider.install = function (Vue) {
  11357. Vue.use(_base__WEBPACK_IMPORTED_MODULE_3__["default"]);
  11358. Vue.component(Divider.name, Divider);
  11359. };
  11360. /* harmony default export */ __webpack_exports__["default"] = (Divider);
  11361. /***/ }),
  11362. /***/ "./components/divider/style/index.js":
  11363. /*!*******************************************!*\
  11364. !*** ./components/divider/style/index.js ***!
  11365. \*******************************************/
  11366. /*! no exports provided */
  11367. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11368. "use strict";
  11369. __webpack_require__.r(__webpack_exports__);
  11370. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  11371. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  11372. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/divider/style/index.less");
  11373. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  11374. /***/ }),
  11375. /***/ "./components/divider/style/index.less":
  11376. /*!*********************************************!*\
  11377. !*** ./components/divider/style/index.less ***!
  11378. \*********************************************/
  11379. /*! no static exports found */
  11380. /***/ (function(module, exports, __webpack_require__) {
  11381. // extracted by mini-css-extract-plugin
  11382. /***/ }),
  11383. /***/ "./components/drawer/index.jsx":
  11384. /*!*************************************!*\
  11385. !*** ./components/drawer/index.jsx ***!
  11386. \*************************************/
  11387. /*! exports provided: default */
  11388. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11389. "use strict";
  11390. __webpack_require__.r(__webpack_exports__);
  11391. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  11392. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  11393. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  11394. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  11395. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  11396. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  11397. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  11398. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  11399. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  11400. /* harmony import */ var _vc_drawer_src__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-drawer/src */ "./components/vc-drawer/src/index.js");
  11401. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  11402. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  11403. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  11404. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  11405. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  11406. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  11407. var Drawer = {
  11408. name: 'ADrawer',
  11409. props: {
  11410. closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true),
  11411. destroyOnClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  11412. getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  11413. maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true),
  11414. mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true),
  11415. maskStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
  11416. wrapStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
  11417. bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
  11418. headerStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
  11419. drawerStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
  11420. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  11421. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  11422. width: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number]).def(256),
  11423. height: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number]).def(256),
  11424. zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
  11425. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  11426. placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['top', 'right', 'bottom', 'left']).def('right'),
  11427. level: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any.def(null),
  11428. wrapClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, // not use class like react, vue will add class to root dom
  11429. handle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  11430. afterVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  11431. keyboard: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true)
  11432. },
  11433. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
  11434. data: function data() {
  11435. this.destroyClose = false;
  11436. this.preVisible = this.$props.visible;
  11437. return {
  11438. _push: false
  11439. };
  11440. },
  11441. inject: {
  11442. parentDrawer: {
  11443. 'default': function _default() {
  11444. return null;
  11445. }
  11446. },
  11447. configProvider: { 'default': function _default() {
  11448. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
  11449. } }
  11450. },
  11451. provide: function provide() {
  11452. return {
  11453. parentDrawer: this
  11454. };
  11455. },
  11456. mounted: function mounted() {
  11457. // fix: delete drawer in child and re-render, no push started.
  11458. // <Drawer>{show && <Drawer />}</Drawer>
  11459. var visible = this.visible;
  11460. if (visible && this.parentDrawer) {
  11461. this.parentDrawer.push();
  11462. }
  11463. },
  11464. updated: function updated() {
  11465. var _this = this;
  11466. this.$nextTick(function () {
  11467. if (_this.preVisible !== _this.visible && _this.parentDrawer) {
  11468. if (_this.visible) {
  11469. _this.parentDrawer.push();
  11470. } else {
  11471. _this.parentDrawer.pull();
  11472. }
  11473. }
  11474. _this.preVisible = _this.visible;
  11475. });
  11476. },
  11477. beforeDestroy: function beforeDestroy() {
  11478. // unmount drawer in child, clear push.
  11479. if (this.parentDrawer) {
  11480. this.parentDrawer.pull();
  11481. }
  11482. },
  11483. methods: {
  11484. domFocus: function domFocus() {
  11485. if (this.$refs.vcDrawer) {
  11486. this.$refs.vcDrawer.domFocus();
  11487. }
  11488. },
  11489. close: function close(e) {
  11490. this.$emit('close', e);
  11491. },
  11492. // onMaskClick(e) {
  11493. // if (!this.maskClosable) {
  11494. // return;
  11495. // }
  11496. // this.close(e);
  11497. // },
  11498. push: function push() {
  11499. this.setState({
  11500. _push: true
  11501. });
  11502. },
  11503. pull: function pull() {
  11504. var _this2 = this;
  11505. this.setState({
  11506. _push: false
  11507. }, function () {
  11508. _this2.domFocus();
  11509. });
  11510. },
  11511. onDestroyTransitionEnd: function onDestroyTransitionEnd() {
  11512. var isDestroyOnClose = this.getDestroyOnClose();
  11513. if (!isDestroyOnClose) {
  11514. return;
  11515. }
  11516. if (!this.visible) {
  11517. this.destroyClose = true;
  11518. this.$forceUpdate();
  11519. }
  11520. },
  11521. getDestroyOnClose: function getDestroyOnClose() {
  11522. return this.destroyOnClose && !this.visible;
  11523. },
  11524. // get drawar push width or height
  11525. getPushTransform: function getPushTransform(placement) {
  11526. if (placement === 'left' || placement === 'right') {
  11527. return 'translateX(' + (placement === 'left' ? 180 : -180) + 'px)';
  11528. }
  11529. if (placement === 'top' || placement === 'bottom') {
  11530. return 'translateY(' + (placement === 'top' ? 180 : -180) + 'px)';
  11531. }
  11532. },
  11533. getRcDrawerStyle: function getRcDrawerStyle() {
  11534. var _$props = this.$props,
  11535. zIndex = _$props.zIndex,
  11536. placement = _$props.placement,
  11537. wrapStyle = _$props.wrapStyle;
  11538. var push = this.$data._push;
  11539. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  11540. zIndex: zIndex,
  11541. transform: push ? this.getPushTransform(placement) : undefined
  11542. }, wrapStyle);
  11543. },
  11544. renderHeader: function renderHeader(prefixCls) {
  11545. var h = this.$createElement;
  11546. var _$props2 = this.$props,
  11547. closable = _$props2.closable,
  11548. headerStyle = _$props2.headerStyle;
  11549. var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'title');
  11550. if (!title && !closable) {
  11551. return null;
  11552. }
  11553. var headerClassName = title ? prefixCls + '-header' : prefixCls + '-header-no-title';
  11554. return h(
  11555. 'div',
  11556. { 'class': headerClassName, style: headerStyle },
  11557. [title && h(
  11558. 'div',
  11559. { 'class': prefixCls + '-title' },
  11560. [title]
  11561. ), closable ? this.renderCloseIcon(prefixCls) : null]
  11562. );
  11563. },
  11564. renderCloseIcon: function renderCloseIcon(prefixCls) {
  11565. var h = this.$createElement;
  11566. var closable = this.closable;
  11567. return closable && h(
  11568. 'button',
  11569. { key: 'closer', on: {
  11570. 'click': this.close
  11571. },
  11572. attrs: { 'aria-label': 'Close' },
  11573. 'class': prefixCls + '-close' },
  11574. [h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
  11575. attrs: { type: 'close' }
  11576. })]
  11577. );
  11578. },
  11579. // render drawer body dom
  11580. renderBody: function renderBody(prefixCls) {
  11581. var h = this.$createElement;
  11582. if (this.destroyClose && !this.visible) {
  11583. return null;
  11584. }
  11585. this.destroyClose = false;
  11586. var _$props3 = this.$props,
  11587. bodyStyle = _$props3.bodyStyle,
  11588. drawerStyle = _$props3.drawerStyle;
  11589. var containerStyle = {};
  11590. var isDestroyOnClose = this.getDestroyOnClose();
  11591. if (isDestroyOnClose) {
  11592. // Increase the opacity transition, delete children after closing.
  11593. containerStyle.opacity = 0;
  11594. containerStyle.transition = 'opacity .3s';
  11595. }
  11596. return h(
  11597. 'div',
  11598. {
  11599. 'class': prefixCls + '-wrapper-body',
  11600. style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, containerStyle, drawerStyle),
  11601. on: {
  11602. 'transitionend': this.onDestroyTransitionEnd
  11603. }
  11604. },
  11605. [this.renderHeader(prefixCls), h(
  11606. 'div',
  11607. { key: 'body', 'class': prefixCls + '-body', style: bodyStyle },
  11608. [this.$slots['default']]
  11609. )]
  11610. );
  11611. }
  11612. },
  11613. render: function render() {
  11614. var _classnames;
  11615. var h = arguments[0];
  11616. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this);
  11617. var customizePrefixCls = props.prefixCls,
  11618. width = props.width,
  11619. height = props.height,
  11620. visible = props.visible,
  11621. placement = props.placement,
  11622. wrapClassName = props.wrapClassName,
  11623. mask = props.mask,
  11624. rest = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(props, ['prefixCls', 'width', 'height', 'visible', 'placement', 'wrapClassName', 'mask']);
  11625. var haveMask = mask ? '' : 'no-mask';
  11626. var offsetStyle = {};
  11627. if (placement === 'left' || placement === 'right') {
  11628. offsetStyle.width = typeof width === 'number' ? width + 'px' : width;
  11629. } else {
  11630. offsetStyle.height = typeof height === 'number' ? height + 'px' : height;
  11631. }
  11632. var handler = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'handle') || false;
  11633. var getPrefixCls = this.configProvider.getPrefixCls;
  11634. var prefixCls = getPrefixCls('drawer', customizePrefixCls);
  11635. var vcDrawerProps = {
  11636. ref: 'vcDrawer',
  11637. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(rest, ['closable', 'destroyOnClose', 'drawerStyle', 'headerStyle', 'bodyStyle', 'title', 'push', 'visible', 'getPopupContainer', 'rootPrefixCls', 'getPrefixCls', 'renderEmpty', 'csp', 'pageHeader', 'autoInsertSpaceInButton']), {
  11638. handler: handler
  11639. }, offsetStyle, {
  11640. prefixCls: prefixCls,
  11641. open: visible,
  11642. showMask: mask,
  11643. placement: placement,
  11644. className: classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classnames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classnames, wrapClassName, !!wrapClassName), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classnames, haveMask, !!haveMask), _classnames)),
  11645. wrapStyle: this.getRcDrawerStyle()
  11646. }),
  11647. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this))
  11648. };
  11649. return h(
  11650. _vc_drawer_src__WEBPACK_IMPORTED_MODULE_5__["default"],
  11651. vcDrawerProps,
  11652. [this.renderBody(prefixCls)]
  11653. );
  11654. }
  11655. };
  11656. /* istanbul ignore next */
  11657. Drawer.install = function (Vue) {
  11658. Vue.use(_base__WEBPACK_IMPORTED_MODULE_11__["default"]);
  11659. Vue.component(Drawer.name, Drawer);
  11660. };
  11661. /* harmony default export */ __webpack_exports__["default"] = (Drawer);
  11662. /***/ }),
  11663. /***/ "./components/drawer/style/index.js":
  11664. /*!******************************************!*\
  11665. !*** ./components/drawer/style/index.js ***!
  11666. \******************************************/
  11667. /*! no exports provided */
  11668. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11669. "use strict";
  11670. __webpack_require__.r(__webpack_exports__);
  11671. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  11672. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  11673. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/drawer/style/index.less");
  11674. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  11675. // deps-lint-skip: empty
  11676. /***/ }),
  11677. /***/ "./components/drawer/style/index.less":
  11678. /*!********************************************!*\
  11679. !*** ./components/drawer/style/index.less ***!
  11680. \********************************************/
  11681. /*! no static exports found */
  11682. /***/ (function(module, exports, __webpack_require__) {
  11683. // extracted by mini-css-extract-plugin
  11684. /***/ }),
  11685. /***/ "./components/dropdown/dropdown-button.jsx":
  11686. /*!*************************************************!*\
  11687. !*** ./components/dropdown/dropdown-button.jsx ***!
  11688. \*************************************************/
  11689. /*! exports provided: DropdownButtonProps, default */
  11690. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11691. "use strict";
  11692. __webpack_require__.r(__webpack_exports__);
  11693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownButtonProps", function() { return DropdownButtonProps; });
  11694. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  11695. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
  11696. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  11697. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  11698. /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
  11699. /* harmony import */ var _button_buttonTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../button/buttonTypes */ "./components/button/buttonTypes.js");
  11700. /* harmony import */ var _button_button_group__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../button/button-group */ "./components/button/button-group.jsx");
  11701. /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dropdown */ "./components/dropdown/dropdown.jsx");
  11702. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  11703. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  11704. /* harmony import */ var _getDropdownProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./getDropdownProps */ "./components/dropdown/getDropdownProps.js");
  11705. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  11706. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  11707. var ButtonTypesProps = Object(_button_buttonTypes__WEBPACK_IMPORTED_MODULE_3__["default"])();
  11708. var DropdownProps = Object(_getDropdownProps__WEBPACK_IMPORTED_MODULE_8__["default"])();
  11709. var ButtonGroup = _button__WEBPACK_IMPORTED_MODULE_2__["default"].Group;
  11710. var DropdownButtonProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _button_button_group__WEBPACK_IMPORTED_MODULE_4__["ButtonGroupProps"], DropdownProps, {
  11711. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['primary', 'ghost', 'dashed', 'danger', 'default']).def('default'),
  11712. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['small', 'large', 'default']).def('default'),
  11713. htmlType: ButtonTypesProps.htmlType,
  11714. href: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  11715. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  11716. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  11717. placement: DropdownProps.placement.def('bottomRight'),
  11718. icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  11719. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string
  11720. });
  11721. /* harmony default export */ __webpack_exports__["default"] = ({
  11722. name: 'ADropdownButton',
  11723. model: {
  11724. prop: 'visible',
  11725. event: 'visibleChange'
  11726. },
  11727. props: DropdownButtonProps,
  11728. provide: function provide() {
  11729. return {
  11730. savePopupRef: this.savePopupRef
  11731. };
  11732. },
  11733. inject: {
  11734. configProvider: { 'default': function _default() {
  11735. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
  11736. } }
  11737. },
  11738. methods: {
  11739. savePopupRef: function savePopupRef(ref) {
  11740. this.popupRef = ref;
  11741. },
  11742. onClick: function onClick(e) {
  11743. this.$emit('click', e);
  11744. },
  11745. onVisibleChange: function onVisibleChange(val) {
  11746. this.$emit('visibleChange', val);
  11747. }
  11748. },
  11749. render: function render() {
  11750. var h = arguments[0];
  11751. var _$props = this.$props,
  11752. type = _$props.type,
  11753. disabled = _$props.disabled,
  11754. htmlType = _$props.htmlType,
  11755. customizePrefixCls = _$props.prefixCls,
  11756. trigger = _$props.trigger,
  11757. align = _$props.align,
  11758. visible = _$props.visible,
  11759. placement = _$props.placement,
  11760. getPopupContainer = _$props.getPopupContainer,
  11761. href = _$props.href,
  11762. title = _$props.title,
  11763. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_$props, ['type', 'disabled', 'htmlType', 'prefixCls', 'trigger', 'align', 'visible', 'placement', 'getPopupContainer', 'href', 'title']);
  11764. var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'icon') || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  11765. attrs: { type: 'ellipsis' }
  11766. });
  11767. var getContextPopupContainer = this.configProvider.getPopupContainer;
  11768. var getPrefixCls = this.configProvider.getPrefixCls;
  11769. var prefixCls = getPrefixCls('dropdown-button', customizePrefixCls);
  11770. var dropdownProps = {
  11771. props: {
  11772. align: align,
  11773. disabled: disabled,
  11774. trigger: disabled ? [] : trigger,
  11775. placement: placement,
  11776. getPopupContainer: getPopupContainer || getContextPopupContainer
  11777. },
  11778. on: {
  11779. visibleChange: this.onVisibleChange
  11780. }
  11781. };
  11782. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["hasProp"])(this, 'visible')) {
  11783. dropdownProps.props.visible = visible;
  11784. }
  11785. var buttonGroupProps = {
  11786. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, restProps),
  11787. 'class': prefixCls
  11788. };
  11789. return h(
  11790. ButtonGroup,
  11791. buttonGroupProps,
  11792. [h(
  11793. _button__WEBPACK_IMPORTED_MODULE_2__["default"],
  11794. {
  11795. attrs: {
  11796. type: type,
  11797. disabled: disabled,
  11798. htmlType: htmlType,
  11799. href: href,
  11800. title: title
  11801. },
  11802. on: {
  11803. 'click': this.onClick
  11804. }
  11805. },
  11806. [this.$slots['default']]
  11807. ), h(
  11808. _dropdown__WEBPACK_IMPORTED_MODULE_5__["default"],
  11809. dropdownProps,
  11810. [h(
  11811. 'template',
  11812. { slot: 'overlay' },
  11813. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'overlay')]
  11814. ), h(
  11815. _button__WEBPACK_IMPORTED_MODULE_2__["default"],
  11816. {
  11817. attrs: { type: type }
  11818. },
  11819. [icon]
  11820. )]
  11821. )]
  11822. );
  11823. }
  11824. });
  11825. /***/ }),
  11826. /***/ "./components/dropdown/dropdown.jsx":
  11827. /*!******************************************!*\
  11828. !*** ./components/dropdown/dropdown.jsx ***!
  11829. \******************************************/
  11830. /*! exports provided: default, DropdownProps */
  11831. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11832. "use strict";
  11833. __webpack_require__.r(__webpack_exports__);
  11834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownProps", function() { return DropdownProps; });
  11835. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  11836. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  11837. /* harmony import */ var _vc_dropdown_src_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-dropdown/src/index */ "./components/vc-dropdown/src/index.js");
  11838. /* harmony import */ var _dropdown_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dropdown-button */ "./components/dropdown/dropdown-button.jsx");
  11839. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  11840. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  11841. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  11842. /* harmony import */ var _getDropdownProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getDropdownProps */ "./components/dropdown/getDropdownProps.js");
  11843. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  11844. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  11845. var DropdownProps = Object(_getDropdownProps__WEBPACK_IMPORTED_MODULE_6__["default"])();
  11846. var Dropdown = {
  11847. name: 'ADropdown',
  11848. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, DropdownProps, {
  11849. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  11850. mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0.15),
  11851. mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0.1),
  11852. placement: DropdownProps.placement.def('bottomLeft')
  11853. }),
  11854. model: {
  11855. prop: 'visible',
  11856. event: 'visibleChange'
  11857. },
  11858. provide: function provide() {
  11859. return {
  11860. savePopupRef: this.savePopupRef
  11861. };
  11862. },
  11863. inject: {
  11864. configProvider: { 'default': function _default() {
  11865. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
  11866. } }
  11867. },
  11868. methods: {
  11869. savePopupRef: function savePopupRef(ref) {
  11870. this.popupRef = ref;
  11871. },
  11872. getTransitionName: function getTransitionName() {
  11873. var _$props = this.$props,
  11874. _$props$placement = _$props.placement,
  11875. placement = _$props$placement === undefined ? '' : _$props$placement,
  11876. transitionName = _$props.transitionName;
  11877. if (transitionName !== undefined) {
  11878. return transitionName;
  11879. }
  11880. if (placement.indexOf('top') >= 0) {
  11881. return 'slide-down';
  11882. }
  11883. return 'slide-up';
  11884. },
  11885. renderOverlay: function renderOverlay(prefixCls) {
  11886. var h = this.$createElement;
  11887. var overlay = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'overlay');
  11888. var overlayNode = Array.isArray(overlay) ? overlay[0] : overlay;
  11889. // menu cannot be selectable in dropdown defaultly
  11890. // menu should be focusable in dropdown defaultly
  11891. var overlayProps = overlayNode && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getPropsData"])(overlayNode);
  11892. var _ref = overlayProps || {},
  11893. _ref$selectable = _ref.selectable,
  11894. selectable = _ref$selectable === undefined ? false : _ref$selectable,
  11895. _ref$focusable = _ref.focusable,
  11896. focusable = _ref$focusable === undefined ? true : _ref$focusable;
  11897. var expandIcon = h(
  11898. 'span',
  11899. { 'class': prefixCls + '-menu-submenu-arrow' },
  11900. [h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
  11901. attrs: { type: 'right' },
  11902. 'class': prefixCls + '-menu-submenu-arrow-icon' })]
  11903. );
  11904. var fixedModeOverlay = overlayNode && overlayNode.componentOptions ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(overlayNode, {
  11905. props: {
  11906. mode: 'vertical',
  11907. selectable: selectable,
  11908. focusable: focusable,
  11909. expandIcon: expandIcon
  11910. }
  11911. }) : overlay;
  11912. return fixedModeOverlay;
  11913. }
  11914. },
  11915. render: function render() {
  11916. var h = arguments[0];
  11917. var $slots = this.$slots;
  11918. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  11919. var customizePrefixCls = props.prefixCls,
  11920. trigger = props.trigger,
  11921. disabled = props.disabled,
  11922. getPopupContainer = props.getPopupContainer;
  11923. var getContextPopupContainer = this.configProvider.getPopupContainer;
  11924. var getPrefixCls = this.configProvider.getPrefixCls;
  11925. var prefixCls = getPrefixCls('dropdown', customizePrefixCls);
  11926. var dropdownTrigger = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])($slots['default'], {
  11927. 'class': prefixCls + '-trigger',
  11928. props: {
  11929. disabled: disabled
  11930. }
  11931. });
  11932. var triggerActions = disabled ? [] : trigger;
  11933. var alignPoint = void 0;
  11934. if (triggerActions && triggerActions.indexOf('contextmenu') !== -1) {
  11935. alignPoint = true;
  11936. }
  11937. var dropdownProps = {
  11938. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  11939. alignPoint: alignPoint
  11940. }, props, {
  11941. prefixCls: prefixCls,
  11942. getPopupContainer: getPopupContainer || getContextPopupContainer,
  11943. transitionName: this.getTransitionName(),
  11944. trigger: triggerActions
  11945. }),
  11946. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
  11947. };
  11948. return h(
  11949. _vc_dropdown_src_index__WEBPACK_IMPORTED_MODULE_1__["default"],
  11950. dropdownProps,
  11951. [dropdownTrigger, h(
  11952. 'template',
  11953. { slot: 'overlay' },
  11954. [this.renderOverlay(prefixCls)]
  11955. )]
  11956. );
  11957. }
  11958. };
  11959. Dropdown.Button = _dropdown_button__WEBPACK_IMPORTED_MODULE_2__["default"];
  11960. /* harmony default export */ __webpack_exports__["default"] = (Dropdown);
  11961. /***/ }),
  11962. /***/ "./components/dropdown/getDropdownProps.js":
  11963. /*!*************************************************!*\
  11964. !*** ./components/dropdown/getDropdownProps.js ***!
  11965. \*************************************************/
  11966. /*! exports provided: default */
  11967. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11968. "use strict";
  11969. __webpack_require__.r(__webpack_exports__);
  11970. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  11971. /* harmony default export */ __webpack_exports__["default"] = (function () {
  11972. return {
  11973. trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array.def(['hover']),
  11974. overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  11975. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  11976. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  11977. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  11978. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  11979. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  11980. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  11981. placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight']),
  11982. overlayClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  11983. overlayStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  11984. forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  11985. mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  11986. mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  11987. openClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  11988. minOverlayWidthMatchTrigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
  11989. };
  11990. });
  11991. /***/ }),
  11992. /***/ "./components/dropdown/index.js":
  11993. /*!**************************************!*\
  11994. !*** ./components/dropdown/index.js ***!
  11995. \**************************************/
  11996. /*! exports provided: DropdownProps, DropdownButtonProps, default */
  11997. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11998. "use strict";
  11999. __webpack_require__.r(__webpack_exports__);
  12000. /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dropdown */ "./components/dropdown/dropdown.jsx");
  12001. /* harmony import */ var _dropdown_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dropdown-button */ "./components/dropdown/dropdown-button.jsx");
  12002. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownProps", function() { return _dropdown__WEBPACK_IMPORTED_MODULE_0__["DropdownProps"]; });
  12003. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownButtonProps", function() { return _dropdown_button__WEBPACK_IMPORTED_MODULE_1__["DropdownButtonProps"]; });
  12004. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  12005. _dropdown__WEBPACK_IMPORTED_MODULE_0__["default"].Button = _dropdown_button__WEBPACK_IMPORTED_MODULE_1__["default"];
  12006. /* istanbul ignore next */
  12007. _dropdown__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  12008. Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
  12009. Vue.component(_dropdown__WEBPACK_IMPORTED_MODULE_0__["default"].name, _dropdown__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12010. Vue.component(_dropdown_button__WEBPACK_IMPORTED_MODULE_1__["default"].name, _dropdown_button__WEBPACK_IMPORTED_MODULE_1__["default"]);
  12011. };
  12012. /* harmony default export */ __webpack_exports__["default"] = (_dropdown__WEBPACK_IMPORTED_MODULE_0__["default"]);
  12013. /***/ }),
  12014. /***/ "./components/dropdown/style/index.js":
  12015. /*!********************************************!*\
  12016. !*** ./components/dropdown/style/index.js ***!
  12017. \********************************************/
  12018. /*! no exports provided */
  12019. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12020. "use strict";
  12021. __webpack_require__.r(__webpack_exports__);
  12022. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  12023. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  12024. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/dropdown/style/index.less");
  12025. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  12026. /* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
  12027. // style dependencies
  12028. /***/ }),
  12029. /***/ "./components/dropdown/style/index.less":
  12030. /*!**********************************************!*\
  12031. !*** ./components/dropdown/style/index.less ***!
  12032. \**********************************************/
  12033. /*! no static exports found */
  12034. /***/ (function(module, exports, __webpack_require__) {
  12035. // extracted by mini-css-extract-plugin
  12036. /***/ }),
  12037. /***/ "./components/empty/empty.jsx":
  12038. /*!************************************!*\
  12039. !*** ./components/empty/empty.jsx ***!
  12040. \************************************/
  12041. /*! exports provided: default */
  12042. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12043. "use strict";
  12044. __webpack_require__.r(__webpack_exports__);
  12045. /* harmony default export */ __webpack_exports__["default"] = ({
  12046. functional: true,
  12047. PRESENTED_IMAGE_DEFAULT: true,
  12048. render: function render() {
  12049. var h = arguments[0];
  12050. return h(
  12051. "svg",
  12052. {
  12053. attrs: { width: "184", height: "152", viewBox: "0 0 184 152", xmlns: "http://www.w3.org/2000/svg" }
  12054. },
  12055. [h(
  12056. "g",
  12057. {
  12058. attrs: { fill: "none", fillRule: "evenodd" }
  12059. },
  12060. [h(
  12061. "g",
  12062. {
  12063. attrs: { transform: "translate(24 31.67)" }
  12064. },
  12065. [h("ellipse", {
  12066. attrs: {
  12067. fillOpacity: ".8",
  12068. fill: "#F5F5F7",
  12069. cx: "67.797",
  12070. cy: "106.89",
  12071. rx: "67.797",
  12072. ry: "12.668"
  12073. }
  12074. }), h("path", {
  12075. attrs: {
  12076. d: "M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",
  12077. fill: "#AEB8C2"
  12078. }
  12079. }), h("path", {
  12080. attrs: {
  12081. d: "M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",
  12082. fill: "url(#linearGradient-1)",
  12083. transform: "translate(13.56)"
  12084. }
  12085. }), h("path", {
  12086. attrs: {
  12087. d: "M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",
  12088. fill: "#F5F5F7"
  12089. }
  12090. }), h("path", {
  12091. attrs: {
  12092. d: "M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",
  12093. fill: "#DCE0E6"
  12094. }
  12095. })]
  12096. ), h("path", {
  12097. attrs: {
  12098. d: "M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",
  12099. fill: "#DCE0E6"
  12100. }
  12101. }), h(
  12102. "g",
  12103. {
  12104. attrs: { transform: "translate(149.65 15.383)", fill: "#FFF" }
  12105. },
  12106. [h("ellipse", {
  12107. attrs: { cx: "20.654", cy: "3.167", rx: "2.849", ry: "2.815" }
  12108. }), h("path", {
  12109. attrs: { d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z" }
  12110. })]
  12111. )]
  12112. )]
  12113. );
  12114. }
  12115. });
  12116. /***/ }),
  12117. /***/ "./components/empty/index.jsx":
  12118. /*!************************************!*\
  12119. !*** ./components/empty/index.jsx ***!
  12120. \************************************/
  12121. /*! exports provided: TransferLocale, EmptyProps, default */
  12122. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12123. "use strict";
  12124. __webpack_require__.r(__webpack_exports__);
  12125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferLocale", function() { return TransferLocale; });
  12126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmptyProps", function() { return EmptyProps; });
  12127. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  12128. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  12129. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  12130. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
  12131. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  12132. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  12133. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  12134. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
  12135. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  12136. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  12137. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  12138. /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
  12139. /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./empty */ "./components/empty/empty.jsx");
  12140. /* harmony import */ var _simple__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./simple */ "./components/empty/simple.jsx");
  12141. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  12142. var TransferLocale = function TransferLocale() {
  12143. return {
  12144. description: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string
  12145. };
  12146. };
  12147. var EmptyProps = function EmptyProps() {
  12148. return {
  12149. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  12150. image: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  12151. description: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  12152. imageStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object
  12153. };
  12154. };
  12155. var Empty = {
  12156. name: 'AEmpty',
  12157. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, EmptyProps()),
  12158. methods: {
  12159. renderEmpty: function renderEmpty(contentLocale) {
  12160. var h = this.$createElement;
  12161. var _$props = this.$props,
  12162. customizePrefixCls = _$props.prefixCls,
  12163. imageStyle = _$props.imageStyle;
  12164. var prefixCls = _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"].getPrefixCls('empty', customizePrefixCls);
  12165. var image = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'image') || h(_empty__WEBPACK_IMPORTED_MODULE_8__["default"]);
  12166. var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'description');
  12167. var des = typeof description !== 'undefined' ? description : contentLocale.description;
  12168. var alt = typeof des === 'string' ? des : 'empty';
  12169. var cls = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, prefixCls, true);
  12170. var imageNode = null;
  12171. if (typeof image === 'string') {
  12172. imageNode = h('img', {
  12173. attrs: { alt: alt, src: image }
  12174. });
  12175. } else if ((typeof image === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(image)) === 'object' && image.PRESENTED_IMAGE_SIMPLE) {
  12176. var Image = image;
  12177. imageNode = h(Image);
  12178. cls[prefixCls + '-normal'] = true;
  12179. } else {
  12180. imageNode = image;
  12181. }
  12182. return h(
  12183. 'div',
  12184. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': cls }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this) }]),
  12185. [h(
  12186. 'div',
  12187. { 'class': prefixCls + '-image', style: imageStyle },
  12188. [imageNode]
  12189. ), des && h(
  12190. 'p',
  12191. { 'class': prefixCls + '-description' },
  12192. [des]
  12193. ), this.$slots['default'] && h(
  12194. 'div',
  12195. { 'class': prefixCls + '-footer' },
  12196. [this.$slots['default']]
  12197. )]
  12198. );
  12199. }
  12200. },
  12201. render: function render() {
  12202. var h = arguments[0];
  12203. return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_7__["default"], {
  12204. attrs: { componentName: 'Empty' },
  12205. scopedSlots: { 'default': this.renderEmpty } });
  12206. }
  12207. };
  12208. Empty.PRESENTED_IMAGE_DEFAULT = _empty__WEBPACK_IMPORTED_MODULE_8__["default"];
  12209. Empty.PRESENTED_IMAGE_SIMPLE = _simple__WEBPACK_IMPORTED_MODULE_9__["default"];
  12210. /* istanbul ignore next */
  12211. Empty.install = function (Vue) {
  12212. Vue.use(_base__WEBPACK_IMPORTED_MODULE_10__["default"]);
  12213. Vue.component(Empty.name, Empty);
  12214. };
  12215. /* harmony default export */ __webpack_exports__["default"] = (Empty);
  12216. /***/ }),
  12217. /***/ "./components/empty/simple.jsx":
  12218. /*!*************************************!*\
  12219. !*** ./components/empty/simple.jsx ***!
  12220. \*************************************/
  12221. /*! exports provided: default */
  12222. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12223. "use strict";
  12224. __webpack_require__.r(__webpack_exports__);
  12225. /* harmony default export */ __webpack_exports__["default"] = ({
  12226. functional: true,
  12227. PRESENTED_IMAGE_SIMPLE: true,
  12228. render: function render() {
  12229. var h = arguments[0];
  12230. return h(
  12231. "svg",
  12232. {
  12233. attrs: { width: "64", height: "41", viewBox: "0 0 64 41", xmlns: "http://www.w3.org/2000/svg" }
  12234. },
  12235. [h(
  12236. "g",
  12237. {
  12238. attrs: { transform: "translate(0 1)", fill: "none", fillRule: "evenodd" }
  12239. },
  12240. [h("ellipse", {
  12241. attrs: { fill: "#F5F5F5", cx: "32", cy: "33", rx: "32", ry: "7" }
  12242. }), h(
  12243. "g",
  12244. {
  12245. attrs: { fillRule: "nonzero", stroke: "#D9D9D9" }
  12246. },
  12247. [h("path", {
  12248. attrs: { d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" }
  12249. }), h("path", {
  12250. attrs: {
  12251. d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
  12252. fill: "#FAFAFA"
  12253. }
  12254. })]
  12255. )]
  12256. )]
  12257. );
  12258. }
  12259. });
  12260. /***/ }),
  12261. /***/ "./components/empty/style/index.js":
  12262. /*!*****************************************!*\
  12263. !*** ./components/empty/style/index.js ***!
  12264. \*****************************************/
  12265. /*! no exports provided */
  12266. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12267. "use strict";
  12268. __webpack_require__.r(__webpack_exports__);
  12269. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  12270. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  12271. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/empty/style/index.less");
  12272. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  12273. /***/ }),
  12274. /***/ "./components/empty/style/index.less":
  12275. /*!*******************************************!*\
  12276. !*** ./components/empty/style/index.less ***!
  12277. \*******************************************/
  12278. /*! no static exports found */
  12279. /***/ (function(module, exports, __webpack_require__) {
  12280. // extracted by mini-css-extract-plugin
  12281. /***/ }),
  12282. /***/ "./components/form-model/Form.jsx":
  12283. /*!****************************************!*\
  12284. !*** ./components/form-model/Form.jsx ***!
  12285. \****************************************/
  12286. /*! exports provided: FormProps, ValidationRule, default */
  12287. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12288. "use strict";
  12289. __webpack_require__.r(__webpack_exports__);
  12290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormProps", function() { return FormProps; });
  12291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidationRule", function() { return ValidationRule; });
  12292. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  12293. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  12294. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  12295. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  12296. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  12297. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  12298. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  12299. /* harmony import */ var _grid_Col__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../grid/Col */ "./components/grid/Col.jsx");
  12300. /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isRegExp */ "./node_modules/lodash/isRegExp.js");
  12301. /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_5__);
  12302. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  12303. /* harmony import */ var _FormItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FormItem */ "./components/form-model/FormItem.jsx");
  12304. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  12305. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  12306. var FormProps = {
  12307. layout: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['horizontal', 'inline', 'vertical']),
  12308. labelCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
  12309. wrapperCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
  12310. colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  12311. labelAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['left', 'right']),
  12312. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  12313. hideRequiredMark: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  12314. model: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  12315. rules: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  12316. validateMessages: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  12317. validateOnRuleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
  12318. };
  12319. var ValidationRule = {
  12320. /** validation error message */
  12321. message: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
  12322. /** built-in validation type, available options: https://github.com/yiminghe/async-validator#type */
  12323. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  12324. /** indicates whether field is required */
  12325. required: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].boolean,
  12326. /** treat required fields that only contain whitespace as errors */
  12327. whitespace: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].boolean,
  12328. /** validate the exact length of a field */
  12329. len: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  12330. /** validate the min length of a field */
  12331. min: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  12332. /** validate the max length of a field */
  12333. max: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  12334. /** validate the value from a list of possible values */
  12335. 'enum': _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([String, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].arrayOf(String)]),
  12336. /** validate from a regular expression */
  12337. pattern: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].custom(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_5___default.a),
  12338. /** transform a value before validation */
  12339. transform: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12340. /** custom validate function (Note: callback must be called) */
  12341. validator: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
  12342. };
  12343. var Form = {
  12344. name: 'AFormModel',
  12345. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["initDefaultProps"])(FormProps, {
  12346. layout: 'horizontal',
  12347. hideRequiredMark: false,
  12348. colon: true
  12349. }),
  12350. Item: _FormItem__WEBPACK_IMPORTED_MODULE_7__["default"],
  12351. created: function created() {
  12352. this.fields = [];
  12353. },
  12354. provide: function provide() {
  12355. return {
  12356. FormContext: this
  12357. };
  12358. },
  12359. inject: {
  12360. configProvider: { 'default': function _default() {
  12361. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
  12362. } }
  12363. },
  12364. watch: {
  12365. rules: function rules() {
  12366. if (this.validateOnRuleChange) {
  12367. this.validate(function () {});
  12368. }
  12369. }
  12370. },
  12371. computed: {
  12372. vertical: function vertical() {
  12373. return this.layout === 'vertical';
  12374. }
  12375. },
  12376. methods: {
  12377. addField: function addField(field) {
  12378. if (field) {
  12379. this.fields.push(field);
  12380. }
  12381. },
  12382. removeField: function removeField(field) {
  12383. if (field.prop) {
  12384. this.fields.splice(this.fields.indexOf(field), 1);
  12385. }
  12386. },
  12387. onSubmit: function onSubmit(e) {
  12388. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this).submit) {
  12389. e.preventDefault();
  12390. } else {
  12391. this.$emit('submit', e);
  12392. }
  12393. },
  12394. resetFields: function resetFields() {
  12395. if (!this.model) {
  12396. Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'FormModel', 'model is required for resetFields to work.');
  12397. return;
  12398. }
  12399. this.fields.forEach(function (field) {
  12400. field.resetField();
  12401. });
  12402. },
  12403. clearValidate: function clearValidate() {
  12404. var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  12405. var fields = props.length ? typeof props === 'string' ? this.fields.filter(function (field) {
  12406. return props === field.prop;
  12407. }) : this.fields.filter(function (field) {
  12408. return props.indexOf(field.prop) > -1;
  12409. }) : this.fields;
  12410. fields.forEach(function (field) {
  12411. field.clearValidate();
  12412. });
  12413. },
  12414. validate: function validate(callback) {
  12415. var _this = this;
  12416. if (!this.model) {
  12417. Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'FormModel', 'model is required for resetFields to work.');
  12418. return;
  12419. }
  12420. var promise = void 0;
  12421. // if no callback, return promise
  12422. if (typeof callback !== 'function' && window.Promise) {
  12423. promise = new window.Promise(function (resolve, reject) {
  12424. callback = function callback(valid) {
  12425. valid ? resolve(valid) : reject(valid);
  12426. };
  12427. });
  12428. }
  12429. var valid = true;
  12430. var count = 0;
  12431. // 如果需要验证的fields为空,调用验证时立刻返回callback
  12432. if (this.fields.length === 0 && callback) {
  12433. callback(true);
  12434. }
  12435. var invalidFields = {};
  12436. this.fields.forEach(function (field) {
  12437. field.validate('', function (message, field) {
  12438. if (message) {
  12439. valid = false;
  12440. }
  12441. invalidFields = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, invalidFields, field);
  12442. if (typeof callback === 'function' && ++count === _this.fields.length) {
  12443. callback(valid, invalidFields);
  12444. }
  12445. });
  12446. });
  12447. if (promise) {
  12448. return promise;
  12449. }
  12450. },
  12451. validateField: function validateField(props, cb) {
  12452. props = [].concat(props);
  12453. var fields = this.fields.filter(function (field) {
  12454. return props.indexOf(field.prop) !== -1;
  12455. });
  12456. if (!fields.length) {
  12457. Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'FormModel', 'please pass correct props!');
  12458. return;
  12459. }
  12460. fields.forEach(function (field) {
  12461. field.validate('', cb);
  12462. });
  12463. }
  12464. },
  12465. render: function render() {
  12466. var _classNames;
  12467. var h = arguments[0];
  12468. var customizePrefixCls = this.prefixCls,
  12469. hideRequiredMark = this.hideRequiredMark,
  12470. layout = this.layout,
  12471. onSubmit = this.onSubmit,
  12472. $slots = this.$slots;
  12473. var getPrefixCls = this.configProvider.getPrefixCls;
  12474. var prefixCls = getPrefixCls('form', customizePrefixCls);
  12475. var formClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-horizontal', layout === 'horizontal'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-vertical', layout === 'vertical'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-inline', layout === 'inline'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-hide-required-mark', hideRequiredMark), _classNames));
  12476. return h(
  12477. 'form',
  12478. {
  12479. on: {
  12480. 'submit': onSubmit
  12481. },
  12482. 'class': formClassName },
  12483. [$slots['default']]
  12484. );
  12485. }
  12486. };
  12487. /* harmony default export */ __webpack_exports__["default"] = (Form);
  12488. /***/ }),
  12489. /***/ "./components/form-model/FormItem.jsx":
  12490. /*!********************************************!*\
  12491. !*** ./components/form-model/FormItem.jsx ***!
  12492. \********************************************/
  12493. /*! exports provided: FormItemProps, default */
  12494. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12495. "use strict";
  12496. __webpack_require__.r(__webpack_exports__);
  12497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormItemProps", function() { return FormItemProps; });
  12498. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  12499. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  12500. /* harmony import */ var async_validator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/dist-web/index.js");
  12501. /* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");
  12502. /* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2__);
  12503. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  12504. /* harmony import */ var _grid_Col__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../grid/Col */ "./components/grid/Col.jsx");
  12505. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  12506. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  12507. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  12508. /* harmony import */ var _form_FormItem__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../form/FormItem */ "./components/form/FormItem.jsx");
  12509. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  12510. function noop() {}
  12511. function getPropByPath(obj, path, strict) {
  12512. var tempObj = obj;
  12513. path = path.replace(/\[(\w+)\]/g, '.$1');
  12514. path = path.replace(/^\./, '');
  12515. var keyArr = path.split('.');
  12516. var i = 0;
  12517. for (var len = keyArr.length; i < len - 1; ++i) {
  12518. if (!tempObj && !strict) break;
  12519. var key = keyArr[i];
  12520. if (key in tempObj) {
  12521. tempObj = tempObj[key];
  12522. } else {
  12523. if (strict) {
  12524. throw new Error('please transfer a valid prop path to form item!');
  12525. }
  12526. break;
  12527. }
  12528. }
  12529. return {
  12530. o: tempObj,
  12531. k: keyArr[i],
  12532. v: tempObj ? tempObj[keyArr[i]] : null
  12533. };
  12534. }
  12535. var FormItemProps = {
  12536. id: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  12537. htmlFor: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  12538. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  12539. label: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  12540. help: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  12541. extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  12542. labelCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
  12543. wrapperCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
  12544. hasFeedback: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  12545. colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  12546. labelAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['left', 'right']),
  12547. prop: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  12548. rules: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([Array, Object]),
  12549. autoLink: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  12550. required: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  12551. validateStatus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['', 'success', 'warning', 'error', 'validating'])
  12552. };
  12553. /* harmony default export */ __webpack_exports__["default"] = ({
  12554. name: 'AFormModelItem',
  12555. __ANT_NEW_FORM_ITEM: true,
  12556. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
  12557. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])(FormItemProps, {
  12558. hasFeedback: false,
  12559. autoLink: true
  12560. }),
  12561. inject: {
  12562. configProvider: { 'default': function _default() {
  12563. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
  12564. } },
  12565. FormContext: { 'default': function _default() {
  12566. return {};
  12567. } }
  12568. },
  12569. data: function data() {
  12570. return {
  12571. validateState: this.validateStatus,
  12572. validateMessage: '',
  12573. validateDisabled: false,
  12574. validator: {}
  12575. };
  12576. },
  12577. computed: {
  12578. fieldValue: function fieldValue() {
  12579. var model = this.FormContext.model;
  12580. if (!model || !this.prop) {
  12581. return;
  12582. }
  12583. var path = this.prop;
  12584. if (path.indexOf(':') !== -1) {
  12585. path = path.replace(/:/g, '.');
  12586. }
  12587. return getPropByPath(model, path, true).v;
  12588. },
  12589. isRequired: function isRequired() {
  12590. var rules = this.getRules();
  12591. var isRequired = false;
  12592. if (rules && rules.length) {
  12593. rules.every(function (rule) {
  12594. if (rule.required) {
  12595. isRequired = true;
  12596. return false;
  12597. }
  12598. return true;
  12599. });
  12600. }
  12601. return isRequired;
  12602. }
  12603. },
  12604. watch: {
  12605. validateStatus: function validateStatus(val) {
  12606. this.validateState = val;
  12607. }
  12608. },
  12609. mounted: function mounted() {
  12610. if (this.prop) {
  12611. var addField = this.FormContext.addField;
  12612. addField && addField(this);
  12613. this.initialValue = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default()(this.fieldValue);
  12614. }
  12615. },
  12616. beforeDestroy: function beforeDestroy() {
  12617. var removeField = this.FormContext.removeField;
  12618. removeField && removeField(this);
  12619. },
  12620. methods: {
  12621. validate: function validate(trigger) {
  12622. var _this = this;
  12623. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
  12624. this.validateDisabled = false;
  12625. var rules = this.getFilteredRule(trigger);
  12626. if (!rules || rules.length === 0) {
  12627. callback();
  12628. return true;
  12629. }
  12630. this.validateState = 'validating';
  12631. var descriptor = {};
  12632. if (rules && rules.length > 0) {
  12633. rules.forEach(function (rule) {
  12634. delete rule.trigger;
  12635. });
  12636. }
  12637. descriptor[this.prop] = rules;
  12638. var validator = new async_validator__WEBPACK_IMPORTED_MODULE_1__["default"](descriptor);
  12639. if (this.FormContext && this.FormContext.validateMessages) {
  12640. validator.messages(this.FormContext.validateMessages);
  12641. }
  12642. var model = {};
  12643. model[this.prop] = this.fieldValue;
  12644. validator.validate(model, { firstFields: true }, function (errors, invalidFields) {
  12645. _this.validateState = errors ? 'error' : 'success';
  12646. _this.validateMessage = errors ? errors[0].message : '';
  12647. callback(_this.validateMessage, invalidFields);
  12648. _this.FormContext && _this.FormContext.$emit && _this.FormContext.$emit('validate', _this.prop, !errors, _this.validateMessage || null);
  12649. });
  12650. },
  12651. getRules: function getRules() {
  12652. var formRules = this.FormContext.rules;
  12653. var selfRules = this.rules;
  12654. var requiredRule = this.required !== undefined ? { required: !!this.required, trigger: 'change' } : [];
  12655. var prop = getPropByPath(formRules, this.prop || '');
  12656. formRules = formRules ? prop.o[this.prop || ''] || prop.v : [];
  12657. return [].concat(selfRules || formRules || []).concat(requiredRule);
  12658. },
  12659. getFilteredRule: function getFilteredRule(trigger) {
  12660. var rules = this.getRules();
  12661. return rules.filter(function (rule) {
  12662. if (!rule.trigger || trigger === '') return true;
  12663. if (Array.isArray(rule.trigger)) {
  12664. return rule.trigger.indexOf(trigger) > -1;
  12665. } else {
  12666. return rule.trigger === trigger;
  12667. }
  12668. }).map(function (rule) {
  12669. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rule);
  12670. });
  12671. },
  12672. onFieldBlur: function onFieldBlur() {
  12673. this.validate('blur');
  12674. },
  12675. onFieldChange: function onFieldChange() {
  12676. if (this.validateDisabled) {
  12677. this.validateDisabled = false;
  12678. return;
  12679. }
  12680. this.validate('change');
  12681. },
  12682. clearValidate: function clearValidate() {
  12683. this.validateState = '';
  12684. this.validateMessage = '';
  12685. this.validateDisabled = false;
  12686. },
  12687. resetField: function resetField() {
  12688. var _this2 = this;
  12689. this.validateState = '';
  12690. this.validateMessage = '';
  12691. var model = this.FormContext.model || {};
  12692. var value = this.fieldValue;
  12693. var path = this.prop;
  12694. if (path.indexOf(':') !== -1) {
  12695. path = path.replace(/:/, '.');
  12696. }
  12697. var prop = getPropByPath(model, path, true);
  12698. this.validateDisabled = true;
  12699. if (Array.isArray(value)) {
  12700. prop.o[prop.k] = [].concat(this.initialValue);
  12701. } else {
  12702. prop.o[prop.k] = this.initialValue;
  12703. }
  12704. // reset validateDisabled after onFieldChange triggered
  12705. this.$nextTick(function () {
  12706. _this2.validateDisabled = false;
  12707. });
  12708. }
  12709. },
  12710. render: function render() {
  12711. var _this3 = this;
  12712. var h = arguments[0];
  12713. var $slots = this.$slots,
  12714. $scopedSlots = this.$scopedSlots;
  12715. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  12716. var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'label');
  12717. var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'extra');
  12718. var help = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'help');
  12719. var formProps = {
  12720. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
  12721. label: label,
  12722. extra: extra,
  12723. validateStatus: this.validateState,
  12724. help: this.validateMessage || help,
  12725. required: this.isRequired || props.required
  12726. })
  12727. };
  12728. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])($scopedSlots['default'] ? $scopedSlots['default']() : $slots['default']);
  12729. var firstChildren = children[0];
  12730. if (this.prop && this.autoLink && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["isValidElement"])(firstChildren)) {
  12731. var originalEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getEvents"])(firstChildren);
  12732. var originalBlur = originalEvents.blur;
  12733. var originalChange = originalEvents.change;
  12734. firstChildren = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_9__["cloneElement"])(firstChildren, {
  12735. on: {
  12736. blur: function blur() {
  12737. originalBlur && originalBlur.apply(undefined, arguments);
  12738. _this3.onFieldBlur();
  12739. },
  12740. change: function change() {
  12741. if (Array.isArray(originalChange)) {
  12742. for (var i = 0, l = originalChange.length; i < l; i++) {
  12743. originalChange[i].apply(originalChange, arguments);
  12744. }
  12745. } else if (originalChange) {
  12746. originalChange.apply(undefined, arguments);
  12747. }
  12748. _this3.onFieldChange();
  12749. }
  12750. }
  12751. });
  12752. }
  12753. return h(
  12754. _form_FormItem__WEBPACK_IMPORTED_MODULE_8__["default"],
  12755. formProps,
  12756. [firstChildren, children.slice(1)]
  12757. );
  12758. }
  12759. });
  12760. /***/ }),
  12761. /***/ "./components/form-model/index.jsx":
  12762. /*!*****************************************!*\
  12763. !*** ./components/form-model/index.jsx ***!
  12764. \*****************************************/
  12765. /*! exports provided: FormProps, ValidationRule, FormItemProps, default */
  12766. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12767. "use strict";
  12768. __webpack_require__.r(__webpack_exports__);
  12769. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
  12770. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
  12771. /* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Form */ "./components/form-model/Form.jsx");
  12772. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  12773. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_2__);
  12774. /* harmony import */ var _util_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/FormDecoratorDirective */ "./components/_util/FormDecoratorDirective.js");
  12775. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  12776. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormProps", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["FormProps"]; });
  12777. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ValidationRule", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["ValidationRule"]; });
  12778. /* harmony import */ var _FormItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FormItem */ "./components/form-model/FormItem.jsx");
  12779. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormItemProps", function() { return _FormItem__WEBPACK_IMPORTED_MODULE_5__["FormItemProps"]; });
  12780. vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_2___default.a, { name: 'ant-ref' });
  12781. vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(_util_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_3__["default"]);
  12782. /* istanbul ignore next */
  12783. _Form__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
  12784. Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
  12785. Vue.component(_Form__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Form__WEBPACK_IMPORTED_MODULE_1__["default"]);
  12786. Vue.component(_Form__WEBPACK_IMPORTED_MODULE_1__["default"].Item.name, _Form__WEBPACK_IMPORTED_MODULE_1__["default"].Item);
  12787. };
  12788. /* harmony default export */ __webpack_exports__["default"] = (_Form__WEBPACK_IMPORTED_MODULE_1__["default"]);
  12789. /***/ }),
  12790. /***/ "./components/form-model/style/index.js":
  12791. /*!**********************************************!*\
  12792. !*** ./components/form-model/style/index.js ***!
  12793. \**********************************************/
  12794. /*! no exports provided */
  12795. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12796. "use strict";
  12797. __webpack_require__.r(__webpack_exports__);
  12798. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  12799. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  12800. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/form-model/style/index.less");
  12801. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  12802. /* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
  12803. // style dependencies
  12804. /***/ }),
  12805. /***/ "./components/form-model/style/index.less":
  12806. /*!************************************************!*\
  12807. !*** ./components/form-model/style/index.less ***!
  12808. \************************************************/
  12809. /*! no static exports found */
  12810. /***/ (function(module, exports, __webpack_require__) {
  12811. // extracted by mini-css-extract-plugin
  12812. /***/ }),
  12813. /***/ "./components/form/Form.jsx":
  12814. /*!**********************************!*\
  12815. !*** ./components/form/Form.jsx ***!
  12816. \**********************************/
  12817. /*! exports provided: FormCreateOption, WrappedFormUtils, FormProps, ValidationRule, default */
  12818. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12819. "use strict";
  12820. __webpack_require__.r(__webpack_exports__);
  12821. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormCreateOption", function() { return FormCreateOption; });
  12822. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WrappedFormUtils", function() { return WrappedFormUtils; });
  12823. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormProps", function() { return FormProps; });
  12824. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidationRule", function() { return ValidationRule; });
  12825. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  12826. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  12827. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  12828. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  12829. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  12830. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  12831. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  12832. /* harmony import */ var _grid_Col__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../grid/Col */ "./components/grid/Col.jsx");
  12833. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "vue");
  12834. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_5__);
  12835. /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/isRegExp */ "./node_modules/lodash/isRegExp.js");
  12836. /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_6__);
  12837. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  12838. /* harmony import */ var _vc_form_src_createDOMForm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../vc-form/src/createDOMForm */ "./components/vc-form/src/createDOMForm.jsx");
  12839. /* harmony import */ var _vc_form_src_createFormField__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../vc-form/src/createFormField */ "./components/vc-form/src/createFormField.jsx");
  12840. /* harmony import */ var _FormItem__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./FormItem */ "./components/form/FormItem.jsx");
  12841. /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./constants */ "./components/form/constants.jsx");
  12842. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  12843. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  12844. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  12845. var FormCreateOption = {
  12846. onFieldsChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12847. onValuesChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12848. mapPropsToFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12849. validateMessages: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  12850. withRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  12851. name: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
  12852. };
  12853. // function create
  12854. var WrappedFormUtils = {
  12855. /** 获取一组输入控件的值,如不传入参数,则获取全部组件的值 */
  12856. getFieldsValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12857. /** 获取一个输入控件的值*/
  12858. getFieldValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12859. /** 设置一组输入控件的值*/
  12860. setFieldsValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12861. /** 设置一组输入控件的值*/
  12862. setFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12863. /** 校验并获取一组输入域的值与 Error */
  12864. validateFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12865. // validateFields(fieldNames: Array<string>, options: Object, callback: ValidateCallback): void;
  12866. // validateFields(fieldNames: Array<string>, callback: ValidateCallback): void;
  12867. // validateFields(options: Object, callback: ValidateCallback): void;
  12868. // validateFields(callback: ValidateCallback): void;
  12869. // validateFields(): void;
  12870. /** 与 `validateFields` 相似,但校验完后,如果校验不通过的菜单域不在可见范围内,则自动滚动进可见范围 */
  12871. validateFieldsAndScroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12872. // validateFieldsAndScroll(fieldNames?: Array<string>, options?: Object, callback?: ValidateCallback): void;
  12873. // validateFieldsAndScroll(fieldNames?: Array<string>, callback?: ValidateCallback): void;
  12874. // validateFieldsAndScroll(options?: Object, callback?: ValidateCallback): void;
  12875. // validateFieldsAndScroll(callback?: ValidateCallback): void;
  12876. // validateFieldsAndScroll(): void;
  12877. /** 获取某个输入控件的 Error */
  12878. getFieldError: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12879. getFieldsError: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12880. /** 判断一个输入控件是否在校验状态*/
  12881. isFieldValidating: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12882. isFieldTouched: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12883. isFieldsTouched: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12884. /** 重置一组输入控件的值与状态,如不传入参数,则重置所有组件 */
  12885. resetFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12886. getFieldDecorator: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
  12887. };
  12888. var FormProps = {
  12889. layout: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['horizontal', 'inline', 'vertical']),
  12890. labelCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
  12891. wrapperCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
  12892. colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  12893. labelAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['left', 'right']),
  12894. form: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  12895. // onSubmit: React.FormEventHandler<any>;
  12896. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  12897. hideRequiredMark: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  12898. autoFormCreate: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12899. options: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  12900. selfUpdate: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
  12901. };
  12902. var ValidationRule = {
  12903. /** validation error message */
  12904. message: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
  12905. /** built-in validation type, available options: https://github.com/yiminghe/async-validator#type */
  12906. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  12907. /** indicates whether field is required */
  12908. required: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].boolean,
  12909. /** treat required fields that only contain whitespace as errors */
  12910. whitespace: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].boolean,
  12911. /** validate the exact length of a field */
  12912. len: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  12913. /** validate the min length of a field */
  12914. min: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  12915. /** validate the max length of a field */
  12916. max: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  12917. /** validate the value from a list of possible values */
  12918. 'enum': _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([String, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].arrayOf(String)]),
  12919. /** validate from a regular expression */
  12920. pattern: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].custom(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_6___default.a),
  12921. /** transform a value before validation */
  12922. transform: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  12923. /** custom validate function (Note: callback must be called) */
  12924. validator: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
  12925. };
  12926. // export type ValidateCallback = (errors: any, values: any) => void;
  12927. // export type GetFieldDecoratorOptions = {
  12928. // /** 子节点的值的属性,如 Checkbox 的是 'checked' */
  12929. // valuePropName?: string;
  12930. // /** 子节点的初始值,类型、可选值均由子节点决定 */
  12931. // initialValue?: any;
  12932. // /** 收集子节点的值的时机 */
  12933. // trigger?: string;
  12934. // /** 可以把 onChange 的参数转化为控件的值,例如 DatePicker 可设为:(date, dateString) => dateString */
  12935. // getValueFromEvent?: (...args: any[]) => any;
  12936. // /** Get the component props according to field value. */
  12937. // getValueProps?: (value: any) => any;
  12938. // /** 校验子节点值的时机 */
  12939. // validateTrigger?: string | string[];
  12940. // /** 校验规则,参见 [async-validator](https://github.com/yiminghe/async-validator) */
  12941. // rules?: ValidationRule[];
  12942. // /** 是否和其他控件互斥,特别用于 Radio 单选控件 */
  12943. // exclusive?: boolean;
  12944. // /** Normalize value to form component */
  12945. // normalize?: (value: any, prevValue: any, allValues: any) => any;
  12946. // /** Whether stop validate on first rule of error for this field. */
  12947. // validateFirst?: boolean;
  12948. // /** 是否一直保留子节点的信息 */
  12949. // preserve?: boolean;
  12950. // };
  12951. var Form = {
  12952. name: 'AForm',
  12953. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])(FormProps, {
  12954. layout: 'horizontal',
  12955. hideRequiredMark: false,
  12956. colon: true
  12957. }),
  12958. Item: _FormItem__WEBPACK_IMPORTED_MODULE_10__["default"],
  12959. createFormField: _vc_form_src_createFormField__WEBPACK_IMPORTED_MODULE_9__["default"],
  12960. create: function create() {
  12961. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  12962. return Object(_vc_form_src_createDOMForm__WEBPACK_IMPORTED_MODULE_8__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
  12963. fieldNameProp: 'id'
  12964. }, options, {
  12965. fieldMetaProp: _constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_META_PROP"],
  12966. fieldDataProp: _constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_DATA_PROP"]
  12967. }));
  12968. },
  12969. createForm: function createForm(context) {
  12970. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  12971. var V = _base__WEBPACK_IMPORTED_MODULE_14__["default"].Vue || vue__WEBPACK_IMPORTED_MODULE_5___default.a;
  12972. return new V(Form.create(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, options, { templateContext: context }))());
  12973. },
  12974. created: function created() {
  12975. this.formItemContexts = new Map();
  12976. },
  12977. provide: function provide() {
  12978. var _this = this;
  12979. return {
  12980. FormContext: this,
  12981. // https://github.com/vueComponent/ant-design-vue/issues/446
  12982. collectFormItemContext: this.form && this.form.templateContext ? function (c) {
  12983. var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'add';
  12984. var formItemContexts = _this.formItemContexts;
  12985. var number = formItemContexts.get(c) || 0;
  12986. if (type === 'delete') {
  12987. if (number <= 1) {
  12988. formItemContexts['delete'](c);
  12989. } else {
  12990. formItemContexts.set(c, number - 1);
  12991. }
  12992. } else {
  12993. if (c !== _this.form.templateContext) {
  12994. formItemContexts.set(c, number + 1);
  12995. }
  12996. }
  12997. } : function () {}
  12998. };
  12999. },
  13000. inject: {
  13001. configProvider: { 'default': function _default() {
  13002. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__["ConfigConsumerProps"];
  13003. } }
  13004. },
  13005. watch: {
  13006. form: function form() {
  13007. this.$forceUpdate();
  13008. }
  13009. },
  13010. computed: {
  13011. vertical: function vertical() {
  13012. return this.layout === 'vertical';
  13013. }
  13014. },
  13015. beforeUpdate: function beforeUpdate() {
  13016. this.formItemContexts.forEach(function (number, c) {
  13017. if (c.$forceUpdate) {
  13018. c.$forceUpdate();
  13019. }
  13020. });
  13021. },
  13022. updated: function updated() {
  13023. if (this.form && this.form.cleanUpUselessFields) {
  13024. this.form.cleanUpUselessFields();
  13025. }
  13026. },
  13027. methods: {
  13028. onSubmit: function onSubmit(e) {
  13029. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this).submit) {
  13030. e.preventDefault();
  13031. } else {
  13032. this.$emit('submit', e);
  13033. }
  13034. }
  13035. },
  13036. render: function render() {
  13037. var _classNames,
  13038. _this2 = this;
  13039. var h = arguments[0];
  13040. var customizePrefixCls = this.prefixCls,
  13041. hideRequiredMark = this.hideRequiredMark,
  13042. layout = this.layout,
  13043. onSubmit = this.onSubmit,
  13044. $slots = this.$slots,
  13045. autoFormCreate = this.autoFormCreate,
  13046. _options = this.options,
  13047. options = _options === undefined ? {} : _options;
  13048. var getPrefixCls = this.configProvider.getPrefixCls;
  13049. var prefixCls = getPrefixCls('form', customizePrefixCls);
  13050. var formClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-horizontal', layout === 'horizontal'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-vertical', layout === 'vertical'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-inline', layout === 'inline'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-hide-required-mark', hideRequiredMark), _classNames));
  13051. if (autoFormCreate) {
  13052. Object(_util_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(false, 'Form', '`autoFormCreate` is deprecated. please use `form` instead.');
  13053. var DomForm = this.DomForm || Object(_vc_form_src_createDOMForm__WEBPACK_IMPORTED_MODULE_8__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
  13054. fieldNameProp: 'id'
  13055. }, options, {
  13056. fieldMetaProp: _constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_META_PROP"],
  13057. fieldDataProp: _constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_DATA_PROP"],
  13058. templateContext: this.$vnode.context
  13059. }))({
  13060. provide: function provide() {
  13061. return {
  13062. decoratorFormProps: this.$props
  13063. };
  13064. },
  13065. data: function data() {
  13066. return {
  13067. children: $slots['default'],
  13068. formClassName: formClassName,
  13069. submit: onSubmit
  13070. };
  13071. },
  13072. created: function created() {
  13073. autoFormCreate(this.form);
  13074. },
  13075. render: function render() {
  13076. var h = arguments[0];
  13077. var children = this.children,
  13078. formClassName = this.formClassName,
  13079. submit = this.submit;
  13080. return h(
  13081. 'form',
  13082. {
  13083. on: {
  13084. 'submit': submit
  13085. },
  13086. 'class': formClassName },
  13087. [children]
  13088. );
  13089. }
  13090. });
  13091. if (this.domForm) {
  13092. this.domForm.children = $slots['default'];
  13093. this.domForm.submit = onSubmit;
  13094. this.domForm.formClassName = formClassName;
  13095. }
  13096. this.DomForm = DomForm;
  13097. return h(DomForm, {
  13098. attrs: {
  13099. wrappedComponentRef: function wrappedComponentRef(inst) {
  13100. _this2.domForm = inst;
  13101. }
  13102. }
  13103. });
  13104. }
  13105. return h(
  13106. 'form',
  13107. {
  13108. on: {
  13109. 'submit': onSubmit
  13110. },
  13111. 'class': formClassName },
  13112. [$slots['default']]
  13113. );
  13114. }
  13115. };
  13116. /* harmony default export */ __webpack_exports__["default"] = (Form);
  13117. /***/ }),
  13118. /***/ "./components/form/FormItem.jsx":
  13119. /*!**************************************!*\
  13120. !*** ./components/form/FormItem.jsx ***!
  13121. \**************************************/
  13122. /*! exports provided: FormItemProps, default */
  13123. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13124. "use strict";
  13125. __webpack_require__.r(__webpack_exports__);
  13126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormItemProps", function() { return FormItemProps; });
  13127. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  13128. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  13129. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  13130. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  13131. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  13132. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
  13133. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  13134. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_3__);
  13135. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  13136. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__);
  13137. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  13138. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  13139. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
  13140. /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");
  13141. /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_7__);
  13142. /* harmony import */ var _grid_Row__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../grid/Row */ "./components/grid/Row.jsx");
  13143. /* harmony import */ var _grid_Col__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../grid/Col */ "./components/grid/Col.jsx");
  13144. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  13145. /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./constants */ "./components/form/constants.jsx");
  13146. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  13147. /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
  13148. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  13149. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  13150. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  13151. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  13152. function noop() {}
  13153. function intersperseSpace(list) {
  13154. return list.reduce(function (current, item) {
  13155. return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(current), [' ', item]);
  13156. }, []).slice(1);
  13157. }
  13158. var FormItemProps = {
  13159. id: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  13160. htmlFor: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  13161. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  13162. label: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  13163. labelCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_9__["ColProps"]).loose,
  13164. wrapperCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_9__["ColProps"]).loose,
  13165. help: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  13166. extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  13167. validateStatus: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['', 'success', 'warning', 'error', 'validating']),
  13168. hasFeedback: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  13169. required: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  13170. colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  13171. fieldDecoratorId: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  13172. fieldDecoratorOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
  13173. selfUpdate: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  13174. labelAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['left', 'right'])
  13175. };
  13176. function comeFromSlot() {
  13177. var vnodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13178. var itemVnode = arguments[1];
  13179. var isSlot = false;
  13180. for (var i = 0, len = vnodes.length; i < len; i++) {
  13181. var vnode = vnodes[i];
  13182. if (vnode && (vnode === itemVnode || vnode.$vnode === itemVnode)) {
  13183. isSlot = true;
  13184. } else {
  13185. var componentOptions = vnode.componentOptions || vnode.$vnode && vnode.$vnode.componentOptions;
  13186. var children = componentOptions ? componentOptions.children : vnode.$children;
  13187. isSlot = comeFromSlot(children, itemVnode);
  13188. }
  13189. if (isSlot) {
  13190. break;
  13191. }
  13192. }
  13193. return isSlot;
  13194. }
  13195. /* harmony default export */ __webpack_exports__["default"] = ({
  13196. name: 'AFormItem',
  13197. __ANT_FORM_ITEM: true,
  13198. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__["default"]],
  13199. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])(FormItemProps, {
  13200. hasFeedback: false
  13201. }),
  13202. provide: function provide() {
  13203. return {
  13204. isFormItemChildren: true
  13205. };
  13206. },
  13207. inject: {
  13208. isFormItemChildren: { 'default': false },
  13209. FormContext: { 'default': function _default() {
  13210. return {};
  13211. } },
  13212. decoratorFormProps: { 'default': function _default() {
  13213. return {};
  13214. } },
  13215. collectFormItemContext: { 'default': function _default() {
  13216. return noop;
  13217. } },
  13218. configProvider: { 'default': function _default() {
  13219. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_17__["ConfigConsumerProps"];
  13220. } }
  13221. },
  13222. data: function data() {
  13223. return { helpShow: false };
  13224. },
  13225. computed: {
  13226. itemSelfUpdate: function itemSelfUpdate() {
  13227. return !!(this.selfUpdate === undefined ? this.FormContext.selfUpdate : this.selfUpdate);
  13228. }
  13229. },
  13230. created: function created() {
  13231. this.collectContext();
  13232. },
  13233. beforeUpdate: function beforeUpdate() {
  13234. if (true) {
  13235. this.collectContext();
  13236. }
  13237. },
  13238. beforeDestroy: function beforeDestroy() {
  13239. this.collectFormItemContext(this.$vnode && this.$vnode.context, 'delete');
  13240. },
  13241. mounted: function mounted() {
  13242. var _$props = this.$props,
  13243. help = _$props.help,
  13244. validateStatus = _$props.validateStatus;
  13245. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(this.getControls(this.slotDefault, true).length <= 1 || help !== undefined || validateStatus !== undefined, 'Form.Item', 'Cannot generate `validateStatus` and `help` automatically, ' + 'while there are more than one `getFieldDecorator` in it.');
  13246. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!this.fieldDecoratorId, 'Form.Item', '`fieldDecoratorId` is deprecated. please use `v-decorator={id, options}` instead.');
  13247. },
  13248. methods: {
  13249. collectContext: function collectContext() {
  13250. if (this.FormContext.form && this.FormContext.form.templateContext) {
  13251. var templateContext = this.FormContext.form.templateContext;
  13252. var vnodes = Object.values(templateContext.$slots || {}).reduce(function (a, b) {
  13253. return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(a), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(b));
  13254. }, []);
  13255. var isSlot = comeFromSlot(vnodes, this.$vnode);
  13256. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!isSlot, 'You can not set FormItem from slot, please use slot-scope instead slot');
  13257. var isSlotScope = false;
  13258. // 进一步判断是否是通过slot-scope传递
  13259. if (!isSlot && this.$vnode.context !== templateContext) {
  13260. isSlotScope = comeFromSlot(this.$vnode.context.$children, templateContext.$vnode);
  13261. }
  13262. if (!isSlotScope && !isSlot) {
  13263. this.collectFormItemContext(this.$vnode.context);
  13264. }
  13265. }
  13266. },
  13267. getHelpMessage: function getHelpMessage() {
  13268. var help = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'help');
  13269. var onlyControl = this.getOnlyControl();
  13270. if (help === undefined && onlyControl) {
  13271. var errors = this.getField().errors;
  13272. if (errors) {
  13273. return intersperseSpace(errors.map(function (e, index) {
  13274. var node = null;
  13275. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["isValidElement"])(e)) {
  13276. node = e;
  13277. } else if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["isValidElement"])(e.message)) {
  13278. node = e.message;
  13279. }
  13280. return node ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneElement"])(node, { key: index }) : e.message;
  13281. }));
  13282. } else {
  13283. return '';
  13284. }
  13285. }
  13286. return help;
  13287. },
  13288. getControls: function getControls() {
  13289. var childrenArray = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13290. var recursively = arguments[1];
  13291. var controls = [];
  13292. for (var i = 0; i < childrenArray.length; i++) {
  13293. if (!recursively && controls.length > 0) {
  13294. break;
  13295. }
  13296. var child = childrenArray[i];
  13297. if (!child.tag && child.text.trim() === '') {
  13298. continue;
  13299. }
  13300. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).__ANT_FORM_ITEM) {
  13301. continue;
  13302. }
  13303. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getAllChildren"])(child);
  13304. var attrs = child.data && child.data.attrs || {};
  13305. if (_constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_META_PROP"] in attrs) {
  13306. // And means FIELD_DATA_PROP in child.props, too.
  13307. controls.push(child);
  13308. } else if (children) {
  13309. controls = controls.concat(this.getControls(children, recursively));
  13310. }
  13311. }
  13312. return controls;
  13313. },
  13314. getOnlyControl: function getOnlyControl() {
  13315. var child = this.getControls(this.slotDefault, false)[0];
  13316. return child !== undefined ? child : null;
  13317. },
  13318. getChildAttr: function getChildAttr(prop) {
  13319. var child = this.getOnlyControl();
  13320. var data = {};
  13321. if (!child) {
  13322. return undefined;
  13323. }
  13324. if (child.data) {
  13325. data = child.data;
  13326. } else if (child.$vnode && child.$vnode.data) {
  13327. data = child.$vnode.data;
  13328. }
  13329. return data[prop] || data.attrs[prop];
  13330. },
  13331. getId: function getId() {
  13332. return this.getChildAttr('id');
  13333. },
  13334. getMeta: function getMeta() {
  13335. return this.getChildAttr(_constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_META_PROP"]);
  13336. },
  13337. getField: function getField() {
  13338. return this.getChildAttr(_constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_DATA_PROP"]);
  13339. },
  13340. getValidateStatus: function getValidateStatus() {
  13341. var onlyControl = this.getOnlyControl();
  13342. if (!onlyControl) {
  13343. return '';
  13344. }
  13345. var field = this.getField();
  13346. if (field.validating) {
  13347. return 'validating';
  13348. }
  13349. if (field.errors) {
  13350. return 'error';
  13351. }
  13352. var fieldValue = 'value' in field ? field.value : this.getMeta().initialValue;
  13353. if (fieldValue !== undefined && fieldValue !== null && fieldValue !== '') {
  13354. return 'success';
  13355. }
  13356. return '';
  13357. },
  13358. // Resolve duplicated ids bug between different forms
  13359. // https://github.com/ant-design/ant-design/issues/7351
  13360. onLabelClick: function onLabelClick() {
  13361. var id = this.id || this.getId();
  13362. if (!id) {
  13363. return;
  13364. }
  13365. var formItemNode = this.$el;
  13366. var control = formItemNode.querySelector('[id="' + id + '"]');
  13367. if (control && control.focus) {
  13368. control.focus();
  13369. }
  13370. },
  13371. onHelpAnimEnd: function onHelpAnimEnd(_key, helpShow) {
  13372. this.helpShow = helpShow;
  13373. if (!helpShow) {
  13374. this.$forceUpdate();
  13375. }
  13376. },
  13377. isRequired: function isRequired() {
  13378. var required = this.required;
  13379. if (required !== undefined) {
  13380. return required;
  13381. }
  13382. if (this.getOnlyControl()) {
  13383. var meta = this.getMeta() || {};
  13384. var validate = meta.validate || [];
  13385. return validate.filter(function (item) {
  13386. return !!item.rules;
  13387. }).some(function (item) {
  13388. return item.rules.some(function (rule) {
  13389. return rule.required;
  13390. });
  13391. });
  13392. }
  13393. return false;
  13394. },
  13395. renderHelp: function renderHelp(prefixCls) {
  13396. var _this = this;
  13397. var h = this.$createElement;
  13398. var help = this.getHelpMessage();
  13399. var children = help ? h(
  13400. 'div',
  13401. { 'class': prefixCls + '-explain', key: 'help' },
  13402. [help]
  13403. ) : null;
  13404. if (children) {
  13405. this.helpShow = !!children;
  13406. }
  13407. var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_13__["default"])('show-help', {
  13408. afterEnter: function afterEnter() {
  13409. return _this.onHelpAnimEnd('help', true);
  13410. },
  13411. afterLeave: function afterLeave() {
  13412. return _this.onHelpAnimEnd('help', false);
  13413. }
  13414. });
  13415. return h(
  13416. 'transition',
  13417. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_3___default()([transitionProps, { key: 'help' }]),
  13418. [children]
  13419. );
  13420. },
  13421. renderExtra: function renderExtra(prefixCls) {
  13422. var h = this.$createElement;
  13423. var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'extra');
  13424. return extra ? h(
  13425. 'div',
  13426. { 'class': prefixCls + '-extra' },
  13427. [extra]
  13428. ) : null;
  13429. },
  13430. renderValidateWrapper: function renderValidateWrapper(prefixCls, c1, c2, c3) {
  13431. var h = this.$createElement;
  13432. var props = this.$props;
  13433. var onlyControl = this.getOnlyControl;
  13434. var validateStatus = props.validateStatus === undefined && onlyControl ? this.getValidateStatus() : props.validateStatus;
  13435. var classes = prefixCls + '-item-control';
  13436. if (validateStatus) {
  13437. classes = classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-item-control', {
  13438. 'has-feedback': validateStatus && props.hasFeedback,
  13439. 'has-success': validateStatus === 'success',
  13440. 'has-warning': validateStatus === 'warning',
  13441. 'has-error': validateStatus === 'error',
  13442. 'is-validating': validateStatus === 'validating'
  13443. });
  13444. }
  13445. var iconType = '';
  13446. switch (validateStatus) {
  13447. case 'success':
  13448. iconType = 'check-circle';
  13449. break;
  13450. case 'warning':
  13451. iconType = 'exclamation-circle';
  13452. break;
  13453. case 'error':
  13454. iconType = 'close-circle';
  13455. break;
  13456. case 'validating':
  13457. iconType = 'loading';
  13458. break;
  13459. default:
  13460. iconType = '';
  13461. break;
  13462. }
  13463. var icon = props.hasFeedback && iconType ? h(
  13464. 'span',
  13465. { 'class': prefixCls + '-item-children-icon' },
  13466. [h(_icon__WEBPACK_IMPORTED_MODULE_16__["default"], {
  13467. attrs: { type: iconType, theme: iconType === 'loading' ? 'outlined' : 'filled' }
  13468. })]
  13469. ) : null;
  13470. return h(
  13471. 'div',
  13472. { 'class': classes },
  13473. [h(
  13474. 'span',
  13475. { 'class': prefixCls + '-item-children' },
  13476. [c1, icon]
  13477. ), c2, c3]
  13478. );
  13479. },
  13480. renderWrapper: function renderWrapper(prefixCls, children) {
  13481. var h = this.$createElement;
  13482. var _ref = this.isFormItemChildren ? {} : this.FormContext,
  13483. contextWrapperCol = _ref.wrapperCol;
  13484. var wrapperCol = this.wrapperCol;
  13485. var mergedWrapperCol = wrapperCol || contextWrapperCol || {};
  13486. var style = mergedWrapperCol.style,
  13487. id = mergedWrapperCol.id,
  13488. on = mergedWrapperCol.on,
  13489. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(mergedWrapperCol, ['style', 'id', 'on']);
  13490. var className = classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-item-control-wrapper', mergedWrapperCol['class']);
  13491. var colProps = {
  13492. props: restProps,
  13493. 'class': className,
  13494. key: 'wrapper',
  13495. style: style,
  13496. id: id,
  13497. on: on
  13498. };
  13499. return h(
  13500. _grid_Col__WEBPACK_IMPORTED_MODULE_9__["default"],
  13501. colProps,
  13502. [children]
  13503. );
  13504. },
  13505. renderLabel: function renderLabel(prefixCls) {
  13506. var _classNames;
  13507. var h = this.$createElement;
  13508. var _FormContext = this.FormContext,
  13509. vertical = _FormContext.vertical,
  13510. contextLabelAlign = _FormContext.labelAlign,
  13511. contextLabelCol = _FormContext.labelCol,
  13512. contextColon = _FormContext.colon;
  13513. var labelAlign = this.labelAlign,
  13514. labelCol = this.labelCol,
  13515. colon = this.colon,
  13516. id = this.id,
  13517. htmlFor = this.htmlFor;
  13518. var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'label');
  13519. var required = this.isRequired();
  13520. var mergedLabelCol = labelCol || contextLabelCol || {};
  13521. var mergedLabelAlign = labelAlign || contextLabelAlign;
  13522. var labelClsBasic = prefixCls + '-item-label';
  13523. var labelColClassName = classnames__WEBPACK_IMPORTED_MODULE_6___default()(labelClsBasic, mergedLabelAlign === 'left' && labelClsBasic + '-left', mergedLabelCol['class']);
  13524. var labelColClass = mergedLabelCol['class'],
  13525. labelColStyle = mergedLabelCol.style,
  13526. labelColId = mergedLabelCol.id,
  13527. on = mergedLabelCol.on,
  13528. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(mergedLabelCol, ['class', 'style', 'id', 'on']);
  13529. var labelChildren = label;
  13530. // Keep label is original where there should have no colon
  13531. var computedColon = colon === true || contextColon !== false && colon !== false;
  13532. var haveColon = computedColon && !vertical;
  13533. // Remove duplicated user input colon
  13534. if (haveColon && typeof label === 'string' && label.trim() !== '') {
  13535. labelChildren = label.replace(/[::]\s*$/, '');
  13536. }
  13537. var labelClassName = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-item-required', required), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-item-no-colon', !computedColon), _classNames));
  13538. var colProps = {
  13539. props: restProps,
  13540. 'class': labelColClassName,
  13541. key: 'label',
  13542. style: labelColStyle,
  13543. id: labelColId,
  13544. on: on
  13545. };
  13546. return label ? h(
  13547. _grid_Col__WEBPACK_IMPORTED_MODULE_9__["default"],
  13548. colProps,
  13549. [h(
  13550. 'label',
  13551. {
  13552. attrs: {
  13553. 'for': htmlFor || id || this.getId(),
  13554. title: typeof label === 'string' ? label : ''
  13555. },
  13556. 'class': labelClassName, on: {
  13557. 'click': this.onLabelClick
  13558. }
  13559. },
  13560. [labelChildren]
  13561. )]
  13562. ) : null;
  13563. },
  13564. renderChildren: function renderChildren(prefixCls) {
  13565. return [this.renderLabel(prefixCls), this.renderWrapper(prefixCls, this.renderValidateWrapper(prefixCls, this.slotDefault, this.renderHelp(prefixCls), this.renderExtra(prefixCls)))];
  13566. },
  13567. renderFormItem: function renderFormItem() {
  13568. var _itemClassName;
  13569. var h = this.$createElement;
  13570. var customizePrefixCls = this.$props.prefixCls;
  13571. var getPrefixCls = this.configProvider.getPrefixCls;
  13572. var prefixCls = getPrefixCls('form', customizePrefixCls);
  13573. var children = this.renderChildren(prefixCls);
  13574. var itemClassName = (_itemClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_itemClassName, prefixCls + '-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_itemClassName, prefixCls + '-item-with-help', this.helpShow), _itemClassName);
  13575. return h(
  13576. _grid_Row__WEBPACK_IMPORTED_MODULE_8__["default"],
  13577. { 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(itemClassName), key: 'row' },
  13578. [children]
  13579. );
  13580. },
  13581. decoratorOption: function decoratorOption(vnode) {
  13582. if (vnode.data && vnode.data.directives) {
  13583. var directive = lodash_find__WEBPACK_IMPORTED_MODULE_7___default()(vnode.data.directives, ['name', 'decorator']);
  13584. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!directive || directive && Array.isArray(directive.value), 'Form', 'Invalid directive: type check failed for directive "decorator". Expected Array, got ' + babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(directive ? directive.value : directive) + '. At ' + vnode.tag + '.');
  13585. return directive ? directive.value : null;
  13586. } else {
  13587. return null;
  13588. }
  13589. },
  13590. decoratorChildren: function decoratorChildren(vnodes) {
  13591. var FormContext = this.FormContext;
  13592. var getFieldDecorator = FormContext.form.getFieldDecorator;
  13593. for (var i = 0, len = vnodes.length; i < len; i++) {
  13594. var vnode = vnodes[i];
  13595. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(vnode).__ANT_FORM_ITEM) {
  13596. break;
  13597. }
  13598. if (vnode.children) {
  13599. vnode.children = this.decoratorChildren(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneVNodes"])(vnode.children));
  13600. } else if (vnode.componentOptions && vnode.componentOptions.children) {
  13601. vnode.componentOptions.children = this.decoratorChildren(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneVNodes"])(vnode.componentOptions.children));
  13602. }
  13603. var option = this.decoratorOption(vnode);
  13604. if (option && option[0]) {
  13605. vnodes[i] = getFieldDecorator(option[0], option[1], this)(vnode);
  13606. }
  13607. }
  13608. return vnodes;
  13609. }
  13610. },
  13611. render: function render() {
  13612. var $slots = this.$slots,
  13613. decoratorFormProps = this.decoratorFormProps,
  13614. fieldDecoratorId = this.fieldDecoratorId,
  13615. _fieldDecoratorOption = this.fieldDecoratorOptions,
  13616. fieldDecoratorOptions = _fieldDecoratorOption === undefined ? {} : _fieldDecoratorOption,
  13617. FormContext = this.FormContext;
  13618. var child = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["filterEmpty"])($slots['default'] || []);
  13619. if (decoratorFormProps.form && fieldDecoratorId && child.length) {
  13620. var getFieldDecorator = decoratorFormProps.form.getFieldDecorator;
  13621. child[0] = getFieldDecorator(fieldDecoratorId, fieldDecoratorOptions, this)(child[0]);
  13622. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!(child.length > 1), 'Form', '`autoFormCreate` just `decorator` then first children. but you can use JSX to support multiple children');
  13623. this.slotDefault = child;
  13624. } else if (FormContext.form) {
  13625. child = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneVNodes"])(child);
  13626. this.slotDefault = this.decoratorChildren(child);
  13627. } else {
  13628. this.slotDefault = child;
  13629. }
  13630. return this.renderFormItem();
  13631. }
  13632. });
  13633. /***/ }),
  13634. /***/ "./components/form/constants.jsx":
  13635. /*!***************************************!*\
  13636. !*** ./components/form/constants.jsx ***!
  13637. \***************************************/
  13638. /*! exports provided: FIELD_META_PROP, FIELD_DATA_PROP */
  13639. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13640. "use strict";
  13641. __webpack_require__.r(__webpack_exports__);
  13642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIELD_META_PROP", function() { return FIELD_META_PROP; });
  13643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIELD_DATA_PROP", function() { return FIELD_DATA_PROP; });
  13644. var FIELD_META_PROP = 'data-__meta';
  13645. var FIELD_DATA_PROP = 'data-__field';
  13646. /***/ }),
  13647. /***/ "./components/form/index.jsx":
  13648. /*!***********************************!*\
  13649. !*** ./components/form/index.jsx ***!
  13650. \***********************************/
  13651. /*! exports provided: FormProps, FormCreateOption, ValidationRule, FormItemProps, default */
  13652. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13653. "use strict";
  13654. __webpack_require__.r(__webpack_exports__);
  13655. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
  13656. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
  13657. /* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Form */ "./components/form/Form.jsx");
  13658. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  13659. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_2__);
  13660. /* harmony import */ var _util_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/FormDecoratorDirective */ "./components/_util/FormDecoratorDirective.js");
  13661. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  13662. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormProps", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["FormProps"]; });
  13663. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormCreateOption", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["FormCreateOption"]; });
  13664. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ValidationRule", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["ValidationRule"]; });
  13665. /* harmony import */ var _FormItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FormItem */ "./components/form/FormItem.jsx");
  13666. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormItemProps", function() { return _FormItem__WEBPACK_IMPORTED_MODULE_5__["FormItemProps"]; });
  13667. vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_2___default.a, { name: 'ant-ref' });
  13668. vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(_util_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_3__["default"]);
  13669. vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$form = _Form__WEBPACK_IMPORTED_MODULE_1__["default"];
  13670. /* istanbul ignore next */
  13671. _Form__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
  13672. Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
  13673. Vue.component(_Form__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Form__WEBPACK_IMPORTED_MODULE_1__["default"]);
  13674. Vue.component(_Form__WEBPACK_IMPORTED_MODULE_1__["default"].Item.name, _Form__WEBPACK_IMPORTED_MODULE_1__["default"].Item);
  13675. Vue.prototype.$form = _Form__WEBPACK_IMPORTED_MODULE_1__["default"];
  13676. };
  13677. /* harmony default export */ __webpack_exports__["default"] = (_Form__WEBPACK_IMPORTED_MODULE_1__["default"]);
  13678. /***/ }),
  13679. /***/ "./components/form/style/index.js":
  13680. /*!****************************************!*\
  13681. !*** ./components/form/style/index.js ***!
  13682. \****************************************/
  13683. /*! no exports provided */
  13684. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13685. "use strict";
  13686. __webpack_require__.r(__webpack_exports__);
  13687. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  13688. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  13689. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/form/style/index.less");
  13690. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  13691. /* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
  13692. // style dependencies
  13693. /***/ }),
  13694. /***/ "./components/form/style/index.less":
  13695. /*!******************************************!*\
  13696. !*** ./components/form/style/index.less ***!
  13697. \******************************************/
  13698. /*! no static exports found */
  13699. /***/ (function(module, exports, __webpack_require__) {
  13700. // extracted by mini-css-extract-plugin
  13701. /***/ }),
  13702. /***/ "./components/grid/Col.jsx":
  13703. /*!*********************************!*\
  13704. !*** ./components/grid/Col.jsx ***!
  13705. \*********************************/
  13706. /*! exports provided: ColSize, ColProps, default */
  13707. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13708. "use strict";
  13709. __webpack_require__.r(__webpack_exports__);
  13710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColSize", function() { return ColSize; });
  13711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColProps", function() { return ColProps; });
  13712. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  13713. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  13714. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  13715. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  13716. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  13717. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
  13718. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  13719. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  13720. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  13721. var stringOrNumber = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]);
  13722. var ColSize = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
  13723. span: stringOrNumber,
  13724. order: stringOrNumber,
  13725. offset: stringOrNumber,
  13726. push: stringOrNumber,
  13727. pull: stringOrNumber
  13728. }).loose;
  13729. var objectOrNumber = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, ColSize]);
  13730. var ColProps = {
  13731. span: stringOrNumber,
  13732. order: stringOrNumber,
  13733. offset: stringOrNumber,
  13734. push: stringOrNumber,
  13735. pull: stringOrNumber,
  13736. xs: objectOrNumber,
  13737. sm: objectOrNumber,
  13738. md: objectOrNumber,
  13739. lg: objectOrNumber,
  13740. xl: objectOrNumber,
  13741. xxl: objectOrNumber,
  13742. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  13743. flex: stringOrNumber
  13744. };
  13745. /* harmony default export */ __webpack_exports__["default"] = ({
  13746. name: 'ACol',
  13747. props: ColProps,
  13748. inject: {
  13749. configProvider: { 'default': function _default() {
  13750. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
  13751. } },
  13752. rowContext: {
  13753. 'default': function _default() {
  13754. return null;
  13755. }
  13756. }
  13757. },
  13758. methods: {
  13759. parseFlex: function parseFlex(flex) {
  13760. if (typeof flex === 'number') {
  13761. return flex + ' ' + flex + ' auto';
  13762. }
  13763. if (/^\d+(\.\d+)?(px|em|rem|%)$/.test(flex)) {
  13764. return '0 0 ' + flex;
  13765. }
  13766. return flex;
  13767. }
  13768. },
  13769. render: function render() {
  13770. var _this = this,
  13771. _extends3;
  13772. var h = arguments[0];
  13773. var span = this.span,
  13774. order = this.order,
  13775. offset = this.offset,
  13776. push = this.push,
  13777. pull = this.pull,
  13778. flex = this.flex,
  13779. customizePrefixCls = this.prefixCls,
  13780. $slots = this.$slots,
  13781. rowContext = this.rowContext;
  13782. var getPrefixCls = this.configProvider.getPrefixCls;
  13783. var prefixCls = getPrefixCls('col', customizePrefixCls);
  13784. var sizeClassObj = {};
  13785. ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].forEach(function (size) {
  13786. var _extends2;
  13787. var sizeProps = {};
  13788. var propSize = _this[size];
  13789. if (typeof propSize === 'number') {
  13790. sizeProps.span = propSize;
  13791. } else if ((typeof propSize === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(propSize)) === 'object') {
  13792. sizeProps = propSize || {};
  13793. }
  13794. sizeClassObj = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, sizeClassObj, (_extends2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-' + sizeProps.span, sizeProps.span !== undefined), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-order-' + sizeProps.order, sizeProps.order || sizeProps.order === 0), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-offset-' + sizeProps.offset, sizeProps.offset || sizeProps.offset === 0), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-push-' + sizeProps.push, sizeProps.push || sizeProps.push === 0), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-pull-' + sizeProps.pull, sizeProps.pull || sizeProps.pull === 0), _extends2));
  13795. });
  13796. var classes = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()((_extends3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-' + span, span !== undefined), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-order-' + order, order), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-offset-' + offset, offset), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-push-' + push, push), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-pull-' + pull, pull), _extends3), sizeClassObj);
  13797. var divProps = {
  13798. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
  13799. 'class': classes,
  13800. style: {}
  13801. };
  13802. if (rowContext) {
  13803. var gutter = rowContext.getGutter();
  13804. if (gutter) {
  13805. divProps.style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, gutter[0] > 0 ? {
  13806. paddingLeft: gutter[0] / 2 + 'px',
  13807. paddingRight: gutter[0] / 2 + 'px'
  13808. } : {}, gutter[1] > 0 ? {
  13809. paddingTop: gutter[1] / 2 + 'px',
  13810. paddingBottom: gutter[1] / 2 + 'px'
  13811. } : {});
  13812. }
  13813. }
  13814. if (flex) {
  13815. divProps.style.flex = this.parseFlex(flex);
  13816. }
  13817. return h(
  13818. 'div',
  13819. divProps,
  13820. [$slots['default']]
  13821. );
  13822. }
  13823. });
  13824. /***/ }),
  13825. /***/ "./components/grid/Row.jsx":
  13826. /*!*********************************!*\
  13827. !*** ./components/grid/Row.jsx ***!
  13828. \*********************************/
  13829. /*! exports provided: default */
  13830. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13831. "use strict";
  13832. __webpack_require__.r(__webpack_exports__);
  13833. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  13834. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  13835. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  13836. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
  13837. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  13838. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  13839. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  13840. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  13841. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  13842. /* harmony import */ var _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/responsiveObserve */ "./components/_util/responsiveObserve.js");
  13843. var RowProps = {
  13844. gutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array]),
  13845. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['flex']),
  13846. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['top', 'middle', 'bottom', 'stretch']),
  13847. justify: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['start', 'end', 'center', 'space-around', 'space-between']),
  13848. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
  13849. };
  13850. var responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
  13851. /* harmony default export */ __webpack_exports__["default"] = ({
  13852. name: 'ARow',
  13853. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  13854. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, RowProps, {
  13855. gutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array]).def(0)
  13856. }),
  13857. provide: function provide() {
  13858. return {
  13859. rowContext: this
  13860. };
  13861. },
  13862. inject: {
  13863. configProvider: { 'default': function _default() {
  13864. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
  13865. } }
  13866. },
  13867. data: function data() {
  13868. return {
  13869. screens: {}
  13870. };
  13871. },
  13872. mounted: function mounted() {
  13873. var _this = this;
  13874. this.$nextTick(function () {
  13875. _this.token = _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_6__["default"].subscribe(function (screens) {
  13876. var gutter = _this.gutter;
  13877. if ((typeof gutter === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(gutter)) === 'object' || Array.isArray(gutter) && (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(gutter[0]) === 'object' || babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(gutter[1]) === 'object')) {
  13878. _this.screens = screens;
  13879. }
  13880. });
  13881. });
  13882. },
  13883. beforeDestroy: function beforeDestroy() {
  13884. _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_6__["default"].unsubscribe(this.token);
  13885. },
  13886. methods: {
  13887. getGutter: function getGutter() {
  13888. var results = [0, 0];
  13889. var gutter = this.gutter,
  13890. screens = this.screens;
  13891. var normalizedGutter = Array.isArray(gutter) ? gutter : [gutter, 0];
  13892. normalizedGutter.forEach(function (g, index) {
  13893. if ((typeof g === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(g)) === 'object') {
  13894. for (var i = 0; i < responsiveArray.length; i++) {
  13895. var breakpoint = responsiveArray[i];
  13896. if (screens[breakpoint] && g[breakpoint] !== undefined) {
  13897. results[index] = g[breakpoint];
  13898. break;
  13899. }
  13900. }
  13901. } else {
  13902. results[index] = g || 0;
  13903. }
  13904. });
  13905. return results;
  13906. }
  13907. },
  13908. render: function render() {
  13909. var _classes;
  13910. var h = arguments[0];
  13911. var type = this.type,
  13912. justify = this.justify,
  13913. align = this.align,
  13914. customizePrefixCls = this.prefixCls,
  13915. $slots = this.$slots;
  13916. var getPrefixCls = this.configProvider.getPrefixCls;
  13917. var prefixCls = getPrefixCls('row', customizePrefixCls);
  13918. var gutter = this.getGutter();
  13919. var classes = (_classes = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls, !type), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls + '-' + type, type), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls + '-' + type + '-' + justify, type && justify), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls + '-' + type + '-' + align, type && align), _classes);
  13920. var rowStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, gutter[0] > 0 ? {
  13921. marginLeft: gutter[0] / -2 + 'px',
  13922. marginRight: gutter[0] / -2 + 'px'
  13923. } : {}, gutter[1] > 0 ? {
  13924. marginTop: gutter[1] / -2 + 'px',
  13925. marginBottom: gutter[1] / -2 + 'px'
  13926. } : {});
  13927. return h(
  13928. 'div',
  13929. { 'class': classes, style: rowStyle },
  13930. [$slots['default']]
  13931. );
  13932. }
  13933. });
  13934. /***/ }),
  13935. /***/ "./components/grid/index.js":
  13936. /*!**********************************!*\
  13937. !*** ./components/grid/index.js ***!
  13938. \**********************************/
  13939. /*! exports provided: Row, Col */
  13940. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13941. "use strict";
  13942. __webpack_require__.r(__webpack_exports__);
  13943. /* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Row */ "./components/grid/Row.jsx");
  13944. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Row", function() { return _Row__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  13945. /* harmony import */ var _Col__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Col */ "./components/grid/Col.jsx");
  13946. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Col", function() { return _Col__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  13947. /***/ }),
  13948. /***/ "./components/grid/style/index.js":
  13949. /*!****************************************!*\
  13950. !*** ./components/grid/style/index.js ***!
  13951. \****************************************/
  13952. /*! no exports provided */
  13953. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13954. "use strict";
  13955. __webpack_require__.r(__webpack_exports__);
  13956. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  13957. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  13958. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/grid/style/index.less");
  13959. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  13960. /***/ }),
  13961. /***/ "./components/grid/style/index.less":
  13962. /*!******************************************!*\
  13963. !*** ./components/grid/style/index.less ***!
  13964. \******************************************/
  13965. /*! no static exports found */
  13966. /***/ (function(module, exports, __webpack_require__) {
  13967. // extracted by mini-css-extract-plugin
  13968. /***/ }),
  13969. /***/ "./components/icon/IconFont.jsx":
  13970. /*!**************************************!*\
  13971. !*** ./components/icon/IconFont.jsx ***!
  13972. \**************************************/
  13973. /*! exports provided: default */
  13974. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13975. "use strict";
  13976. __webpack_require__.r(__webpack_exports__);
  13977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return create; });
  13978. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  13979. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
  13980. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./components/icon/index.js");
  13981. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  13982. var customCache = new Set();
  13983. function create(options) {
  13984. var scriptUrl = options.scriptUrl,
  13985. _options$extraCommonP = options.extraCommonProps,
  13986. extraCommonProps = _options$extraCommonP === undefined ? {} : _options$extraCommonP;
  13987. /**
  13988. * DOM API required.
  13989. * Make sure in browser environment.
  13990. * The Custom Icon will create a <script/>
  13991. * that loads SVG symbols and insert the SVG Element into the document body.
  13992. */
  13993. if (typeof document !== 'undefined' && typeof window !== 'undefined' && typeof document.createElement === 'function' && typeof scriptUrl === 'string' && scriptUrl.length && !customCache.has(scriptUrl)) {
  13994. var script = document.createElement('script');
  13995. script.setAttribute('src', scriptUrl);
  13996. script.setAttribute('data-namespace', scriptUrl);
  13997. customCache.add(scriptUrl);
  13998. document.body.appendChild(script);
  13999. }
  14000. var Iconfont = {
  14001. functional: true,
  14002. name: 'AIconfont',
  14003. props: _index__WEBPACK_IMPORTED_MODULE_1__["default"].props,
  14004. render: function render(h, context) {
  14005. var props = context.props,
  14006. slots = context.slots,
  14007. listeners = context.listeners,
  14008. data = context.data;
  14009. var type = props.type,
  14010. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(props, ['type']);
  14011. var slotsMap = slots();
  14012. var children = slotsMap['default'];
  14013. // component > children > type
  14014. var content = null;
  14015. if (type) {
  14016. content = h('use', { attrs: { 'xlink:href': '#' + type } });
  14017. }
  14018. if (children) {
  14019. content = children;
  14020. }
  14021. var iconProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["mergeProps"])(extraCommonProps, data, { props: restProps, on: listeners });
  14022. return h(
  14023. _index__WEBPACK_IMPORTED_MODULE_1__["default"],
  14024. iconProps,
  14025. [content]
  14026. );
  14027. }
  14028. };
  14029. return Iconfont;
  14030. }
  14031. /***/ }),
  14032. /***/ "./components/icon/index.js":
  14033. /*!**********************************!*\
  14034. !*** ./components/icon/index.js ***!
  14035. \**********************************/
  14036. /*! exports provided: default */
  14037. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14038. "use strict";
  14039. __webpack_require__.r(__webpack_exports__);
  14040. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  14041. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  14042. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  14043. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  14044. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  14045. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  14046. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  14047. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__);
  14048. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  14049. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
  14050. /* harmony import */ var _ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ant-design/icons/lib/dist */ "./node_modules/@ant-design/icons/lib/dist.js");
  14051. /* harmony import */ var _ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5__);
  14052. /* harmony import */ var _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ant-design/icons-vue */ "./node_modules/@ant-design/icons-vue/es/index.js");
  14053. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  14054. /* harmony import */ var _IconFont__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./IconFont */ "./components/icon/IconFont.jsx");
  14055. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils */ "./components/icon/utils.js");
  14056. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  14057. /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
  14058. /* harmony import */ var _twoTonePrimaryColor__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./twoTonePrimaryColor */ "./components/icon/twoTonePrimaryColor.js");
  14059. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  14060. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  14061. // Initial setting
  14062. _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_6__["default"].add.apply(_ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_6__["default"], babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3___default()(Object.keys(_ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5__).map(function (key) {
  14063. return _ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5__[key];
  14064. })));
  14065. Object(_twoTonePrimaryColor__WEBPACK_IMPORTED_MODULE_12__["setTwoToneColor"])('#1890ff');
  14066. var defaultTheme = 'outlined';
  14067. var dangerousTheme = void 0;
  14068. function renderIcon(h, locale, context) {
  14069. var _classNames;
  14070. var props = context.$props,
  14071. $slots = context.$slots;
  14072. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getListeners"])(context);
  14073. var type = props.type,
  14074. Component = props.component,
  14075. viewBox = props.viewBox,
  14076. spin = props.spin,
  14077. theme = props.theme,
  14078. twoToneColor = props.twoToneColor,
  14079. rotate = props.rotate,
  14080. tabIndex = props.tabIndex;
  14081. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["filterEmpty"])($slots['default']);
  14082. children = children.length === 0 ? undefined : children;
  14083. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(Boolean(type || Component || children), 'Icon', 'Icon should have `type` prop or `component` prop or `children`.');
  14084. var classString = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, 'anticon', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, 'anticon-' + type, !!type), _classNames));
  14085. var svgClassString = classnames__WEBPACK_IMPORTED_MODULE_4___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, 'anticon-spin', !!spin || type === 'loading'));
  14086. var svgStyle = rotate ? {
  14087. msTransform: 'rotate(' + rotate + 'deg)',
  14088. transform: 'rotate(' + rotate + 'deg)'
  14089. } : undefined;
  14090. var innerSvgProps = {
  14091. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _utils__WEBPACK_IMPORTED_MODULE_9__["svgBaseProps"], {
  14092. viewBox: viewBox
  14093. }),
  14094. 'class': svgClassString,
  14095. style: svgStyle
  14096. };
  14097. if (!viewBox) {
  14098. delete innerSvgProps.attrs.viewBox;
  14099. }
  14100. var renderInnerNode = function renderInnerNode() {
  14101. // component > children > type
  14102. if (Component) {
  14103. return h(
  14104. Component,
  14105. innerSvgProps,
  14106. [children]
  14107. );
  14108. }
  14109. if (children) {
  14110. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(Boolean(viewBox) || children.length === 1 && children[0].tag === 'use', 'Icon', 'Make sure that you provide correct `viewBox`' + ' prop (default `0 0 1024 1024`) to the icon.');
  14111. var _innerSvgProps = {
  14112. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _utils__WEBPACK_IMPORTED_MODULE_9__["svgBaseProps"]),
  14113. 'class': svgClassString,
  14114. style: svgStyle
  14115. };
  14116. return h(
  14117. 'svg',
  14118. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([_innerSvgProps, {
  14119. attrs: { viewBox: viewBox }
  14120. }]),
  14121. [children]
  14122. );
  14123. }
  14124. if (typeof type === 'string') {
  14125. var computedType = type;
  14126. if (theme) {
  14127. var themeInName = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getThemeFromTypeName"])(type);
  14128. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!themeInName || theme === themeInName, 'Icon', 'The icon name \'' + type + '\' already specify a theme \'' + themeInName + '\',' + (' the \'theme\' prop \'' + theme + '\' will be ignored.'));
  14129. }
  14130. computedType = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["withThemeSuffix"])(Object(_utils__WEBPACK_IMPORTED_MODULE_9__["removeTypeTheme"])(Object(_utils__WEBPACK_IMPORTED_MODULE_9__["alias"])(computedType)), dangerousTheme || theme || defaultTheme);
  14131. return h(_ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_6__["default"], {
  14132. attrs: {
  14133. focusable: 'false',
  14134. type: computedType,
  14135. primaryColor: twoToneColor
  14136. },
  14137. 'class': svgClassString, style: svgStyle
  14138. });
  14139. }
  14140. };
  14141. var iconTabIndex = tabIndex;
  14142. if (iconTabIndex === undefined && 'click' in listeners) {
  14143. iconTabIndex = -1;
  14144. }
  14145. // functional component not support nativeOn,https://github.com/vuejs/vue/issues/7526
  14146. var iProps = {
  14147. attrs: {
  14148. 'aria-label': type && locale.icon + ': ' + type,
  14149. tabIndex: iconTabIndex
  14150. },
  14151. on: listeners,
  14152. 'class': classString,
  14153. staticClass: ''
  14154. };
  14155. return h(
  14156. 'i',
  14157. iProps,
  14158. [renderInnerNode()]
  14159. );
  14160. }
  14161. var Icon = {
  14162. name: 'AIcon',
  14163. props: {
  14164. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].number,
  14165. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  14166. component: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  14167. viewBox: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  14168. spin: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(false),
  14169. rotate: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].number,
  14170. theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOf(['filled', 'outlined', 'twoTone']),
  14171. twoToneColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  14172. role: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string
  14173. },
  14174. render: function render(h) {
  14175. var _this = this;
  14176. return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_11__["default"], {
  14177. attrs: {
  14178. componentName: 'Icon'
  14179. },
  14180. scopedSlots: { 'default': function _default(locale) {
  14181. return renderIcon(h, locale, _this);
  14182. } }
  14183. });
  14184. }
  14185. };
  14186. Icon.createFromIconfontCN = _IconFont__WEBPACK_IMPORTED_MODULE_8__["default"];
  14187. Icon.getTwoToneColor = _twoTonePrimaryColor__WEBPACK_IMPORTED_MODULE_12__["getTwoToneColor"];
  14188. Icon.setTwoToneColor = _twoTonePrimaryColor__WEBPACK_IMPORTED_MODULE_12__["setTwoToneColor"];
  14189. /* istanbul ignore next */
  14190. Icon.install = function (Vue) {
  14191. Vue.use(_base__WEBPACK_IMPORTED_MODULE_14__["default"]);
  14192. Vue.component(Icon.name, Icon);
  14193. };
  14194. /* harmony default export */ __webpack_exports__["default"] = (Icon);
  14195. /***/ }),
  14196. /***/ "./components/icon/style/index.js":
  14197. /*!****************************************!*\
  14198. !*** ./components/icon/style/index.js ***!
  14199. \****************************************/
  14200. /*! no exports provided */
  14201. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14202. "use strict";
  14203. __webpack_require__.r(__webpack_exports__);
  14204. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  14205. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  14206. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/icon/style/index.less");
  14207. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  14208. /***/ }),
  14209. /***/ "./components/icon/style/index.less":
  14210. /*!******************************************!*\
  14211. !*** ./components/icon/style/index.less ***!
  14212. \******************************************/
  14213. /*! no static exports found */
  14214. /***/ (function(module, exports, __webpack_require__) {
  14215. // extracted by mini-css-extract-plugin
  14216. /***/ }),
  14217. /***/ "./components/icon/twoTonePrimaryColor.js":
  14218. /*!************************************************!*\
  14219. !*** ./components/icon/twoTonePrimaryColor.js ***!
  14220. \************************************************/
  14221. /*! exports provided: setTwoToneColor, getTwoToneColor */
  14222. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14223. "use strict";
  14224. __webpack_require__.r(__webpack_exports__);
  14225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTwoToneColor", function() { return setTwoToneColor; });
  14226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTwoToneColor", function() { return getTwoToneColor; });
  14227. /* harmony import */ var _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/icons-vue */ "./node_modules/@ant-design/icons-vue/es/index.js");
  14228. function setTwoToneColor(primaryColor) {
  14229. return _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_0__["default"].setTwoToneColors({
  14230. primaryColor: primaryColor
  14231. });
  14232. }
  14233. function getTwoToneColor() {
  14234. var colors = _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_0__["default"].getTwoToneColors();
  14235. return colors.primaryColor;
  14236. }
  14237. /***/ }),
  14238. /***/ "./components/icon/utils.js":
  14239. /*!**********************************!*\
  14240. !*** ./components/icon/utils.js ***!
  14241. \**********************************/
  14242. /*! exports provided: svgBaseProps, getThemeFromTypeName, removeTypeTheme, withThemeSuffix, alias */
  14243. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14244. "use strict";
  14245. __webpack_require__.r(__webpack_exports__);
  14246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "svgBaseProps", function() { return svgBaseProps; });
  14247. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getThemeFromTypeName", function() { return getThemeFromTypeName; });
  14248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeTypeTheme", function() { return removeTypeTheme; });
  14249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withThemeSuffix", function() { return withThemeSuffix; });
  14250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alias", function() { return alias; });
  14251. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  14252. // These props make sure that the SVG behaviours like general text.
  14253. // Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
  14254. var svgBaseProps = {
  14255. width: '1em',
  14256. height: '1em',
  14257. fill: 'currentColor',
  14258. 'aria-hidden': 'true',
  14259. focusable: 'false'
  14260. };
  14261. var fillTester = /-fill$/;
  14262. var outlineTester = /-o$/;
  14263. var twoToneTester = /-twotone$/;
  14264. function getThemeFromTypeName(type) {
  14265. var result = null;
  14266. if (fillTester.test(type)) {
  14267. result = 'filled';
  14268. } else if (outlineTester.test(type)) {
  14269. result = 'outlined';
  14270. } else if (twoToneTester.test(type)) {
  14271. result = 'twoTone';
  14272. }
  14273. return result;
  14274. }
  14275. function removeTypeTheme(type) {
  14276. return type.replace(fillTester, '').replace(outlineTester, '').replace(twoToneTester, '');
  14277. }
  14278. function withThemeSuffix(type, theme) {
  14279. var result = type;
  14280. if (theme === 'filled') {
  14281. result += '-fill';
  14282. } else if (theme === 'outlined') {
  14283. result += '-o';
  14284. } else if (theme === 'twoTone') {
  14285. result += '-twotone';
  14286. } else {
  14287. Object(_util_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(false, 'Icon', 'This icon \'' + type + '\' has unknown theme \'' + theme + '\'');
  14288. }
  14289. return result;
  14290. }
  14291. // For alias or compatibility
  14292. function alias(type) {
  14293. var newType = type;
  14294. switch (type) {
  14295. case 'cross':
  14296. newType = 'close';
  14297. break;
  14298. // https://github.com/ant-design/ant-design/issues/13007
  14299. case 'interation':
  14300. newType = 'interaction';
  14301. break;
  14302. // https://github.com/ant-design/ant-design/issues/16810
  14303. case 'canlendar':
  14304. newType = 'calendar';
  14305. break;
  14306. // https://github.com/ant-design/ant-design/issues/17448
  14307. case 'colum-height':
  14308. newType = 'column-height';
  14309. break;
  14310. default:
  14311. }
  14312. Object(_util_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(newType === type, 'Icon', 'Icon \'' + type + '\' was a typo and is now deprecated, please use \'' + newType + '\' instead.');
  14313. return newType;
  14314. }
  14315. /***/ }),
  14316. /***/ "./components/index.js":
  14317. /*!*****************************!*\
  14318. !*** ./components/index.js ***!
  14319. \*****************************/
  14320. /*! exports provided: Base, version, install, message, notification, Affix, Anchor, AutoComplete, Alert, Avatar, BackTop, Badge, Breadcrumb, Button, Calendar, Card, Collapse, Carousel, Cascader, Checkbox, Col, DatePicker, Divider, Dropdown, Form, FormModel, Icon, Input, InputNumber, Layout, List, LocaleProvider, Menu, Mentions, Modal, Pagination, Popconfirm, Popover, Progress, Radio, Rate, Row, Select, Slider, Spin, Statistic, Steps, Switch, Table, Transfer, Tree, TreeSelect, Tabs, Tag, TimePicker, Timeline, Tooltip, Upload, Drawer, Skeleton, Comment, ConfigProvider, Empty, Result, Descriptions, PageHeader, Space, default */
  14321. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14322. "use strict";
  14323. __webpack_require__.r(__webpack_exports__);
  14324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; });
  14325. /* harmony import */ var _affix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./affix */ "./components/affix/index.jsx");
  14326. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Affix", function() { return _affix__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  14327. /* harmony import */ var _anchor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./anchor */ "./components/anchor/index.jsx");
  14328. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Anchor", function() { return _anchor__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  14329. /* harmony import */ var _auto_complete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./auto-complete */ "./components/auto-complete/index.jsx");
  14330. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AutoComplete", function() { return _auto_complete__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  14331. /* harmony import */ var _alert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./alert */ "./components/alert/index.jsx");
  14332. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Alert", function() { return _alert__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  14333. /* harmony import */ var _avatar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./avatar */ "./components/avatar/index.js");
  14334. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Avatar", function() { return _avatar__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  14335. /* harmony import */ var _back_top__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./back-top */ "./components/back-top/index.jsx");
  14336. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BackTop", function() { return _back_top__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  14337. /* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./badge */ "./components/badge/index.js");
  14338. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Badge", function() { return _badge__WEBPACK_IMPORTED_MODULE_6__["default"]; });
  14339. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./base */ "./components/base/index.js");
  14340. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Base", function() { return _base__WEBPACK_IMPORTED_MODULE_7__["default"]; });
  14341. /* harmony import */ var _breadcrumb__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./breadcrumb */ "./components/breadcrumb/index.js");
  14342. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return _breadcrumb__WEBPACK_IMPORTED_MODULE_8__["default"]; });
  14343. /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./button */ "./components/button/index.js");
  14344. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _button__WEBPACK_IMPORTED_MODULE_9__["default"]; });
  14345. /* harmony import */ var _calendar__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./calendar */ "./components/calendar/index.jsx");
  14346. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Calendar", function() { return _calendar__WEBPACK_IMPORTED_MODULE_10__["default"]; });
  14347. /* harmony import */ var _card__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./card */ "./components/card/index.js");
  14348. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Card", function() { return _card__WEBPACK_IMPORTED_MODULE_11__["default"]; });
  14349. /* harmony import */ var _collapse__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collapse */ "./components/collapse/index.js");
  14350. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Collapse", function() { return _collapse__WEBPACK_IMPORTED_MODULE_12__["default"]; });
  14351. /* harmony import */ var _carousel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./carousel */ "./components/carousel/index.jsx");
  14352. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Carousel", function() { return _carousel__WEBPACK_IMPORTED_MODULE_13__["default"]; });
  14353. /* harmony import */ var _cascader__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./cascader */ "./components/cascader/index.jsx");
  14354. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Cascader", function() { return _cascader__WEBPACK_IMPORTED_MODULE_14__["default"]; });
  14355. /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./checkbox */ "./components/checkbox/index.js");
  14356. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return _checkbox__WEBPACK_IMPORTED_MODULE_15__["default"]; });
  14357. /* harmony import */ var _col__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./col */ "./components/col/index.js");
  14358. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Col", function() { return _col__WEBPACK_IMPORTED_MODULE_16__["default"]; });
  14359. /* harmony import */ var _date_picker__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./date-picker */ "./components/date-picker/index.js");
  14360. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DatePicker", function() { return _date_picker__WEBPACK_IMPORTED_MODULE_17__["default"]; });
  14361. /* harmony import */ var _divider__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./divider */ "./components/divider/index.jsx");
  14362. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Divider", function() { return _divider__WEBPACK_IMPORTED_MODULE_18__["default"]; });
  14363. /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./dropdown */ "./components/dropdown/index.js");
  14364. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return _dropdown__WEBPACK_IMPORTED_MODULE_19__["default"]; });
  14365. /* harmony import */ var _form__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./form */ "./components/form/index.jsx");
  14366. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Form", function() { return _form__WEBPACK_IMPORTED_MODULE_20__["default"]; });
  14367. /* harmony import */ var _form_model__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./form-model */ "./components/form-model/index.jsx");
  14368. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormModel", function() { return _form_model__WEBPACK_IMPORTED_MODULE_21__["default"]; });
  14369. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./icon */ "./components/icon/index.js");
  14370. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Icon", function() { return _icon__WEBPACK_IMPORTED_MODULE_22__["default"]; });
  14371. /* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./input */ "./components/input/index.js");
  14372. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Input", function() { return _input__WEBPACK_IMPORTED_MODULE_23__["default"]; });
  14373. /* harmony import */ var _input_number__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./input-number */ "./components/input-number/index.jsx");
  14374. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputNumber", function() { return _input_number__WEBPACK_IMPORTED_MODULE_24__["default"]; });
  14375. /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./layout */ "./components/layout/index.js");
  14376. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Layout", function() { return _layout__WEBPACK_IMPORTED_MODULE_25__["default"]; });
  14377. /* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./list */ "./components/list/index.jsx");
  14378. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function() { return _list__WEBPACK_IMPORTED_MODULE_26__["default"]; });
  14379. /* harmony import */ var _locale_provider__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./locale-provider */ "./components/locale-provider/index.jsx");
  14380. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LocaleProvider", function() { return _locale_provider__WEBPACK_IMPORTED_MODULE_27__["default"]; });
  14381. /* harmony import */ var _message__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./message */ "./components/message/index.js");
  14382. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "message", function() { return _message__WEBPACK_IMPORTED_MODULE_28__["default"]; });
  14383. /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./menu */ "./components/menu/index.jsx");
  14384. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Menu", function() { return _menu__WEBPACK_IMPORTED_MODULE_29__["default"]; });
  14385. /* harmony import */ var _mentions__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./mentions */ "./components/mentions/index.jsx");
  14386. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Mentions", function() { return _mentions__WEBPACK_IMPORTED_MODULE_30__["default"]; });
  14387. /* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./modal */ "./components/modal/index.js");
  14388. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Modal", function() { return _modal__WEBPACK_IMPORTED_MODULE_31__["default"]; });
  14389. /* harmony import */ var _notification__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./notification */ "./components/notification/index.js");
  14390. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "notification", function() { return _notification__WEBPACK_IMPORTED_MODULE_32__["default"]; });
  14391. /* harmony import */ var _pagination__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./pagination */ "./components/pagination/index.js");
  14392. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pagination", function() { return _pagination__WEBPACK_IMPORTED_MODULE_33__["default"]; });
  14393. /* harmony import */ var _popconfirm__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./popconfirm */ "./components/popconfirm/index.jsx");
  14394. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popconfirm", function() { return _popconfirm__WEBPACK_IMPORTED_MODULE_34__["default"]; });
  14395. /* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./popover */ "./components/popover/index.jsx");
  14396. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popover", function() { return _popover__WEBPACK_IMPORTED_MODULE_35__["default"]; });
  14397. /* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./progress */ "./components/progress/index.jsx");
  14398. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Progress", function() { return _progress__WEBPACK_IMPORTED_MODULE_36__["default"]; });
  14399. /* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./radio */ "./components/radio/index.js");
  14400. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Radio", function() { return _radio__WEBPACK_IMPORTED_MODULE_37__["default"]; });
  14401. /* harmony import */ var _rate__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./rate */ "./components/rate/index.jsx");
  14402. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rate", function() { return _rate__WEBPACK_IMPORTED_MODULE_38__["default"]; });
  14403. /* harmony import */ var _row__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./row */ "./components/row/index.js");
  14404. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Row", function() { return _row__WEBPACK_IMPORTED_MODULE_39__["default"]; });
  14405. /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./select */ "./components/select/index.jsx");
  14406. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Select", function() { return _select__WEBPACK_IMPORTED_MODULE_40__["default"]; });
  14407. /* harmony import */ var _slider__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./slider */ "./components/slider/index.jsx");
  14408. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slider", function() { return _slider__WEBPACK_IMPORTED_MODULE_41__["default"]; });
  14409. /* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./spin */ "./components/spin/index.js");
  14410. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Spin", function() { return _spin__WEBPACK_IMPORTED_MODULE_42__["default"]; });
  14411. /* harmony import */ var _statistic__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./statistic */ "./components/statistic/index.js");
  14412. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Statistic", function() { return _statistic__WEBPACK_IMPORTED_MODULE_43__["default"]; });
  14413. /* harmony import */ var _steps__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./steps */ "./components/steps/index.jsx");
  14414. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Steps", function() { return _steps__WEBPACK_IMPORTED_MODULE_44__["default"]; });
  14415. /* harmony import */ var _switch__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./switch */ "./components/switch/index.jsx");
  14416. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return _switch__WEBPACK_IMPORTED_MODULE_45__["default"]; });
  14417. /* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./table */ "./components/table/index.jsx");
  14418. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Table", function() { return _table__WEBPACK_IMPORTED_MODULE_46__["default"]; });
  14419. /* harmony import */ var _transfer__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./transfer */ "./components/transfer/index.jsx");
  14420. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transfer", function() { return _transfer__WEBPACK_IMPORTED_MODULE_47__["default"]; });
  14421. /* harmony import */ var _tree__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./tree */ "./components/tree/index.jsx");
  14422. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tree", function() { return _tree__WEBPACK_IMPORTED_MODULE_48__["default"]; });
  14423. /* harmony import */ var _tree_select__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./tree-select */ "./components/tree-select/index.jsx");
  14424. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeSelect", function() { return _tree_select__WEBPACK_IMPORTED_MODULE_49__["default"]; });
  14425. /* harmony import */ var _tabs__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./tabs */ "./components/tabs/index.js");
  14426. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tabs", function() { return _tabs__WEBPACK_IMPORTED_MODULE_50__["default"]; });
  14427. /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./tag */ "./components/tag/index.js");
  14428. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _tag__WEBPACK_IMPORTED_MODULE_51__["default"]; });
  14429. /* harmony import */ var _time_picker__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./time-picker */ "./components/time-picker/index.jsx");
  14430. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimePicker", function() { return _time_picker__WEBPACK_IMPORTED_MODULE_52__["default"]; });
  14431. /* harmony import */ var _timeline__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./timeline */ "./components/timeline/index.jsx");
  14432. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Timeline", function() { return _timeline__WEBPACK_IMPORTED_MODULE_53__["default"]; });
  14433. /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./tooltip */ "./components/tooltip/index.js");
  14434. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return _tooltip__WEBPACK_IMPORTED_MODULE_54__["default"]; });
  14435. /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./upload */ "./components/upload/index.jsx");
  14436. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Upload", function() { return _upload__WEBPACK_IMPORTED_MODULE_55__["default"]; });
  14437. /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./version */ "./components/version/index.js");
  14438. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _version__WEBPACK_IMPORTED_MODULE_56__["default"]; });
  14439. /* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./drawer */ "./components/drawer/index.jsx");
  14440. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Drawer", function() { return _drawer__WEBPACK_IMPORTED_MODULE_57__["default"]; });
  14441. /* harmony import */ var _skeleton__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./skeleton */ "./components/skeleton/index.jsx");
  14442. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Skeleton", function() { return _skeleton__WEBPACK_IMPORTED_MODULE_58__["default"]; });
  14443. /* harmony import */ var _comment__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./comment */ "./components/comment/index.jsx");
  14444. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Comment", function() { return _comment__WEBPACK_IMPORTED_MODULE_59__["default"]; });
  14445. /* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./config-provider */ "./components/config-provider/index.jsx");
  14446. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConfigProvider", function() { return _config_provider__WEBPACK_IMPORTED_MODULE_60__["default"]; });
  14447. /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./empty */ "./components/empty/index.jsx");
  14448. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Empty", function() { return _empty__WEBPACK_IMPORTED_MODULE_61__["default"]; });
  14449. /* harmony import */ var _result__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./result */ "./components/result/index.jsx");
  14450. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Result", function() { return _result__WEBPACK_IMPORTED_MODULE_62__["default"]; });
  14451. /* harmony import */ var _descriptions__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./descriptions */ "./components/descriptions/index.jsx");
  14452. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Descriptions", function() { return _descriptions__WEBPACK_IMPORTED_MODULE_63__["default"]; });
  14453. /* harmony import */ var _page_header__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./page-header */ "./components/page-header/index.jsx");
  14454. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageHeader", function() { return _page_header__WEBPACK_IMPORTED_MODULE_64__["default"]; });
  14455. /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./space */ "./components/space/index.jsx");
  14456. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Space", function() { return _space__WEBPACK_IMPORTED_MODULE_65__["default"]; });
  14457. /* @remove-on-es-build-begin */
  14458. // this file is not used if use https://github.com/ant-design/babel-plugin-import
  14459. var ENV = "development";
  14460. if (ENV !== 'production' && ENV !== 'test' && typeof console !== 'undefined' && console.warn && typeof window !== 'undefined') {
  14461. console.warn('You are using a whole package of antd, ' + 'please use https://www.npmjs.com/package/babel-plugin-import to reduce app bundle size.');
  14462. }
  14463. /* @remove-on-es-build-end */
  14464. var components = [_base__WEBPACK_IMPORTED_MODULE_7__["default"], _affix__WEBPACK_IMPORTED_MODULE_0__["default"], _anchor__WEBPACK_IMPORTED_MODULE_1__["default"], _auto_complete__WEBPACK_IMPORTED_MODULE_2__["default"], _alert__WEBPACK_IMPORTED_MODULE_3__["default"], _avatar__WEBPACK_IMPORTED_MODULE_4__["default"], _back_top__WEBPACK_IMPORTED_MODULE_5__["default"], _badge__WEBPACK_IMPORTED_MODULE_6__["default"], _breadcrumb__WEBPACK_IMPORTED_MODULE_8__["default"], _button__WEBPACK_IMPORTED_MODULE_9__["default"], _calendar__WEBPACK_IMPORTED_MODULE_10__["default"], _card__WEBPACK_IMPORTED_MODULE_11__["default"], _collapse__WEBPACK_IMPORTED_MODULE_12__["default"], _carousel__WEBPACK_IMPORTED_MODULE_13__["default"], _cascader__WEBPACK_IMPORTED_MODULE_14__["default"], _checkbox__WEBPACK_IMPORTED_MODULE_15__["default"], _col__WEBPACK_IMPORTED_MODULE_16__["default"], _date_picker__WEBPACK_IMPORTED_MODULE_17__["default"], _divider__WEBPACK_IMPORTED_MODULE_18__["default"], _dropdown__WEBPACK_IMPORTED_MODULE_19__["default"], _form__WEBPACK_IMPORTED_MODULE_20__["default"], _form_model__WEBPACK_IMPORTED_MODULE_21__["default"], _icon__WEBPACK_IMPORTED_MODULE_22__["default"], _input__WEBPACK_IMPORTED_MODULE_23__["default"], _input_number__WEBPACK_IMPORTED_MODULE_24__["default"], _layout__WEBPACK_IMPORTED_MODULE_25__["default"], _list__WEBPACK_IMPORTED_MODULE_26__["default"], _locale_provider__WEBPACK_IMPORTED_MODULE_27__["default"], _menu__WEBPACK_IMPORTED_MODULE_29__["default"], _mentions__WEBPACK_IMPORTED_MODULE_30__["default"], _modal__WEBPACK_IMPORTED_MODULE_31__["default"], _pagination__WEBPACK_IMPORTED_MODULE_33__["default"], _popconfirm__WEBPACK_IMPORTED_MODULE_34__["default"], _popover__WEBPACK_IMPORTED_MODULE_35__["default"], _progress__WEBPACK_IMPORTED_MODULE_36__["default"], _radio__WEBPACK_IMPORTED_MODULE_37__["default"], _rate__WEBPACK_IMPORTED_MODULE_38__["default"], _row__WEBPACK_IMPORTED_MODULE_39__["default"], _select__WEBPACK_IMPORTED_MODULE_40__["default"], _slider__WEBPACK_IMPORTED_MODULE_41__["default"], _spin__WEBPACK_IMPORTED_MODULE_42__["default"], _statistic__WEBPACK_IMPORTED_MODULE_43__["default"], _steps__WEBPACK_IMPORTED_MODULE_44__["default"], _switch__WEBPACK_IMPORTED_MODULE_45__["default"], _table__WEBPACK_IMPORTED_MODULE_46__["default"], _transfer__WEBPACK_IMPORTED_MODULE_47__["default"], _tree__WEBPACK_IMPORTED_MODULE_48__["default"], _tree_select__WEBPACK_IMPORTED_MODULE_49__["default"], _tabs__WEBPACK_IMPORTED_MODULE_50__["default"], _tag__WEBPACK_IMPORTED_MODULE_51__["default"], _time_picker__WEBPACK_IMPORTED_MODULE_52__["default"], _timeline__WEBPACK_IMPORTED_MODULE_53__["default"], _tooltip__WEBPACK_IMPORTED_MODULE_54__["default"], _upload__WEBPACK_IMPORTED_MODULE_55__["default"], _drawer__WEBPACK_IMPORTED_MODULE_57__["default"], _skeleton__WEBPACK_IMPORTED_MODULE_58__["default"], _comment__WEBPACK_IMPORTED_MODULE_59__["default"],
  14465. // ColorPicker,
  14466. _config_provider__WEBPACK_IMPORTED_MODULE_60__["default"], _empty__WEBPACK_IMPORTED_MODULE_61__["default"], _result__WEBPACK_IMPORTED_MODULE_62__["default"], _descriptions__WEBPACK_IMPORTED_MODULE_63__["default"], _page_header__WEBPACK_IMPORTED_MODULE_64__["default"], _space__WEBPACK_IMPORTED_MODULE_65__["default"]];
  14467. var install = function install(Vue) {
  14468. components.map(function (component) {
  14469. Vue.use(component);
  14470. });
  14471. Vue.prototype.$message = _message__WEBPACK_IMPORTED_MODULE_28__["default"];
  14472. Vue.prototype.$notification = _notification__WEBPACK_IMPORTED_MODULE_32__["default"];
  14473. Vue.prototype.$info = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].info;
  14474. Vue.prototype.$success = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].success;
  14475. Vue.prototype.$error = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].error;
  14476. Vue.prototype.$warning = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].warning;
  14477. Vue.prototype.$confirm = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].confirm;
  14478. Vue.prototype.$destroyAll = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].destroyAll;
  14479. };
  14480. /* istanbul ignore if */
  14481. if (typeof window !== 'undefined' && window.Vue) {
  14482. install(window.Vue);
  14483. }
  14484. /* harmony default export */ __webpack_exports__["default"] = ({
  14485. version: _version__WEBPACK_IMPORTED_MODULE_56__["default"],
  14486. install: install
  14487. });
  14488. /***/ }),
  14489. /***/ "./components/input-number/index.jsx":
  14490. /*!*******************************************!*\
  14491. !*** ./components/input-number/index.jsx ***!
  14492. \*******************************************/
  14493. /*! exports provided: InputNumberProps, default */
  14494. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14495. "use strict";
  14496. __webpack_require__.r(__webpack_exports__);
  14497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNumberProps", function() { return InputNumberProps; });
  14498. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  14499. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  14500. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  14501. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  14502. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  14503. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
  14504. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  14505. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  14506. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  14507. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
  14508. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  14509. /* harmony import */ var _vc_input_number_src__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-input-number/src */ "./components/vc-input-number/src/index.js");
  14510. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  14511. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  14512. var InputNumberProps = {
  14513. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  14514. min: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  14515. max: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  14516. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
  14517. step: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
  14518. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
  14519. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  14520. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  14521. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['large', 'small', 'default']),
  14522. formatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  14523. parser: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  14524. decimalSeparator: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  14525. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  14526. name: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  14527. id: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  14528. precision: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  14529. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
  14530. };
  14531. var InputNumber = {
  14532. name: 'AInputNumber',
  14533. model: {
  14534. prop: 'value',
  14535. event: 'change'
  14536. },
  14537. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(InputNumberProps, {
  14538. step: 1
  14539. }),
  14540. inject: {
  14541. configProvider: { 'default': function _default() {
  14542. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
  14543. } }
  14544. },
  14545. methods: {
  14546. focus: function focus() {
  14547. this.$refs.inputNumberRef.focus();
  14548. },
  14549. blur: function blur() {
  14550. this.$refs.inputNumberRef.blur();
  14551. }
  14552. },
  14553. render: function render() {
  14554. var _classNames;
  14555. var h = arguments[0];
  14556. var _getOptionProps$$attr = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this), this.$attrs),
  14557. customizePrefixCls = _getOptionProps$$attr.prefixCls,
  14558. size = _getOptionProps$$attr.size,
  14559. others = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getOptionProps$$attr, ['prefixCls', 'size']);
  14560. var getPrefixCls = this.configProvider.getPrefixCls;
  14561. var prefixCls = getPrefixCls('input-number', customizePrefixCls);
  14562. var inputNumberClass = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-sm', size === 'small'), _classNames));
  14563. var upIcon = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
  14564. attrs: { type: 'up' },
  14565. 'class': prefixCls + '-handler-up-inner' });
  14566. var downIcon = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
  14567. attrs: { type: 'down' },
  14568. 'class': prefixCls + '-handler-down-inner' });
  14569. var vcInputNumberprops = {
  14570. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
  14571. prefixCls: prefixCls,
  14572. upHandler: upIcon,
  14573. downHandler: downIcon
  14574. }, others),
  14575. 'class': inputNumberClass,
  14576. ref: 'inputNumberRef',
  14577. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
  14578. };
  14579. return h(_vc_input_number_src__WEBPACK_IMPORTED_MODULE_7__["default"], vcInputNumberprops);
  14580. }
  14581. };
  14582. /* istanbul ignore next */
  14583. InputNumber.install = function (Vue) {
  14584. Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
  14585. Vue.component(InputNumber.name, InputNumber);
  14586. };
  14587. /* harmony default export */ __webpack_exports__["default"] = (InputNumber);
  14588. /***/ }),
  14589. /***/ "./components/input-number/style/index.js":
  14590. /*!************************************************!*\
  14591. !*** ./components/input-number/style/index.js ***!
  14592. \************************************************/
  14593. /*! no exports provided */
  14594. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14595. "use strict";
  14596. __webpack_require__.r(__webpack_exports__);
  14597. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  14598. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  14599. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/input-number/style/index.less");
  14600. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  14601. /***/ }),
  14602. /***/ "./components/input-number/style/index.less":
  14603. /*!**************************************************!*\
  14604. !*** ./components/input-number/style/index.less ***!
  14605. \**************************************************/
  14606. /*! no static exports found */
  14607. /***/ (function(module, exports, __webpack_require__) {
  14608. // extracted by mini-css-extract-plugin
  14609. /***/ }),
  14610. /***/ "./components/input/ClearableLabeledInput.jsx":
  14611. /*!****************************************************!*\
  14612. !*** ./components/input/ClearableLabeledInput.jsx ***!
  14613. \****************************************************/
  14614. /*! exports provided: hasPrefixSuffix, default */
  14615. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14616. "use strict";
  14617. __webpack_require__.r(__webpack_exports__);
  14618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasPrefixSuffix", function() { return hasPrefixSuffix; });
  14619. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  14620. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  14621. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  14622. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
  14623. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  14624. /* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
  14625. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  14626. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  14627. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  14628. function hasPrefixSuffix(instance) {
  14629. return !!(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(instance, 'prefix') || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(instance, 'suffix') || instance.$props.allowClear);
  14630. }
  14631. var ClearableInputType = ['text', 'input'];
  14632. var ClearableLabeledInput = {
  14633. props: {
  14634. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  14635. inputType: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(ClearableInputType),
  14636. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  14637. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  14638. allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  14639. element: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  14640. handleReset: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
  14641. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  14642. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['small', 'large', 'default']),
  14643. suffix: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  14644. prefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  14645. addonBefore: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  14646. addonAfter: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  14647. className: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  14648. readOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
  14649. },
  14650. methods: {
  14651. renderClearIcon: function renderClearIcon(prefixCls) {
  14652. var h = this.$createElement;
  14653. var _$props = this.$props,
  14654. allowClear = _$props.allowClear,
  14655. value = _$props.value,
  14656. disabled = _$props.disabled,
  14657. readOnly = _$props.readOnly,
  14658. inputType = _$props.inputType,
  14659. handleReset = _$props.handleReset;
  14660. if (!allowClear || disabled || readOnly || value === undefined || value === null || value === '') {
  14661. return null;
  14662. }
  14663. var className = inputType === ClearableInputType[0] ? prefixCls + '-textarea-clear-icon' : prefixCls + '-clear-icon';
  14664. return h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
  14665. attrs: {
  14666. type: 'close-circle',
  14667. theme: 'filled',
  14668. role: 'button'
  14669. },
  14670. on: {
  14671. 'click': handleReset
  14672. },
  14673. 'class': className });
  14674. },
  14675. renderSuffix: function renderSuffix(prefixCls) {
  14676. var h = this.$createElement;
  14677. var _$props2 = this.$props,
  14678. suffix = _$props2.suffix,
  14679. allowClear = _$props2.allowClear;
  14680. if (suffix || allowClear) {
  14681. return h(
  14682. 'span',
  14683. { 'class': prefixCls + '-suffix' },
  14684. [this.renderClearIcon(prefixCls), suffix]
  14685. );
  14686. }
  14687. return null;
  14688. },
  14689. renderLabeledIcon: function renderLabeledIcon(prefixCls, element) {
  14690. var _classNames;
  14691. var h = this.$createElement;
  14692. var props = this.$props;
  14693. var suffix = this.renderSuffix(prefixCls);
  14694. if (!hasPrefixSuffix(this)) {
  14695. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(element, {
  14696. props: { value: props.value }
  14697. });
  14698. }
  14699. var prefix = props.prefix ? h(
  14700. 'span',
  14701. { 'class': prefixCls + '-prefix' },
  14702. [props.prefix]
  14703. ) : null;
  14704. var affixWrapperCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()(props.className, prefixCls + '-affix-wrapper', (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-affix-wrapper-sm', props.size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-affix-wrapper-lg', props.size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-affix-wrapper-input-with-clear-btn', props.suffix && props.allowClear && this.$props.value), _classNames));
  14705. return h(
  14706. 'span',
  14707. { 'class': affixWrapperCls, style: props.style },
  14708. [prefix, Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(element, {
  14709. style: null,
  14710. props: { value: props.value },
  14711. 'class': Object(_Input__WEBPACK_IMPORTED_MODULE_3__["getInputClassName"])(prefixCls, props.size, props.disabled)
  14712. }), suffix]
  14713. );
  14714. },
  14715. renderInputWithLabel: function renderInputWithLabel(prefixCls, labeledElement) {
  14716. var _classNames3;
  14717. var h = this.$createElement;
  14718. var _$props3 = this.$props,
  14719. addonBefore = _$props3.addonBefore,
  14720. addonAfter = _$props3.addonAfter,
  14721. style = _$props3.style,
  14722. size = _$props3.size,
  14723. className = _$props3.className;
  14724. // Not wrap when there is not addons
  14725. if (!addonBefore && !addonAfter) {
  14726. return labeledElement;
  14727. }
  14728. var wrapperClassName = prefixCls + '-group';
  14729. var addonClassName = wrapperClassName + '-addon';
  14730. var addonBeforeNode = addonBefore ? h(
  14731. 'span',
  14732. { 'class': addonClassName },
  14733. [addonBefore]
  14734. ) : null;
  14735. var addonAfterNode = addonAfter ? h(
  14736. 'span',
  14737. { 'class': addonClassName },
  14738. [addonAfter]
  14739. ) : null;
  14740. var mergedWrapperClassName = classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls + '-wrapper', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, wrapperClassName, addonBefore || addonAfter));
  14741. var mergedGroupClassName = classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, prefixCls + '-group-wrapper', (_classNames3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, prefixCls + '-group-wrapper-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, prefixCls + '-group-wrapper-lg', size === 'large'), _classNames3));
  14742. // Need another wrapper for changing display:table to display:inline-block
  14743. // and put style prop in wrapper
  14744. return h(
  14745. 'span',
  14746. { 'class': mergedGroupClassName, style: style },
  14747. [h(
  14748. 'span',
  14749. { 'class': mergedWrapperClassName },
  14750. [addonBeforeNode, Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(labeledElement, { style: null }), addonAfterNode]
  14751. )]
  14752. );
  14753. },
  14754. renderTextAreaWithClearIcon: function renderTextAreaWithClearIcon(prefixCls, element) {
  14755. var h = this.$createElement;
  14756. var _$props4 = this.$props,
  14757. value = _$props4.value,
  14758. allowClear = _$props4.allowClear,
  14759. className = _$props4.className,
  14760. style = _$props4.style;
  14761. if (!allowClear) {
  14762. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(element, {
  14763. props: { value: value }
  14764. });
  14765. }
  14766. var affixWrapperCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, prefixCls + '-affix-wrapper', prefixCls + '-affix-wrapper-textarea-with-clear-btn');
  14767. return h(
  14768. 'span',
  14769. { 'class': affixWrapperCls, style: style },
  14770. [Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(element, {
  14771. style: null,
  14772. props: { value: value }
  14773. }), this.renderClearIcon(prefixCls)]
  14774. );
  14775. },
  14776. renderClearableLabeledInput: function renderClearableLabeledInput() {
  14777. var _$props5 = this.$props,
  14778. prefixCls = _$props5.prefixCls,
  14779. inputType = _$props5.inputType,
  14780. element = _$props5.element;
  14781. if (inputType === ClearableInputType[0]) {
  14782. return this.renderTextAreaWithClearIcon(prefixCls, element);
  14783. }
  14784. return this.renderInputWithLabel(prefixCls, this.renderLabeledIcon(prefixCls, element));
  14785. }
  14786. },
  14787. render: function render() {
  14788. return this.renderClearableLabeledInput();
  14789. }
  14790. };
  14791. /* harmony default export */ __webpack_exports__["default"] = (ClearableLabeledInput);
  14792. /***/ }),
  14793. /***/ "./components/input/Group.jsx":
  14794. /*!************************************!*\
  14795. !*** ./components/input/Group.jsx ***!
  14796. \************************************/
  14797. /*! exports provided: default */
  14798. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14799. "use strict";
  14800. __webpack_require__.r(__webpack_exports__);
  14801. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  14802. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  14803. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  14804. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  14805. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  14806. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  14807. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  14808. /* harmony default export */ __webpack_exports__["default"] = ({
  14809. name: 'AInputGroup',
  14810. props: {
  14811. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  14812. size: {
  14813. validator: function validator(value) {
  14814. return ['small', 'large', 'default'].includes(value);
  14815. }
  14816. },
  14817. compact: Boolean
  14818. },
  14819. inject: {
  14820. configProvider: { 'default': function _default() {
  14821. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
  14822. } }
  14823. },
  14824. computed: {
  14825. classes: function classes() {
  14826. var _ref;
  14827. var customizePrefixCls = this.prefixCls,
  14828. size = this.size,
  14829. _compact = this.compact,
  14830. compact = _compact === undefined ? false : _compact;
  14831. var getPrefixCls = this.configProvider.getPrefixCls;
  14832. var prefixCls = getPrefixCls('input-group', customizePrefixCls);
  14833. return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-compact', compact), _ref;
  14834. }
  14835. },
  14836. methods: {},
  14837. render: function render() {
  14838. var h = arguments[0];
  14839. return h(
  14840. 'span',
  14841. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': this.classes }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this) }]),
  14842. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["filterEmpty"])(this.$slots['default'])]
  14843. );
  14844. }
  14845. });
  14846. /***/ }),
  14847. /***/ "./components/input/Input.jsx":
  14848. /*!************************************!*\
  14849. !*** ./components/input/Input.jsx ***!
  14850. \************************************/
  14851. /*! exports provided: fixControlledValue, resolveOnChange, getInputClassName, default */
  14852. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  14853. "use strict";
  14854. __webpack_require__.r(__webpack_exports__);
  14855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fixControlledValue", function() { return fixControlledValue; });
  14856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveOnChange", function() { return resolveOnChange; });
  14857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getInputClassName", function() { return getInputClassName; });
  14858. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  14859. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  14860. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  14861. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  14862. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  14863. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  14864. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  14865. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  14866. /* harmony import */ var _TextArea__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TextArea */ "./components/input/TextArea.jsx");
  14867. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  14868. /* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
  14869. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  14870. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  14871. /* harmony import */ var _ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ClearableLabeledInput */ "./components/input/ClearableLabeledInput.jsx");
  14872. function noop() {}
  14873. function fixControlledValue(value) {
  14874. if (typeof value === 'undefined' || value === null) {
  14875. return '';
  14876. }
  14877. return value;
  14878. }
  14879. function resolveOnChange(target, e, onChange) {
  14880. if (onChange) {
  14881. var event = e;
  14882. if (e.type === 'click') {
  14883. // click clear icon
  14884. //event = Object.create(e);
  14885. Object.defineProperty(event, 'target', {
  14886. writable: true
  14887. });
  14888. Object.defineProperty(event, 'currentTarget', {
  14889. writable: true
  14890. });
  14891. event.target = target;
  14892. event.currentTarget = target;
  14893. var originalInputValue = target.value;
  14894. // change target ref value cause e.target.value should be '' when clear input
  14895. target.value = '';
  14896. onChange(event);
  14897. // reset target ref value
  14898. target.value = originalInputValue;
  14899. return;
  14900. }
  14901. onChange(event);
  14902. }
  14903. }
  14904. function getInputClassName(prefixCls, size, disabled) {
  14905. var _classNames;
  14906. return classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
  14907. }
  14908. /* harmony default export */ __webpack_exports__["default"] = ({
  14909. name: 'AInput',
  14910. inheritAttrs: false,
  14911. model: {
  14912. prop: 'value',
  14913. event: 'change.value'
  14914. },
  14915. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_6__["default"]),
  14916. inject: {
  14917. configProvider: { 'default': function _default() {
  14918. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
  14919. } }
  14920. },
  14921. data: function data() {
  14922. var props = this.$props;
  14923. var value = typeof props.value === 'undefined' ? props.defaultValue : props.value;
  14924. return {
  14925. stateValue: typeof value === 'undefined' ? '' : value
  14926. };
  14927. },
  14928. watch: {
  14929. value: function value(val) {
  14930. this.stateValue = val;
  14931. }
  14932. },
  14933. mounted: function mounted() {
  14934. var _this = this;
  14935. this.$nextTick(function () {
  14936. if (_this.autoFocus) {
  14937. _this.focus();
  14938. }
  14939. _this.clearPasswordValueAttribute();
  14940. });
  14941. },
  14942. beforeDestroy: function beforeDestroy() {
  14943. if (this.removePasswordTimeout) {
  14944. clearTimeout(this.removePasswordTimeout);
  14945. }
  14946. },
  14947. methods: {
  14948. onBlur: function onBlur(e) {
  14949. // fix this isssue: https://github.com/vueComponent/ant-design-vue/issues/3816
  14950. // reference: https://github.com/vuejs/vue/issues/5847 and https://github.com/vuejs/vue/issues/8431
  14951. this.$forceUpdate();
  14952. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
  14953. blur = _getListeners.blur;
  14954. blur && blur(e);
  14955. },
  14956. focus: function focus() {
  14957. this.$refs.input.focus();
  14958. },
  14959. blur: function blur() {
  14960. this.$refs.input.blur();
  14961. },
  14962. select: function select() {
  14963. this.$refs.input.select();
  14964. },
  14965. setValue: function setValue(value, callback) {
  14966. if (this.stateValue === value) {
  14967. return;
  14968. }
  14969. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["hasProp"])(this, 'value')) {
  14970. this.stateValue = value;
  14971. this.$nextTick(function () {
  14972. callback && callback();
  14973. });
  14974. } else {
  14975. // 不在严格受控
  14976. // https://github.com/vueComponent/ant-design-vue/issues/2207,modal 是 新 new 实例,更新队列和当前不在同一个更新队列中
  14977. // this.$forceUpdate();
  14978. }
  14979. },
  14980. onChange: function onChange(e) {
  14981. this.$emit('change.value', e.target.value);
  14982. this.$emit('change', e);
  14983. this.$emit('input', e);
  14984. },
  14985. handleReset: function handleReset(e) {
  14986. var _this2 = this;
  14987. this.setValue('', function () {
  14988. _this2.focus();
  14989. });
  14990. resolveOnChange(this.$refs.input, e, this.onChange);
  14991. },
  14992. renderInput: function renderInput(prefixCls) {
  14993. var h = this.$createElement;
  14994. var otherProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(this.$props, ['prefixCls', 'addonBefore', 'addonAfter', 'prefix', 'suffix', 'allowClear', 'value', 'defaultValue', 'lazy', 'size', 'inputType', 'className']);
  14995. var stateValue = this.stateValue,
  14996. handleKeyDown = this.handleKeyDown,
  14997. handleChange = this.handleChange,
  14998. size = this.size,
  14999. disabled = this.disabled;
  15000. var inputProps = {
  15001. directives: [{ name: 'ant-input' }],
  15002. domProps: {
  15003. value: fixControlledValue(stateValue)
  15004. },
  15005. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, otherProps, this.$attrs),
  15006. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), {
  15007. keydown: handleKeyDown,
  15008. input: handleChange,
  15009. change: noop,
  15010. blur: this.onBlur
  15011. }),
  15012. 'class': getInputClassName(prefixCls, size, disabled),
  15013. ref: 'input',
  15014. key: 'ant-input'
  15015. };
  15016. return h('input', inputProps);
  15017. },
  15018. clearPasswordValueAttribute: function clearPasswordValueAttribute() {
  15019. var _this3 = this;
  15020. // https://github.com/ant-design/ant-design/issues/20541
  15021. this.removePasswordTimeout = setTimeout(function () {
  15022. if (_this3.$refs.input && _this3.$refs.input.getAttribute && _this3.$refs.input.getAttribute('type') === 'password' && _this3.$refs.input.hasAttribute('value')) {
  15023. _this3.$refs.input.removeAttribute('value');
  15024. }
  15025. });
  15026. },
  15027. handleChange: function handleChange(e) {
  15028. var _e$target = e.target,
  15029. value = _e$target.value,
  15030. composing = _e$target.composing;
  15031. // https://github.com/vueComponent/ant-design-vue/issues/2203
  15032. if ((e.isComposing || composing) && this.lazy || this.stateValue === value) return;
  15033. this.setValue(value, this.clearPasswordValueAttribute);
  15034. resolveOnChange(this.$refs.input, e, this.onChange);
  15035. },
  15036. handleKeyDown: function handleKeyDown(e) {
  15037. if (e.keyCode === 13) {
  15038. this.$emit('pressEnter', e);
  15039. }
  15040. this.$emit('keydown', e);
  15041. }
  15042. },
  15043. render: function render() {
  15044. var h = arguments[0];
  15045. if (this.$props.type === 'textarea') {
  15046. var textareaProps = {
  15047. props: this.$props,
  15048. attrs: this.$attrs,
  15049. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), {
  15050. input: this.handleChange,
  15051. keydown: this.handleKeyDown,
  15052. change: noop,
  15053. blur: this.onBlur
  15054. })
  15055. };
  15056. return h(_TextArea__WEBPACK_IMPORTED_MODULE_4__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([textareaProps, { ref: 'input' }]));
  15057. }
  15058. var customizePrefixCls = this.$props.prefixCls;
  15059. var stateValue = this.$data.stateValue;
  15060. var getPrefixCls = this.configProvider.getPrefixCls;
  15061. var prefixCls = getPrefixCls('input', customizePrefixCls);
  15062. var addonAfter = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'addonAfter');
  15063. var addonBefore = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'addonBefore');
  15064. var suffix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'suffix');
  15065. var prefix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'prefix');
  15066. var props = {
  15067. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this), {
  15068. prefixCls: prefixCls,
  15069. inputType: 'input',
  15070. value: fixControlledValue(stateValue),
  15071. element: this.renderInput(prefixCls),
  15072. handleReset: this.handleReset,
  15073. addonAfter: addonAfter,
  15074. addonBefore: addonBefore,
  15075. suffix: suffix,
  15076. prefix: prefix
  15077. }),
  15078. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this)
  15079. };
  15080. return h(_ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_9__["default"], props);
  15081. }
  15082. });
  15083. /***/ }),
  15084. /***/ "./components/input/Password.jsx":
  15085. /*!***************************************!*\
  15086. !*** ./components/input/Password.jsx ***!
  15087. \***************************************/
  15088. /*! exports provided: default */
  15089. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15090. "use strict";
  15091. __webpack_require__.r(__webpack_exports__);
  15092. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  15093. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
  15094. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  15095. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  15096. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  15097. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  15098. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  15099. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  15100. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  15101. /* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
  15102. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  15103. /* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
  15104. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  15105. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  15106. var ActionMap = {
  15107. click: 'click',
  15108. hover: 'mouseover'
  15109. };
  15110. /* harmony default export */ __webpack_exports__["default"] = ({
  15111. name: 'AInputPassword',
  15112. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__["default"]],
  15113. inheritAttrs: false,
  15114. model: {
  15115. prop: 'value',
  15116. event: 'change.value'
  15117. },
  15118. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_7__["default"], {
  15119. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string.def('ant-input-password'),
  15120. inputPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string.def('ant-input'),
  15121. action: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string.def('click'),
  15122. visibilityToggle: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool.def(true)
  15123. }),
  15124. data: function data() {
  15125. return {
  15126. visible: false
  15127. };
  15128. },
  15129. methods: {
  15130. focus: function focus() {
  15131. this.$refs.input.focus();
  15132. },
  15133. blur: function blur() {
  15134. this.$refs.input.blur();
  15135. },
  15136. onVisibleChange: function onVisibleChange() {
  15137. if (this.disabled) {
  15138. return;
  15139. }
  15140. this.setState({
  15141. visible: !this.visible
  15142. });
  15143. },
  15144. getIcon: function getIcon() {
  15145. var _on;
  15146. var h = this.$createElement;
  15147. var _$props = this.$props,
  15148. prefixCls = _$props.prefixCls,
  15149. action = _$props.action;
  15150. var iconTrigger = ActionMap[action] || '';
  15151. var iconProps = {
  15152. props: {
  15153. type: this.visible ? 'eye' : 'eye-invisible'
  15154. },
  15155. on: (_on = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_on, iconTrigger, this.onVisibleChange), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_on, 'mousedown', function mousedown(e) {
  15156. // Prevent focused state lost
  15157. // https://github.com/ant-design/ant-design/issues/15173
  15158. e.preventDefault();
  15159. }), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_on, 'mouseup', function mouseup(e) {
  15160. // Prevent focused state lost
  15161. // https://github.com/ant-design/ant-design/pull/23633/files
  15162. e.preventDefault();
  15163. }), _on),
  15164. 'class': prefixCls + '-icon',
  15165. key: 'passwordIcon'
  15166. };
  15167. return h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], iconProps);
  15168. }
  15169. },
  15170. render: function render() {
  15171. var h = arguments[0];
  15172. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
  15173. prefixCls = _getOptionProps.prefixCls,
  15174. inputPrefixCls = _getOptionProps.inputPrefixCls,
  15175. size = _getOptionProps.size,
  15176. suffix = _getOptionProps.suffix,
  15177. visibilityToggle = _getOptionProps.visibilityToggle,
  15178. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['prefixCls', 'inputPrefixCls', 'size', 'suffix', 'visibilityToggle']);
  15179. var suffixIcon = visibilityToggle && this.getIcon();
  15180. var inputClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-' + size, !!size));
  15181. var inputProps = {
  15182. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, {
  15183. prefixCls: inputPrefixCls,
  15184. size: size,
  15185. suffix: suffixIcon,
  15186. prefix: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'prefix'),
  15187. addonAfter: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'addonAfter'),
  15188. addonBefore: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'addonBefore')
  15189. }),
  15190. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$attrs, {
  15191. type: this.visible ? 'text' : 'password'
  15192. }),
  15193. 'class': inputClassName,
  15194. ref: 'input',
  15195. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
  15196. };
  15197. return h(_Input__WEBPACK_IMPORTED_MODULE_5__["default"], inputProps);
  15198. }
  15199. });
  15200. /***/ }),
  15201. /***/ "./components/input/ResizableTextArea.jsx":
  15202. /*!************************************************!*\
  15203. !*** ./components/input/ResizableTextArea.jsx ***!
  15204. \************************************************/
  15205. /*! exports provided: default */
  15206. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15207. "use strict";
  15208. __webpack_require__.r(__webpack_exports__);
  15209. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  15210. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  15211. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  15212. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  15213. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  15214. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  15215. /* harmony import */ var _vc_resize_observer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-resize-observer */ "./components/vc-resize-observer/index.jsx");
  15216. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  15217. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  15218. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
  15219. /* harmony import */ var _calculateNodeHeight__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./calculateNodeHeight */ "./components/input/calculateNodeHeight.js");
  15220. /* harmony import */ var _util_raf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/raf */ "./components/_util/raf.js");
  15221. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  15222. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  15223. /* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
  15224. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  15225. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  15226. var RESIZE_STATUS_NONE = 0;
  15227. var RESIZE_STATUS_RESIZING = 1;
  15228. var RESIZE_STATUS_RESIZED = 2;
  15229. var TextAreaProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_10__["default"], {
  15230. autosize: _util_vue_types__WEBPACK_IMPORTED_MODULE_11__["default"].oneOfType([Object, Boolean]),
  15231. autoSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_11__["default"].oneOfType([Object, Boolean])
  15232. });
  15233. var ResizableTextArea = {
  15234. name: 'ResizableTextArea',
  15235. props: TextAreaProps,
  15236. data: function data() {
  15237. return {
  15238. textareaStyles: {},
  15239. resizeStatus: RESIZE_STATUS_NONE
  15240. };
  15241. },
  15242. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__["default"]],
  15243. mounted: function mounted() {
  15244. var _this = this;
  15245. this.$nextTick(function () {
  15246. _this.resizeTextarea();
  15247. });
  15248. },
  15249. beforeDestroy: function beforeDestroy() {
  15250. _util_raf__WEBPACK_IMPORTED_MODULE_7__["default"].cancel(this.nextFrameActionId);
  15251. _util_raf__WEBPACK_IMPORTED_MODULE_7__["default"].cancel(this.resizeFrameId);
  15252. },
  15253. watch: {
  15254. value: function value() {
  15255. var _this2 = this;
  15256. this.$nextTick(function () {
  15257. _this2.resizeTextarea();
  15258. });
  15259. }
  15260. },
  15261. methods: {
  15262. handleResize: function handleResize(size) {
  15263. var resizeStatus = this.$data.resizeStatus;
  15264. var autoSize = this.$props.autoSize;
  15265. if (resizeStatus !== RESIZE_STATUS_NONE) {
  15266. return;
  15267. }
  15268. this.$emit('resize', size);
  15269. if (autoSize) {
  15270. this.resizeOnNextFrame();
  15271. }
  15272. },
  15273. resizeOnNextFrame: function resizeOnNextFrame() {
  15274. _util_raf__WEBPACK_IMPORTED_MODULE_7__["default"].cancel(this.nextFrameActionId);
  15275. this.nextFrameActionId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_7__["default"])(this.resizeTextarea);
  15276. },
  15277. resizeTextarea: function resizeTextarea() {
  15278. var _this3 = this;
  15279. var autoSize = this.$props.autoSize || this.$props.autosize;
  15280. if (!autoSize || !this.$refs.textArea) {
  15281. return;
  15282. }
  15283. var minRows = autoSize.minRows,
  15284. maxRows = autoSize.maxRows;
  15285. var textareaStyles = Object(_calculateNodeHeight__WEBPACK_IMPORTED_MODULE_6__["default"])(this.$refs.textArea, false, minRows, maxRows);
  15286. this.setState({ textareaStyles: textareaStyles, resizeStatus: RESIZE_STATUS_RESIZING }, function () {
  15287. _util_raf__WEBPACK_IMPORTED_MODULE_7__["default"].cancel(_this3.resizeFrameId);
  15288. _this3.resizeFrameId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_7__["default"])(function () {
  15289. _this3.setState({ resizeStatus: RESIZE_STATUS_RESIZED }, function () {
  15290. _this3.resizeFrameId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_7__["default"])(function () {
  15291. _this3.setState({ resizeStatus: RESIZE_STATUS_NONE });
  15292. _this3.fixFirefoxAutoScroll();
  15293. });
  15294. });
  15295. });
  15296. });
  15297. },
  15298. // https://github.com/ant-design/ant-design/issues/21870
  15299. fixFirefoxAutoScroll: function fixFirefoxAutoScroll() {
  15300. try {
  15301. if (document.activeElement === this.$refs.textArea) {
  15302. var currentStart = this.$refs.textArea.selectionStart;
  15303. var currentEnd = this.$refs.textArea.selectionEnd;
  15304. this.$refs.textArea.setSelectionRange(currentStart, currentEnd);
  15305. }
  15306. } catch (e) {
  15307. // Fix error in Chrome:
  15308. // Failed to read the 'selectionStart' property from 'HTMLInputElement'
  15309. // http://stackoverflow.com/q/21177489/3040605
  15310. }
  15311. },
  15312. renderTextArea: function renderTextArea() {
  15313. var h = this.$createElement;
  15314. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
  15315. var prefixCls = props.prefixCls,
  15316. autoSize = props.autoSize,
  15317. autosize = props.autosize,
  15318. disabled = props.disabled;
  15319. var _$data = this.$data,
  15320. textareaStyles = _$data.textareaStyles,
  15321. resizeStatus = _$data.resizeStatus;
  15322. Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(autosize === undefined, 'Input.TextArea', 'autosize is deprecated, please use autoSize instead.');
  15323. var otherProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(props, ['prefixCls', 'autoSize', 'autosize', 'defaultValue', 'allowClear', 'type', 'lazy', 'value']);
  15324. var cls = classnames__WEBPACK_IMPORTED_MODULE_5___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-disabled', disabled));
  15325. var domProps = {};
  15326. // Fix https://github.com/ant-design/ant-design/issues/6776
  15327. // Make sure it could be reset when using form.getFieldDecorator
  15328. if ('value' in props) {
  15329. domProps.value = props.value || '';
  15330. }
  15331. var style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, textareaStyles, resizeStatus === RESIZE_STATUS_RESIZING ? { overflowX: 'hidden', overflowY: 'hidden' } : null);
  15332. var textareaProps = {
  15333. attrs: otherProps,
  15334. domProps: domProps,
  15335. style: style,
  15336. 'class': cls,
  15337. on: Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this), 'pressEnter'),
  15338. directives: [{
  15339. name: 'ant-input'
  15340. }]
  15341. };
  15342. return h(
  15343. _vc_resize_observer__WEBPACK_IMPORTED_MODULE_3__["default"],
  15344. {
  15345. on: {
  15346. 'resize': this.handleResize
  15347. },
  15348. attrs: { disabled: !(autoSize || autosize) }
  15349. },
  15350. [h('textarea', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([textareaProps, { ref: 'textArea' }]))]
  15351. );
  15352. }
  15353. },
  15354. render: function render() {
  15355. return this.renderTextArea();
  15356. }
  15357. };
  15358. /* harmony default export */ __webpack_exports__["default"] = (ResizableTextArea);
  15359. /***/ }),
  15360. /***/ "./components/input/Search.jsx":
  15361. /*!*************************************!*\
  15362. !*** ./components/input/Search.jsx ***!
  15363. \*************************************/
  15364. /*! exports provided: default */
  15365. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15366. "use strict";
  15367. __webpack_require__.r(__webpack_exports__);
  15368. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  15369. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  15370. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  15371. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  15372. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  15373. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  15374. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  15375. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  15376. /* harmony import */ var is_mobile__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! is-mobile */ "./node_modules/is-mobile/index.js");
  15377. /* harmony import */ var is_mobile__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(is_mobile__WEBPACK_IMPORTED_MODULE_4__);
  15378. /* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
  15379. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  15380. /* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
  15381. /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
  15382. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  15383. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  15384. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  15385. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  15386. /* harmony default export */ __webpack_exports__["default"] = ({
  15387. name: 'AInputSearch',
  15388. inheritAttrs: false,
  15389. model: {
  15390. prop: 'value',
  15391. event: 'change.value'
  15392. },
  15393. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_7__["default"], {
  15394. // 不能设置默认值 https://github.com/vueComponent/ant-design-vue/issues/1916
  15395. enterButton: _util_vue_types__WEBPACK_IMPORTED_MODULE_10__["default"].any
  15396. }),
  15397. inject: {
  15398. configProvider: { 'default': function _default() {
  15399. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
  15400. } }
  15401. },
  15402. methods: {
  15403. onChange: function onChange(e) {
  15404. if (e && e.target && e.type === 'click') {
  15405. this.$emit('search', e.target.value, e);
  15406. }
  15407. this.$emit('change', e);
  15408. },
  15409. onSearch: function onSearch(e) {
  15410. if (this.loading || this.disabled) {
  15411. return;
  15412. }
  15413. this.$emit('search', this.$refs.input.stateValue, e);
  15414. if (!Object(is_mobile__WEBPACK_IMPORTED_MODULE_4__["isMobile"])({ tablet: true })) {
  15415. this.$refs.input.focus();
  15416. }
  15417. },
  15418. focus: function focus() {
  15419. this.$refs.input.focus();
  15420. },
  15421. blur: function blur() {
  15422. this.$refs.input.blur();
  15423. },
  15424. renderLoading: function renderLoading(prefixCls) {
  15425. var h = this.$createElement;
  15426. var size = this.$props.size;
  15427. var enterButton = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'enterButton');
  15428. // 兼容 <a-input-search enterButton />, 因enterButton类型为 any,此类写法 enterButton 为空字符串
  15429. enterButton = enterButton || enterButton === '';
  15430. if (enterButton) {
  15431. return h(
  15432. _button__WEBPACK_IMPORTED_MODULE_8__["default"],
  15433. { 'class': prefixCls + '-button', attrs: { type: 'primary', size: size },
  15434. key: 'enterButton' },
  15435. [h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
  15436. attrs: { type: 'loading' }
  15437. })]
  15438. );
  15439. }
  15440. return h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { 'class': prefixCls + '-icon', attrs: { type: 'loading' },
  15441. key: 'loadingIcon' });
  15442. },
  15443. renderSuffix: function renderSuffix(prefixCls) {
  15444. var h = this.$createElement;
  15445. var loading = this.loading;
  15446. var suffix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'suffix');
  15447. var enterButton = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'enterButton');
  15448. // 兼容 <a-input-search enterButton />, 因enterButton类型为 any,此类写法 enterButton 为空字符串
  15449. enterButton = enterButton || enterButton === '';
  15450. if (loading && !enterButton) {
  15451. return [suffix, this.renderLoading(prefixCls)];
  15452. }
  15453. if (enterButton) return suffix;
  15454. var icon = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { 'class': prefixCls + '-icon', attrs: { type: 'search' },
  15455. key: 'searchIcon', on: {
  15456. 'click': this.onSearch
  15457. }
  15458. });
  15459. if (suffix) {
  15460. // let cloneSuffix = suffix;
  15461. // if (isValidElement(cloneSuffix) && !cloneSuffix.key) {
  15462. // cloneSuffix = cloneElement(cloneSuffix, {
  15463. // key: 'originSuffix',
  15464. // });
  15465. // }
  15466. return [suffix, icon];
  15467. }
  15468. return icon;
  15469. },
  15470. renderAddonAfter: function renderAddonAfter(prefixCls) {
  15471. var h = this.$createElement;
  15472. var size = this.size,
  15473. disabled = this.disabled,
  15474. loading = this.loading;
  15475. var btnClassName = prefixCls + '-button';
  15476. var enterButton = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'enterButton');
  15477. enterButton = enterButton || enterButton === '';
  15478. var addonAfter = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'addonAfter');
  15479. if (loading && enterButton) {
  15480. return [this.renderLoading(prefixCls), addonAfter];
  15481. }
  15482. if (!enterButton) return addonAfter;
  15483. var enterButtonAsElement = Array.isArray(enterButton) ? enterButton[0] : enterButton;
  15484. var button = void 0;
  15485. var isAntdButton = enterButtonAsElement.componentOptions && enterButtonAsElement.componentOptions.Ctor.extendOptions.__ANT_BUTTON;
  15486. if (enterButtonAsElement.tag === 'button' || isAntdButton) {
  15487. button = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_9__["cloneElement"])(enterButtonAsElement, {
  15488. key: 'enterButton',
  15489. 'class': isAntdButton ? btnClassName : '',
  15490. props: isAntdButton ? { size: size } : {},
  15491. on: {
  15492. click: this.onSearch
  15493. }
  15494. });
  15495. } else {
  15496. button = h(
  15497. _button__WEBPACK_IMPORTED_MODULE_8__["default"],
  15498. {
  15499. 'class': btnClassName,
  15500. attrs: { type: 'primary',
  15501. size: size,
  15502. disabled: disabled
  15503. },
  15504. key: 'enterButton',
  15505. on: {
  15506. 'click': this.onSearch
  15507. }
  15508. },
  15509. [enterButton === true || enterButton === '' ? h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
  15510. attrs: { type: 'search' }
  15511. }) : enterButton]
  15512. );
  15513. }
  15514. if (addonAfter) {
  15515. return [button, addonAfter];
  15516. }
  15517. return button;
  15518. }
  15519. },
  15520. render: function render() {
  15521. var h = arguments[0];
  15522. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this),
  15523. customizePrefixCls = _getOptionProps.prefixCls,
  15524. customizeInputPrefixCls = _getOptionProps.inputPrefixCls,
  15525. size = _getOptionProps.size,
  15526. loading = _getOptionProps.loading,
  15527. others = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls', 'inputPrefixCls', 'size', 'loading']);
  15528. var getPrefixCls = this.configProvider.getPrefixCls;
  15529. var prefixCls = getPrefixCls('input-search', customizePrefixCls);
  15530. var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
  15531. var enterButton = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'enterButton');
  15532. var addonBefore = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'addonBefore');
  15533. enterButton = enterButton || enterButton === '';
  15534. var inputClassName = void 0;
  15535. if (enterButton) {
  15536. var _classNames;
  15537. inputClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-enter-button', !!enterButton), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-' + size, !!size), _classNames));
  15538. } else {
  15539. inputClassName = prefixCls;
  15540. }
  15541. var on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getListeners"])(this));
  15542. delete on.search;
  15543. var inputProps = {
  15544. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, others, {
  15545. prefixCls: inputPrefixCls,
  15546. size: size,
  15547. suffix: this.renderSuffix(prefixCls),
  15548. prefix: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'prefix'),
  15549. addonAfter: this.renderAddonAfter(prefixCls),
  15550. addonBefore: addonBefore,
  15551. className: inputClassName
  15552. }),
  15553. attrs: this.$attrs,
  15554. ref: 'input',
  15555. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  15556. pressEnter: this.onSearch
  15557. }, on, {
  15558. change: this.onChange
  15559. })
  15560. };
  15561. return h(_Input__WEBPACK_IMPORTED_MODULE_5__["default"], inputProps);
  15562. }
  15563. });
  15564. /***/ }),
  15565. /***/ "./components/input/TextArea.jsx":
  15566. /*!***************************************!*\
  15567. !*** ./components/input/TextArea.jsx ***!
  15568. \***************************************/
  15569. /*! exports provided: default */
  15570. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15571. "use strict";
  15572. __webpack_require__.r(__webpack_exports__);
  15573. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  15574. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  15575. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  15576. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  15577. /* harmony import */ var _ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ClearableLabeledInput */ "./components/input/ClearableLabeledInput.jsx");
  15578. /* harmony import */ var _ResizableTextArea__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ResizableTextArea */ "./components/input/ResizableTextArea.jsx");
  15579. /* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
  15580. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  15581. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  15582. /* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
  15583. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  15584. var TextAreaProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_4__["default"], {
  15585. autosize: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([Object, Boolean]),
  15586. autoSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([Object, Boolean])
  15587. });
  15588. /* harmony default export */ __webpack_exports__["default"] = ({
  15589. name: 'ATextarea',
  15590. inheritAttrs: false,
  15591. model: {
  15592. prop: 'value',
  15593. event: 'change.value'
  15594. },
  15595. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, TextAreaProps),
  15596. inject: {
  15597. configProvider: { 'default': function _default() {
  15598. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
  15599. } }
  15600. },
  15601. data: function data() {
  15602. var value = typeof this.value === 'undefined' ? this.defaultValue : this.value;
  15603. return {
  15604. stateValue: typeof value === 'undefined' ? '' : value
  15605. };
  15606. },
  15607. computed: {},
  15608. watch: {
  15609. value: function value(val) {
  15610. this.stateValue = val;
  15611. }
  15612. },
  15613. mounted: function mounted() {
  15614. var _this = this;
  15615. this.$nextTick(function () {
  15616. if (_this.autoFocus) {
  15617. _this.focus();
  15618. }
  15619. });
  15620. },
  15621. methods: {
  15622. setValue: function setValue(value, callback) {
  15623. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'value')) {
  15624. this.stateValue = value;
  15625. this.$nextTick(function () {
  15626. callback && callback();
  15627. });
  15628. } else {
  15629. // 不在严格受控
  15630. // https://github.com/vueComponent/ant-design-vue/issues/2207,modal 是 新 new 实例,更新队列和当前不在同一个更新队列中
  15631. // this.$forceUpdate();
  15632. }
  15633. },
  15634. handleKeyDown: function handleKeyDown(e) {
  15635. if (e.keyCode === 13) {
  15636. this.$emit('pressEnter', e);
  15637. }
  15638. this.$emit('keydown', e);
  15639. },
  15640. onChange: function onChange(e) {
  15641. this.$emit('change.value', e.target.value);
  15642. this.$emit('change', e);
  15643. this.$emit('input', e);
  15644. },
  15645. handleChange: function handleChange(e) {
  15646. var _this2 = this;
  15647. var _e$target = e.target,
  15648. value = _e$target.value,
  15649. composing = _e$target.composing;
  15650. if ((e.isComposing || composing) && this.lazy || this.stateValue === value) return;
  15651. this.setValue(e.target.value, function () {
  15652. _this2.$refs.resizableTextArea.resizeTextarea();
  15653. });
  15654. Object(_Input__WEBPACK_IMPORTED_MODULE_7__["resolveOnChange"])(this.$refs.resizableTextArea.$refs.textArea, e, this.onChange);
  15655. },
  15656. focus: function focus() {
  15657. this.$refs.resizableTextArea.$refs.textArea.focus();
  15658. },
  15659. blur: function blur() {
  15660. this.$refs.resizableTextArea.$refs.textArea.blur();
  15661. },
  15662. handleReset: function handleReset(e) {
  15663. var _this3 = this;
  15664. this.setValue('', function () {
  15665. _this3.$refs.resizableTextArea.renderTextArea();
  15666. _this3.focus();
  15667. });
  15668. Object(_Input__WEBPACK_IMPORTED_MODULE_7__["resolveOnChange"])(this.$refs.resizableTextArea.$refs.textArea, e, this.onChange);
  15669. },
  15670. renderTextArea: function renderTextArea(prefixCls) {
  15671. var h = this.$createElement;
  15672. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  15673. var resizeProps = {
  15674. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  15675. prefixCls: prefixCls
  15676. }),
  15677. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), {
  15678. input: this.handleChange,
  15679. keydown: this.handleKeyDown
  15680. }),
  15681. attrs: this.$attrs
  15682. };
  15683. return h(_ResizableTextArea__WEBPACK_IMPORTED_MODULE_3__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([resizeProps, { ref: 'resizableTextArea' }]));
  15684. }
  15685. },
  15686. render: function render() {
  15687. var h = arguments[0];
  15688. var stateValue = this.stateValue,
  15689. customizePrefixCls = this.prefixCls;
  15690. var getPrefixCls = this.configProvider.getPrefixCls;
  15691. var prefixCls = getPrefixCls('input', customizePrefixCls);
  15692. var props = {
  15693. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this), {
  15694. prefixCls: prefixCls,
  15695. inputType: 'text',
  15696. value: Object(_Input__WEBPACK_IMPORTED_MODULE_7__["fixControlledValue"])(stateValue),
  15697. element: this.renderTextArea(prefixCls),
  15698. handleReset: this.handleReset
  15699. }),
  15700. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
  15701. };
  15702. return h(_ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_2__["default"], props);
  15703. }
  15704. });
  15705. /***/ }),
  15706. /***/ "./components/input/calculateNodeHeight.js":
  15707. /*!*************************************************!*\
  15708. !*** ./components/input/calculateNodeHeight.js ***!
  15709. \*************************************************/
  15710. /*! exports provided: calculateNodeStyling, default */
  15711. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15712. "use strict";
  15713. __webpack_require__.r(__webpack_exports__);
  15714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateNodeStyling", function() { return calculateNodeStyling; });
  15715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return calculateNodeHeight; });
  15716. // Thanks to https://github.com/andreypopp/react-textarea-autosize/
  15717. /**
  15718. * calculateNodeHeight(uiTextNode, useCache = false)
  15719. */
  15720. var HIDDEN_TEXTAREA_STYLE = '\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n';
  15721. var SIZING_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'font-variant', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
  15722. var computedStyleCache = {};
  15723. var hiddenTextarea = void 0;
  15724. function calculateNodeStyling(node) {
  15725. var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  15726. var nodeRef = node.getAttribute('id') || node.getAttribute('data-reactid') || node.getAttribute('name');
  15727. if (useCache && computedStyleCache[nodeRef]) {
  15728. return computedStyleCache[nodeRef];
  15729. }
  15730. var style = window.getComputedStyle(node);
  15731. var boxSizing = style.getPropertyValue('box-sizing') || style.getPropertyValue('-moz-box-sizing') || style.getPropertyValue('-webkit-box-sizing');
  15732. var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
  15733. var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
  15734. var sizingStyle = SIZING_STYLE.map(function (name) {
  15735. return name + ':' + style.getPropertyValue(name);
  15736. }).join(';');
  15737. var nodeInfo = {
  15738. sizingStyle: sizingStyle,
  15739. paddingSize: paddingSize,
  15740. borderSize: borderSize,
  15741. boxSizing: boxSizing
  15742. };
  15743. if (useCache && nodeRef) {
  15744. computedStyleCache[nodeRef] = nodeInfo;
  15745. }
  15746. return nodeInfo;
  15747. }
  15748. function calculateNodeHeight(uiTextNode) {
  15749. var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  15750. var minRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  15751. var maxRows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  15752. if (!hiddenTextarea) {
  15753. hiddenTextarea = document.createElement('textarea');
  15754. document.body.appendChild(hiddenTextarea);
  15755. }
  15756. // Fix wrap="off" issue
  15757. // https://github.com/ant-design/ant-design/issues/6577
  15758. if (uiTextNode.getAttribute('wrap')) {
  15759. hiddenTextarea.setAttribute('wrap', uiTextNode.getAttribute('wrap'));
  15760. } else {
  15761. hiddenTextarea.removeAttribute('wrap');
  15762. }
  15763. // Copy all CSS properties that have an impact on the height of the content in
  15764. // the textbox
  15765. var _calculateNodeStyling = calculateNodeStyling(uiTextNode, useCache),
  15766. paddingSize = _calculateNodeStyling.paddingSize,
  15767. borderSize = _calculateNodeStyling.borderSize,
  15768. boxSizing = _calculateNodeStyling.boxSizing,
  15769. sizingStyle = _calculateNodeStyling.sizingStyle;
  15770. // Need to have the overflow attribute to hide the scrollbar otherwise
  15771. // text-lines will not calculated properly as the shadow will technically be
  15772. // narrower for content
  15773. hiddenTextarea.setAttribute('style', sizingStyle + ';' + HIDDEN_TEXTAREA_STYLE);
  15774. hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || '';
  15775. var minHeight = Number.MIN_SAFE_INTEGER;
  15776. var maxHeight = Number.MAX_SAFE_INTEGER;
  15777. var height = hiddenTextarea.scrollHeight;
  15778. var overflowY = void 0;
  15779. if (boxSizing === 'border-box') {
  15780. // border-box: add border, since height = content + padding + border
  15781. height += borderSize;
  15782. } else if (boxSizing === 'content-box') {
  15783. // remove padding, since height = content
  15784. height -= paddingSize;
  15785. }
  15786. if (minRows !== null || maxRows !== null) {
  15787. // measure height of a textarea with a single row
  15788. hiddenTextarea.value = ' ';
  15789. var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
  15790. if (minRows !== null) {
  15791. minHeight = singleRowHeight * minRows;
  15792. if (boxSizing === 'border-box') {
  15793. minHeight = minHeight + paddingSize + borderSize;
  15794. }
  15795. height = Math.max(minHeight, height);
  15796. }
  15797. if (maxRows !== null) {
  15798. maxHeight = singleRowHeight * maxRows;
  15799. if (boxSizing === 'border-box') {
  15800. maxHeight = maxHeight + paddingSize + borderSize;
  15801. }
  15802. overflowY = height > maxHeight ? '' : 'hidden';
  15803. height = Math.min(maxHeight, height);
  15804. }
  15805. }
  15806. return {
  15807. height: height + 'px',
  15808. minHeight: minHeight + 'px',
  15809. maxHeight: maxHeight + 'px',
  15810. overflowY: overflowY
  15811. };
  15812. }
  15813. /***/ }),
  15814. /***/ "./components/input/index.js":
  15815. /*!***********************************!*\
  15816. !*** ./components/input/index.js ***!
  15817. \***********************************/
  15818. /*! exports provided: default */
  15819. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15820. "use strict";
  15821. __webpack_require__.r(__webpack_exports__);
  15822. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
  15823. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
  15824. /* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
  15825. /* harmony import */ var _Group__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Group */ "./components/input/Group.jsx");
  15826. /* harmony import */ var _Search__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Search */ "./components/input/Search.jsx");
  15827. /* harmony import */ var _TextArea__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TextArea */ "./components/input/TextArea.jsx");
  15828. /* harmony import */ var _Password__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Password */ "./components/input/Password.jsx");
  15829. /* harmony import */ var _util_antInputDirective__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/antInputDirective */ "./components/_util/antInputDirective.js");
  15830. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  15831. vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(_util_antInputDirective__WEBPACK_IMPORTED_MODULE_6__["default"]);
  15832. _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Group = _Group__WEBPACK_IMPORTED_MODULE_2__["default"];
  15833. _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Search = _Search__WEBPACK_IMPORTED_MODULE_3__["default"];
  15834. _Input__WEBPACK_IMPORTED_MODULE_1__["default"].TextArea = _TextArea__WEBPACK_IMPORTED_MODULE_4__["default"];
  15835. _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Password = _Password__WEBPACK_IMPORTED_MODULE_5__["default"];
  15836. /* istanbul ignore next */
  15837. _Input__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
  15838. Vue.use(_base__WEBPACK_IMPORTED_MODULE_7__["default"]);
  15839. Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"]);
  15840. Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].Group.name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Group);
  15841. Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].Search.name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Search);
  15842. Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].TextArea.name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"].TextArea);
  15843. Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].Password.name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Password);
  15844. };
  15845. /* harmony default export */ __webpack_exports__["default"] = (_Input__WEBPACK_IMPORTED_MODULE_1__["default"]);
  15846. /***/ }),
  15847. /***/ "./components/input/inputProps.js":
  15848. /*!****************************************!*\
  15849. !*** ./components/input/inputProps.js ***!
  15850. \****************************************/
  15851. /*! exports provided: default */
  15852. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15853. "use strict";
  15854. __webpack_require__.r(__webpack_exports__);
  15855. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  15856. /* harmony default export */ __webpack_exports__["default"] = ({
  15857. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  15858. inputPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  15859. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
  15860. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
  15861. placeholder: [String, Number],
  15862. type: {
  15863. 'default': 'text',
  15864. type: String
  15865. },
  15866. name: String,
  15867. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['small', 'large', 'default']),
  15868. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  15869. readOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  15870. addonBefore: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  15871. addonAfter: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  15872. // onPressEnter?: React.FormEventHandler<any>;
  15873. // onKeyDown?: React.FormEventHandler<any>;
  15874. // onChange?: React.ChangeEventHandler<HTMLInputElement>;
  15875. // onClick?: React.FormEventHandler<any>;
  15876. // onFocus?: React.FormEventHandler<any>;
  15877. // onBlur?: React.FormEventHandler<any>;
  15878. prefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  15879. suffix: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  15880. // spellCheck: Boolean,
  15881. autoFocus: Boolean,
  15882. allowClear: Boolean,
  15883. lazy: {
  15884. 'default': true,
  15885. type: Boolean
  15886. },
  15887. maxLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  15888. loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  15889. className: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string
  15890. });
  15891. /***/ }),
  15892. /***/ "./components/input/style/index.js":
  15893. /*!*****************************************!*\
  15894. !*** ./components/input/style/index.js ***!
  15895. \*****************************************/
  15896. /*! no exports provided */
  15897. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15898. "use strict";
  15899. __webpack_require__.r(__webpack_exports__);
  15900. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  15901. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  15902. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/input/style/index.less");
  15903. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  15904. /* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
  15905. // style dependencies
  15906. /***/ }),
  15907. /***/ "./components/input/style/index.less":
  15908. /*!*******************************************!*\
  15909. !*** ./components/input/style/index.less ***!
  15910. \*******************************************/
  15911. /*! no static exports found */
  15912. /***/ (function(module, exports, __webpack_require__) {
  15913. // extracted by mini-css-extract-plugin
  15914. /***/ }),
  15915. /***/ "./components/layout/Sider.jsx":
  15916. /*!*************************************!*\
  15917. !*** ./components/layout/Sider.jsx ***!
  15918. \*************************************/
  15919. /*! exports provided: SiderProps, default */
  15920. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  15921. "use strict";
  15922. __webpack_require__.r(__webpack_exports__);
  15923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SiderProps", function() { return SiderProps; });
  15924. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  15925. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  15926. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  15927. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
  15928. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  15929. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  15930. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  15931. /* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/isNumeric */ "./components/_util/isNumeric.js");
  15932. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  15933. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  15934. // matchMedia polyfill for
  15935. // https://github.com/WickyNilliams/enquire.js/issues/82
  15936. if (typeof window !== 'undefined') {
  15937. var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) {
  15938. return {
  15939. media: mediaQuery,
  15940. matches: false,
  15941. addListener: function addListener() {},
  15942. removeListener: function removeListener() {}
  15943. };
  15944. };
  15945. window.matchMedia = window.matchMedia || matchMediaPolyfill;
  15946. }
  15947. var dimensionMaxMap = {
  15948. xs: '479.98px',
  15949. sm: '575.98px',
  15950. md: '767.98px',
  15951. lg: '991.98px',
  15952. xl: '1199.98px',
  15953. xxl: '1599.98px'
  15954. };
  15955. // export type CollapseType = 'clickTrigger' | 'responsive';
  15956. var SiderProps = {
  15957. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  15958. collapsible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  15959. collapsed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  15960. defaultCollapsed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  15961. reverseArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  15962. // onCollapse?: (collapsed: boolean, type: CollapseType) => void;
  15963. zeroWidthTriggerStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  15964. trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  15965. width: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string]),
  15966. collapsedWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string]),
  15967. breakpoint: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['xs', 'sm', 'md', 'lg', 'xl', 'xxl']),
  15968. theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['light', 'dark']).def('dark')
  15969. };
  15970. // export interface SiderState {
  15971. // collapsed?: boolean;
  15972. // below: boolean;
  15973. // belowShow?: boolean;
  15974. // }
  15975. // export interface SiderContext {
  15976. // siderCollapsed: boolean;
  15977. // }
  15978. var generateId = function () {
  15979. var i = 0;
  15980. return function () {
  15981. var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  15982. i += 1;
  15983. return '' + prefix + i;
  15984. };
  15985. }();
  15986. /* harmony default export */ __webpack_exports__["default"] = ({
  15987. name: 'ALayoutSider',
  15988. __ANT_LAYOUT_SIDER: true,
  15989. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  15990. model: {
  15991. prop: 'collapsed',
  15992. event: 'collapse'
  15993. },
  15994. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(SiderProps, {
  15995. collapsible: false,
  15996. defaultCollapsed: false,
  15997. reverseArrow: false,
  15998. width: 200,
  15999. collapsedWidth: 80
  16000. }),
  16001. data: function data() {
  16002. this.uniqueId = generateId('ant-sider-');
  16003. var matchMedia = void 0;
  16004. if (typeof window !== 'undefined') {
  16005. matchMedia = window.matchMedia;
  16006. }
  16007. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this);
  16008. if (matchMedia && props.breakpoint && props.breakpoint in dimensionMaxMap) {
  16009. this.mql = matchMedia('(max-width: ' + dimensionMaxMap[props.breakpoint] + ')');
  16010. }
  16011. var sCollapsed = void 0;
  16012. if ('collapsed' in props) {
  16013. sCollapsed = props.collapsed;
  16014. } else {
  16015. sCollapsed = props.defaultCollapsed;
  16016. }
  16017. return {
  16018. sCollapsed: sCollapsed,
  16019. below: false,
  16020. belowShow: false
  16021. };
  16022. },
  16023. provide: function provide() {
  16024. return {
  16025. layoutSiderContext: this // menu组件中使用
  16026. };
  16027. },
  16028. inject: {
  16029. siderHook: { 'default': function _default() {
  16030. return {};
  16031. } },
  16032. configProvider: { 'default': function _default() {
  16033. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
  16034. } }
  16035. },
  16036. // getChildContext() {
  16037. // return {
  16038. // siderCollapsed: this.state.collapsed,
  16039. // collapsedWidth: this.props.collapsedWidth,
  16040. // };
  16041. // }
  16042. watch: {
  16043. collapsed: function collapsed(val) {
  16044. this.setState({
  16045. sCollapsed: val
  16046. });
  16047. }
  16048. },
  16049. mounted: function mounted() {
  16050. var _this = this;
  16051. this.$nextTick(function () {
  16052. if (_this.mql) {
  16053. _this.mql.addListener(_this.responsiveHandler);
  16054. _this.responsiveHandler(_this.mql);
  16055. }
  16056. if (_this.siderHook.addSider) {
  16057. _this.siderHook.addSider(_this.uniqueId);
  16058. }
  16059. });
  16060. },
  16061. beforeDestroy: function beforeDestroy() {
  16062. if (this.mql) {
  16063. this.mql.removeListener(this.responsiveHandler);
  16064. }
  16065. if (this.siderHook.removeSider) {
  16066. this.siderHook.removeSider(this.uniqueId);
  16067. }
  16068. },
  16069. methods: {
  16070. responsiveHandler: function responsiveHandler(mql) {
  16071. this.setState({ below: mql.matches });
  16072. this.$emit('breakpoint', mql.matches);
  16073. if (this.sCollapsed !== mql.matches) {
  16074. this.setCollapsed(mql.matches, 'responsive');
  16075. }
  16076. },
  16077. setCollapsed: function setCollapsed(collapsed, type) {
  16078. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'collapsed')) {
  16079. this.setState({
  16080. sCollapsed: collapsed
  16081. });
  16082. }
  16083. this.$emit('collapse', collapsed, type);
  16084. },
  16085. toggle: function toggle() {
  16086. var collapsed = !this.sCollapsed;
  16087. this.setCollapsed(collapsed, 'clickTrigger');
  16088. },
  16089. belowShowChange: function belowShowChange() {
  16090. this.setState({ belowShow: !this.belowShow });
  16091. }
  16092. },
  16093. render: function render() {
  16094. var _classNames;
  16095. var h = arguments[0];
  16096. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this),
  16097. customizePrefixCls = _getOptionProps.prefixCls,
  16098. theme = _getOptionProps.theme,
  16099. collapsible = _getOptionProps.collapsible,
  16100. reverseArrow = _getOptionProps.reverseArrow,
  16101. width = _getOptionProps.width,
  16102. collapsedWidth = _getOptionProps.collapsedWidth,
  16103. zeroWidthTriggerStyle = _getOptionProps.zeroWidthTriggerStyle;
  16104. var getPrefixCls = this.configProvider.getPrefixCls;
  16105. var prefixCls = getPrefixCls('layout-sider', customizePrefixCls);
  16106. var trigger = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'trigger');
  16107. var rawWidth = this.sCollapsed ? collapsedWidth : width;
  16108. // use "px" as fallback unit for width
  16109. var siderWidth = Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_5__["default"])(rawWidth) ? rawWidth + 'px' : String(rawWidth);
  16110. // special trigger when collapsedWidth == 0
  16111. var zeroWidthTrigger = parseFloat(String(collapsedWidth || 0)) === 0 ? h(
  16112. 'span',
  16113. {
  16114. on: {
  16115. 'click': this.toggle
  16116. },
  16117. 'class': prefixCls + '-zero-width-trigger ' + prefixCls + '-zero-width-trigger-' + (reverseArrow ? 'right' : 'left'),
  16118. style: zeroWidthTriggerStyle
  16119. },
  16120. [h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
  16121. attrs: { type: 'bars' }
  16122. })]
  16123. ) : null;
  16124. var iconObj = {
  16125. expanded: reverseArrow ? h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
  16126. attrs: { type: 'right' }
  16127. }) : h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
  16128. attrs: { type: 'left' }
  16129. }),
  16130. collapsed: reverseArrow ? h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
  16131. attrs: { type: 'left' }
  16132. }) : h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
  16133. attrs: { type: 'right' }
  16134. })
  16135. };
  16136. var status = this.sCollapsed ? 'collapsed' : 'expanded';
  16137. var defaultTrigger = iconObj[status];
  16138. var triggerDom = trigger !== null ? zeroWidthTrigger || h(
  16139. 'div',
  16140. { 'class': prefixCls + '-trigger', on: {
  16141. 'click': this.toggle
  16142. },
  16143. style: { width: siderWidth } },
  16144. [trigger || defaultTrigger]
  16145. ) : null;
  16146. var divStyle = {
  16147. // ...style,
  16148. flex: '0 0 ' + siderWidth,
  16149. maxWidth: siderWidth, // Fix width transition bug in IE11
  16150. minWidth: siderWidth, // https://github.com/ant-design/ant-design/issues/6349
  16151. width: siderWidth
  16152. };
  16153. var siderCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, prefixCls + '-' + theme, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-collapsed', !!this.sCollapsed), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-has-trigger', collapsible && trigger !== null && !zeroWidthTrigger), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-below', !!this.below), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-zero-width', parseFloat(siderWidth) === 0), _classNames));
  16154. var divProps = {
  16155. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this),
  16156. 'class': siderCls,
  16157. style: divStyle
  16158. };
  16159. return h(
  16160. 'aside',
  16161. divProps,
  16162. [h(
  16163. 'div',
  16164. { 'class': prefixCls + '-children' },
  16165. [this.$slots['default']]
  16166. ), collapsible || this.below && zeroWidthTrigger ? triggerDom : null]
  16167. );
  16168. }
  16169. });
  16170. /***/ }),
  16171. /***/ "./components/layout/index.js":
  16172. /*!************************************!*\
  16173. !*** ./components/layout/index.js ***!
  16174. \************************************/
  16175. /*! exports provided: default */
  16176. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16177. "use strict";
  16178. __webpack_require__.r(__webpack_exports__);
  16179. /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ "./components/layout/layout.jsx");
  16180. /* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ "./components/layout/Sider.jsx");
  16181. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  16182. _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__["default"];
  16183. /* istanbul ignore next */
  16184. _layout__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  16185. Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
  16186. Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"]);
  16187. Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].Header.name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Header);
  16188. Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].Footer.name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Footer);
  16189. Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].Sider.name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Sider);
  16190. Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].Content.name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Content);
  16191. };
  16192. /* harmony default export */ __webpack_exports__["default"] = (_layout__WEBPACK_IMPORTED_MODULE_0__["default"]);
  16193. /***/ }),
  16194. /***/ "./components/layout/layout.jsx":
  16195. /*!**************************************!*\
  16196. !*** ./components/layout/layout.jsx ***!
  16197. \**************************************/
  16198. /*! exports provided: BasicProps, default */
  16199. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16200. "use strict";
  16201. __webpack_require__.r(__webpack_exports__);
  16202. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BasicProps", function() { return BasicProps; });
  16203. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  16204. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  16205. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  16206. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
  16207. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  16208. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  16209. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  16210. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  16211. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
  16212. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  16213. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  16214. var BasicProps = {
  16215. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  16216. hasSider: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].boolean,
  16217. tagName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
  16218. };
  16219. function generator(_ref) {
  16220. var suffixCls = _ref.suffixCls,
  16221. tagName = _ref.tagName,
  16222. name = _ref.name;
  16223. return function (BasicComponent) {
  16224. return {
  16225. name: name,
  16226. props: BasicComponent.props,
  16227. inject: {
  16228. configProvider: { 'default': function _default() {
  16229. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
  16230. } }
  16231. },
  16232. render: function render() {
  16233. var h = arguments[0];
  16234. var customizePrefixCls = this.$props.prefixCls;
  16235. var getPrefixCls = this.configProvider.getPrefixCls;
  16236. var prefixCls = getPrefixCls(suffixCls, customizePrefixCls);
  16237. var basicComponentProps = {
  16238. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  16239. prefixCls: prefixCls
  16240. }, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this), {
  16241. tagName: tagName
  16242. }),
  16243. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
  16244. };
  16245. return h(
  16246. BasicComponent,
  16247. basicComponentProps,
  16248. [this.$slots['default']]
  16249. );
  16250. }
  16251. };
  16252. };
  16253. }
  16254. var Basic = {
  16255. props: BasicProps,
  16256. render: function render() {
  16257. var h = arguments[0];
  16258. var prefixCls = this.prefixCls,
  16259. Tag = this.tagName,
  16260. $slots = this.$slots;
  16261. var divProps = {
  16262. 'class': prefixCls,
  16263. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
  16264. };
  16265. return h(
  16266. Tag,
  16267. divProps,
  16268. [$slots['default']]
  16269. );
  16270. }
  16271. };
  16272. var BasicLayout = {
  16273. props: BasicProps,
  16274. data: function data() {
  16275. return {
  16276. siders: []
  16277. };
  16278. },
  16279. provide: function provide() {
  16280. var _this = this;
  16281. return {
  16282. siderHook: {
  16283. addSider: function addSider(id) {
  16284. _this.siders = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(_this.siders), [id]);
  16285. },
  16286. removeSider: function removeSider(id) {
  16287. _this.siders = _this.siders.filter(function (currentId) {
  16288. return currentId !== id;
  16289. });
  16290. }
  16291. }
  16292. };
  16293. },
  16294. render: function render() {
  16295. var h = arguments[0];
  16296. var prefixCls = this.prefixCls,
  16297. $slots = this.$slots,
  16298. hasSider = this.hasSider,
  16299. Tag = this.tagName;
  16300. var divCls = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-has-sider', typeof hasSider === 'boolean' ? hasSider : this.siders.length > 0));
  16301. var divProps = {
  16302. 'class': divCls,
  16303. on: _util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"]
  16304. };
  16305. return h(
  16306. Tag,
  16307. divProps,
  16308. [$slots['default']]
  16309. );
  16310. }
  16311. };
  16312. var Layout = generator({
  16313. suffixCls: 'layout',
  16314. tagName: 'section',
  16315. name: 'ALayout'
  16316. })(BasicLayout);
  16317. var Header = generator({
  16318. suffixCls: 'layout-header',
  16319. tagName: 'header',
  16320. name: 'ALayoutHeader'
  16321. })(Basic);
  16322. var Footer = generator({
  16323. suffixCls: 'layout-footer',
  16324. tagName: 'footer',
  16325. name: 'ALayoutFooter'
  16326. })(Basic);
  16327. var Content = generator({
  16328. suffixCls: 'layout-content',
  16329. tagName: 'main',
  16330. name: 'ALayoutContent'
  16331. })(Basic);
  16332. Layout.Header = Header;
  16333. Layout.Footer = Footer;
  16334. Layout.Content = Content;
  16335. /* harmony default export */ __webpack_exports__["default"] = (Layout);
  16336. /***/ }),
  16337. /***/ "./components/layout/style/index.js":
  16338. /*!******************************************!*\
  16339. !*** ./components/layout/style/index.js ***!
  16340. \******************************************/
  16341. /*! no exports provided */
  16342. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16343. "use strict";
  16344. __webpack_require__.r(__webpack_exports__);
  16345. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  16346. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  16347. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/layout/style/index.less");
  16348. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  16349. /***/ }),
  16350. /***/ "./components/layout/style/index.less":
  16351. /*!********************************************!*\
  16352. !*** ./components/layout/style/index.less ***!
  16353. \********************************************/
  16354. /*! no static exports found */
  16355. /***/ (function(module, exports, __webpack_require__) {
  16356. // extracted by mini-css-extract-plugin
  16357. /***/ }),
  16358. /***/ "./components/list/Item.jsx":
  16359. /*!**********************************!*\
  16360. !*** ./components/list/Item.jsx ***!
  16361. \**********************************/
  16362. /*! exports provided: ListItemProps, ListItemMetaProps, Meta, default */
  16363. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16364. "use strict";
  16365. __webpack_require__.r(__webpack_exports__);
  16366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListItemProps", function() { return ListItemProps; });
  16367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListItemMetaProps", function() { return ListItemMetaProps; });
  16368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Meta", function() { return Meta; });
  16369. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  16370. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  16371. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  16372. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__);
  16373. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  16374. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  16375. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  16376. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  16377. /* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../grid */ "./components/grid/index.js");
  16378. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  16379. /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./index */ "./components/list/index.jsx");
  16380. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  16381. var ListItemProps = {
  16382. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  16383. extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  16384. actions: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any),
  16385. grid: _index__WEBPACK_IMPORTED_MODULE_7__["ListGridType"]
  16386. };
  16387. var ListItemMetaProps = {
  16388. avatar: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  16389. description: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  16390. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  16391. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any
  16392. };
  16393. var Meta = {
  16394. functional: true,
  16395. name: 'AListItemMeta',
  16396. __ANT_LIST_ITEM_META: true,
  16397. inject: {
  16398. configProvider: { 'default': function _default() {
  16399. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
  16400. } }
  16401. },
  16402. render: function render(h, context) {
  16403. var props = context.props,
  16404. slots = context.slots,
  16405. listeners = context.listeners,
  16406. injections = context.injections;
  16407. var slotsMap = slots();
  16408. var getPrefixCls = injections.configProvider.getPrefixCls;
  16409. var customizePrefixCls = props.prefixCls;
  16410. var prefixCls = getPrefixCls('list', customizePrefixCls);
  16411. var avatar = props.avatar || slotsMap.avatar;
  16412. var title = props.title || slotsMap.title;
  16413. var description = props.description || slotsMap.description;
  16414. var content = h(
  16415. 'div',
  16416. { 'class': prefixCls + '-item-meta-content' },
  16417. [title && h(
  16418. 'h4',
  16419. { 'class': prefixCls + '-item-meta-title' },
  16420. [title]
  16421. ), description && h(
  16422. 'div',
  16423. { 'class': prefixCls + '-item-meta-description' },
  16424. [description]
  16425. )]
  16426. );
  16427. return h(
  16428. 'div',
  16429. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ on: listeners }, { 'class': prefixCls + '-item-meta' }]),
  16430. [avatar && h(
  16431. 'div',
  16432. { 'class': prefixCls + '-item-meta-avatar' },
  16433. [avatar]
  16434. ), (title || description) && content]
  16435. );
  16436. }
  16437. };
  16438. function getGrid(grid, t) {
  16439. return grid[t] && Math.floor(24 / grid[t]);
  16440. }
  16441. /* harmony default export */ __webpack_exports__["default"] = ({
  16442. name: 'AListItem',
  16443. Meta: Meta,
  16444. props: ListItemProps,
  16445. inject: {
  16446. listContext: { 'default': function _default() {
  16447. return {};
  16448. } },
  16449. configProvider: { 'default': function _default() {
  16450. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
  16451. } }
  16452. },
  16453. methods: {
  16454. isItemContainsTextNodeAndNotSingular: function isItemContainsTextNodeAndNotSingular() {
  16455. var $slots = this.$slots;
  16456. var result = void 0;
  16457. var children = $slots['default'] || [];
  16458. children.forEach(function (element) {
  16459. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["isStringElement"])(element) && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["isEmptyElement"])(element)) {
  16460. result = true;
  16461. }
  16462. });
  16463. return result && children.length > 1;
  16464. },
  16465. isFlexMode: function isFlexMode() {
  16466. var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'extra');
  16467. var itemLayout = this.listContext.itemLayout;
  16468. if (itemLayout === 'vertical') {
  16469. return !!extra;
  16470. }
  16471. return !this.isItemContainsTextNodeAndNotSingular();
  16472. }
  16473. },
  16474. render: function render() {
  16475. var h = arguments[0];
  16476. var _listContext = this.listContext,
  16477. grid = _listContext.grid,
  16478. itemLayout = _listContext.itemLayout;
  16479. var customizePrefixCls = this.prefixCls,
  16480. $slots = this.$slots;
  16481. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this);
  16482. var getPrefixCls = this.configProvider.getPrefixCls;
  16483. var prefixCls = getPrefixCls('list', customizePrefixCls);
  16484. var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'extra');
  16485. var actions = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'actions');
  16486. var actionsContent = actions && actions.length > 0 && h(
  16487. 'ul',
  16488. { 'class': prefixCls + '-item-action', key: 'actions' },
  16489. [actions.map(function (action, i) {
  16490. return h(
  16491. 'li',
  16492. { key: prefixCls + '-item-action-' + i },
  16493. [action, i !== actions.length - 1 && h('em', { 'class': prefixCls + '-item-action-split' })]
  16494. );
  16495. })]
  16496. );
  16497. var Tag = grid ? 'div' : 'li';
  16498. var itemChildren = h(
  16499. Tag,
  16500. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ on: listeners }, {
  16501. 'class': classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-item', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-item-no-flex', !this.isFlexMode()))
  16502. }]),
  16503. [itemLayout === 'vertical' && extra ? [h(
  16504. 'div',
  16505. { 'class': prefixCls + '-item-main', key: 'content' },
  16506. [$slots['default'], actionsContent]
  16507. ), h(
  16508. 'div',
  16509. { 'class': prefixCls + '-item-extra', key: 'extra' },
  16510. [extra]
  16511. )] : [$slots['default'], actionsContent, Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(extra, { key: 'extra' })]]
  16512. );
  16513. var mainContent = grid ? h(
  16514. _grid__WEBPACK_IMPORTED_MODULE_5__["Col"],
  16515. {
  16516. attrs: {
  16517. span: getGrid(grid, 'column'),
  16518. xs: getGrid(grid, 'xs'),
  16519. sm: getGrid(grid, 'sm'),
  16520. md: getGrid(grid, 'md'),
  16521. lg: getGrid(grid, 'lg'),
  16522. xl: getGrid(grid, 'xl'),
  16523. xxl: getGrid(grid, 'xxl')
  16524. }
  16525. },
  16526. [itemChildren]
  16527. ) : itemChildren;
  16528. return mainContent;
  16529. }
  16530. });
  16531. /***/ }),
  16532. /***/ "./components/list/index.jsx":
  16533. /*!***********************************!*\
  16534. !*** ./components/list/index.jsx ***!
  16535. \***********************************/
  16536. /*! exports provided: ListItemProps, ListItemMetaProps, ColumnCount, ColumnType, ListGridType, ListSize, ListProps, default */
  16537. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16538. "use strict";
  16539. __webpack_require__.r(__webpack_exports__);
  16540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnCount", function() { return ColumnCount; });
  16541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnType", function() { return ColumnType; });
  16542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListGridType", function() { return ListGridType; });
  16543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListSize", function() { return ListSize; });
  16544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListProps", function() { return ListProps; });
  16545. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  16546. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  16547. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  16548. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
  16549. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  16550. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
  16551. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  16552. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
  16553. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  16554. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__);
  16555. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  16556. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__);
  16557. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  16558. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  16559. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
  16560. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  16561. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  16562. /* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../spin */ "./components/spin/index.js");
  16563. /* harmony import */ var _pagination__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../pagination */ "./components/pagination/index.js");
  16564. /* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../grid */ "./components/grid/index.js");
  16565. /* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Item */ "./components/list/Item.jsx");
  16566. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  16567. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  16568. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  16569. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListItemProps", function() { return _Item__WEBPACK_IMPORTED_MODULE_13__["ListItemProps"]; });
  16570. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListItemMetaProps", function() { return _Item__WEBPACK_IMPORTED_MODULE_13__["ListItemMetaProps"]; });
  16571. var ColumnCount = ['', 1, 2, 3, 4, 6, 8, 12, 24];
  16572. var ColumnType = ['gutter', 'column', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
  16573. var ListGridType = {
  16574. gutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
  16575. column: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
  16576. xs: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
  16577. sm: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
  16578. md: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
  16579. lg: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
  16580. xl: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
  16581. xxl: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount)
  16582. };
  16583. var ListSize = ['small', 'default', 'large'];
  16584. var ListProps = function ListProps() {
  16585. return {
  16586. bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  16587. dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  16588. extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  16589. grid: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].shape(ListGridType).loose,
  16590. itemLayout: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  16591. loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object]),
  16592. loadMore: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  16593. pagination: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].shape(Object(_pagination__WEBPACK_IMPORTED_MODULE_11__["PaginationConfig"])()).loose, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool]),
  16594. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  16595. rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  16596. renderItem: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  16597. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ListSize),
  16598. split: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  16599. header: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  16600. footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  16601. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object
  16602. };
  16603. };
  16604. var List = {
  16605. Item: _Item__WEBPACK_IMPORTED_MODULE_13__["default"],
  16606. name: 'AList',
  16607. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["initDefaultProps"])(ListProps(), {
  16608. dataSource: [],
  16609. bordered: false,
  16610. split: true,
  16611. loading: false,
  16612. pagination: false
  16613. }),
  16614. provide: function provide() {
  16615. return {
  16616. listContext: this
  16617. };
  16618. },
  16619. inject: {
  16620. configProvider: { 'default': function _default() {
  16621. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
  16622. } }
  16623. },
  16624. data: function data() {
  16625. var _this = this;
  16626. this.keys = [];
  16627. this.defaultPaginationProps = {
  16628. current: 1,
  16629. pageSize: 10,
  16630. onChange: function onChange(page, pageSize) {
  16631. var pagination = _this.pagination;
  16632. _this.paginationCurrent = page;
  16633. if (pagination && pagination.onChange) {
  16634. pagination.onChange(page, pageSize);
  16635. }
  16636. },
  16637. total: 0
  16638. };
  16639. this.onPaginationChange = this.triggerPaginationEvent('onChange');
  16640. this.onPaginationShowSizeChange = this.triggerPaginationEvent('onShowSizeChange');
  16641. var pagination = this.$props.pagination;
  16642. var paginationObj = pagination && (typeof pagination === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5___default()(pagination)) === 'object' ? pagination : {};
  16643. return {
  16644. paginationCurrent: paginationObj.defaultCurrent || 1,
  16645. paginationSize: paginationObj.defaultPageSize || 10
  16646. };
  16647. },
  16648. methods: {
  16649. triggerPaginationEvent: function triggerPaginationEvent(eventName) {
  16650. var _this2 = this;
  16651. return function (page, pageSize) {
  16652. var pagination = _this2.$props.pagination;
  16653. _this2.paginationCurrent = page;
  16654. _this2.paginationSize = pageSize;
  16655. if (pagination && pagination[eventName]) {
  16656. pagination[eventName](page, pageSize);
  16657. }
  16658. };
  16659. },
  16660. renderItem2: function renderItem2(item, index) {
  16661. var $scopedSlots = this.$scopedSlots,
  16662. rowKey = this.rowKey;
  16663. var renderItem = this.renderItem || $scopedSlots.renderItem;
  16664. if (!renderItem) return null;
  16665. var key = void 0;
  16666. if (typeof rowKey === 'function') {
  16667. key = rowKey(item);
  16668. } else if (typeof rowKey === 'string') {
  16669. key = item[rowKey];
  16670. } else {
  16671. key = item.key;
  16672. }
  16673. if (!key) {
  16674. key = 'list-item-' + index;
  16675. }
  16676. this.keys[index] = key;
  16677. return renderItem(item, index);
  16678. },
  16679. isSomethingAfterLastItem: function isSomethingAfterLastItem() {
  16680. var pagination = this.pagination;
  16681. var loadMore = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'loadMore');
  16682. var footer = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'footer');
  16683. return !!(loadMore || pagination || footer);
  16684. },
  16685. renderEmpty: function renderEmpty(prefixCls, _renderEmpty) {
  16686. var h = this.$createElement;
  16687. var locale = this.locale;
  16688. return h(
  16689. 'div',
  16690. { 'class': prefixCls + '-empty-text' },
  16691. [locale && locale.emptyText || _renderEmpty(h, 'List')]
  16692. );
  16693. }
  16694. },
  16695. render: function render() {
  16696. var _classNames,
  16697. _this3 = this;
  16698. var h = arguments[0];
  16699. var customizePrefixCls = this.prefixCls,
  16700. bordered = this.bordered,
  16701. split = this.split,
  16702. itemLayout = this.itemLayout,
  16703. pagination = this.pagination,
  16704. grid = this.grid,
  16705. _dataSource = this.dataSource,
  16706. dataSource = _dataSource === undefined ? [] : _dataSource,
  16707. size = this.size,
  16708. loading = this.loading,
  16709. $slots = this.$slots,
  16710. paginationCurrent = this.paginationCurrent,
  16711. paginationSize = this.paginationSize;
  16712. var getPrefixCls = this.configProvider.getPrefixCls;
  16713. var prefixCls = getPrefixCls('list', customizePrefixCls);
  16714. var loadMore = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'loadMore');
  16715. var footer = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'footer');
  16716. var header = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'header');
  16717. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["filterEmpty"])($slots['default'] || []);
  16718. var loadingProp = loading;
  16719. if (typeof loadingProp === 'boolean') {
  16720. loadingProp = {
  16721. spinning: loadingProp
  16722. };
  16723. }
  16724. var isLoading = loadingProp && loadingProp.spinning;
  16725. // large => lg
  16726. // small => sm
  16727. var sizeCls = '';
  16728. switch (size) {
  16729. case 'large':
  16730. sizeCls = 'lg';
  16731. break;
  16732. case 'small':
  16733. sizeCls = 'sm';
  16734. break;
  16735. default:
  16736. break;
  16737. }
  16738. var classString = classnames__WEBPACK_IMPORTED_MODULE_7___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-vertical', itemLayout === 'vertical'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-' + sizeCls, sizeCls), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-split', split), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-bordered', bordered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-loading', isLoading), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-grid', grid), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-something-after-last-item', this.isSomethingAfterLastItem()), _classNames));
  16739. var paginationProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, this.defaultPaginationProps, {
  16740. total: dataSource.length,
  16741. current: paginationCurrent,
  16742. pageSize: paginationSize
  16743. }, pagination || {});
  16744. var largestPage = Math.ceil(paginationProps.total / paginationProps.pageSize);
  16745. if (paginationProps.current > largestPage) {
  16746. paginationProps.current = largestPage;
  16747. }
  16748. var cls = paginationProps['class'],
  16749. style = paginationProps.style,
  16750. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(paginationProps, ['class', 'style']);
  16751. var paginationContent = pagination ? h(
  16752. 'div',
  16753. { 'class': prefixCls + '-pagination' },
  16754. [h(_pagination__WEBPACK_IMPORTED_MODULE_11__["default"], {
  16755. props: Object(omit_js__WEBPACK_IMPORTED_MODULE_8__["default"])(restProps, ['onChange']),
  16756. 'class': cls,
  16757. style: style,
  16758. on: {
  16759. change: this.onPaginationChange,
  16760. showSizeChange: this.onPaginationShowSizeChange
  16761. }
  16762. })]
  16763. ) : null;
  16764. var splitDataSource = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(dataSource));
  16765. if (pagination) {
  16766. if (dataSource.length > (paginationProps.current - 1) * paginationProps.pageSize) {
  16767. splitDataSource = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(dataSource)).splice((paginationProps.current - 1) * paginationProps.pageSize, paginationProps.pageSize);
  16768. }
  16769. }
  16770. var childrenContent = void 0;
  16771. childrenContent = isLoading && h('div', { style: { minHeight: 53 } });
  16772. if (splitDataSource.length > 0) {
  16773. var items = splitDataSource.map(function (item, index) {
  16774. return _this3.renderItem2(item, index);
  16775. });
  16776. var childrenList = items.map(function (child, index) {
  16777. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneElement"])(child, {
  16778. key: _this3.keys[index]
  16779. });
  16780. });
  16781. childrenContent = grid ? h(
  16782. _grid__WEBPACK_IMPORTED_MODULE_12__["Row"],
  16783. {
  16784. attrs: { gutter: grid.gutter }
  16785. },
  16786. [childrenList]
  16787. ) : h(
  16788. 'ul',
  16789. { 'class': prefixCls + '-items' },
  16790. [childrenList]
  16791. );
  16792. } else if (!children.length && !isLoading) {
  16793. var renderEmpty = this.configProvider.renderEmpty;
  16794. childrenContent = this.renderEmpty(prefixCls, renderEmpty);
  16795. }
  16796. var paginationPosition = paginationProps.position || 'bottom';
  16797. return h(
  16798. 'div',
  16799. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': classString }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getListeners"])(this) }]),
  16800. [(paginationPosition === 'top' || paginationPosition === 'both') && paginationContent, header && h(
  16801. 'div',
  16802. { 'class': prefixCls + '-header' },
  16803. [header]
  16804. ), h(
  16805. _spin__WEBPACK_IMPORTED_MODULE_10__["default"],
  16806. { props: loadingProp },
  16807. [childrenContent, children]
  16808. ), footer && h(
  16809. 'div',
  16810. { 'class': prefixCls + '-footer' },
  16811. [footer]
  16812. ), loadMore || (paginationPosition === 'bottom' || paginationPosition === 'both') && paginationContent]
  16813. );
  16814. }
  16815. };
  16816. /* istanbul ignore next */
  16817. List.install = function (Vue) {
  16818. Vue.use(_base__WEBPACK_IMPORTED_MODULE_16__["default"]);
  16819. Vue.component(List.name, List);
  16820. Vue.component(List.Item.name, List.Item);
  16821. Vue.component(List.Item.Meta.name, List.Item.Meta);
  16822. };
  16823. /* harmony default export */ __webpack_exports__["default"] = (List);
  16824. /***/ }),
  16825. /***/ "./components/list/style/index.js":
  16826. /*!****************************************!*\
  16827. !*** ./components/list/style/index.js ***!
  16828. \****************************************/
  16829. /*! no exports provided */
  16830. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16831. "use strict";
  16832. __webpack_require__.r(__webpack_exports__);
  16833. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  16834. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  16835. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/list/style/index.less");
  16836. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  16837. /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
  16838. /* harmony import */ var _spin_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../spin/style */ "./components/spin/style/index.js");
  16839. /* harmony import */ var _pagination_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../pagination/style */ "./components/pagination/style/index.js");
  16840. /* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
  16841. // style dependencies
  16842. /***/ }),
  16843. /***/ "./components/list/style/index.less":
  16844. /*!******************************************!*\
  16845. !*** ./components/list/style/index.less ***!
  16846. \******************************************/
  16847. /*! no static exports found */
  16848. /***/ (function(module, exports, __webpack_require__) {
  16849. // extracted by mini-css-extract-plugin
  16850. /***/ }),
  16851. /***/ "./components/locale-provider/LocaleReceiver.jsx":
  16852. /*!*******************************************************!*\
  16853. !*** ./components/locale-provider/LocaleReceiver.jsx ***!
  16854. \*******************************************************/
  16855. /*! exports provided: default */
  16856. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16857. "use strict";
  16858. __webpack_require__.r(__webpack_exports__);
  16859. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  16860. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  16861. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  16862. /* harmony import */ var _default__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./default */ "./components/locale-provider/default.js");
  16863. /* harmony default export */ __webpack_exports__["default"] = ({
  16864. name: 'LocaleReceiver',
  16865. props: {
  16866. componentName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('global'),
  16867. defaultLocale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
  16868. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  16869. },
  16870. inject: {
  16871. localeData: { 'default': function _default() {
  16872. return {};
  16873. } }
  16874. },
  16875. methods: {
  16876. getLocale: function getLocale() {
  16877. var componentName = this.componentName,
  16878. defaultLocale = this.defaultLocale;
  16879. var locale = defaultLocale || _default__WEBPACK_IMPORTED_MODULE_2__["default"][componentName || 'global'];
  16880. var antLocale = this.localeData.antLocale;
  16881. var localeFromContext = componentName && antLocale ? antLocale[componentName] : {};
  16882. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, typeof locale === 'function' ? locale() : locale, localeFromContext || {});
  16883. },
  16884. getLocaleCode: function getLocaleCode() {
  16885. var antLocale = this.localeData.antLocale;
  16886. var localeCode = antLocale && antLocale.locale;
  16887. // Had use LocaleProvide but didn't set locale
  16888. if (antLocale && antLocale.exist && !localeCode) {
  16889. return _default__WEBPACK_IMPORTED_MODULE_2__["default"].locale;
  16890. }
  16891. return localeCode;
  16892. }
  16893. },
  16894. render: function render() {
  16895. var $scopedSlots = this.$scopedSlots;
  16896. var children = this.children || $scopedSlots['default'];
  16897. var antLocale = this.localeData.antLocale;
  16898. return children(this.getLocale(), this.getLocaleCode(), antLocale);
  16899. }
  16900. });
  16901. /***/ }),
  16902. /***/ "./components/locale-provider/default.js":
  16903. /*!***********************************************!*\
  16904. !*** ./components/locale-provider/default.js ***!
  16905. \***********************************************/
  16906. /*! exports provided: default */
  16907. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16908. "use strict";
  16909. __webpack_require__.r(__webpack_exports__);
  16910. /* harmony import */ var _locale_default__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../locale/default */ "./components/locale/default.js");
  16911. /* harmony default export */ __webpack_exports__["default"] = (_locale_default__WEBPACK_IMPORTED_MODULE_0__["default"]);
  16912. /***/ }),
  16913. /***/ "./components/locale-provider/index.jsx":
  16914. /*!**********************************************!*\
  16915. !*** ./components/locale-provider/index.jsx ***!
  16916. \**********************************************/
  16917. /*! exports provided: ANT_MARK, default */
  16918. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  16919. "use strict";
  16920. __webpack_require__.r(__webpack_exports__);
  16921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ANT_MARK", function() { return ANT_MARK; });
  16922. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  16923. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  16924. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  16925. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "moment");
  16926. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
  16927. /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
  16928. /* harmony import */ var _modal_locale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../modal/locale */ "./components/modal/locale.js");
  16929. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  16930. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  16931. // export interface Locale {
  16932. // locale: string;
  16933. // Pagination?: Object;
  16934. // DatePicker?: Object;
  16935. // TimePicker?: Object;
  16936. // Calendar?: Object;
  16937. // Table?: Object;
  16938. // Modal?: ModalLocale;
  16939. // Popconfirm?: Object;
  16940. // Transfer?: Object;
  16941. // Select?: Object;
  16942. // Upload?: Object;
  16943. // }
  16944. var ANT_MARK = 'internalMark';
  16945. function setMomentLocale(locale) {
  16946. if (locale && locale.locale) {
  16947. Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__).locale(locale.locale);
  16948. } else {
  16949. Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__).locale('en');
  16950. }
  16951. }
  16952. var LocaleProvider = {
  16953. name: 'ALocaleProvider',
  16954. props: {
  16955. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def(function () {
  16956. return {};
  16957. }),
  16958. _ANT_MARK__: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
  16959. },
  16960. data: function data() {
  16961. Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(this._ANT_MARK__ === ANT_MARK, 'LocaleProvider', '`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead');
  16962. return {
  16963. antLocale: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.locale, {
  16964. exist: true
  16965. })
  16966. };
  16967. },
  16968. provide: function provide() {
  16969. return {
  16970. localeData: this.$data
  16971. };
  16972. },
  16973. watch: {
  16974. locale: function locale(val) {
  16975. this.antLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.locale, {
  16976. exist: true
  16977. });
  16978. setMomentLocale(val);
  16979. Object(_modal_locale__WEBPACK_IMPORTED_MODULE_4__["changeConfirmLocale"])(val && val.Modal);
  16980. }
  16981. },
  16982. created: function created() {
  16983. var locale = this.locale;
  16984. setMomentLocale(locale);
  16985. Object(_modal_locale__WEBPACK_IMPORTED_MODULE_4__["changeConfirmLocale"])(locale && locale.Modal);
  16986. },
  16987. beforeDestroy: function beforeDestroy() {
  16988. Object(_modal_locale__WEBPACK_IMPORTED_MODULE_4__["changeConfirmLocale"])();
  16989. },
  16990. render: function render() {
  16991. return this.$slots['default'] ? this.$slots['default'][0] : null;
  16992. }
  16993. };
  16994. /* istanbul ignore next */
  16995. LocaleProvider.install = function (Vue) {
  16996. Vue.use(_base__WEBPACK_IMPORTED_MODULE_5__["default"]);
  16997. Vue.component(LocaleProvider.name, LocaleProvider);
  16998. };
  16999. /* harmony default export */ __webpack_exports__["default"] = (LocaleProvider);
  17000. /***/ }),
  17001. /***/ "./components/locale-provider/style/index.js":
  17002. /*!***************************************************!*\
  17003. !*** ./components/locale-provider/style/index.js ***!
  17004. \***************************************************/
  17005. /*! no exports provided */
  17006. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17007. "use strict";
  17008. __webpack_require__.r(__webpack_exports__);
  17009. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.less */ "./components/locale-provider/style/index.less");
  17010. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_0__);
  17011. /***/ }),
  17012. /***/ "./components/locale-provider/style/index.less":
  17013. /*!*****************************************************!*\
  17014. !*** ./components/locale-provider/style/index.less ***!
  17015. \*****************************************************/
  17016. /*! no static exports found */
  17017. /***/ (function(module, exports, __webpack_require__) {
  17018. // extracted by mini-css-extract-plugin
  17019. /***/ }),
  17020. /***/ "./components/locale/default.js":
  17021. /*!**************************************!*\
  17022. !*** ./components/locale/default.js ***!
  17023. \**************************************/
  17024. /*! exports provided: default */
  17025. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17026. "use strict";
  17027. __webpack_require__.r(__webpack_exports__);
  17028. /* harmony import */ var _vc_pagination_locale_en_US__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vc-pagination/locale/en_US */ "./components/vc-pagination/locale/en_US.js");
  17029. /* harmony import */ var _date_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../date-picker/locale/en_US */ "./components/date-picker/locale/en_US.js");
  17030. /* harmony import */ var _time_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../time-picker/locale/en_US */ "./components/time-picker/locale/en_US.js");
  17031. /* harmony import */ var _calendar_locale_en_US__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../calendar/locale/en_US */ "./components/calendar/locale/en_US.js");
  17032. /* harmony default export */ __webpack_exports__["default"] = ({
  17033. locale: 'en',
  17034. Pagination: _vc_pagination_locale_en_US__WEBPACK_IMPORTED_MODULE_0__["default"],
  17035. DatePicker: _date_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_1__["default"],
  17036. TimePicker: _time_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_2__["default"],
  17037. Calendar: _calendar_locale_en_US__WEBPACK_IMPORTED_MODULE_3__["default"],
  17038. global: {
  17039. placeholder: 'Please select'
  17040. },
  17041. Table: {
  17042. filterTitle: 'Filter menu',
  17043. filterConfirm: 'OK',
  17044. filterReset: 'Reset',
  17045. selectAll: 'Select current page',
  17046. selectInvert: 'Invert current page',
  17047. sortTitle: 'Sort',
  17048. expand: 'Expand row',
  17049. collapse: 'Collapse row'
  17050. },
  17051. Modal: {
  17052. okText: 'OK',
  17053. cancelText: 'Cancel',
  17054. justOkText: 'OK'
  17055. },
  17056. Popconfirm: {
  17057. okText: 'OK',
  17058. cancelText: 'Cancel'
  17059. },
  17060. Transfer: {
  17061. titles: ['', ''],
  17062. searchPlaceholder: 'Search here',
  17063. itemUnit: 'item',
  17064. itemsUnit: 'items'
  17065. },
  17066. Upload: {
  17067. uploading: 'Uploading...',
  17068. removeFile: 'Remove file',
  17069. uploadError: 'Upload error',
  17070. previewFile: 'Preview file',
  17071. downloadFile: 'Download file'
  17072. },
  17073. Empty: {
  17074. description: 'No Data'
  17075. },
  17076. Icon: {
  17077. icon: 'icon'
  17078. },
  17079. Text: {
  17080. edit: 'Edit',
  17081. copy: 'Copy',
  17082. copied: 'Copied',
  17083. expand: 'Expand'
  17084. },
  17085. PageHeader: {
  17086. back: 'Back'
  17087. }
  17088. });
  17089. /***/ }),
  17090. /***/ "./components/mentions/index.jsx":
  17091. /*!***************************************!*\
  17092. !*** ./components/mentions/index.jsx ***!
  17093. \***************************************/
  17094. /*! exports provided: default */
  17095. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17096. "use strict";
  17097. __webpack_require__.r(__webpack_exports__);
  17098. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  17099. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  17100. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  17101. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  17102. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  17103. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
  17104. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  17105. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
  17106. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  17107. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
  17108. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  17109. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  17110. /* harmony import */ var _vc_mentions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-mentions */ "./components/vc-mentions/index.js");
  17111. /* harmony import */ var _vc_mentions_src_mentionsProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../vc-mentions/src/mentionsProps */ "./components/vc-mentions/src/mentionsProps.js");
  17112. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  17113. /* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../spin */ "./components/spin/index.js");
  17114. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  17115. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  17116. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  17117. var Option = _vc_mentions__WEBPACK_IMPORTED_MODULE_7__["default"].Option;
  17118. function loadingFilterOption() {
  17119. return true;
  17120. }
  17121. function getMentions() {
  17122. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  17123. var config = arguments[1];
  17124. var _ref = config || {},
  17125. _ref$prefix = _ref.prefix,
  17126. prefix = _ref$prefix === undefined ? '@' : _ref$prefix,
  17127. _ref$split = _ref.split,
  17128. split = _ref$split === undefined ? ' ' : _ref$split;
  17129. var prefixList = Array.isArray(prefix) ? prefix : [prefix];
  17130. return value.split(split).map(function () {
  17131. var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  17132. var hitPrefix = null;
  17133. prefixList.some(function (prefixStr) {
  17134. var startStr = str.slice(0, prefixStr.length);
  17135. if (startStr === prefixStr) {
  17136. hitPrefix = prefixStr;
  17137. return true;
  17138. }
  17139. return false;
  17140. });
  17141. if (hitPrefix !== null) {
  17142. return {
  17143. prefix: hitPrefix,
  17144. value: str.slice(hitPrefix.length)
  17145. };
  17146. }
  17147. return null;
  17148. }).filter(function (entity) {
  17149. return !!entity && !!entity.value;
  17150. });
  17151. }
  17152. var Mentions = {
  17153. name: 'AMentions',
  17154. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
  17155. inheritAttrs: false,
  17156. model: {
  17157. prop: 'value',
  17158. event: 'change'
  17159. },
  17160. Option: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, Option, { name: 'AMentionsOption' }),
  17161. getMentions: getMentions,
  17162. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, _vc_mentions_src_mentionsProps__WEBPACK_IMPORTED_MODULE_8__["mentionsProps"], {
  17163. loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool
  17164. }),
  17165. inject: {
  17166. configProvider: { 'default': function _default() {
  17167. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
  17168. } }
  17169. },
  17170. data: function data() {
  17171. return {
  17172. focused: false
  17173. };
  17174. },
  17175. mounted: function mounted() {
  17176. var _this = this;
  17177. this.$nextTick(function () {
  17178. if (_this.autoFocus) {
  17179. _this.focus();
  17180. }
  17181. });
  17182. },
  17183. methods: {
  17184. onFocus: function onFocus() {
  17185. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  17186. args[_key] = arguments[_key];
  17187. }
  17188. this.$emit.apply(this, ['focus'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(args)));
  17189. this.setState({
  17190. focused: true
  17191. });
  17192. },
  17193. onBlur: function onBlur() {
  17194. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  17195. args[_key2] = arguments[_key2];
  17196. }
  17197. this.$emit.apply(this, ['blur'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(args)));
  17198. this.setState({
  17199. focused: false
  17200. });
  17201. },
  17202. onSelect: function onSelect() {
  17203. for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  17204. args[_key3] = arguments[_key3];
  17205. }
  17206. this.$emit.apply(this, ['select'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(args)));
  17207. this.setState({
  17208. focused: true
  17209. });
  17210. },
  17211. onChange: function onChange(val) {
  17212. this.$emit('change', val);
  17213. },
  17214. getNotFoundContent: function getNotFoundContent(renderEmpty) {
  17215. var h = this.$createElement;
  17216. var notFoundContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getComponentFromProp"])(this, 'notFoundContent');
  17217. if (notFoundContent !== undefined) {
  17218. return notFoundContent;
  17219. }
  17220. return renderEmpty(h, 'Select');
  17221. },
  17222. getOptions: function getOptions() {
  17223. var h = this.$createElement;
  17224. var loading = this.$props.loading;
  17225. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["filterEmpty"])(this.$slots['default'] || []);
  17226. if (loading) {
  17227. return h(
  17228. Option,
  17229. {
  17230. attrs: { value: 'ANTD_SEARCHING', disabled: true }
  17231. },
  17232. [h(_spin__WEBPACK_IMPORTED_MODULE_10__["default"], {
  17233. attrs: { size: 'small' }
  17234. })]
  17235. );
  17236. }
  17237. return children;
  17238. },
  17239. getFilterOption: function getFilterOption() {
  17240. var _$props = this.$props,
  17241. filterOption = _$props.filterOption,
  17242. loading = _$props.loading;
  17243. if (loading) {
  17244. return loadingFilterOption;
  17245. }
  17246. return filterOption;
  17247. },
  17248. focus: function focus() {
  17249. this.$refs.vcMentions.focus();
  17250. },
  17251. blur: function blur() {
  17252. this.$refs.vcMentions.blur();
  17253. }
  17254. },
  17255. render: function render() {
  17256. var _classNames;
  17257. var h = arguments[0];
  17258. var focused = this.$data.focused;
  17259. var _configProvider = this.configProvider,
  17260. getPrefixCls = _configProvider.getPrefixCls,
  17261. renderEmpty = _configProvider.renderEmpty;
  17262. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getOptionProps"])(this),
  17263. customizePrefixCls = _getOptionProps.prefixCls,
  17264. disabled = _getOptionProps.disabled,
  17265. getPopupContainer = _getOptionProps.getPopupContainer,
  17266. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls', 'disabled', 'getPopupContainer']);
  17267. var prefixCls = getPrefixCls('mentions', customizePrefixCls);
  17268. var otherProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(restProps, ['loading']);
  17269. var mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-focused', focused), _classNames));
  17270. var mentionsProps = {
  17271. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
  17272. prefixCls: prefixCls,
  17273. notFoundContent: this.getNotFoundContent(renderEmpty)
  17274. }, otherProps, {
  17275. disabled: disabled,
  17276. filterOption: this.getFilterOption(),
  17277. getPopupContainer: getPopupContainer,
  17278. children: this.getOptions()
  17279. }),
  17280. 'class': mergedClassName,
  17281. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({ rows: 1 }, this.$attrs),
  17282. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getListeners"])(this), {
  17283. change: this.onChange,
  17284. select: this.onSelect,
  17285. focus: this.onFocus,
  17286. blur: this.onBlur
  17287. }),
  17288. ref: 'vcMentions'
  17289. };
  17290. return h(_vc_mentions__WEBPACK_IMPORTED_MODULE_7__["default"], mentionsProps);
  17291. }
  17292. };
  17293. /* istanbul ignore next */
  17294. Mentions.install = function (Vue) {
  17295. Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
  17296. Vue.component(Mentions.name, Mentions);
  17297. Vue.component(Mentions.Option.name, Mentions.Option);
  17298. };
  17299. /* harmony default export */ __webpack_exports__["default"] = (Mentions);
  17300. /***/ }),
  17301. /***/ "./components/mentions/style/index.js":
  17302. /*!********************************************!*\
  17303. !*** ./components/mentions/style/index.js ***!
  17304. \********************************************/
  17305. /*! no exports provided */
  17306. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17307. "use strict";
  17308. __webpack_require__.r(__webpack_exports__);
  17309. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.less */ "./components/mentions/style/index.less");
  17310. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_0__);
  17311. /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
  17312. /* harmony import */ var _spin_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../spin/style */ "./components/spin/style/index.js");
  17313. // style dependencies
  17314. /***/ }),
  17315. /***/ "./components/mentions/style/index.less":
  17316. /*!**********************************************!*\
  17317. !*** ./components/mentions/style/index.less ***!
  17318. \**********************************************/
  17319. /*! no static exports found */
  17320. /***/ (function(module, exports, __webpack_require__) {
  17321. // extracted by mini-css-extract-plugin
  17322. /***/ }),
  17323. /***/ "./components/menu/MenuItem.jsx":
  17324. /*!**************************************!*\
  17325. !*** ./components/menu/MenuItem.jsx ***!
  17326. \**************************************/
  17327. /*! exports provided: default */
  17328. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17329. "use strict";
  17330. __webpack_require__.r(__webpack_exports__);
  17331. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  17332. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  17333. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  17334. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  17335. /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
  17336. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  17337. /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
  17338. function noop() {}
  17339. /* harmony default export */ __webpack_exports__["default"] = ({
  17340. name: 'MenuItem',
  17341. inheritAttrs: false,
  17342. props: _vc_menu__WEBPACK_IMPORTED_MODULE_2__["itemProps"],
  17343. inject: {
  17344. getInlineCollapsed: { 'default': function _default() {
  17345. return noop;
  17346. } },
  17347. layoutSiderContext: { 'default': function _default() {
  17348. return {};
  17349. } }
  17350. },
  17351. isMenuItem: true,
  17352. methods: {
  17353. onKeyDown: function onKeyDown(e) {
  17354. this.$refs.menuItem.onKeyDown(e);
  17355. }
  17356. },
  17357. render: function render() {
  17358. var h = arguments[0];
  17359. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this);
  17360. var level = props.level,
  17361. title = props.title,
  17362. rootPrefixCls = props.rootPrefixCls;
  17363. var getInlineCollapsed = this.getInlineCollapsed,
  17364. $slots = this.$slots,
  17365. attrs = this.$attrs;
  17366. var inlineCollapsed = getInlineCollapsed();
  17367. var tooltipTitle = title;
  17368. if (typeof title === 'undefined') {
  17369. tooltipTitle = level === 1 ? $slots['default'] : '';
  17370. } else if (title === false) {
  17371. tooltipTitle = '';
  17372. }
  17373. var tooltipProps = {
  17374. title: tooltipTitle
  17375. };
  17376. var siderCollapsed = this.layoutSiderContext.sCollapsed;
  17377. if (!siderCollapsed && !inlineCollapsed) {
  17378. tooltipProps.title = null;
  17379. // Reset `visible` to fix control mode tooltip display not correct
  17380. // ref: https://github.com/ant-design/ant-design/issues/16742
  17381. tooltipProps.visible = false;
  17382. }
  17383. var itemProps = {
  17384. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  17385. title: title
  17386. }),
  17387. attrs: attrs,
  17388. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
  17389. };
  17390. var toolTipProps = {
  17391. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, tooltipProps, {
  17392. placement: 'right',
  17393. overlayClassName: rootPrefixCls + '-inline-collapsed-tooltip'
  17394. })
  17395. };
  17396. return h(
  17397. _tooltip__WEBPACK_IMPORTED_MODULE_4__["default"],
  17398. toolTipProps,
  17399. [h(
  17400. _vc_menu__WEBPACK_IMPORTED_MODULE_2__["Item"],
  17401. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([itemProps, { ref: 'menuItem' }]),
  17402. [$slots['default']]
  17403. )]
  17404. );
  17405. }
  17406. });
  17407. /***/ }),
  17408. /***/ "./components/menu/SubMenu.jsx":
  17409. /*!*************************************!*\
  17410. !*** ./components/menu/SubMenu.jsx ***!
  17411. \*************************************/
  17412. /*! exports provided: default */
  17413. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17414. "use strict";
  17415. __webpack_require__.r(__webpack_exports__);
  17416. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  17417. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  17418. /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
  17419. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  17420. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  17421. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  17422. /* harmony default export */ __webpack_exports__["default"] = ({
  17423. name: 'ASubMenu',
  17424. isSubMenu: true,
  17425. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_menu__WEBPACK_IMPORTED_MODULE_1__["SubMenu"].props),
  17426. inject: {
  17427. menuPropsContext: { 'default': function _default() {
  17428. return {};
  17429. } }
  17430. },
  17431. methods: {
  17432. onKeyDown: function onKeyDown(e) {
  17433. this.$refs.subMenu.onKeyDown(e);
  17434. }
  17435. },
  17436. render: function render() {
  17437. var h = arguments[0];
  17438. var $slots = this.$slots,
  17439. $scopedSlots = this.$scopedSlots;
  17440. var _$props = this.$props,
  17441. rootPrefixCls = _$props.rootPrefixCls,
  17442. popupClassName = _$props.popupClassName;
  17443. var antdMenuTheme = this.menuPropsContext.theme;
  17444. var props = {
  17445. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, {
  17446. popupClassName: classnames__WEBPACK_IMPORTED_MODULE_3___default()(rootPrefixCls + '-' + antdMenuTheme, popupClassName)
  17447. }),
  17448. ref: 'subMenu',
  17449. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this),
  17450. scopedSlots: $scopedSlots
  17451. };
  17452. var slotsKey = Object.keys($slots);
  17453. return h(
  17454. _vc_menu__WEBPACK_IMPORTED_MODULE_1__["SubMenu"],
  17455. props,
  17456. [slotsKey.length ? slotsKey.map(function (name) {
  17457. return h(
  17458. 'template',
  17459. { slot: name },
  17460. [$slots[name]]
  17461. );
  17462. }) : null]
  17463. );
  17464. }
  17465. });
  17466. /***/ }),
  17467. /***/ "./components/menu/index.jsx":
  17468. /*!***********************************!*\
  17469. !*** ./components/menu/index.jsx ***!
  17470. \***********************************/
  17471. /*! exports provided: MenuMode, menuProps, default */
  17472. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17473. "use strict";
  17474. __webpack_require__.r(__webpack_exports__);
  17475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MenuMode", function() { return MenuMode; });
  17476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "menuProps", function() { return menuProps; });
  17477. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  17478. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  17479. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  17480. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  17481. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  17482. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  17483. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  17484. /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
  17485. /* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SubMenu */ "./components/menu/SubMenu.jsx");
  17486. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  17487. /* harmony import */ var _util_openAnimation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/openAnimation */ "./components/_util/openAnimation.js");
  17488. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  17489. /* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./MenuItem */ "./components/menu/MenuItem.jsx");
  17490. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  17491. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  17492. /* harmony import */ var _vc_menu_commonPropsType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../vc-menu/commonPropsType */ "./components/vc-menu/commonPropsType.js");
  17493. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  17494. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  17495. // import raf from '../_util/raf';
  17496. var MenuMode = _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['vertical', 'vertical-left', 'vertical-right', 'horizontal', 'inline']);
  17497. var menuProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_menu_commonPropsType__WEBPACK_IMPORTED_MODULE_12__["default"], {
  17498. theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['light', 'dark']).def('light'),
  17499. mode: MenuMode.def('vertical'),
  17500. selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  17501. selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number])),
  17502. defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  17503. openKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  17504. defaultOpenKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  17505. openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object]),
  17506. openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  17507. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  17508. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  17509. inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number.def(24),
  17510. inlineCollapsed: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  17511. isRootMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true),
  17512. focusable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(false)
  17513. });
  17514. var Menu = {
  17515. name: 'AMenu',
  17516. props: menuProps,
  17517. Divider: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_menu__WEBPACK_IMPORTED_MODULE_4__["Divider"], { name: 'AMenuDivider' }),
  17518. Item: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _MenuItem__WEBPACK_IMPORTED_MODULE_9__["default"], { name: 'AMenuItem' }),
  17519. SubMenu: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _SubMenu__WEBPACK_IMPORTED_MODULE_5__["default"], { name: 'ASubMenu' }),
  17520. ItemGroup: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_menu__WEBPACK_IMPORTED_MODULE_4__["ItemGroup"], { name: 'AMenuItemGroup' }),
  17521. provide: function provide() {
  17522. return {
  17523. getInlineCollapsed: this.getInlineCollapsed,
  17524. menuPropsContext: this.$props
  17525. };
  17526. },
  17527. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
  17528. inject: {
  17529. layoutSiderContext: { 'default': function _default() {
  17530. return {};
  17531. } },
  17532. configProvider: { 'default': function _default() {
  17533. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__["ConfigConsumerProps"];
  17534. } }
  17535. },
  17536. model: {
  17537. prop: 'selectedKeys',
  17538. event: 'selectChange'
  17539. },
  17540. updated: function updated() {
  17541. this.propsUpdating = false;
  17542. },
  17543. // beforeDestroy() {
  17544. // raf.cancel(this.mountRafId);
  17545. // },
  17546. watch: {
  17547. mode: function mode(val, oldVal) {
  17548. if (oldVal === 'inline' && val !== 'inline') {
  17549. this.switchingModeFromInline = true;
  17550. }
  17551. },
  17552. openKeys: function openKeys(val) {
  17553. this.setState({ sOpenKeys: val });
  17554. },
  17555. inlineCollapsed: function inlineCollapsed(val) {
  17556. this.collapsedChange(val);
  17557. },
  17558. 'layoutSiderContext.sCollapsed': function layoutSiderContextSCollapsed(val) {
  17559. this.collapsedChange(val);
  17560. }
  17561. },
  17562. data: function data() {
  17563. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getOptionProps"])(this);
  17564. Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(!('inlineCollapsed' in props && props.mode !== 'inline'), 'Menu', "`inlineCollapsed` should only be used when Menu's `mode` is inline.");
  17565. this.switchingModeFromInline = false;
  17566. this.leaveAnimationExecutedWhenInlineCollapsed = false;
  17567. this.inlineOpenKeys = [];
  17568. var sOpenKeys = void 0;
  17569. if ('openKeys' in props) {
  17570. sOpenKeys = props.openKeys;
  17571. } else if ('defaultOpenKeys' in props) {
  17572. sOpenKeys = props.defaultOpenKeys;
  17573. }
  17574. return {
  17575. sOpenKeys: sOpenKeys
  17576. };
  17577. },
  17578. methods: {
  17579. collapsedChange: function collapsedChange(val) {
  17580. if (this.propsUpdating) {
  17581. return;
  17582. }
  17583. this.propsUpdating = true;
  17584. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'openKeys')) {
  17585. if (val) {
  17586. this.switchingModeFromInline = true;
  17587. this.inlineOpenKeys = this.sOpenKeys;
  17588. this.setState({ sOpenKeys: [] });
  17589. } else {
  17590. this.setState({ sOpenKeys: this.inlineOpenKeys });
  17591. this.inlineOpenKeys = [];
  17592. }
  17593. } else if (val) {
  17594. // 缩起时,openKeys置为空的动画会闪动,react可以通过是否传递openKeys避免闪动,vue不是很方便动态传递openKeys
  17595. this.switchingModeFromInline = true;
  17596. }
  17597. },
  17598. restoreModeVerticalFromInline: function restoreModeVerticalFromInline() {
  17599. if (this.switchingModeFromInline) {
  17600. this.switchingModeFromInline = false;
  17601. this.$forceUpdate();
  17602. }
  17603. },
  17604. // Restore vertical mode when menu is collapsed responsively when mounted
  17605. // https://github.com/ant-design/ant-design/issues/13104
  17606. // TODO: not a perfect solution, looking a new way to avoid setting switchingModeFromInline in this situation
  17607. handleMouseEnter: function handleMouseEnter(e) {
  17608. this.restoreModeVerticalFromInline();
  17609. this.$emit('mouseenter', e);
  17610. },
  17611. handleTransitionEnd: function handleTransitionEnd(e) {
  17612. // when inlineCollapsed menu width animation finished
  17613. // https://github.com/ant-design/ant-design/issues/12864
  17614. var widthCollapsed = e.propertyName === 'width' && e.target === e.currentTarget;
  17615. // Fix SVGElement e.target.className.indexOf is not a function
  17616. // https://github.com/ant-design/ant-design/issues/15699
  17617. var className = e.target.className;
  17618. // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during an animation.
  17619. var classNameValue = Object.prototype.toString.call(className) === '[object SVGAnimatedString]' ? className.animVal : className;
  17620. // Fix for <Menu style={{ width: '100%' }} />, the width transition won't trigger when menu is collapsed
  17621. // https://github.com/ant-design/ant-design-pro/issues/2783
  17622. var iconScaled = e.propertyName === 'font-size' && classNameValue.indexOf('anticon') >= 0;
  17623. if (widthCollapsed || iconScaled) {
  17624. this.restoreModeVerticalFromInline();
  17625. }
  17626. },
  17627. handleClick: function handleClick(e) {
  17628. this.handleOpenChange([]);
  17629. this.$emit('click', e);
  17630. },
  17631. handleSelect: function handleSelect(info) {
  17632. this.$emit('select', info);
  17633. this.$emit('selectChange', info.selectedKeys);
  17634. },
  17635. handleDeselect: function handleDeselect(info) {
  17636. this.$emit('deselect', info);
  17637. this.$emit('selectChange', info.selectedKeys);
  17638. },
  17639. handleOpenChange: function handleOpenChange(openKeys) {
  17640. this.setOpenKeys(openKeys);
  17641. this.$emit('openChange', openKeys);
  17642. this.$emit('update:openKeys', openKeys);
  17643. },
  17644. setOpenKeys: function setOpenKeys(openKeys) {
  17645. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'openKeys')) {
  17646. this.setState({ sOpenKeys: openKeys });
  17647. }
  17648. },
  17649. getRealMenuMode: function getRealMenuMode() {
  17650. var inlineCollapsed = this.getInlineCollapsed();
  17651. if (this.switchingModeFromInline && inlineCollapsed) {
  17652. return 'inline';
  17653. }
  17654. var mode = this.$props.mode;
  17655. return inlineCollapsed ? 'vertical' : mode;
  17656. },
  17657. getInlineCollapsed: function getInlineCollapsed() {
  17658. var inlineCollapsed = this.$props.inlineCollapsed;
  17659. if (this.layoutSiderContext.sCollapsed !== undefined) {
  17660. return this.layoutSiderContext.sCollapsed;
  17661. }
  17662. return inlineCollapsed;
  17663. },
  17664. getMenuOpenAnimation: function getMenuOpenAnimation(menuMode) {
  17665. var _$props = this.$props,
  17666. openAnimation = _$props.openAnimation,
  17667. openTransitionName = _$props.openTransitionName;
  17668. var menuOpenAnimation = openAnimation || openTransitionName;
  17669. if (openAnimation === undefined && openTransitionName === undefined) {
  17670. if (menuMode === 'horizontal') {
  17671. menuOpenAnimation = 'slide-up';
  17672. } else if (menuMode === 'inline') {
  17673. menuOpenAnimation = { on: _util_openAnimation__WEBPACK_IMPORTED_MODULE_7__["default"] };
  17674. } else {
  17675. // When mode switch from inline
  17676. // submenu should hide without animation
  17677. if (this.switchingModeFromInline) {
  17678. menuOpenAnimation = '';
  17679. this.switchingModeFromInline = false;
  17680. } else {
  17681. menuOpenAnimation = 'zoom-big';
  17682. }
  17683. }
  17684. }
  17685. return menuOpenAnimation;
  17686. }
  17687. },
  17688. render: function render() {
  17689. var _menuClassName,
  17690. _this = this;
  17691. var h = arguments[0];
  17692. var layoutSiderContext = this.layoutSiderContext,
  17693. $slots = this.$slots;
  17694. var collapsedWidth = layoutSiderContext.collapsedWidth;
  17695. var getContextPopupContainer = this.configProvider.getPopupContainer;
  17696. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getOptionProps"])(this);
  17697. var customizePrefixCls = props.prefixCls,
  17698. theme = props.theme,
  17699. getPopupContainer = props.getPopupContainer;
  17700. var getPrefixCls = this.configProvider.getPrefixCls;
  17701. var prefixCls = getPrefixCls('menu', customizePrefixCls);
  17702. var menuMode = this.getRealMenuMode();
  17703. var menuOpenAnimation = this.getMenuOpenAnimation(menuMode);
  17704. var menuClassName = (_menuClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_menuClassName, prefixCls + '-' + theme, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_menuClassName, prefixCls + '-inline-collapsed', this.getInlineCollapsed()), _menuClassName);
  17705. var menuProps = {
  17706. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(props, ['inlineCollapsed']), {
  17707. getPopupContainer: getPopupContainer || getContextPopupContainer,
  17708. openKeys: this.sOpenKeys,
  17709. mode: menuMode,
  17710. prefixCls: prefixCls
  17711. }),
  17712. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getListeners"])(this), {
  17713. select: this.handleSelect,
  17714. deselect: this.handleDeselect,
  17715. openChange: this.handleOpenChange,
  17716. mouseenter: this.handleMouseEnter
  17717. }),
  17718. nativeOn: {
  17719. transitionend: this.handleTransitionEnd
  17720. }
  17721. };
  17722. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'selectedKeys')) {
  17723. delete menuProps.props.selectedKeys;
  17724. }
  17725. if (menuMode !== 'inline') {
  17726. // closing vertical popup submenu after click it
  17727. menuProps.on.click = this.handleClick;
  17728. menuProps.props.openTransitionName = menuOpenAnimation;
  17729. } else {
  17730. menuProps.on.click = function (e) {
  17731. _this.$emit('click', e);
  17732. };
  17733. menuProps.props.openAnimation = menuOpenAnimation;
  17734. }
  17735. // https://github.com/ant-design/ant-design/issues/8587
  17736. var hideMenu = this.getInlineCollapsed() && (collapsedWidth === 0 || collapsedWidth === '0' || collapsedWidth === '0px');
  17737. if (hideMenu) {
  17738. menuProps.props.openKeys = [];
  17739. }
  17740. return h(
  17741. _vc_menu__WEBPACK_IMPORTED_MODULE_4__["default"],
  17742. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([menuProps, { 'class': menuClassName }]),
  17743. [$slots['default']]
  17744. );
  17745. }
  17746. };
  17747. /* istanbul ignore next */
  17748. Menu.install = function (Vue) {
  17749. Vue.use(_base__WEBPACK_IMPORTED_MODULE_14__["default"]);
  17750. Vue.component(Menu.name, Menu);
  17751. Vue.component(Menu.Item.name, Menu.Item);
  17752. Vue.component(Menu.SubMenu.name, Menu.SubMenu);
  17753. Vue.component(Menu.Divider.name, Menu.Divider);
  17754. Vue.component(Menu.ItemGroup.name, Menu.ItemGroup);
  17755. };
  17756. /* harmony default export */ __webpack_exports__["default"] = (Menu);
  17757. /***/ }),
  17758. /***/ "./components/menu/style/index.js":
  17759. /*!****************************************!*\
  17760. !*** ./components/menu/style/index.js ***!
  17761. \****************************************/
  17762. /*! no exports provided */
  17763. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17764. "use strict";
  17765. __webpack_require__.r(__webpack_exports__);
  17766. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  17767. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  17768. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/menu/style/index.less");
  17769. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  17770. /* harmony import */ var _tooltip_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tooltip/style */ "./components/tooltip/style/index.js");
  17771. // style dependencies
  17772. // deps-lint-skip: layout
  17773. /***/ }),
  17774. /***/ "./components/menu/style/index.less":
  17775. /*!******************************************!*\
  17776. !*** ./components/menu/style/index.less ***!
  17777. \******************************************/
  17778. /*! no static exports found */
  17779. /***/ (function(module, exports, __webpack_require__) {
  17780. // extracted by mini-css-extract-plugin
  17781. /***/ }),
  17782. /***/ "./components/message/index.js":
  17783. /*!*************************************!*\
  17784. !*** ./components/message/index.js ***!
  17785. \*************************************/
  17786. /*! exports provided: default */
  17787. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17788. "use strict";
  17789. __webpack_require__.r(__webpack_exports__);
  17790. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  17791. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  17792. /* harmony import */ var _vc_notification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-notification */ "./components/vc-notification/index.js");
  17793. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  17794. var defaultDuration = 3;
  17795. var defaultTop = void 0;
  17796. var messageInstance = void 0;
  17797. var key = 1;
  17798. var prefixCls = 'ant-message';
  17799. var transitionName = 'move-up';
  17800. var getContainer = function getContainer() {
  17801. return document.body;
  17802. };
  17803. var maxCount = void 0;
  17804. function getMessageInstance(callback) {
  17805. if (messageInstance) {
  17806. callback(messageInstance);
  17807. return;
  17808. }
  17809. _vc_notification__WEBPACK_IMPORTED_MODULE_1__["default"].newInstance({
  17810. prefixCls: prefixCls,
  17811. transitionName: transitionName,
  17812. style: { top: defaultTop }, // 覆盖原来的样式
  17813. getContainer: getContainer,
  17814. maxCount: maxCount
  17815. }, function (instance) {
  17816. if (messageInstance) {
  17817. callback(messageInstance);
  17818. return;
  17819. }
  17820. messageInstance = instance;
  17821. callback(instance);
  17822. });
  17823. }
  17824. // type NoticeType = 'info' | 'success' | 'error' | 'warning' | 'loading';
  17825. function notice(args) {
  17826. var duration = args.duration !== undefined ? args.duration : defaultDuration;
  17827. var iconType = {
  17828. info: 'info-circle',
  17829. success: 'check-circle',
  17830. error: 'close-circle',
  17831. warning: 'exclamation-circle',
  17832. loading: 'loading'
  17833. }[args.type];
  17834. var target = args.key || key++;
  17835. var closePromise = new Promise(function (resolve) {
  17836. var callback = function callback() {
  17837. if (typeof args.onClose === 'function') {
  17838. args.onClose();
  17839. }
  17840. return resolve(true);
  17841. };
  17842. getMessageInstance(function (instance) {
  17843. instance.notice({
  17844. key: target,
  17845. duration: duration,
  17846. style: {},
  17847. content: function content(h) {
  17848. var iconNode = h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
  17849. attrs: { type: iconType, theme: iconType === 'loading' ? 'outlined' : 'filled' }
  17850. });
  17851. var switchIconNode = iconType ? iconNode : '';
  17852. return h(
  17853. 'div',
  17854. {
  17855. 'class': prefixCls + '-custom-content' + (args.type ? ' ' + prefixCls + '-' + args.type : '')
  17856. },
  17857. [args.icon ? typeof args.icon === 'function' ? args.icon(h) : args.icon : switchIconNode, h('span', [typeof args.content === 'function' ? args.content(h) : args.content])]
  17858. );
  17859. },
  17860. onClose: callback
  17861. });
  17862. });
  17863. });
  17864. var result = function result() {
  17865. if (messageInstance) {
  17866. messageInstance.removeNotice(target);
  17867. }
  17868. };
  17869. result.then = function (filled, rejected) {
  17870. return closePromise.then(filled, rejected);
  17871. };
  17872. result.promise = closePromise;
  17873. return result;
  17874. }
  17875. // type ConfigContent = React.ReactNode | string;
  17876. // type ConfigDuration = number | (() => void);
  17877. // export type ConfigOnClose = () => void;
  17878. function isArgsProps(content) {
  17879. return Object.prototype.toString.call(content) === '[object Object]' && !!content.content;
  17880. }
  17881. // export interface ConfigOptions {
  17882. // top?: number;
  17883. // duration?: number;
  17884. // prefixCls?: string;
  17885. // getContainer?: () => HTMLElement;
  17886. // transitionName?: string;
  17887. // }
  17888. var api = {
  17889. open: notice,
  17890. config: function config(options) {
  17891. if (options.top !== undefined) {
  17892. defaultTop = options.top;
  17893. messageInstance = null; // delete messageInstance for new defaultTop
  17894. }
  17895. if (options.duration !== undefined) {
  17896. defaultDuration = options.duration;
  17897. }
  17898. if (options.prefixCls !== undefined) {
  17899. prefixCls = options.prefixCls;
  17900. }
  17901. if (options.getContainer !== undefined) {
  17902. getContainer = options.getContainer;
  17903. }
  17904. if (options.transitionName !== undefined) {
  17905. transitionName = options.transitionName;
  17906. messageInstance = null; // delete messageInstance for new transitionName
  17907. }
  17908. if (options.maxCount !== undefined) {
  17909. maxCount = options.maxCount;
  17910. messageInstance = null;
  17911. }
  17912. },
  17913. destroy: function destroy() {
  17914. if (messageInstance) {
  17915. messageInstance.destroy();
  17916. messageInstance = null;
  17917. }
  17918. }
  17919. };
  17920. ['success', 'info', 'warning', 'error', 'loading'].forEach(function (type) {
  17921. api[type] = function (content, duration, onClose) {
  17922. if (isArgsProps(content)) {
  17923. return api.open(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, content, { type: type }));
  17924. }
  17925. if (typeof duration === 'function') {
  17926. onClose = duration;
  17927. duration = undefined;
  17928. }
  17929. return api.open({ content: content, duration: duration, type: type, onClose: onClose });
  17930. };
  17931. });
  17932. api.warn = api.warning;
  17933. /* harmony default export */ __webpack_exports__["default"] = (api);
  17934. /***/ }),
  17935. /***/ "./components/message/style/index.js":
  17936. /*!*******************************************!*\
  17937. !*** ./components/message/style/index.js ***!
  17938. \*******************************************/
  17939. /*! no exports provided */
  17940. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17941. "use strict";
  17942. __webpack_require__.r(__webpack_exports__);
  17943. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  17944. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  17945. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/message/style/index.less");
  17946. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  17947. /***/ }),
  17948. /***/ "./components/message/style/index.less":
  17949. /*!*********************************************!*\
  17950. !*** ./components/message/style/index.less ***!
  17951. \*********************************************/
  17952. /*! no static exports found */
  17953. /***/ (function(module, exports, __webpack_require__) {
  17954. // extracted by mini-css-extract-plugin
  17955. /***/ }),
  17956. /***/ "./components/modal/ActionButton.jsx":
  17957. /*!*******************************************!*\
  17958. !*** ./components/modal/ActionButton.jsx ***!
  17959. \*******************************************/
  17960. /*! exports provided: default */
  17961. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17962. "use strict";
  17963. __webpack_require__.r(__webpack_exports__);
  17964. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  17965. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  17966. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  17967. /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
  17968. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  17969. /* harmony import */ var _button_buttonTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../button/buttonTypes */ "./components/button/buttonTypes.js");
  17970. var ButtonType = Object(_button_buttonTypes__WEBPACK_IMPORTED_MODULE_4__["default"])().type;
  17971. var ActionButtonProps = {
  17972. type: ButtonType,
  17973. actionFn: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  17974. closeModal: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  17975. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  17976. buttonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object
  17977. };
  17978. /* harmony default export */ __webpack_exports__["default"] = ({
  17979. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  17980. props: ActionButtonProps,
  17981. data: function data() {
  17982. return {
  17983. loading: false
  17984. };
  17985. },
  17986. mounted: function mounted() {
  17987. var _this = this;
  17988. if (this.autoFocus) {
  17989. this.timeoutId = setTimeout(function () {
  17990. return _this.$el.focus();
  17991. });
  17992. }
  17993. },
  17994. beforeDestroy: function beforeDestroy() {
  17995. clearTimeout(this.timeoutId);
  17996. },
  17997. methods: {
  17998. onClick: function onClick() {
  17999. var _this2 = this;
  18000. var actionFn = this.actionFn,
  18001. closeModal = this.closeModal;
  18002. if (actionFn) {
  18003. var ret = void 0;
  18004. if (actionFn.length) {
  18005. ret = actionFn(closeModal);
  18006. } else {
  18007. ret = actionFn();
  18008. if (!ret) {
  18009. closeModal();
  18010. }
  18011. }
  18012. if (ret && ret.then) {
  18013. this.setState({ loading: true });
  18014. ret.then(function () {
  18015. // It's unnecessary to set loading=false, for the Modal will be unmounted after close.
  18016. // this.setState({ loading: false });
  18017. closeModal.apply(undefined, arguments);
  18018. }, function (e) {
  18019. // Emit error when catch promise reject
  18020. // eslint-disable-next-line no-console
  18021. console.error(e);
  18022. // See: https://github.com/ant-design/ant-design/issues/6183
  18023. _this2.setState({ loading: false });
  18024. });
  18025. }
  18026. } else {
  18027. closeModal();
  18028. }
  18029. }
  18030. },
  18031. render: function render() {
  18032. var h = arguments[0];
  18033. var type = this.type,
  18034. $slots = this.$slots,
  18035. loading = this.loading,
  18036. buttonProps = this.buttonProps;
  18037. return h(
  18038. _button__WEBPACK_IMPORTED_MODULE_2__["default"],
  18039. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  18040. attrs: { type: type, loading: loading },
  18041. on: {
  18042. 'click': this.onClick
  18043. }
  18044. }, buttonProps]),
  18045. [$slots['default']]
  18046. );
  18047. }
  18048. });
  18049. /***/ }),
  18050. /***/ "./components/modal/ConfirmDialog.jsx":
  18051. /*!********************************************!*\
  18052. !*** ./components/modal/ConfirmDialog.jsx ***!
  18053. \********************************************/
  18054. /*! exports provided: default */
  18055. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18056. "use strict";
  18057. __webpack_require__.r(__webpack_exports__);
  18058. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  18059. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  18060. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  18061. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
  18062. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  18063. /* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Modal */ "./components/modal/Modal.jsx");
  18064. /* harmony import */ var _ActionButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ActionButton */ "./components/modal/ActionButton.jsx");
  18065. /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./locale */ "./components/modal/locale.js");
  18066. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  18067. /* harmony default export */ __webpack_exports__["default"] = ({
  18068. functional: true,
  18069. render: function render(h, context) {
  18070. var props = context.props;
  18071. var onCancel = props.onCancel,
  18072. onOk = props.onOk,
  18073. close = props.close,
  18074. zIndex = props.zIndex,
  18075. afterClose = props.afterClose,
  18076. visible = props.visible,
  18077. keyboard = props.keyboard,
  18078. centered = props.centered,
  18079. getContainer = props.getContainer,
  18080. maskStyle = props.maskStyle,
  18081. okButtonProps = props.okButtonProps,
  18082. cancelButtonProps = props.cancelButtonProps,
  18083. _props$iconType = props.iconType,
  18084. iconType = _props$iconType === undefined ? 'question-circle' : _props$iconType,
  18085. _props$closable = props.closable,
  18086. closable = _props$closable === undefined ? false : _props$closable;
  18087. Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(!('iconType' in props), 'Modal', 'The property \'iconType\' is deprecated. Use the property \'icon\' instead.');
  18088. var icon = props.icon ? props.icon : iconType;
  18089. var okType = props.okType || 'primary';
  18090. var prefixCls = props.prefixCls || 'ant-modal';
  18091. var contentPrefixCls = prefixCls + '-confirm';
  18092. // 默认为 true,保持向下兼容
  18093. var okCancel = 'okCancel' in props ? props.okCancel : true;
  18094. var width = props.width || 416;
  18095. var style = props.style || {};
  18096. var mask = props.mask === undefined ? true : props.mask;
  18097. // 默认为 false,保持旧版默认行为
  18098. var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
  18099. var runtimeLocale = Object(_locale__WEBPACK_IMPORTED_MODULE_5__["getConfirmLocale"])();
  18100. var okText = props.okText || (okCancel ? runtimeLocale.okText : runtimeLocale.justOkText);
  18101. var cancelText = props.cancelText || runtimeLocale.cancelText;
  18102. var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
  18103. var transitionName = props.transitionName || 'zoom';
  18104. var maskTransitionName = props.maskTransitionName || 'fade';
  18105. var classString = classnames__WEBPACK_IMPORTED_MODULE_1___default()(contentPrefixCls, contentPrefixCls + '-' + props.type, prefixCls + '-' + props.type, props['class']);
  18106. var cancelButton = okCancel && h(
  18107. _ActionButton__WEBPACK_IMPORTED_MODULE_4__["default"],
  18108. {
  18109. attrs: {
  18110. actionFn: onCancel,
  18111. closeModal: close,
  18112. autoFocus: autoFocusButton === 'cancel',
  18113. buttonProps: cancelButtonProps
  18114. }
  18115. },
  18116. [cancelText]
  18117. );
  18118. var iconNode = typeof icon === 'string' ? h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
  18119. attrs: { type: icon }
  18120. }) : icon(h);
  18121. return h(
  18122. _Modal__WEBPACK_IMPORTED_MODULE_3__["default"],
  18123. {
  18124. attrs: {
  18125. prefixCls: prefixCls,
  18126. wrapClassName: classnames__WEBPACK_IMPORTED_MODULE_1___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, contentPrefixCls + '-centered', !!centered)),
  18127. visible: visible,
  18128. closable: closable,
  18129. title: '',
  18130. transitionName: transitionName,
  18131. footer: '',
  18132. maskTransitionName: maskTransitionName,
  18133. mask: mask,
  18134. maskClosable: maskClosable,
  18135. maskStyle: maskStyle,
  18136. width: width,
  18137. zIndex: zIndex,
  18138. afterClose: afterClose,
  18139. keyboard: keyboard,
  18140. centered: centered,
  18141. getContainer: getContainer
  18142. },
  18143. 'class': classString, on: {
  18144. 'cancel': function cancel(e) {
  18145. return close({ triggerCancel: true }, e);
  18146. }
  18147. },
  18148. style: style },
  18149. [h(
  18150. 'div',
  18151. { 'class': contentPrefixCls + '-body-wrapper' },
  18152. [h(
  18153. 'div',
  18154. { 'class': contentPrefixCls + '-body' },
  18155. [iconNode, props.title === undefined ? null : h(
  18156. 'span',
  18157. { 'class': contentPrefixCls + '-title' },
  18158. [typeof props.title === 'function' ? props.title(h) : props.title]
  18159. ), h(
  18160. 'div',
  18161. { 'class': contentPrefixCls + '-content' },
  18162. [typeof props.content === 'function' ? props.content(h) : props.content]
  18163. )]
  18164. ), h(
  18165. 'div',
  18166. { 'class': contentPrefixCls + '-btns' },
  18167. [cancelButton, h(
  18168. _ActionButton__WEBPACK_IMPORTED_MODULE_4__["default"],
  18169. {
  18170. attrs: {
  18171. type: okType,
  18172. actionFn: onOk,
  18173. closeModal: close,
  18174. autoFocus: autoFocusButton === 'ok',
  18175. buttonProps: okButtonProps
  18176. }
  18177. },
  18178. [okText]
  18179. )]
  18180. )]
  18181. )]
  18182. );
  18183. }
  18184. });
  18185. /***/ }),
  18186. /***/ "./components/modal/Modal.jsx":
  18187. /*!************************************!*\
  18188. !*** ./components/modal/Modal.jsx ***!
  18189. \************************************/
  18190. /*! exports provided: destroyFns, default */
  18191. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18192. "use strict";
  18193. __webpack_require__.r(__webpack_exports__);
  18194. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "destroyFns", function() { return destroyFns; });
  18195. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  18196. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  18197. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  18198. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  18199. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  18200. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  18201. /* harmony import */ var _vc_dialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-dialog */ "./components/vc-dialog/index.js");
  18202. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  18203. /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
  18204. /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./locale */ "./components/modal/locale.js");
  18205. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  18206. /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
  18207. /* harmony import */ var _button_buttonTypes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../button/buttonTypes */ "./components/button/buttonTypes.js");
  18208. /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
  18209. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  18210. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  18211. var ButtonType = Object(_button_buttonTypes__WEBPACK_IMPORTED_MODULE_9__["default"])().type;
  18212. var mousePosition = null;
  18213. // ref: https://github.com/ant-design/ant-design/issues/15795
  18214. var getClickPosition = function getClickPosition(e) {
  18215. mousePosition = {
  18216. x: e.pageX,
  18217. y: e.pageY
  18218. };
  18219. // 100ms 内发生过点击事件,则从点击位置动画展示
  18220. // 否则直接 zoom 展示
  18221. // 这样可以兼容非点击方式展开
  18222. setTimeout(function () {
  18223. return mousePosition = null;
  18224. }, 100);
  18225. };
  18226. // 只有点击事件支持从鼠标位置动画展开
  18227. if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
  18228. Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(document.documentElement, 'click', getClickPosition, true);
  18229. }
  18230. function noop() {}
  18231. var modalProps = function modalProps() {
  18232. var defaultProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  18233. var props = {
  18234. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  18235. /** 对话框是否可见*/
  18236. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  18237. /** 确定按钮 loading*/
  18238. confirmLoading: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  18239. /** 标题*/
  18240. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  18241. /** 是否显示右上角的关闭按钮*/
  18242. closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  18243. closeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  18244. /** 点击确定回调*/
  18245. // onOk: (e: React.MouseEvent<any>) => void,
  18246. /** 点击模态框右上角叉、取消按钮、Props.maskClosable 值为 true 时的遮罩层或键盘按下 Esc 时的回调*/
  18247. // onCancel: (e: React.MouseEvent<any>) => void,
  18248. afterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
  18249. /** 垂直居中 */
  18250. centered: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  18251. /** 宽度*/
  18252. width: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
  18253. /** 底部内容*/
  18254. footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  18255. /** 确认按钮文字*/
  18256. okText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  18257. /** 确认按钮类型*/
  18258. okType: ButtonType,
  18259. /** 取消按钮文字*/
  18260. cancelText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  18261. icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  18262. /** 点击蒙层是否允许关闭*/
  18263. maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  18264. /** 强制渲染 Modal*/
  18265. forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  18266. okButtonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  18267. cancelButtonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  18268. destroyOnClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  18269. wrapClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  18270. maskTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  18271. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  18272. getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
  18273. zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  18274. bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  18275. maskStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  18276. mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  18277. keyboard: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  18278. wrapProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  18279. focusTriggerAfterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  18280. dialogStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
  18281. return {};
  18282. })
  18283. };
  18284. return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["initDefaultProps"])(props, defaultProps);
  18285. };
  18286. var destroyFns = [];
  18287. /* harmony default export */ __webpack_exports__["default"] = ({
  18288. name: 'AModal',
  18289. inheritAttrs: false,
  18290. model: {
  18291. prop: 'visible',
  18292. event: 'change'
  18293. },
  18294. props: modalProps({
  18295. width: 520,
  18296. transitionName: 'zoom',
  18297. maskTransitionName: 'fade',
  18298. confirmLoading: false,
  18299. visible: false,
  18300. okType: 'primary'
  18301. }),
  18302. data: function data() {
  18303. return {
  18304. sVisible: !!this.visible
  18305. };
  18306. },
  18307. watch: {
  18308. visible: function visible(val) {
  18309. this.sVisible = val;
  18310. }
  18311. },
  18312. inject: {
  18313. configProvider: { 'default': function _default() {
  18314. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
  18315. } }
  18316. },
  18317. // static info: ModalFunc;
  18318. // static success: ModalFunc;
  18319. // static error: ModalFunc;
  18320. // static warn: ModalFunc;
  18321. // static warning: ModalFunc;
  18322. // static confirm: ModalFunc;
  18323. methods: {
  18324. handleCancel: function handleCancel(e) {
  18325. this.$emit('cancel', e);
  18326. this.$emit('change', false);
  18327. },
  18328. handleOk: function handleOk(e) {
  18329. this.$emit('ok', e);
  18330. },
  18331. renderFooter: function renderFooter(locale) {
  18332. var h = this.$createElement;
  18333. var okType = this.okType,
  18334. confirmLoading = this.confirmLoading;
  18335. var cancelBtnProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["mergeProps"])({ on: { click: this.handleCancel } }, this.cancelButtonProps || {});
  18336. var okBtnProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["mergeProps"])({
  18337. on: { click: this.handleOk },
  18338. props: {
  18339. type: okType,
  18340. loading: confirmLoading
  18341. }
  18342. }, this.okButtonProps || {});
  18343. return h('div', [h(
  18344. _button__WEBPACK_IMPORTED_MODULE_8__["default"],
  18345. cancelBtnProps,
  18346. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'cancelText') || locale.cancelText]
  18347. ), h(
  18348. _button__WEBPACK_IMPORTED_MODULE_8__["default"],
  18349. okBtnProps,
  18350. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'okText') || locale.okText]
  18351. )]);
  18352. }
  18353. },
  18354. render: function render() {
  18355. var h = arguments[0];
  18356. var customizePrefixCls = this.prefixCls,
  18357. visible = this.sVisible,
  18358. wrapClassName = this.wrapClassName,
  18359. centered = this.centered,
  18360. getContainer = this.getContainer,
  18361. $slots = this.$slots,
  18362. $scopedSlots = this.$scopedSlots,
  18363. $attrs = this.$attrs;
  18364. var children = $scopedSlots['default'] ? $scopedSlots['default']() : $slots['default'];
  18365. var _configProvider = this.configProvider,
  18366. getPrefixCls = _configProvider.getPrefixCls,
  18367. getContextPopupContainer = _configProvider.getPopupContainer;
  18368. var prefixCls = getPrefixCls('modal', customizePrefixCls);
  18369. var defaultFooter = h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__["default"], {
  18370. attrs: {
  18371. componentName: 'Modal',
  18372. defaultLocale: Object(_locale__WEBPACK_IMPORTED_MODULE_6__["getConfirmLocale"])()
  18373. },
  18374. scopedSlots: { 'default': this.renderFooter }
  18375. });
  18376. var closeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'closeIcon');
  18377. var closeIconToRender = h(
  18378. 'span',
  18379. { 'class': prefixCls + '-close-x' },
  18380. [closeIcon || h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], { 'class': prefixCls + '-close-icon', attrs: { type: 'close' }
  18381. })]
  18382. );
  18383. var footer = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'footer');
  18384. var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'title');
  18385. var dialogProps = {
  18386. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, {
  18387. getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
  18388. prefixCls: prefixCls,
  18389. wrapClassName: classnames__WEBPACK_IMPORTED_MODULE_2___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-centered', !!centered), wrapClassName),
  18390. title: title,
  18391. footer: footer === undefined ? defaultFooter : footer,
  18392. visible: visible,
  18393. mousePosition: mousePosition,
  18394. closeIcon: closeIconToRender
  18395. }),
  18396. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getListeners"])(this), {
  18397. close: this.handleCancel
  18398. }),
  18399. 'class': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getClass"])(this),
  18400. style: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getStyle"])(this),
  18401. attrs: $attrs
  18402. };
  18403. return h(
  18404. _vc_dialog__WEBPACK_IMPORTED_MODULE_3__["default"],
  18405. dialogProps,
  18406. [children]
  18407. );
  18408. }
  18409. });
  18410. /***/ }),
  18411. /***/ "./components/modal/confirm.js":
  18412. /*!*************************************!*\
  18413. !*** ./components/modal/confirm.js ***!
  18414. \*************************************/
  18415. /*! exports provided: default */
  18416. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18417. "use strict";
  18418. __webpack_require__.r(__webpack_exports__);
  18419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return confirm; });
  18420. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  18421. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  18422. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "vue");
  18423. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
  18424. /* harmony import */ var _ConfirmDialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ConfirmDialog */ "./components/modal/ConfirmDialog.jsx");
  18425. /* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Modal */ "./components/modal/Modal.jsx");
  18426. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  18427. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  18428. function confirm(config) {
  18429. var div = document.createElement('div');
  18430. var el = document.createElement('div');
  18431. div.appendChild(el);
  18432. document.body.appendChild(div);
  18433. var currentConfig = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(config, ['parentContext']), { close: close, visible: true });
  18434. var confirmDialogInstance = null;
  18435. var confirmDialogProps = { props: {} };
  18436. function close() {
  18437. destroy.apply(undefined, arguments);
  18438. }
  18439. function update(newConfig) {
  18440. currentConfig = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, currentConfig, newConfig);
  18441. confirmDialogProps.props = currentConfig;
  18442. }
  18443. function destroy() {
  18444. if (confirmDialogInstance && div.parentNode) {
  18445. confirmDialogInstance.$destroy();
  18446. confirmDialogInstance = null;
  18447. div.parentNode.removeChild(div);
  18448. }
  18449. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  18450. args[_key] = arguments[_key];
  18451. }
  18452. var triggerCancel = args.some(function (param) {
  18453. return param && param.triggerCancel;
  18454. });
  18455. if (config.onCancel && triggerCancel) {
  18456. config.onCancel.apply(config, args);
  18457. }
  18458. for (var i = 0; i < _Modal__WEBPACK_IMPORTED_MODULE_3__["destroyFns"].length; i++) {
  18459. var fn = _Modal__WEBPACK_IMPORTED_MODULE_3__["destroyFns"][i];
  18460. if (fn === close) {
  18461. _Modal__WEBPACK_IMPORTED_MODULE_3__["destroyFns"].splice(i, 1);
  18462. break;
  18463. }
  18464. }
  18465. }
  18466. function render(props) {
  18467. confirmDialogProps.props = props;
  18468. var V = _base__WEBPACK_IMPORTED_MODULE_4__["default"].Vue || vue__WEBPACK_IMPORTED_MODULE_1___default.a;
  18469. return new V({
  18470. el: el,
  18471. parent: config.parentContext,
  18472. data: function data() {
  18473. return { confirmDialogProps: confirmDialogProps };
  18474. },
  18475. render: function render() {
  18476. var h = arguments[0];
  18477. // 先解构,避免报错,原因不详
  18478. var cdProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.confirmDialogProps);
  18479. return h(_ConfirmDialog__WEBPACK_IMPORTED_MODULE_2__["default"], cdProps);
  18480. }
  18481. });
  18482. }
  18483. confirmDialogInstance = render(currentConfig);
  18484. _Modal__WEBPACK_IMPORTED_MODULE_3__["destroyFns"].push(close);
  18485. return {
  18486. destroy: close,
  18487. update: update
  18488. };
  18489. }
  18490. /***/ }),
  18491. /***/ "./components/modal/index.js":
  18492. /*!***********************************!*\
  18493. !*** ./components/modal/index.js ***!
  18494. \***********************************/
  18495. /*! exports provided: default */
  18496. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18497. "use strict";
  18498. __webpack_require__.r(__webpack_exports__);
  18499. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  18500. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  18501. /* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Modal */ "./components/modal/Modal.jsx");
  18502. /* harmony import */ var _confirm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./confirm */ "./components/modal/confirm.js");
  18503. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  18504. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  18505. // export { ActionButtonProps } from './ActionButton'
  18506. // export { ModalProps, ModalFuncProps } from './Modal'
  18507. var info = function info(props) {
  18508. var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  18509. type: 'info',
  18510. icon: function icon(h) {
  18511. return h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
  18512. attrs: { type: 'info-circle' }
  18513. });
  18514. },
  18515. okCancel: false
  18516. }, props);
  18517. return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
  18518. };
  18519. var success = function success(props) {
  18520. var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  18521. type: 'success',
  18522. icon: function icon(h) {
  18523. return h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
  18524. attrs: { type: 'check-circle' }
  18525. });
  18526. },
  18527. okCancel: false
  18528. }, props);
  18529. return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
  18530. };
  18531. var error = function error(props) {
  18532. var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  18533. type: 'error',
  18534. icon: function icon(h) {
  18535. return h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
  18536. attrs: { type: 'close-circle' }
  18537. });
  18538. },
  18539. okCancel: false
  18540. }, props);
  18541. return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
  18542. };
  18543. var warning = function warning(props) {
  18544. var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  18545. type: 'warning',
  18546. icon: function icon(h) {
  18547. return h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
  18548. attrs: { type: 'exclamation-circle' }
  18549. });
  18550. },
  18551. okCancel: false
  18552. }, props);
  18553. return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
  18554. };
  18555. var warn = warning;
  18556. var confirm = function confirmFn(props) {
  18557. var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  18558. type: 'confirm',
  18559. okCancel: true
  18560. }, props);
  18561. return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
  18562. };
  18563. _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].info = info;
  18564. _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].success = success;
  18565. _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].error = error;
  18566. _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].warning = warning;
  18567. _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].warn = warn;
  18568. _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].confirm = confirm;
  18569. _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].destroyAll = function destroyAllFn() {
  18570. while (_Modal__WEBPACK_IMPORTED_MODULE_1__["destroyFns"].length) {
  18571. var close = _Modal__WEBPACK_IMPORTED_MODULE_1__["destroyFns"].pop();
  18572. if (close) {
  18573. close();
  18574. }
  18575. }
  18576. };
  18577. /* istanbul ignore next */
  18578. _Modal__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
  18579. Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
  18580. Vue.component(_Modal__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Modal__WEBPACK_IMPORTED_MODULE_1__["default"]);
  18581. };
  18582. /* harmony default export */ __webpack_exports__["default"] = (_Modal__WEBPACK_IMPORTED_MODULE_1__["default"]);
  18583. /***/ }),
  18584. /***/ "./components/modal/locale.js":
  18585. /*!************************************!*\
  18586. !*** ./components/modal/locale.js ***!
  18587. \************************************/
  18588. /*! exports provided: changeConfirmLocale, getConfirmLocale */
  18589. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18590. "use strict";
  18591. __webpack_require__.r(__webpack_exports__);
  18592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "changeConfirmLocale", function() { return changeConfirmLocale; });
  18593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getConfirmLocale", function() { return getConfirmLocale; });
  18594. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  18595. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  18596. /* harmony import */ var _locale_default__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../locale/default */ "./components/locale/default.js");
  18597. // export interface ModalLocale {
  18598. // okText: string;
  18599. // cancelText: string;
  18600. // justOkText: string;
  18601. // }
  18602. var runtimeLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _locale_default__WEBPACK_IMPORTED_MODULE_1__["default"].Modal);
  18603. function changeConfirmLocale(newLocale) {
  18604. if (newLocale) {
  18605. runtimeLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, runtimeLocale, newLocale);
  18606. } else {
  18607. runtimeLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _locale_default__WEBPACK_IMPORTED_MODULE_1__["default"].Modal);
  18608. }
  18609. }
  18610. function getConfirmLocale() {
  18611. return runtimeLocale;
  18612. }
  18613. /***/ }),
  18614. /***/ "./components/modal/style/index.js":
  18615. /*!*****************************************!*\
  18616. !*** ./components/modal/style/index.js ***!
  18617. \*****************************************/
  18618. /*! no exports provided */
  18619. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18620. "use strict";
  18621. __webpack_require__.r(__webpack_exports__);
  18622. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  18623. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  18624. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/modal/style/index.less");
  18625. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  18626. /* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
  18627. // style dependencies
  18628. /***/ }),
  18629. /***/ "./components/modal/style/index.less":
  18630. /*!*******************************************!*\
  18631. !*** ./components/modal/style/index.less ***!
  18632. \*******************************************/
  18633. /*! no static exports found */
  18634. /***/ (function(module, exports, __webpack_require__) {
  18635. // extracted by mini-css-extract-plugin
  18636. /***/ }),
  18637. /***/ "./components/notification/index.js":
  18638. /*!******************************************!*\
  18639. !*** ./components/notification/index.js ***!
  18640. \******************************************/
  18641. /*! exports provided: default */
  18642. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18643. "use strict";
  18644. __webpack_require__.r(__webpack_exports__);
  18645. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  18646. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  18647. /* harmony import */ var _vc_notification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-notification */ "./components/vc-notification/index.js");
  18648. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  18649. var notificationInstance = {};
  18650. var defaultDuration = 4.5;
  18651. var defaultTop = '24px';
  18652. var defaultBottom = '24px';
  18653. var defaultPlacement = 'topRight';
  18654. var defaultGetContainer = function defaultGetContainer() {
  18655. return document.body;
  18656. };
  18657. var defaultCloseIcon = null;
  18658. function setNotificationConfig(options) {
  18659. var duration = options.duration,
  18660. placement = options.placement,
  18661. bottom = options.bottom,
  18662. top = options.top,
  18663. getContainer = options.getContainer,
  18664. closeIcon = options.closeIcon;
  18665. if (duration !== undefined) {
  18666. defaultDuration = duration;
  18667. }
  18668. if (placement !== undefined) {
  18669. defaultPlacement = placement;
  18670. }
  18671. if (bottom !== undefined) {
  18672. defaultBottom = typeof bottom === 'number' ? bottom + 'px' : bottom;
  18673. }
  18674. if (top !== undefined) {
  18675. defaultTop = typeof top === 'number' ? top + 'px' : top;
  18676. }
  18677. if (getContainer !== undefined) {
  18678. defaultGetContainer = getContainer;
  18679. }
  18680. if (closeIcon !== undefined) {
  18681. defaultCloseIcon = closeIcon;
  18682. }
  18683. }
  18684. function getPlacementStyle(placement) {
  18685. var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultTop;
  18686. var bottom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultBottom;
  18687. var style = void 0;
  18688. switch (placement) {
  18689. case 'topLeft':
  18690. style = {
  18691. left: 0,
  18692. top: top,
  18693. bottom: 'auto'
  18694. };
  18695. break;
  18696. case 'topRight':
  18697. style = {
  18698. right: 0,
  18699. top: top,
  18700. bottom: 'auto'
  18701. };
  18702. break;
  18703. case 'bottomLeft':
  18704. style = {
  18705. left: 0,
  18706. top: 'auto',
  18707. bottom: bottom
  18708. };
  18709. break;
  18710. default:
  18711. style = {
  18712. right: 0,
  18713. top: 'auto',
  18714. bottom: bottom
  18715. };
  18716. break;
  18717. }
  18718. return style;
  18719. }
  18720. function getNotificationInstance(_ref, callback) {
  18721. var prefixCls = _ref.prefixCls,
  18722. _ref$placement = _ref.placement,
  18723. placement = _ref$placement === undefined ? defaultPlacement : _ref$placement,
  18724. _ref$getContainer = _ref.getContainer,
  18725. getContainer = _ref$getContainer === undefined ? defaultGetContainer : _ref$getContainer,
  18726. top = _ref.top,
  18727. bottom = _ref.bottom,
  18728. _ref$closeIcon = _ref.closeIcon,
  18729. _closeIcon = _ref$closeIcon === undefined ? defaultCloseIcon : _ref$closeIcon;
  18730. var cacheKey = prefixCls + '-' + placement;
  18731. if (notificationInstance[cacheKey]) {
  18732. callback(notificationInstance[cacheKey]);
  18733. return;
  18734. }
  18735. _vc_notification__WEBPACK_IMPORTED_MODULE_1__["default"].newInstance({
  18736. prefixCls: prefixCls,
  18737. 'class': prefixCls + '-' + placement,
  18738. style: getPlacementStyle(placement, top, bottom),
  18739. getContainer: getContainer,
  18740. closeIcon: function closeIcon(h) {
  18741. var icon = typeof _closeIcon === 'function' ? _closeIcon(h) : _closeIcon;
  18742. var closeIconToRender = h(
  18743. 'span',
  18744. { 'class': prefixCls + '-close-x' },
  18745. [icon || h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], { 'class': prefixCls + '-close-icon', attrs: { type: 'close' }
  18746. })]
  18747. );
  18748. return closeIconToRender;
  18749. }
  18750. }, function (notification) {
  18751. notificationInstance[cacheKey] = notification;
  18752. callback(notification);
  18753. });
  18754. }
  18755. var typeToIcon = {
  18756. success: 'check-circle-o',
  18757. info: 'info-circle-o',
  18758. error: 'close-circle-o',
  18759. warning: 'exclamation-circle-o'
  18760. };
  18761. function notice(args) {
  18762. var icon = args.icon,
  18763. type = args.type,
  18764. description = args.description,
  18765. message = args.message,
  18766. btn = args.btn;
  18767. var outerPrefixCls = args.prefixCls || 'ant-notification';
  18768. var prefixCls = outerPrefixCls + '-notice';
  18769. var duration = args.duration === undefined ? defaultDuration : args.duration;
  18770. var iconNode = null;
  18771. if (icon) {
  18772. iconNode = function iconNode(h) {
  18773. return h(
  18774. 'span',
  18775. { 'class': prefixCls + '-icon' },
  18776. [typeof icon === 'function' ? icon(h) : icon]
  18777. );
  18778. };
  18779. } else if (type) {
  18780. var iconType = typeToIcon[type];
  18781. iconNode = function iconNode(h) {
  18782. return h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], { 'class': prefixCls + '-icon ' + prefixCls + '-icon-' + type, attrs: { type: iconType }
  18783. });
  18784. }; // eslint-disable-line
  18785. }
  18786. var placement = args.placement,
  18787. top = args.top,
  18788. bottom = args.bottom,
  18789. getContainer = args.getContainer,
  18790. closeIcon = args.closeIcon;
  18791. getNotificationInstance({
  18792. prefixCls: outerPrefixCls,
  18793. placement: placement,
  18794. top: top,
  18795. bottom: bottom,
  18796. getContainer: getContainer,
  18797. closeIcon: closeIcon
  18798. }, function (notification) {
  18799. notification.notice({
  18800. content: function content(h) {
  18801. return h(
  18802. 'div',
  18803. { 'class': iconNode ? prefixCls + '-with-icon' : '' },
  18804. [iconNode && iconNode(h), h(
  18805. 'div',
  18806. { 'class': prefixCls + '-message' },
  18807. [!description && iconNode ? h('span', { 'class': prefixCls + '-message-single-line-auto-margin' }) : null, typeof message === 'function' ? message(h) : message]
  18808. ), h(
  18809. 'div',
  18810. { 'class': prefixCls + '-description' },
  18811. [typeof description === 'function' ? description(h) : description]
  18812. ), btn ? h(
  18813. 'span',
  18814. { 'class': prefixCls + '-btn' },
  18815. [typeof btn === 'function' ? btn(h) : btn]
  18816. ) : null]
  18817. );
  18818. },
  18819. duration: duration,
  18820. closable: true,
  18821. onClose: args.onClose,
  18822. onClick: args.onClick,
  18823. key: args.key,
  18824. style: args.style || {},
  18825. 'class': args['class']
  18826. });
  18827. });
  18828. }
  18829. var api = {
  18830. open: notice,
  18831. close: function close(key) {
  18832. Object.keys(notificationInstance).forEach(function (cacheKey) {
  18833. return notificationInstance[cacheKey].removeNotice(key);
  18834. });
  18835. },
  18836. config: setNotificationConfig,
  18837. destroy: function destroy() {
  18838. Object.keys(notificationInstance).forEach(function (cacheKey) {
  18839. notificationInstance[cacheKey].destroy();
  18840. delete notificationInstance[cacheKey];
  18841. });
  18842. }
  18843. };
  18844. ['success', 'info', 'warning', 'error'].forEach(function (type) {
  18845. api[type] = function (args) {
  18846. return api.open(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, args, {
  18847. type: type
  18848. }));
  18849. };
  18850. });
  18851. api.warn = api.warning;
  18852. /* harmony default export */ __webpack_exports__["default"] = (api);
  18853. /***/ }),
  18854. /***/ "./components/notification/style/index.js":
  18855. /*!************************************************!*\
  18856. !*** ./components/notification/style/index.js ***!
  18857. \************************************************/
  18858. /*! no exports provided */
  18859. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18860. "use strict";
  18861. __webpack_require__.r(__webpack_exports__);
  18862. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  18863. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  18864. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/notification/style/index.less");
  18865. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  18866. /***/ }),
  18867. /***/ "./components/notification/style/index.less":
  18868. /*!**************************************************!*\
  18869. !*** ./components/notification/style/index.less ***!
  18870. \**************************************************/
  18871. /*! no static exports found */
  18872. /***/ (function(module, exports, __webpack_require__) {
  18873. // extracted by mini-css-extract-plugin
  18874. /***/ }),
  18875. /***/ "./components/page-header/index.jsx":
  18876. /*!******************************************!*\
  18877. !*** ./components/page-header/index.jsx ***!
  18878. \******************************************/
  18879. /*! exports provided: PageHeaderProps, default */
  18880. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  18881. "use strict";
  18882. __webpack_require__.r(__webpack_exports__);
  18883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PageHeaderProps", function() { return PageHeaderProps; });
  18884. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  18885. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  18886. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  18887. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  18888. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  18889. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  18890. /* harmony import */ var _breadcrumb__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../breadcrumb */ "./components/breadcrumb/index.js");
  18891. /* harmony import */ var _avatar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../avatar */ "./components/avatar/index.js");
  18892. /* harmony import */ var _util_transButton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/transButton */ "./components/_util/transButton.jsx");
  18893. /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
  18894. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  18895. var PageHeaderProps = {
  18896. backIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  18897. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  18898. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  18899. subTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  18900. breadcrumb: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  18901. tags: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  18902. footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  18903. extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  18904. avatar: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  18905. ghost: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
  18906. };
  18907. var renderBack = function renderBack(instance, prefixCls, backIcon, onBack) {
  18908. // eslint-disable-next-line no-unused-vars
  18909. var h = instance.$createElement;
  18910. if (!backIcon || !onBack) {
  18911. return null;
  18912. }
  18913. return h(
  18914. _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_8__["default"],
  18915. {
  18916. attrs: { componentName: 'PageHeader' }
  18917. },
  18918. [function (_ref) {
  18919. var back = _ref.back;
  18920. return h(
  18921. 'div',
  18922. { 'class': prefixCls + '-back' },
  18923. [h(
  18924. _util_transButton__WEBPACK_IMPORTED_MODULE_7__["default"],
  18925. {
  18926. on: {
  18927. 'click': function click(e) {
  18928. instance.$emit('back', e);
  18929. }
  18930. },
  18931. 'class': prefixCls + '-back-button',
  18932. attrs: { 'aria-label': back
  18933. }
  18934. },
  18935. [backIcon]
  18936. )]
  18937. );
  18938. }]
  18939. );
  18940. };
  18941. var renderBreadcrumb = function renderBreadcrumb(h, breadcrumb) {
  18942. return h(_breadcrumb__WEBPACK_IMPORTED_MODULE_5__["default"], breadcrumb);
  18943. };
  18944. var renderTitle = function renderTitle(h, prefixCls, instance) {
  18945. var avatar = instance.avatar;
  18946. var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'title');
  18947. var subTitle = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'subTitle');
  18948. var tags = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'tags');
  18949. var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'extra');
  18950. var backIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'backIcon') !== undefined ? Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'backIcon') : h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
  18951. attrs: { type: 'arrow-left' }
  18952. });
  18953. var onBack = instance.$listeners.back;
  18954. var headingPrefixCls = prefixCls + '-heading';
  18955. if (title || subTitle || tags || extra) {
  18956. var backIconDom = renderBack(instance, prefixCls, backIcon, onBack);
  18957. return h(
  18958. 'div',
  18959. { 'class': headingPrefixCls },
  18960. [backIconDom, avatar && h(_avatar__WEBPACK_IMPORTED_MODULE_6__["default"], avatar), title && h(
  18961. 'span',
  18962. { 'class': headingPrefixCls + '-title' },
  18963. [title]
  18964. ), subTitle && h(
  18965. 'span',
  18966. { 'class': headingPrefixCls + '-sub-title' },
  18967. [subTitle]
  18968. ), tags && h(
  18969. 'span',
  18970. { 'class': headingPrefixCls + '-tags' },
  18971. [tags]
  18972. ), extra && h(
  18973. 'span',
  18974. { 'class': headingPrefixCls + '-extra' },
  18975. [extra]
  18976. )]
  18977. );
  18978. }
  18979. return null;
  18980. };
  18981. var renderFooter = function renderFooter(h, prefixCls, footer) {
  18982. if (footer) {
  18983. return h(
  18984. 'div',
  18985. { 'class': prefixCls + '-footer' },
  18986. [footer]
  18987. );
  18988. }
  18989. return null;
  18990. };
  18991. var renderChildren = function renderChildren(h, prefixCls, children) {
  18992. return h(
  18993. 'div',
  18994. { 'class': prefixCls + '-content' },
  18995. [children]
  18996. );
  18997. };
  18998. var PageHeader = {
  18999. name: 'APageHeader',
  19000. props: PageHeaderProps,
  19001. inject: {
  19002. configProvider: { 'default': function _default() {
  19003. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
  19004. } }
  19005. },
  19006. render: function render(h) {
  19007. var _configProvider = this.configProvider,
  19008. getPrefixCls = _configProvider.getPrefixCls,
  19009. pageHeader = _configProvider.pageHeader;
  19010. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
  19011. var customizePrefixCls = props.prefixCls,
  19012. breadcrumb = props.breadcrumb;
  19013. var footer = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'footer');
  19014. var children = this.$slots['default'];
  19015. var ghost = true;
  19016. // Use `ghost` from `props` or from `ConfigProvider` instead.
  19017. if ('ghost' in props) {
  19018. ghost = props.ghost;
  19019. } else if (pageHeader && 'ghost' in pageHeader) {
  19020. ghost = pageHeader.ghost;
  19021. }
  19022. var prefixCls = getPrefixCls('page-header', customizePrefixCls);
  19023. var breadcrumbDom = breadcrumb && breadcrumb.props && breadcrumb.props.routes ? renderBreadcrumb(h, breadcrumb) : null;
  19024. var className = [prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({
  19025. 'has-breadcrumb': breadcrumbDom,
  19026. 'has-footer': footer
  19027. }, prefixCls + '-ghost', ghost)];
  19028. return h(
  19029. 'div',
  19030. { 'class': className },
  19031. [breadcrumbDom, renderTitle(h, prefixCls, this), children && renderChildren(h, prefixCls, children), renderFooter(h, prefixCls, footer)]
  19032. );
  19033. }
  19034. };
  19035. /* istanbul ignore next */
  19036. PageHeader.install = function (Vue) {
  19037. Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
  19038. Vue.component(PageHeader.name, PageHeader);
  19039. };
  19040. /* harmony default export */ __webpack_exports__["default"] = (PageHeader);
  19041. /***/ }),
  19042. /***/ "./components/page-header/style/index.js":
  19043. /*!***********************************************!*\
  19044. !*** ./components/page-header/style/index.js ***!
  19045. \***********************************************/
  19046. /*! no exports provided */
  19047. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19048. "use strict";
  19049. __webpack_require__.r(__webpack_exports__);
  19050. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.less */ "./components/page-header/style/index.less");
  19051. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_0__);
  19052. /* harmony import */ var _breadcrumb_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../breadcrumb/style */ "./components/breadcrumb/style/index.js");
  19053. /* harmony import */ var _avatar_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../avatar/style */ "./components/avatar/style/index.js");
  19054. // style dependencies
  19055. /***/ }),
  19056. /***/ "./components/page-header/style/index.less":
  19057. /*!*************************************************!*\
  19058. !*** ./components/page-header/style/index.less ***!
  19059. \*************************************************/
  19060. /*! no static exports found */
  19061. /***/ (function(module, exports, __webpack_require__) {
  19062. // extracted by mini-css-extract-plugin
  19063. /***/ }),
  19064. /***/ "./components/pagination/MiniSelect.jsx":
  19065. /*!**********************************************!*\
  19066. !*** ./components/pagination/MiniSelect.jsx ***!
  19067. \**********************************************/
  19068. /*! exports provided: default */
  19069. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19070. "use strict";
  19071. __webpack_require__.r(__webpack_exports__);
  19072. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  19073. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  19074. /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
  19075. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  19076. /* harmony default export */ __webpack_exports__["default"] = ({
  19077. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _select__WEBPACK_IMPORTED_MODULE_1__["SelectProps"]),
  19078. Option: _select__WEBPACK_IMPORTED_MODULE_1__["default"].Option,
  19079. render: function render() {
  19080. var h = arguments[0];
  19081. var selectOptionsProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
  19082. var selelctProps = {
  19083. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, selectOptionsProps, {
  19084. size: 'small'
  19085. }),
  19086. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this)
  19087. };
  19088. return h(
  19089. _select__WEBPACK_IMPORTED_MODULE_1__["default"],
  19090. selelctProps,
  19091. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["filterEmpty"])(this.$slots['default'])]
  19092. );
  19093. }
  19094. });
  19095. /***/ }),
  19096. /***/ "./components/pagination/Pagination.jsx":
  19097. /*!**********************************************!*\
  19098. !*** ./components/pagination/Pagination.jsx ***!
  19099. \**********************************************/
  19100. /*! exports provided: PaginationProps, PaginationConfig, default */
  19101. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19102. "use strict";
  19103. __webpack_require__.r(__webpack_exports__);
  19104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaginationProps", function() { return PaginationProps; });
  19105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaginationConfig", function() { return PaginationConfig; });
  19106. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  19107. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
  19108. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  19109. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  19110. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  19111. /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
  19112. /* harmony import */ var _MiniSelect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MiniSelect */ "./components/pagination/MiniSelect.jsx");
  19113. /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
  19114. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  19115. /* harmony import */ var _vc_pagination__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-pagination */ "./components/vc-pagination/index.js");
  19116. /* harmony import */ var _vc_pagination_locale_en_US__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../vc-pagination/locale/en_US */ "./components/vc-pagination/locale/en_US.js");
  19117. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  19118. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  19119. var PaginationProps = function PaginationProps() {
  19120. return {
  19121. total: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  19122. defaultCurrent: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  19123. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  19124. current: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  19125. defaultPageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  19126. pageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  19127. hideOnSinglePage: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  19128. showSizeChanger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  19129. pageSizeOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string])),
  19130. buildOptionText: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  19131. showSizeChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  19132. showQuickJumper: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object]),
  19133. showTotal: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  19134. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  19135. simple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  19136. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  19137. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  19138. selectPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  19139. itemRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  19140. role: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  19141. showLessItems: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
  19142. };
  19143. };
  19144. var PaginationConfig = function PaginationConfig() {
  19145. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, PaginationProps(), {
  19146. position: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['top', 'bottom', 'both'])
  19147. });
  19148. };
  19149. /* harmony default export */ __webpack_exports__["default"] = ({
  19150. name: 'APagination',
  19151. model: {
  19152. prop: 'current',
  19153. event: 'change.current'
  19154. },
  19155. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, PaginationProps()),
  19156. inject: {
  19157. configProvider: { 'default': function _default() {
  19158. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
  19159. } }
  19160. },
  19161. methods: {
  19162. getIconsProps: function getIconsProps(prefixCls) {
  19163. var h = this.$createElement;
  19164. var prevIcon = h(
  19165. 'a',
  19166. { 'class': prefixCls + '-item-link' },
  19167. [h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], {
  19168. attrs: { type: 'left' }
  19169. })]
  19170. );
  19171. var nextIcon = h(
  19172. 'a',
  19173. { 'class': prefixCls + '-item-link' },
  19174. [h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], {
  19175. attrs: { type: 'right' }
  19176. })]
  19177. );
  19178. var jumpPrevIcon = h(
  19179. 'a',
  19180. { 'class': prefixCls + '-item-link' },
  19181. [h(
  19182. 'div',
  19183. { 'class': prefixCls + '-item-container' },
  19184. [h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], { 'class': prefixCls + '-item-link-icon', attrs: { type: 'double-left' }
  19185. }), h(
  19186. 'span',
  19187. { 'class': prefixCls + '-item-ellipsis' },
  19188. ['\u2022\u2022\u2022']
  19189. )]
  19190. )]
  19191. );
  19192. var jumpNextIcon = h(
  19193. 'a',
  19194. { 'class': prefixCls + '-item-link' },
  19195. [h(
  19196. 'div',
  19197. { 'class': prefixCls + '-item-container' },
  19198. [h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], { 'class': prefixCls + '-item-link-icon', attrs: { type: 'double-right' }
  19199. }), h(
  19200. 'span',
  19201. { 'class': prefixCls + '-item-ellipsis' },
  19202. ['\u2022\u2022\u2022']
  19203. )]
  19204. )]
  19205. );
  19206. return {
  19207. prevIcon: prevIcon,
  19208. nextIcon: nextIcon,
  19209. jumpPrevIcon: jumpPrevIcon,
  19210. jumpNextIcon: jumpNextIcon
  19211. };
  19212. },
  19213. renderPagination: function renderPagination(contextLocale) {
  19214. var h = this.$createElement;
  19215. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
  19216. customizePrefixCls = _getOptionProps.prefixCls,
  19217. customizeSelectPrefixCls = _getOptionProps.selectPrefixCls,
  19218. buildOptionText = _getOptionProps.buildOptionText,
  19219. size = _getOptionProps.size,
  19220. customLocale = _getOptionProps.locale,
  19221. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['prefixCls', 'selectPrefixCls', 'buildOptionText', 'size', 'locale']);
  19222. var getPrefixCls = this.configProvider.getPrefixCls;
  19223. var prefixCls = getPrefixCls('pagination', customizePrefixCls);
  19224. var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
  19225. var isSmall = size === 'small';
  19226. var paginationProps = {
  19227. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
  19228. prefixCls: prefixCls,
  19229. selectPrefixCls: selectPrefixCls
  19230. }, restProps, this.getIconsProps(prefixCls), {
  19231. selectComponentClass: isSmall ? _MiniSelect__WEBPACK_IMPORTED_MODULE_4__["default"] : _select__WEBPACK_IMPORTED_MODULE_3__["default"],
  19232. locale: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, contextLocale, customLocale),
  19233. buildOptionText: buildOptionText || this.$scopedSlots.buildOptionText
  19234. }),
  19235. 'class': {
  19236. mini: isSmall
  19237. },
  19238. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this)
  19239. };
  19240. return h(_vc_pagination__WEBPACK_IMPORTED_MODULE_7__["default"], paginationProps);
  19241. }
  19242. },
  19243. render: function render() {
  19244. var h = arguments[0];
  19245. return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_5__["default"], {
  19246. attrs: {
  19247. componentName: 'Pagination',
  19248. defaultLocale: _vc_pagination_locale_en_US__WEBPACK_IMPORTED_MODULE_8__["default"]
  19249. },
  19250. scopedSlots: { 'default': this.renderPagination }
  19251. });
  19252. }
  19253. });
  19254. /***/ }),
  19255. /***/ "./components/pagination/index.js":
  19256. /*!****************************************!*\
  19257. !*** ./components/pagination/index.js ***!
  19258. \****************************************/
  19259. /*! exports provided: PaginationProps, PaginationConfig, default */
  19260. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19261. "use strict";
  19262. __webpack_require__.r(__webpack_exports__);
  19263. /* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Pagination */ "./components/pagination/Pagination.jsx");
  19264. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  19265. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationProps", function() { return _Pagination__WEBPACK_IMPORTED_MODULE_0__["PaginationProps"]; });
  19266. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationConfig", function() { return _Pagination__WEBPACK_IMPORTED_MODULE_0__["PaginationConfig"]; });
  19267. /* istanbul ignore next */
  19268. _Pagination__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  19269. Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
  19270. Vue.component(_Pagination__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Pagination__WEBPACK_IMPORTED_MODULE_0__["default"]);
  19271. };
  19272. /* harmony default export */ __webpack_exports__["default"] = (_Pagination__WEBPACK_IMPORTED_MODULE_0__["default"]);
  19273. /***/ }),
  19274. /***/ "./components/pagination/style/index.js":
  19275. /*!**********************************************!*\
  19276. !*** ./components/pagination/style/index.js ***!
  19277. \**********************************************/
  19278. /*! no exports provided */
  19279. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19280. "use strict";
  19281. __webpack_require__.r(__webpack_exports__);
  19282. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  19283. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  19284. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/pagination/style/index.less");
  19285. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  19286. /* harmony import */ var _select_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../select/style */ "./components/select/style/index.js");
  19287. // style dependencies
  19288. /***/ }),
  19289. /***/ "./components/pagination/style/index.less":
  19290. /*!************************************************!*\
  19291. !*** ./components/pagination/style/index.less ***!
  19292. \************************************************/
  19293. /*! no static exports found */
  19294. /***/ (function(module, exports, __webpack_require__) {
  19295. // extracted by mini-css-extract-plugin
  19296. /***/ }),
  19297. /***/ "./components/popconfirm/index.jsx":
  19298. /*!*****************************************!*\
  19299. !*** ./components/popconfirm/index.jsx ***!
  19300. \*****************************************/
  19301. /*! exports provided: default */
  19302. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19303. "use strict";
  19304. __webpack_require__.r(__webpack_exports__);
  19305. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  19306. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  19307. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  19308. /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
  19309. /* harmony import */ var _tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tooltip/abstractTooltipProps */ "./components/tooltip/abstractTooltipProps.js");
  19310. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  19311. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  19312. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  19313. /* harmony import */ var _button_buttonTypes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../button/buttonTypes */ "./components/button/buttonTypes.js");
  19314. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  19315. /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
  19316. /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
  19317. /* harmony import */ var _locale_provider_default__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../locale-provider/default */ "./components/locale-provider/default.js");
  19318. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  19319. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  19320. var tooltipProps = Object(_tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_3__["default"])();
  19321. var btnProps = Object(_button_buttonTypes__WEBPACK_IMPORTED_MODULE_7__["default"])();
  19322. var Popconfirm = {
  19323. name: 'APopconfirm',
  19324. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, tooltipProps, {
  19325. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  19326. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('zoom-big'),
  19327. content: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  19328. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  19329. trigger: tooltipProps.trigger.def('click'),
  19330. okType: btnProps.type.def('primary'),
  19331. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
  19332. okText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  19333. cancelText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  19334. icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  19335. okButtonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  19336. cancelButtonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object
  19337. }),
  19338. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
  19339. model: {
  19340. prop: 'visible',
  19341. event: 'visibleChange'
  19342. },
  19343. watch: {
  19344. visible: function visible(val) {
  19345. this.sVisible = val;
  19346. }
  19347. },
  19348. inject: {
  19349. configProvider: { 'default': function _default() {
  19350. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
  19351. } }
  19352. },
  19353. data: function data() {
  19354. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  19355. var state = { sVisible: false };
  19356. if ('visible' in props) {
  19357. state.sVisible = props.visible;
  19358. }
  19359. if ('defaultVisible' in props) {
  19360. state.sVisible = props.defaultVisible;
  19361. }
  19362. return state;
  19363. },
  19364. methods: {
  19365. onConfirm: function onConfirm(e) {
  19366. this.setVisible(false, e);
  19367. this.$emit('confirm', e);
  19368. },
  19369. onCancel: function onCancel(e) {
  19370. this.setVisible(false, e);
  19371. this.$emit('cancel', e);
  19372. },
  19373. onVisibleChange: function onVisibleChange(sVisible) {
  19374. var disabled = this.$props.disabled;
  19375. if (disabled) {
  19376. return;
  19377. }
  19378. this.setVisible(sVisible);
  19379. },
  19380. setVisible: function setVisible(sVisible, e) {
  19381. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'visible')) {
  19382. this.setState({ sVisible: sVisible });
  19383. }
  19384. this.$emit('visibleChange', sVisible, e);
  19385. },
  19386. getPopupDomNode: function getPopupDomNode() {
  19387. return this.$refs.tooltip.getPopupDomNode();
  19388. },
  19389. renderOverlay: function renderOverlay(prefixCls, popconfirmLocale) {
  19390. var h = this.$createElement;
  19391. var okType = this.okType,
  19392. okButtonProps = this.okButtonProps,
  19393. cancelButtonProps = this.cancelButtonProps;
  19394. var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'icon') || h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
  19395. attrs: { type: 'exclamation-circle', theme: 'filled' }
  19396. });
  19397. var cancelBtnProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["mergeProps"])({
  19398. props: {
  19399. size: 'small'
  19400. },
  19401. on: {
  19402. click: this.onCancel
  19403. }
  19404. }, cancelButtonProps);
  19405. var okBtnProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["mergeProps"])({
  19406. props: {
  19407. type: okType,
  19408. size: 'small'
  19409. },
  19410. on: {
  19411. click: this.onConfirm
  19412. }
  19413. }, okButtonProps);
  19414. return h(
  19415. 'div',
  19416. { 'class': prefixCls + '-inner-content' },
  19417. [h(
  19418. 'div',
  19419. { 'class': prefixCls + '-message' },
  19420. [icon, h(
  19421. 'div',
  19422. { 'class': prefixCls + '-message-title' },
  19423. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'title')]
  19424. )]
  19425. ), h(
  19426. 'div',
  19427. { 'class': prefixCls + '-buttons' },
  19428. [h(
  19429. _button__WEBPACK_IMPORTED_MODULE_9__["default"],
  19430. cancelBtnProps,
  19431. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'cancelText') || popconfirmLocale.cancelText]
  19432. ), h(
  19433. _button__WEBPACK_IMPORTED_MODULE_9__["default"],
  19434. okBtnProps,
  19435. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'okText') || popconfirmLocale.okText]
  19436. )]
  19437. )]
  19438. );
  19439. }
  19440. },
  19441. render: function render() {
  19442. var _this = this;
  19443. var h = arguments[0];
  19444. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  19445. var customizePrefixCls = props.prefixCls;
  19446. var getPrefixCls = this.configProvider.getPrefixCls;
  19447. var prefixCls = getPrefixCls('popover', customizePrefixCls);
  19448. var otherProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ['title', 'content', 'cancelText', 'okText']);
  19449. var tooltipProps = {
  19450. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, otherProps, {
  19451. prefixCls: prefixCls,
  19452. visible: this.sVisible
  19453. }),
  19454. ref: 'tooltip',
  19455. on: {
  19456. visibleChange: this.onVisibleChange
  19457. }
  19458. };
  19459. var overlay = h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__["default"], {
  19460. attrs: {
  19461. componentName: 'Popconfirm',
  19462. defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_11__["default"].Popconfirm
  19463. },
  19464. scopedSlots: {
  19465. 'default': function _default(popconfirmLocale) {
  19466. return _this.renderOverlay(prefixCls, popconfirmLocale);
  19467. }
  19468. }
  19469. });
  19470. return h(
  19471. _tooltip__WEBPACK_IMPORTED_MODULE_2__["default"],
  19472. tooltipProps,
  19473. [h(
  19474. 'template',
  19475. { slot: 'title' },
  19476. [overlay]
  19477. ), this.$slots['default']]
  19478. );
  19479. }
  19480. };
  19481. /* istanbul ignore next */
  19482. Popconfirm.install = function (Vue) {
  19483. Vue.use(_base__WEBPACK_IMPORTED_MODULE_13__["default"]);
  19484. Vue.component(Popconfirm.name, Popconfirm);
  19485. };
  19486. /* harmony default export */ __webpack_exports__["default"] = (Popconfirm);
  19487. /***/ }),
  19488. /***/ "./components/popconfirm/style/index.js":
  19489. /*!**********************************************!*\
  19490. !*** ./components/popconfirm/style/index.js ***!
  19491. \**********************************************/
  19492. /*! no exports provided */
  19493. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19494. "use strict";
  19495. __webpack_require__.r(__webpack_exports__);
  19496. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  19497. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  19498. /* harmony import */ var _popover_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../popover/style */ "./components/popover/style/index.js");
  19499. /* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
  19500. // style dependencies
  19501. // deps-lint-skip: tooltip, popover
  19502. /***/ }),
  19503. /***/ "./components/popover/index.jsx":
  19504. /*!**************************************!*\
  19505. !*** ./components/popover/index.jsx ***!
  19506. \**************************************/
  19507. /*! exports provided: default */
  19508. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19509. "use strict";
  19510. __webpack_require__.r(__webpack_exports__);
  19511. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  19512. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  19513. /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
  19514. /* harmony import */ var _tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tooltip/abstractTooltipProps */ "./components/tooltip/abstractTooltipProps.js");
  19515. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  19516. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  19517. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  19518. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  19519. var props = Object(_tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_2__["default"])();
  19520. var Popover = {
  19521. name: 'APopover',
  19522. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
  19523. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  19524. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('zoom-big'),
  19525. content: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  19526. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
  19527. }),
  19528. model: {
  19529. prop: 'visible',
  19530. event: 'visibleChange'
  19531. },
  19532. inject: {
  19533. configProvider: { 'default': function _default() {
  19534. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
  19535. } }
  19536. },
  19537. methods: {
  19538. getPopupDomNode: function getPopupDomNode() {
  19539. return this.$refs.tooltip.getPopupDomNode();
  19540. }
  19541. },
  19542. render: function render() {
  19543. var h = arguments[0];
  19544. var title = this.title,
  19545. customizePrefixCls = this.prefixCls,
  19546. $slots = this.$slots;
  19547. var getPrefixCls = this.configProvider.getPrefixCls;
  19548. var prefixCls = getPrefixCls('popover', customizePrefixCls);
  19549. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
  19550. delete props.title;
  19551. delete props.content;
  19552. var tooltipProps = {
  19553. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
  19554. prefixCls: prefixCls
  19555. }),
  19556. ref: 'tooltip',
  19557. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
  19558. };
  19559. return h(
  19560. _tooltip__WEBPACK_IMPORTED_MODULE_1__["default"],
  19561. tooltipProps,
  19562. [h(
  19563. 'template',
  19564. { slot: 'title' },
  19565. [h('div', [(title || $slots.title) && h(
  19566. 'div',
  19567. { 'class': prefixCls + '-title' },
  19568. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'title')]
  19569. ), h(
  19570. 'div',
  19571. { 'class': prefixCls + '-inner-content' },
  19572. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'content')]
  19573. )])]
  19574. ), this.$slots['default']]
  19575. );
  19576. }
  19577. };
  19578. /* istanbul ignore next */
  19579. Popover.install = function (Vue) {
  19580. Vue.use(_base__WEBPACK_IMPORTED_MODULE_6__["default"]);
  19581. Vue.component(Popover.name, Popover);
  19582. };
  19583. /* harmony default export */ __webpack_exports__["default"] = (Popover);
  19584. /***/ }),
  19585. /***/ "./components/popover/style/index.js":
  19586. /*!*******************************************!*\
  19587. !*** ./components/popover/style/index.js ***!
  19588. \*******************************************/
  19589. /*! no exports provided */
  19590. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19591. "use strict";
  19592. __webpack_require__.r(__webpack_exports__);
  19593. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  19594. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  19595. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/popover/style/index.less");
  19596. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  19597. // style dependencies
  19598. // deps-lint-skip: tooltip
  19599. /***/ }),
  19600. /***/ "./components/popover/style/index.less":
  19601. /*!*********************************************!*\
  19602. !*** ./components/popover/style/index.less ***!
  19603. \*********************************************/
  19604. /*! no static exports found */
  19605. /***/ (function(module, exports, __webpack_require__) {
  19606. // extracted by mini-css-extract-plugin
  19607. /***/ }),
  19608. /***/ "./components/progress/circle.jsx":
  19609. /*!****************************************!*\
  19610. !*** ./components/progress/circle.jsx ***!
  19611. \****************************************/
  19612. /*! exports provided: default */
  19613. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19614. "use strict";
  19615. __webpack_require__.r(__webpack_exports__);
  19616. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  19617. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  19618. /* harmony import */ var _vc_progress__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-progress */ "./components/vc-progress/index.js");
  19619. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./components/progress/utils.js");
  19620. var statusColorMap = {
  19621. normal: '#108ee9',
  19622. exception: '#ff5500',
  19623. success: '#87d068'
  19624. };
  19625. function getPercentage(_ref) {
  19626. var percent = _ref.percent,
  19627. successPercent = _ref.successPercent;
  19628. var ptg = Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validProgress"])(percent);
  19629. if (!successPercent) return ptg;
  19630. var successPtg = Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validProgress"])(successPercent);
  19631. return [successPercent, Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validProgress"])(ptg - successPtg)];
  19632. }
  19633. function getStrokeColor(_ref2) {
  19634. var progressStatus = _ref2.progressStatus,
  19635. successPercent = _ref2.successPercent,
  19636. strokeColor = _ref2.strokeColor;
  19637. var color = strokeColor || statusColorMap[progressStatus];
  19638. if (!successPercent) return color;
  19639. return [statusColorMap.success, color];
  19640. }
  19641. var Circle = {
  19642. functional: true,
  19643. render: function render(h, context) {
  19644. var _wrapperClassName;
  19645. var props = context.props,
  19646. children = context.children;
  19647. var prefixCls = props.prefixCls,
  19648. width = props.width,
  19649. strokeWidth = props.strokeWidth,
  19650. trailColor = props.trailColor,
  19651. strokeLinecap = props.strokeLinecap,
  19652. gapPosition = props.gapPosition,
  19653. gapDegree = props.gapDegree,
  19654. type = props.type;
  19655. var circleSize = width || 120;
  19656. var circleStyle = {
  19657. width: typeof circleSize === 'number' ? circleSize + 'px' : circleSize,
  19658. height: typeof circleSize === 'number' ? circleSize + 'px' : circleSize,
  19659. fontSize: circleSize * 0.15 + 6
  19660. };
  19661. var circleWidth = strokeWidth || 6;
  19662. var gapPos = gapPosition || type === 'dashboard' && 'bottom' || 'top';
  19663. var gapDeg = gapDegree || type === 'dashboard' && 75;
  19664. var strokeColor = getStrokeColor(props);
  19665. var isGradient = Object.prototype.toString.call(strokeColor) === '[object Object]';
  19666. var wrapperClassName = (_wrapperClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_wrapperClassName, prefixCls + '-inner', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_wrapperClassName, prefixCls + '-circle-gradient', isGradient), _wrapperClassName);
  19667. return h(
  19668. 'div',
  19669. { 'class': wrapperClassName, style: circleStyle },
  19670. [h(_vc_progress__WEBPACK_IMPORTED_MODULE_1__["Circle"], {
  19671. attrs: {
  19672. percent: getPercentage(props),
  19673. strokeWidth: circleWidth,
  19674. trailWidth: circleWidth,
  19675. strokeColor: strokeColor,
  19676. strokeLinecap: strokeLinecap,
  19677. trailColor: trailColor,
  19678. prefixCls: prefixCls,
  19679. gapDegree: gapDeg,
  19680. gapPosition: gapPos
  19681. }
  19682. }), children]
  19683. );
  19684. }
  19685. };
  19686. /* harmony default export */ __webpack_exports__["default"] = (Circle);
  19687. /***/ }),
  19688. /***/ "./components/progress/index.jsx":
  19689. /*!***************************************!*\
  19690. !*** ./components/progress/index.jsx ***!
  19691. \***************************************/
  19692. /*! exports provided: ProgressProps, default */
  19693. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19694. "use strict";
  19695. __webpack_require__.r(__webpack_exports__);
  19696. /* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./progress */ "./components/progress/progress.jsx");
  19697. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  19698. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProgressProps", function() { return _progress__WEBPACK_IMPORTED_MODULE_0__["ProgressProps"]; });
  19699. /* istanbul ignore next */
  19700. _progress__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  19701. Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
  19702. Vue.component(_progress__WEBPACK_IMPORTED_MODULE_0__["default"].name, _progress__WEBPACK_IMPORTED_MODULE_0__["default"]);
  19703. };
  19704. /* harmony default export */ __webpack_exports__["default"] = (_progress__WEBPACK_IMPORTED_MODULE_0__["default"]);
  19705. /***/ }),
  19706. /***/ "./components/progress/line.jsx":
  19707. /*!**************************************!*\
  19708. !*** ./components/progress/line.jsx ***!
  19709. \**************************************/
  19710. /*! exports provided: sortGradient, handleGradient, default */
  19711. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19712. "use strict";
  19713. __webpack_require__.r(__webpack_exports__);
  19714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortGradient", function() { return sortGradient; });
  19715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleGradient", function() { return handleGradient; });
  19716. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  19717. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  19718. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  19719. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  19720. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
  19721. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__);
  19722. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/progress/utils.js");
  19723. /**
  19724. * {
  19725. * '0%': '#afc163',
  19726. * '75%': '#009900',
  19727. * '50%': 'green', ====> '#afc163 0%, #66FF00 25%, #00CC00 50%, #009900 75%, #ffffff 100%'
  19728. * '25%': '#66FF00',
  19729. * '100%': '#ffffff'
  19730. * }
  19731. */
  19732. var sortGradient = function sortGradient(gradients) {
  19733. var tempArr = [];
  19734. // eslint-disable-next-line no-restricted-syntax
  19735. var _iteratorNormalCompletion = true;
  19736. var _didIteratorError = false;
  19737. var _iteratorError = undefined;
  19738. try {
  19739. for (var _iterator = Object.entries(gradients)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  19740. var _ref = _step.value;
  19741. var _ref2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_ref, 2);
  19742. var key = _ref2[0];
  19743. var value = _ref2[1];
  19744. var formatKey = parseFloat(key.replace(/%/g, ''));
  19745. if (isNaN(formatKey)) {
  19746. return {};
  19747. }
  19748. tempArr.push({
  19749. key: formatKey,
  19750. value: value
  19751. });
  19752. }
  19753. } catch (err) {
  19754. _didIteratorError = true;
  19755. _iteratorError = err;
  19756. } finally {
  19757. try {
  19758. if (!_iteratorNormalCompletion && _iterator['return']) {
  19759. _iterator['return']();
  19760. }
  19761. } finally {
  19762. if (_didIteratorError) {
  19763. throw _iteratorError;
  19764. }
  19765. }
  19766. }
  19767. tempArr = tempArr.sort(function (a, b) {
  19768. return a.key - b.key;
  19769. });
  19770. return tempArr.map(function (_ref3) {
  19771. var key = _ref3.key,
  19772. value = _ref3.value;
  19773. return value + ' ' + key + '%';
  19774. }).join(', ');
  19775. };
  19776. /**
  19777. * {
  19778. * '0%': '#afc163',
  19779. * '25%': '#66FF00',
  19780. * '50%': '#00CC00', ====> linear-gradient(to right, #afc163 0%, #66FF00 25%,
  19781. * '75%': '#009900', #00CC00 50%, #009900 75%, #ffffff 100%)
  19782. * '100%': '#ffffff'
  19783. * }
  19784. *
  19785. * Then this man came to realize the truth:
  19786. * Besides six pence, there is the moon.
  19787. * Besides bread and butter, there is the bug.
  19788. * And...
  19789. * Besides women, there is the code.
  19790. */
  19791. var handleGradient = function handleGradient(strokeColor) {
  19792. var _strokeColor$from = strokeColor.from,
  19793. from = _strokeColor$from === undefined ? '#1890ff' : _strokeColor$from,
  19794. _strokeColor$to = strokeColor.to,
  19795. to = _strokeColor$to === undefined ? '#1890ff' : _strokeColor$to,
  19796. _strokeColor$directio = strokeColor.direction,
  19797. direction = _strokeColor$directio === undefined ? 'to right' : _strokeColor$directio,
  19798. rest = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(strokeColor, ['from', 'to', 'direction']);
  19799. if (Object.keys(rest).length !== 0) {
  19800. var sortedGradients = sortGradient(rest);
  19801. return { backgroundImage: 'linear-gradient(' + direction + ', ' + sortedGradients + ')' };
  19802. }
  19803. return { backgroundImage: 'linear-gradient(' + direction + ', ' + from + ', ' + to + ')' };
  19804. };
  19805. var Line = {
  19806. functional: true,
  19807. render: function render(h, context) {
  19808. var props = context.props,
  19809. children = context.children;
  19810. var prefixCls = props.prefixCls,
  19811. percent = props.percent,
  19812. successPercent = props.successPercent,
  19813. strokeWidth = props.strokeWidth,
  19814. size = props.size,
  19815. strokeColor = props.strokeColor,
  19816. strokeLinecap = props.strokeLinecap;
  19817. var backgroundProps = void 0;
  19818. if (strokeColor && typeof strokeColor !== 'string') {
  19819. backgroundProps = handleGradient(strokeColor);
  19820. } else {
  19821. backgroundProps = {
  19822. background: strokeColor
  19823. };
  19824. }
  19825. var percentStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  19826. width: Object(_utils__WEBPACK_IMPORTED_MODULE_3__["validProgress"])(percent) + '%',
  19827. height: (strokeWidth || (size === 'small' ? 6 : 8)) + 'px',
  19828. background: strokeColor,
  19829. borderRadius: strokeLinecap === 'square' ? 0 : '100px'
  19830. }, backgroundProps);
  19831. var successPercentStyle = {
  19832. width: Object(_utils__WEBPACK_IMPORTED_MODULE_3__["validProgress"])(successPercent) + '%',
  19833. height: (strokeWidth || (size === 'small' ? 6 : 8)) + 'px',
  19834. borderRadius: strokeLinecap === 'square' ? 0 : ''
  19835. };
  19836. var successSegment = successPercent !== undefined ? h('div', { 'class': prefixCls + '-success-bg', style: successPercentStyle }) : null;
  19837. return h('div', [h(
  19838. 'div',
  19839. { 'class': prefixCls + '-outer' },
  19840. [h(
  19841. 'div',
  19842. { 'class': prefixCls + '-inner' },
  19843. [h('div', { 'class': prefixCls + '-bg', style: percentStyle }), successSegment]
  19844. )]
  19845. ), children]);
  19846. }
  19847. };
  19848. /* harmony default export */ __webpack_exports__["default"] = (Line);
  19849. /***/ }),
  19850. /***/ "./components/progress/progress.jsx":
  19851. /*!******************************************!*\
  19852. !*** ./components/progress/progress.jsx ***!
  19853. \******************************************/
  19854. /*! exports provided: ProgressType, ProgressSize, ProgressProps, default */
  19855. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19856. "use strict";
  19857. __webpack_require__.r(__webpack_exports__);
  19858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgressType", function() { return ProgressType; });
  19859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgressSize", function() { return ProgressSize; });
  19860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgressProps", function() { return ProgressProps; });
  19861. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  19862. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  19863. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  19864. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  19865. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  19866. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  19867. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  19868. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  19869. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  19870. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  19871. /* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./line */ "./components/progress/line.jsx");
  19872. /* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./circle */ "./components/progress/circle.jsx");
  19873. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils */ "./components/progress/utils.js");
  19874. var ProgressStatuses = ['normal', 'exception', 'active', 'success'];
  19875. var ProgressType = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['line', 'circle', 'dashboard']);
  19876. var ProgressSize = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['default', 'small']);
  19877. var ProgressProps = {
  19878. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  19879. type: ProgressType,
  19880. percent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  19881. successPercent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  19882. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  19883. status: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(ProgressStatuses),
  19884. showInfo: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  19885. strokeWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  19886. strokeLinecap: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['butt', 'round', 'square']),
  19887. strokeColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
  19888. trailColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  19889. width: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  19890. gapDegree: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  19891. gapPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['top', 'bottom', 'left', 'right']),
  19892. size: ProgressSize
  19893. };
  19894. /* harmony default export */ __webpack_exports__["default"] = ({
  19895. name: 'AProgress',
  19896. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(ProgressProps, {
  19897. type: 'line',
  19898. percent: 0,
  19899. showInfo: true,
  19900. trailColor: '#f3f3f3',
  19901. size: 'default',
  19902. gapDegree: 0,
  19903. strokeLinecap: 'round'
  19904. }),
  19905. inject: {
  19906. configProvider: { 'default': function _default() {
  19907. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
  19908. } }
  19909. },
  19910. methods: {
  19911. getPercentNumber: function getPercentNumber() {
  19912. var _$props = this.$props,
  19913. successPercent = _$props.successPercent,
  19914. _$props$percent = _$props.percent,
  19915. percent = _$props$percent === undefined ? 0 : _$props$percent;
  19916. return parseInt(successPercent !== undefined ? successPercent.toString() : percent.toString(), 10);
  19917. },
  19918. getProgressStatus: function getProgressStatus() {
  19919. var status = this.$props.status;
  19920. if (ProgressStatuses.indexOf(status) < 0 && this.getPercentNumber() >= 100) {
  19921. return 'success';
  19922. }
  19923. return status || 'normal';
  19924. },
  19925. renderProcessInfo: function renderProcessInfo(prefixCls, progressStatus) {
  19926. var h = this.$createElement;
  19927. var _$props2 = this.$props,
  19928. showInfo = _$props2.showInfo,
  19929. format = _$props2.format,
  19930. type = _$props2.type,
  19931. percent = _$props2.percent,
  19932. successPercent = _$props2.successPercent;
  19933. if (!showInfo) return null;
  19934. var text = void 0;
  19935. var textFormatter = format || this.$scopedSlots.format || function (percentNumber) {
  19936. return percentNumber + '%';
  19937. };
  19938. var iconType = type === 'circle' || type === 'dashboard' ? '' : '-circle';
  19939. if (format || this.$scopedSlots.format || progressStatus !== 'exception' && progressStatus !== 'success') {
  19940. text = textFormatter(Object(_utils__WEBPACK_IMPORTED_MODULE_9__["validProgress"])(percent), Object(_utils__WEBPACK_IMPORTED_MODULE_9__["validProgress"])(successPercent));
  19941. } else if (progressStatus === 'exception') {
  19942. text = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
  19943. attrs: { type: 'close' + iconType, theme: type === 'line' ? 'filled' : 'outlined' }
  19944. });
  19945. } else if (progressStatus === 'success') {
  19946. text = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
  19947. attrs: { type: 'check' + iconType, theme: type === 'line' ? 'filled' : 'outlined' }
  19948. });
  19949. }
  19950. return h(
  19951. 'span',
  19952. { 'class': prefixCls + '-text', attrs: { title: typeof text === 'string' ? text : undefined }
  19953. },
  19954. [text]
  19955. );
  19956. }
  19957. },
  19958. render: function render() {
  19959. var _classNames;
  19960. var h = arguments[0];
  19961. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
  19962. var customizePrefixCls = props.prefixCls,
  19963. size = props.size,
  19964. type = props.type,
  19965. showInfo = props.showInfo;
  19966. var getPrefixCls = this.configProvider.getPrefixCls;
  19967. var prefixCls = getPrefixCls('progress', customizePrefixCls);
  19968. var progressStatus = this.getProgressStatus();
  19969. var progressInfo = this.renderProcessInfo(prefixCls, progressStatus);
  19970. var progress = void 0;
  19971. // Render progress shape
  19972. if (type === 'line') {
  19973. var lineProps = {
  19974. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  19975. prefixCls: prefixCls
  19976. })
  19977. };
  19978. progress = h(
  19979. _line__WEBPACK_IMPORTED_MODULE_7__["default"],
  19980. lineProps,
  19981. [progressInfo]
  19982. );
  19983. } else if (type === 'circle' || type === 'dashboard') {
  19984. var circleProps = {
  19985. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  19986. prefixCls: prefixCls,
  19987. progressStatus: progressStatus
  19988. })
  19989. };
  19990. progress = h(
  19991. _circle__WEBPACK_IMPORTED_MODULE_8__["default"],
  19992. circleProps,
  19993. [progressInfo]
  19994. );
  19995. }
  19996. var classString = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-' + (type === 'dashboard' && 'circle' || type), true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-status-' + progressStatus, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-show-info', showInfo), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-' + size, size), _classNames));
  19997. var progressProps = {
  19998. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
  19999. 'class': classString
  20000. };
  20001. return h(
  20002. 'div',
  20003. progressProps,
  20004. [progress]
  20005. );
  20006. }
  20007. });
  20008. /***/ }),
  20009. /***/ "./components/progress/style/index.js":
  20010. /*!********************************************!*\
  20011. !*** ./components/progress/style/index.js ***!
  20012. \********************************************/
  20013. /*! no exports provided */
  20014. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20015. "use strict";
  20016. __webpack_require__.r(__webpack_exports__);
  20017. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  20018. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  20019. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/progress/style/index.less");
  20020. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  20021. /***/ }),
  20022. /***/ "./components/progress/style/index.less":
  20023. /*!**********************************************!*\
  20024. !*** ./components/progress/style/index.less ***!
  20025. \**********************************************/
  20026. /*! no static exports found */
  20027. /***/ (function(module, exports, __webpack_require__) {
  20028. // extracted by mini-css-extract-plugin
  20029. /***/ }),
  20030. /***/ "./components/progress/utils.js":
  20031. /*!**************************************!*\
  20032. !*** ./components/progress/utils.js ***!
  20033. \**************************************/
  20034. /*! exports provided: validProgress */
  20035. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20036. "use strict";
  20037. __webpack_require__.r(__webpack_exports__);
  20038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validProgress", function() { return validProgress; });
  20039. function validProgress(progress) {
  20040. if (!progress || progress < 0) {
  20041. return 0;
  20042. }
  20043. if (progress > 100) {
  20044. return 100;
  20045. }
  20046. return progress;
  20047. }
  20048. /***/ }),
  20049. /***/ "./components/radio/Group.jsx":
  20050. /*!************************************!*\
  20051. !*** ./components/radio/Group.jsx ***!
  20052. \************************************/
  20053. /*! exports provided: default */
  20054. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20055. "use strict";
  20056. __webpack_require__.r(__webpack_exports__);
  20057. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  20058. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  20059. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  20060. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  20061. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  20062. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  20063. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  20064. /* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Radio */ "./components/radio/Radio.jsx");
  20065. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  20066. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  20067. function noop() {}
  20068. /* harmony default export */ __webpack_exports__["default"] = ({
  20069. name: 'ARadioGroup',
  20070. model: {
  20071. prop: 'value'
  20072. },
  20073. props: {
  20074. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  20075. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  20076. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  20077. size: {
  20078. 'default': 'default',
  20079. validator: function validator(value) {
  20080. return ['large', 'default', 'small'].includes(value);
  20081. }
  20082. },
  20083. options: {
  20084. 'default': function _default() {
  20085. return [];
  20086. },
  20087. type: Array
  20088. },
  20089. disabled: Boolean,
  20090. name: String,
  20091. buttonStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('outline')
  20092. },
  20093. data: function data() {
  20094. var value = this.value,
  20095. defaultValue = this.defaultValue;
  20096. this.updatingValue = false;
  20097. return {
  20098. stateValue: value === undefined ? defaultValue : value
  20099. };
  20100. },
  20101. provide: function provide() {
  20102. return {
  20103. radioGroupContext: this
  20104. };
  20105. },
  20106. inject: {
  20107. configProvider: { 'default': function _default() {
  20108. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
  20109. } }
  20110. },
  20111. computed: {
  20112. radioOptions: function radioOptions() {
  20113. var disabled = this.disabled;
  20114. return this.options.map(function (option) {
  20115. return typeof option === 'string' ? { label: option, value: option } : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, option, { disabled: option.disabled === undefined ? disabled : option.disabled });
  20116. });
  20117. },
  20118. classes: function classes() {
  20119. var _ref;
  20120. var prefixCls = this.prefixCls,
  20121. size = this.size;
  20122. return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-' + size, size), _ref;
  20123. }
  20124. },
  20125. watch: {
  20126. value: function value(val) {
  20127. this.updatingValue = false;
  20128. this.stateValue = val;
  20129. }
  20130. },
  20131. methods: {
  20132. onRadioChange: function onRadioChange(ev) {
  20133. var _this = this;
  20134. var lastValue = this.stateValue;
  20135. var value = ev.target.value;
  20136. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'value')) {
  20137. this.stateValue = value;
  20138. }
  20139. // nextTick for https://github.com/vueComponent/ant-design-vue/issues/1280
  20140. if (!this.updatingValue && value !== lastValue) {
  20141. this.updatingValue = true;
  20142. this.$emit('input', value);
  20143. this.$emit('change', ev);
  20144. }
  20145. this.$nextTick(function () {
  20146. _this.updatingValue = false;
  20147. });
  20148. }
  20149. },
  20150. render: function render() {
  20151. var _this2 = this;
  20152. var h = arguments[0];
  20153. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
  20154. _getListeners$mouseen = _getListeners.mouseenter,
  20155. mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
  20156. _getListeners$mousele = _getListeners.mouseleave,
  20157. mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele;
  20158. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  20159. var customizePrefixCls = props.prefixCls,
  20160. options = props.options,
  20161. buttonStyle = props.buttonStyle;
  20162. var getPrefixCls = this.configProvider.getPrefixCls;
  20163. var prefixCls = getPrefixCls('radio', customizePrefixCls);
  20164. var groupPrefixCls = prefixCls + '-group';
  20165. var classString = classnames__WEBPACK_IMPORTED_MODULE_2___default()(groupPrefixCls, groupPrefixCls + '-' + buttonStyle, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, groupPrefixCls + '-' + props.size, props.size));
  20166. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])(this.$slots['default']);
  20167. // 如果存在 options, 优先使用
  20168. if (options && options.length > 0) {
  20169. children = options.map(function (option) {
  20170. if (typeof option === 'string') {
  20171. return h(
  20172. _Radio__WEBPACK_IMPORTED_MODULE_4__["default"],
  20173. {
  20174. key: option,
  20175. attrs: { prefixCls: prefixCls,
  20176. disabled: props.disabled,
  20177. value: option,
  20178. checked: _this2.stateValue === option
  20179. }
  20180. },
  20181. [option]
  20182. );
  20183. } else {
  20184. return h(
  20185. _Radio__WEBPACK_IMPORTED_MODULE_4__["default"],
  20186. {
  20187. key: 'radio-group-value-options-' + option.value,
  20188. attrs: { prefixCls: prefixCls,
  20189. disabled: option.disabled || props.disabled,
  20190. value: option.value,
  20191. checked: _this2.stateValue === option.value
  20192. }
  20193. },
  20194. [option.label]
  20195. );
  20196. }
  20197. });
  20198. }
  20199. return h(
  20200. 'div',
  20201. { 'class': classString, on: {
  20202. 'mouseenter': mouseenter,
  20203. 'mouseleave': mouseleave
  20204. }
  20205. },
  20206. [children]
  20207. );
  20208. }
  20209. });
  20210. /***/ }),
  20211. /***/ "./components/radio/Radio.jsx":
  20212. /*!************************************!*\
  20213. !*** ./components/radio/Radio.jsx ***!
  20214. \************************************/
  20215. /*! exports provided: default */
  20216. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20217. "use strict";
  20218. __webpack_require__.r(__webpack_exports__);
  20219. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  20220. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  20221. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  20222. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  20223. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  20224. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  20225. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  20226. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);
  20227. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  20228. /* harmony import */ var _vc_checkbox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-checkbox */ "./components/vc-checkbox/index.js");
  20229. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  20230. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
  20231. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  20232. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  20233. function noop() {}
  20234. /* harmony default export */ __webpack_exports__["default"] = ({
  20235. name: 'ARadio',
  20236. model: {
  20237. prop: 'checked'
  20238. },
  20239. props: {
  20240. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  20241. defaultChecked: Boolean,
  20242. checked: { type: Boolean, 'default': undefined },
  20243. disabled: Boolean,
  20244. isGroup: Boolean,
  20245. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  20246. name: String,
  20247. id: String,
  20248. autoFocus: Boolean,
  20249. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('radio')
  20250. },
  20251. inject: {
  20252. radioGroupContext: { 'default': undefined },
  20253. configProvider: { 'default': function _default() {
  20254. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
  20255. } }
  20256. },
  20257. methods: {
  20258. focus: function focus() {
  20259. this.$refs.vcCheckbox.focus();
  20260. },
  20261. blur: function blur() {
  20262. this.$refs.vcCheckbox.blur();
  20263. },
  20264. handleChange: function handleChange(event) {
  20265. var targetChecked = event.target.checked;
  20266. this.$emit('input', targetChecked);
  20267. this.$emit('change', event);
  20268. },
  20269. onChange: function onChange(e) {
  20270. this.$emit('change', e);
  20271. if (this.radioGroupContext && this.radioGroupContext.onRadioChange) {
  20272. this.radioGroupContext.onRadioChange(e);
  20273. }
  20274. }
  20275. },
  20276. render: function render() {
  20277. var _classNames;
  20278. var h = arguments[0];
  20279. var $slots = this.$slots,
  20280. radioGroup = this.radioGroupContext;
  20281. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
  20282. var children = $slots['default'];
  20283. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
  20284. _getListeners$mouseen = _getListeners.mouseenter,
  20285. mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
  20286. _getListeners$mousele = _getListeners.mouseleave,
  20287. mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele,
  20288. restListeners = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_getListeners, ['mouseenter', 'mouseleave']);
  20289. var customizePrefixCls = props.prefixCls,
  20290. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(props, ['prefixCls']);
  20291. var getPrefixCls = this.configProvider.getPrefixCls;
  20292. var prefixCls = getPrefixCls('radio', customizePrefixCls);
  20293. var radioProps = {
  20294. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, { prefixCls: prefixCls }),
  20295. on: restListeners,
  20296. attrs: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getAttrs"])(this)
  20297. };
  20298. if (radioGroup) {
  20299. radioProps.props.name = radioGroup.name;
  20300. radioProps.on.change = this.onChange;
  20301. radioProps.props.checked = props.value === radioGroup.stateValue;
  20302. radioProps.props.disabled = props.disabled || radioGroup.disabled;
  20303. } else {
  20304. radioProps.on.change = this.handleChange;
  20305. }
  20306. var wrapperClassString = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper-checked', radioProps.props.checked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper-disabled', radioProps.props.disabled), _classNames));
  20307. return h(
  20308. 'label',
  20309. { 'class': wrapperClassString, on: {
  20310. 'mouseenter': mouseenter,
  20311. 'mouseleave': mouseleave
  20312. }
  20313. },
  20314. [h(_vc_checkbox__WEBPACK_IMPORTED_MODULE_5__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([radioProps, { ref: 'vcCheckbox' }])), children !== undefined ? h('span', [children]) : null]
  20315. );
  20316. }
  20317. });
  20318. /***/ }),
  20319. /***/ "./components/radio/RadioButton.jsx":
  20320. /*!******************************************!*\
  20321. !*** ./components/radio/RadioButton.jsx ***!
  20322. \******************************************/
  20323. /*! exports provided: default */
  20324. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20325. "use strict";
  20326. __webpack_require__.r(__webpack_exports__);
  20327. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  20328. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
  20329. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  20330. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  20331. /* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Radio */ "./components/radio/Radio.jsx");
  20332. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  20333. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  20334. /* harmony default export */ __webpack_exports__["default"] = ({
  20335. name: 'ARadioButton',
  20336. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _Radio__WEBPACK_IMPORTED_MODULE_2__["default"].props),
  20337. inject: {
  20338. radioGroupContext: { 'default': undefined },
  20339. configProvider: { 'default': function _default() {
  20340. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
  20341. } }
  20342. },
  20343. render: function render() {
  20344. var h = arguments[0];
  20345. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this),
  20346. customizePrefixCls = _getOptionProps.prefixCls,
  20347. otherProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['prefixCls']);
  20348. var getPrefixCls = this.configProvider.getPrefixCls;
  20349. var prefixCls = getPrefixCls('radio-button', customizePrefixCls);
  20350. var radioProps = {
  20351. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, otherProps, {
  20352. prefixCls: prefixCls
  20353. }),
  20354. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
  20355. };
  20356. if (this.radioGroupContext) {
  20357. radioProps.on.change = this.radioGroupContext.onRadioChange;
  20358. radioProps.props.checked = this.$props.value === this.radioGroupContext.stateValue;
  20359. radioProps.props.disabled = this.$props.disabled || this.radioGroupContext.disabled;
  20360. }
  20361. return h(
  20362. _Radio__WEBPACK_IMPORTED_MODULE_2__["default"],
  20363. radioProps,
  20364. [this.$slots['default']]
  20365. );
  20366. }
  20367. });
  20368. /***/ }),
  20369. /***/ "./components/radio/index.js":
  20370. /*!***********************************!*\
  20371. !*** ./components/radio/index.js ***!
  20372. \***********************************/
  20373. /*! exports provided: Button, Group, default */
  20374. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20375. "use strict";
  20376. __webpack_require__.r(__webpack_exports__);
  20377. /* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Radio */ "./components/radio/Radio.jsx");
  20378. /* harmony import */ var _Group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Group */ "./components/radio/Group.jsx");
  20379. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Group", function() { return _Group__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  20380. /* harmony import */ var _RadioButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RadioButton */ "./components/radio/RadioButton.jsx");
  20381. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _RadioButton__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  20382. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  20383. _Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Group = _Group__WEBPACK_IMPORTED_MODULE_1__["default"];
  20384. _Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Button = _RadioButton__WEBPACK_IMPORTED_MODULE_2__["default"];
  20385. /* istanbul ignore next */
  20386. _Radio__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  20387. Vue.use(_base__WEBPACK_IMPORTED_MODULE_3__["default"]);
  20388. Vue.component(_Radio__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Radio__WEBPACK_IMPORTED_MODULE_0__["default"]);
  20389. Vue.component(_Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Group.name, _Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Group);
  20390. Vue.component(_Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Button.name, _Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Button);
  20391. };
  20392. /* harmony default export */ __webpack_exports__["default"] = (_Radio__WEBPACK_IMPORTED_MODULE_0__["default"]);
  20393. /***/ }),
  20394. /***/ "./components/radio/style/index.js":
  20395. /*!*****************************************!*\
  20396. !*** ./components/radio/style/index.js ***!
  20397. \*****************************************/
  20398. /*! no exports provided */
  20399. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20400. "use strict";
  20401. __webpack_require__.r(__webpack_exports__);
  20402. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  20403. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  20404. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/radio/style/index.less");
  20405. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  20406. /***/ }),
  20407. /***/ "./components/radio/style/index.less":
  20408. /*!*******************************************!*\
  20409. !*** ./components/radio/style/index.less ***!
  20410. \*******************************************/
  20411. /*! no static exports found */
  20412. /***/ (function(module, exports, __webpack_require__) {
  20413. // extracted by mini-css-extract-plugin
  20414. /***/ }),
  20415. /***/ "./components/rate/index.jsx":
  20416. /*!***********************************!*\
  20417. !*** ./components/rate/index.jsx ***!
  20418. \***********************************/
  20419. /*! exports provided: RateProps, default */
  20420. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20421. "use strict";
  20422. __webpack_require__.r(__webpack_exports__);
  20423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RateProps", function() { return RateProps; });
  20424. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  20425. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  20426. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  20427. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  20428. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  20429. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  20430. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  20431. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  20432. /* harmony import */ var _vc_rate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-rate */ "./components/vc-rate/index.js");
  20433. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  20434. /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
  20435. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  20436. var RateProps = {
  20437. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  20438. count: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  20439. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].value,
  20440. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].value,
  20441. allowHalf: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  20442. allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  20443. tooltips: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
  20444. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  20445. character: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  20446. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
  20447. };
  20448. var Rate = {
  20449. name: 'ARate',
  20450. model: {
  20451. prop: 'value',
  20452. event: 'change'
  20453. },
  20454. props: RateProps,
  20455. inject: {
  20456. configProvider: { 'default': function _default() {
  20457. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
  20458. } }
  20459. },
  20460. methods: {
  20461. characterRender: function characterRender(node, _ref) {
  20462. var index = _ref.index;
  20463. var h = this.$createElement;
  20464. var tooltips = this.$props.tooltips;
  20465. if (!tooltips) return node;
  20466. return h(
  20467. _tooltip__WEBPACK_IMPORTED_MODULE_8__["default"],
  20468. {
  20469. attrs: { title: tooltips[index] }
  20470. },
  20471. [node]
  20472. );
  20473. },
  20474. focus: function focus() {
  20475. this.$refs.refRate.focus();
  20476. },
  20477. blur: function blur() {
  20478. this.$refs.refRate.blur();
  20479. }
  20480. },
  20481. render: function render() {
  20482. var h = arguments[0];
  20483. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
  20484. customizePrefixCls = _getOptionProps.prefixCls,
  20485. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls']);
  20486. var getPrefixCls = this.configProvider.getPrefixCls;
  20487. var prefixCls = getPrefixCls('rate', customizePrefixCls);
  20488. var character = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'character') || h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
  20489. attrs: { type: 'star', theme: 'filled' }
  20490. });
  20491. var rateProps = {
  20492. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  20493. character: character,
  20494. characterRender: this.characterRender,
  20495. prefixCls: prefixCls
  20496. }, Object(omit_js__WEBPACK_IMPORTED_MODULE_2__["default"])(restProps, ['tooltips'])),
  20497. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
  20498. ref: 'refRate'
  20499. };
  20500. return h(_vc_rate__WEBPACK_IMPORTED_MODULE_6__["default"], rateProps);
  20501. }
  20502. };
  20503. /* istanbul ignore next */
  20504. Rate.install = function (Vue) {
  20505. Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
  20506. Vue.component(Rate.name, Rate);
  20507. };
  20508. /* harmony default export */ __webpack_exports__["default"] = (Rate);
  20509. /***/ }),
  20510. /***/ "./components/rate/style/index.js":
  20511. /*!****************************************!*\
  20512. !*** ./components/rate/style/index.js ***!
  20513. \****************************************/
  20514. /*! no exports provided */
  20515. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20516. "use strict";
  20517. __webpack_require__.r(__webpack_exports__);
  20518. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  20519. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  20520. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/rate/style/index.less");
  20521. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  20522. /* harmony import */ var _tooltip_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tooltip/style */ "./components/tooltip/style/index.js");
  20523. // style dependencies
  20524. /***/ }),
  20525. /***/ "./components/rate/style/index.less":
  20526. /*!******************************************!*\
  20527. !*** ./components/rate/style/index.less ***!
  20528. \******************************************/
  20529. /*! no static exports found */
  20530. /***/ (function(module, exports, __webpack_require__) {
  20531. // extracted by mini-css-extract-plugin
  20532. /***/ }),
  20533. /***/ "./components/result/index.jsx":
  20534. /*!*************************************!*\
  20535. !*** ./components/result/index.jsx ***!
  20536. \*************************************/
  20537. /*! exports provided: IconMap, ExceptionMap, ResultProps, default */
  20538. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20539. "use strict";
  20540. __webpack_require__.r(__webpack_exports__);
  20541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IconMap", function() { return IconMap; });
  20542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExceptionMap", function() { return ExceptionMap; });
  20543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResultProps", function() { return ResultProps; });
  20544. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  20545. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  20546. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  20547. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  20548. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  20549. /* harmony import */ var _noFound__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./noFound */ "./components/result/noFound.jsx");
  20550. /* harmony import */ var _serverError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./serverError */ "./components/result/serverError.jsx");
  20551. /* harmony import */ var _unauthorized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./unauthorized */ "./components/result/unauthorized.jsx");
  20552. var IconMap = {
  20553. success: 'check-circle',
  20554. error: 'close-circle',
  20555. info: 'exclamation-circle',
  20556. warning: 'warning'
  20557. };
  20558. var ExceptionMap = {
  20559. '404': _noFound__WEBPACK_IMPORTED_MODULE_5__["default"],
  20560. '500': _serverError__WEBPACK_IMPORTED_MODULE_6__["default"],
  20561. '403': _unauthorized__WEBPACK_IMPORTED_MODULE_7__["default"]
  20562. };
  20563. // ExceptionImageMap keys
  20564. var ExceptionStatus = Object.keys(ExceptionMap);
  20565. var ResultProps = {
  20566. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  20567. icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  20568. status: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['success', 'error', 'info', 'warning', '404', '403', '500']).def('info'),
  20569. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  20570. subTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  20571. extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
  20572. };
  20573. var renderIcon = function renderIcon(h, prefixCls, _ref) {
  20574. var status = _ref.status,
  20575. icon = _ref.icon;
  20576. if (ExceptionStatus.includes('' + status)) {
  20577. var SVGComponent = ExceptionMap[status];
  20578. return h(
  20579. 'div',
  20580. { 'class': prefixCls + '-icon ' + prefixCls + '-image' },
  20581. [h(SVGComponent)]
  20582. );
  20583. }
  20584. // prop `icon` require slot or VNode
  20585. var iconString = IconMap[status];
  20586. var iconNode = icon || h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
  20587. attrs: { type: iconString, theme: 'filled' }
  20588. });
  20589. return h(
  20590. 'div',
  20591. { 'class': prefixCls + '-icon' },
  20592. [iconNode]
  20593. );
  20594. };
  20595. var renderExtra = function renderExtra(h, prefixCls, extra) {
  20596. return extra && h(
  20597. 'div',
  20598. { 'class': prefixCls + '-extra' },
  20599. [extra]
  20600. );
  20601. };
  20602. var Result = {
  20603. name: 'AResult',
  20604. props: ResultProps,
  20605. inject: {
  20606. configProvider: { 'default': function _default() {
  20607. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
  20608. } }
  20609. },
  20610. render: function render(h) {
  20611. var customizePrefixCls = this.prefixCls,
  20612. status = this.status;
  20613. var getPrefixCls = this.configProvider.getPrefixCls;
  20614. var prefixCls = getPrefixCls('result', customizePrefixCls);
  20615. var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'title');
  20616. var subTitle = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'subTitle');
  20617. var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'icon');
  20618. var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'extra');
  20619. return h(
  20620. 'div',
  20621. { 'class': prefixCls + ' ' + prefixCls + '-' + status },
  20622. [renderIcon(h, prefixCls, { status: status, icon: icon }), h(
  20623. 'div',
  20624. { 'class': prefixCls + '-title' },
  20625. [title]
  20626. ), subTitle && h(
  20627. 'div',
  20628. { 'class': prefixCls + '-subtitle' },
  20629. [subTitle]
  20630. ), this.$slots['default'] && h(
  20631. 'div',
  20632. { 'class': prefixCls + '-content' },
  20633. [this.$slots['default']]
  20634. ), renderExtra(h, prefixCls, extra)]
  20635. );
  20636. }
  20637. };
  20638. /* add resource */
  20639. Result.PRESENTED_IMAGE_403 = ExceptionMap[403];
  20640. Result.PRESENTED_IMAGE_404 = ExceptionMap[404];
  20641. Result.PRESENTED_IMAGE_500 = ExceptionMap[500];
  20642. /* istanbul ignore next */
  20643. Result.install = function (Vue) {
  20644. Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
  20645. Vue.component(Result.name, Result);
  20646. };
  20647. /* harmony default export */ __webpack_exports__["default"] = (Result);
  20648. /***/ }),
  20649. /***/ "./components/result/noFound.jsx":
  20650. /*!***************************************!*\
  20651. !*** ./components/result/noFound.jsx ***!
  20652. \***************************************/
  20653. /*! exports provided: default */
  20654. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20655. "use strict";
  20656. __webpack_require__.r(__webpack_exports__);
  20657. var NoFound = {
  20658. functional: true,
  20659. render: function render() {
  20660. var h = arguments[0];
  20661. return h(
  20662. "svg",
  20663. {
  20664. attrs: { width: "252", height: "294" }
  20665. },
  20666. [h("defs", [h("path", {
  20667. attrs: { d: "M0 .387h251.772v251.772H0z" }
  20668. })]), h(
  20669. "g",
  20670. {
  20671. attrs: { fill: "none", fillRule: "evenodd" }
  20672. },
  20673. [h(
  20674. "g",
  20675. {
  20676. attrs: { transform: "translate(0 .012)" }
  20677. },
  20678. [h("mask", {
  20679. attrs: { fill: "#fff" }
  20680. }), h("path", {
  20681. attrs: {
  20682. d: "M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",
  20683. fill: "#E4EBF7",
  20684. mask: "url(#b)"
  20685. }
  20686. })]
  20687. ), h("path", {
  20688. attrs: {
  20689. d: "M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",
  20690. fill: "#FFF"
  20691. }
  20692. }), h("path", {
  20693. attrs: {
  20694. d: "M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",
  20695. stroke: "#FFF",
  20696. strokeWidth: "2"
  20697. }
  20698. }), h("path", {
  20699. attrs: {
  20700. d: "M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",
  20701. fill: "#FFF"
  20702. }
  20703. }), h("path", {
  20704. attrs: {
  20705. d: "M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",
  20706. fill: "#FFF"
  20707. }
  20708. }), h("path", {
  20709. attrs: {
  20710. d: "M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",
  20711. stroke: "#FFF",
  20712. strokeWidth: "2"
  20713. }
  20714. }), h("path", {
  20715. attrs: {
  20716. d: "M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",
  20717. fill: "#FFF"
  20718. }
  20719. }), h("path", {
  20720. attrs: {
  20721. d: "M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",
  20722. stroke: "#FFF",
  20723. strokeWidth: "2"
  20724. }
  20725. }), h("path", {
  20726. attrs: {
  20727. stroke: "#FFF",
  20728. strokeWidth: "2",
  20729. d: "M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"
  20730. }
  20731. }), h("path", {
  20732. attrs: {
  20733. d: "M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",
  20734. fill: "#FFF"
  20735. }
  20736. }), h("path", {
  20737. attrs: {
  20738. d: "M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",
  20739. fill: "#1890FF"
  20740. }
  20741. }), h("path", {
  20742. attrs: {
  20743. d: "M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",
  20744. fill: "#FFF"
  20745. }
  20746. }), h("path", {
  20747. attrs: {
  20748. d: "M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",
  20749. fill: "#FFB594"
  20750. }
  20751. }), h("path", {
  20752. attrs: {
  20753. d: "M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",
  20754. fill: "#FFC6A0"
  20755. }
  20756. }), h("path", {
  20757. attrs: {
  20758. d: "M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",
  20759. fill: "#FFF"
  20760. }
  20761. }), h("path", {
  20762. attrs: {
  20763. d: "M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",
  20764. fill: "#CBD1D1"
  20765. }
  20766. }), h("path", {
  20767. attrs: {
  20768. d: "M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",
  20769. fill: "#2B0849"
  20770. }
  20771. }), h("path", {
  20772. attrs: {
  20773. d: "M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",
  20774. fill: "#A4AABA"
  20775. }
  20776. }), h("path", {
  20777. attrs: {
  20778. d: "M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",
  20779. fill: "#CBD1D1"
  20780. }
  20781. }), h("path", {
  20782. attrs: {
  20783. d: "M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",
  20784. fill: "#2B0849"
  20785. }
  20786. }), h("path", {
  20787. attrs: {
  20788. d: "M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",
  20789. fill: "#A4AABA"
  20790. }
  20791. }), h("path", {
  20792. attrs: {
  20793. d: "M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",
  20794. fill: "#7BB2F9"
  20795. }
  20796. }), h("path", {
  20797. attrs: {
  20798. d: "M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",
  20799. stroke: "#648BD8",
  20800. strokeWidth: "1.051",
  20801. strokeLinecap: "round",
  20802. strokeLinejoin: "round"
  20803. }
  20804. }), h("path", {
  20805. attrs: {
  20806. d: "M107.275 222.1s2.773-1.11 6.102-3.884",
  20807. stroke: "#648BD8",
  20808. strokeLinecap: "round",
  20809. strokeLinejoin: "round"
  20810. }
  20811. }), h("path", {
  20812. attrs: {
  20813. d: "M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",
  20814. stroke: "#648BD8",
  20815. strokeWidth: "1.051",
  20816. strokeLinecap: "round",
  20817. strokeLinejoin: "round"
  20818. }
  20819. }), h("path", {
  20820. attrs: {
  20821. d: "M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",
  20822. fill: "#192064"
  20823. }
  20824. }), h("path", {
  20825. attrs: {
  20826. d: "M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",
  20827. fill: "#FFF"
  20828. }
  20829. }), h("path", {
  20830. attrs: {
  20831. d: "M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",
  20832. fill: "#192064"
  20833. }
  20834. }), h("path", {
  20835. attrs: {
  20836. d: "M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",
  20837. stroke: "#648BD8",
  20838. strokeWidth: "1.051",
  20839. strokeLinecap: "round",
  20840. strokeLinejoin: "round"
  20841. }
  20842. }), h("path", {
  20843. attrs: {
  20844. d: "M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",
  20845. fill: "#FFC6A0"
  20846. }
  20847. }), h("path", {
  20848. attrs: {
  20849. d: "M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",
  20850. fill: "#FFC6A0"
  20851. }
  20852. }), h("path", {
  20853. attrs: {
  20854. d: "M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",
  20855. fill: "#520038"
  20856. }
  20857. }), h("path", {
  20858. attrs: {
  20859. d: "M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",
  20860. fill: "#552950"
  20861. }
  20862. }), h("path", {
  20863. attrs: {
  20864. stroke: "#DB836E",
  20865. strokeWidth: "1.118",
  20866. strokeLinecap: "round",
  20867. strokeLinejoin: "round",
  20868. d: "M110.13 74.84l-.896 1.61-.298 4.357h-2.228"
  20869. }
  20870. }), h("path", {
  20871. attrs: {
  20872. d: "M110.846 74.481s1.79-.716 2.506.537",
  20873. stroke: "#5C2552",
  20874. strokeWidth: "1.118",
  20875. strokeLinecap: "round",
  20876. strokeLinejoin: "round"
  20877. }
  20878. }), h("path", {
  20879. attrs: {
  20880. d: "M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",
  20881. stroke: "#DB836E",
  20882. strokeWidth: "1.118",
  20883. strokeLinecap: "round",
  20884. strokeLinejoin: "round"
  20885. }
  20886. }), h("path", {
  20887. attrs: {
  20888. d: "M103.287 72.93s1.83 1.113 4.137.954",
  20889. stroke: "#5C2552",
  20890. strokeWidth: "1.118",
  20891. strokeLinecap: "round",
  20892. strokeLinejoin: "round"
  20893. }
  20894. }), h("path", {
  20895. attrs: {
  20896. d: "M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",
  20897. stroke: "#DB836E",
  20898. strokeWidth: "1.118",
  20899. strokeLinecap: "round",
  20900. strokeLinejoin: "round"
  20901. }
  20902. }), h("path", {
  20903. attrs: {
  20904. d: "M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",
  20905. stroke: "#E4EBF7",
  20906. strokeWidth: "1.101",
  20907. strokeLinecap: "round",
  20908. strokeLinejoin: "round"
  20909. }
  20910. }), h("path", {
  20911. attrs: {
  20912. d: "M129.405 122.865s-5.272 7.403-9.422 10.768",
  20913. stroke: "#E4EBF7",
  20914. strokeWidth: "1.051",
  20915. strokeLinecap: "round",
  20916. strokeLinejoin: "round"
  20917. }
  20918. }), h("path", {
  20919. attrs: {
  20920. d: "M119.306 107.329s.452 4.366-2.127 32.062",
  20921. stroke: "#E4EBF7",
  20922. strokeWidth: "1.101",
  20923. strokeLinecap: "round",
  20924. strokeLinejoin: "round"
  20925. }
  20926. }), h("path", {
  20927. attrs: {
  20928. d: "M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",
  20929. fill: "#F2D7AD"
  20930. }
  20931. }), h("path", {
  20932. attrs: {
  20933. d: "M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",
  20934. fill: "#F4D19D"
  20935. }
  20936. }), h("path", {
  20937. attrs: {
  20938. d: "M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",
  20939. fill: "#F2D7AD"
  20940. }
  20941. }), h("path", {
  20942. attrs: { fill: "#CC9B6E", d: "M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z" }
  20943. }), h("path", {
  20944. attrs: {
  20945. d: "M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",
  20946. fill: "#F4D19D"
  20947. }
  20948. }), h("path", {
  20949. attrs: {
  20950. fill: "#CC9B6E",
  20951. d: "M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"
  20952. }
  20953. }), h("path", {
  20954. attrs: {
  20955. fill: "#CC9B6E",
  20956. d: "M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"
  20957. }
  20958. }), h("path", {
  20959. attrs: {
  20960. d: "M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",
  20961. fill: "#FFC6A0"
  20962. }
  20963. }), h("path", {
  20964. attrs: {
  20965. d: "M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",
  20966. stroke: "#DB836E",
  20967. strokeWidth: "1.051",
  20968. strokeLinecap: "round",
  20969. strokeLinejoin: "round"
  20970. }
  20971. }), h("path", {
  20972. attrs: {
  20973. d: "M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",
  20974. stroke: "#DB836E",
  20975. strokeWidth: "1.051",
  20976. strokeLinecap: "round",
  20977. strokeLinejoin: "round"
  20978. }
  20979. }), h("path", {
  20980. attrs: {
  20981. d: "M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",
  20982. stroke: "#DB836E",
  20983. strokeWidth: "1.051",
  20984. strokeLinecap: "round",
  20985. strokeLinejoin: "round"
  20986. }
  20987. }), h("path", {
  20988. attrs: {
  20989. d: "M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",
  20990. fill: "#5BA02E"
  20991. }
  20992. }), h("path", {
  20993. attrs: {
  20994. d: "M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",
  20995. fill: "#92C110"
  20996. }
  20997. }), h("path", {
  20998. attrs: {
  20999. d: "M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",
  21000. fill: "#F2D7AD"
  21001. }
  21002. }), h("path", {
  21003. attrs: {
  21004. d: "M88.979 89.48s7.776 5.384 16.6 2.842",
  21005. stroke: "#E4EBF7",
  21006. strokeWidth: "1.101",
  21007. strokeLinecap: "round",
  21008. strokeLinejoin: "round"
  21009. }
  21010. })]
  21011. )]
  21012. );
  21013. }
  21014. };
  21015. /* harmony default export */ __webpack_exports__["default"] = (NoFound);
  21016. /***/ }),
  21017. /***/ "./components/result/serverError.jsx":
  21018. /*!*******************************************!*\
  21019. !*** ./components/result/serverError.jsx ***!
  21020. \*******************************************/
  21021. /*! exports provided: default */
  21022. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21023. "use strict";
  21024. __webpack_require__.r(__webpack_exports__);
  21025. var ServerError = {
  21026. functional: true,
  21027. render: function render() {
  21028. var h = arguments[0];
  21029. return h(
  21030. "svg",
  21031. {
  21032. attrs: { width: "254", height: "294" }
  21033. },
  21034. [h("defs", [h("path", {
  21035. attrs: { d: "M0 .335h253.49v253.49H0z" }
  21036. }), h("path", {
  21037. attrs: { d: "M0 293.665h253.49V.401H0z" }
  21038. })]), h(
  21039. "g",
  21040. {
  21041. attrs: { fill: "none", fillRule: "evenodd" }
  21042. },
  21043. [h(
  21044. "g",
  21045. {
  21046. attrs: { transform: "translate(0 .067)" }
  21047. },
  21048. [h("mask", {
  21049. attrs: { fill: "#fff" }
  21050. }), h("path", {
  21051. attrs: {
  21052. d: "M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",
  21053. fill: "#E4EBF7",
  21054. mask: "url(#b)"
  21055. }
  21056. })]
  21057. ), h("path", {
  21058. attrs: {
  21059. d: "M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",
  21060. fill: "#FFF"
  21061. }
  21062. }), h("path", {
  21063. attrs: {
  21064. d: "M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",
  21065. stroke: "#FFF",
  21066. strokeWidth: "2"
  21067. }
  21068. }), h("path", {
  21069. attrs: {
  21070. d: "M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",
  21071. fill: "#FFF"
  21072. }
  21073. }), h("path", {
  21074. attrs: {
  21075. d: "M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",
  21076. fill: "#FFF"
  21077. }
  21078. }), h("path", {
  21079. attrs: {
  21080. d: "M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",
  21081. fill: "#FF603B"
  21082. }
  21083. }), h("path", {
  21084. attrs: {
  21085. d: "M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",
  21086. fill: "#FFF"
  21087. }
  21088. }), h("path", {
  21089. attrs: {
  21090. d: "M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",
  21091. fill: "#FFB594"
  21092. }
  21093. }), h("path", {
  21094. attrs: {
  21095. d: "M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",
  21096. fill: "#FFF"
  21097. }
  21098. }), h("path", {
  21099. attrs: {
  21100. d: "M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",
  21101. fill: "#FFB594"
  21102. }
  21103. }), h("path", {
  21104. attrs: {
  21105. d: "M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",
  21106. fill: "#FFC6A0"
  21107. }
  21108. }), h("path", {
  21109. attrs: {
  21110. d: "M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",
  21111. fill: "#520038"
  21112. }
  21113. }), h("path", {
  21114. attrs: {
  21115. d: "M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",
  21116. fill: "#552950"
  21117. }
  21118. }), h("path", {
  21119. attrs: {
  21120. stroke: "#DB836E",
  21121. strokeWidth: "1.063",
  21122. strokeLinecap: "round",
  21123. strokeLinejoin: "round",
  21124. d: "M99.206 73.644l-.9 1.62-.3 4.38h-2.24"
  21125. }
  21126. }), h("path", {
  21127. attrs: {
  21128. d: "M99.926 73.284s1.8-.72 2.52.54",
  21129. stroke: "#5C2552",
  21130. strokeWidth: "1.117",
  21131. strokeLinecap: "round",
  21132. strokeLinejoin: "round"
  21133. }
  21134. }), h("path", {
  21135. attrs: {
  21136. d: "M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",
  21137. stroke: "#DB836E",
  21138. strokeWidth: "1.117",
  21139. strokeLinecap: "round",
  21140. strokeLinejoin: "round"
  21141. }
  21142. }), h("path", {
  21143. attrs: {
  21144. d: "M92.326 71.724s1.84 1.12 4.16.96",
  21145. stroke: "#5C2552",
  21146. strokeWidth: "1.117",
  21147. strokeLinecap: "round",
  21148. strokeLinejoin: "round"
  21149. }
  21150. }), h("path", {
  21151. attrs: {
  21152. d: "M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",
  21153. stroke: "#DB836E",
  21154. strokeWidth: "1.063",
  21155. strokeLinecap: "round",
  21156. strokeLinejoin: "round"
  21157. }
  21158. }), h("path", {
  21159. attrs: {
  21160. d: "M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",
  21161. stroke: "#E4EBF7",
  21162. strokeWidth: "1.136",
  21163. strokeLinecap: "round",
  21164. strokeLinejoin: "round"
  21165. }
  21166. }), h("path", {
  21167. attrs: {
  21168. d: "M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",
  21169. fill: "#FFF"
  21170. }
  21171. }), h("path", {
  21172. attrs: {
  21173. d: "M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",
  21174. fill: "#FFC6A0"
  21175. }
  21176. }), h("path", {
  21177. attrs: {
  21178. d: "M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",
  21179. fill: "#FFC6A0"
  21180. }
  21181. }), h("path", {
  21182. attrs: {
  21183. d: "M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",
  21184. stroke: "#E4EBF7",
  21185. strokeWidth: "1.085",
  21186. strokeLinecap: "round",
  21187. strokeLinejoin: "round"
  21188. }
  21189. }), h("path", {
  21190. attrs: {
  21191. d: "M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",
  21192. fill: "#FFC6A0"
  21193. }
  21194. }), h("path", {
  21195. attrs: {
  21196. d: "M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",
  21197. fill: "#FFF"
  21198. }
  21199. }), h("path", {
  21200. attrs: {
  21201. d: "M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",
  21202. fill: "#CBD1D1"
  21203. }
  21204. }), h("path", {
  21205. attrs: {
  21206. d: "M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",
  21207. fill: "#2B0849"
  21208. }
  21209. }), h("path", {
  21210. attrs: {
  21211. d: "M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",
  21212. fill: "#A4AABA"
  21213. }
  21214. }), h("path", {
  21215. attrs: {
  21216. d: "M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",
  21217. fill: "#CBD1D1"
  21218. }
  21219. }), h("path", {
  21220. attrs: {
  21221. d: "M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",
  21222. fill: "#2B0849"
  21223. }
  21224. }), h("path", {
  21225. attrs: {
  21226. d: "M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",
  21227. fill: "#A4AABA"
  21228. }
  21229. }), h("path", {
  21230. attrs: {
  21231. d: "M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",
  21232. fill: "#7BB2F9"
  21233. }
  21234. }), h("path", {
  21235. attrs: {
  21236. d: "M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",
  21237. stroke: "#648BD8",
  21238. strokeWidth: "1.085",
  21239. strokeLinecap: "round",
  21240. strokeLinejoin: "round"
  21241. }
  21242. }), h("path", {
  21243. attrs: {
  21244. d: "M96.973 219.373s2.882-1.153 6.34-4.034",
  21245. stroke: "#648BD8",
  21246. strokeWidth: "1.032",
  21247. strokeLinecap: "round",
  21248. strokeLinejoin: "round"
  21249. }
  21250. }), h("path", {
  21251. attrs: {
  21252. d: "M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",
  21253. stroke: "#648BD8",
  21254. strokeWidth: "1.085",
  21255. strokeLinecap: "round",
  21256. strokeLinejoin: "round"
  21257. }
  21258. }), h("path", {
  21259. attrs: {
  21260. d: "M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",
  21261. fill: "#192064"
  21262. }
  21263. }), h("path", {
  21264. attrs: {
  21265. d: "M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",
  21266. fill: "#FFF"
  21267. }
  21268. }), h("path", {
  21269. attrs: {
  21270. d: "M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",
  21271. fill: "#192064"
  21272. }
  21273. }), h("path", {
  21274. attrs: {
  21275. d: "M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",
  21276. stroke: "#648BD8",
  21277. strokeWidth: "1.085",
  21278. strokeLinecap: "round",
  21279. strokeLinejoin: "round"
  21280. }
  21281. }), h("path", {
  21282. attrs: {
  21283. d: "M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",
  21284. stroke: "#E4EBF7",
  21285. strokeWidth: "1.085",
  21286. strokeLinecap: "round",
  21287. strokeLinejoin: "round"
  21288. }
  21289. }), h("path", {
  21290. attrs: {
  21291. d: "M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",
  21292. fill: "#FFC6A0"
  21293. }
  21294. }), h("path", {
  21295. attrs: {
  21296. d: "M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",
  21297. stroke: "#DB836E",
  21298. strokeWidth: ".774",
  21299. strokeLinecap: "round",
  21300. strokeLinejoin: "round"
  21301. }
  21302. }), h("path", {
  21303. attrs: {
  21304. d: "M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",
  21305. stroke: "#E59788",
  21306. strokeWidth: ".774",
  21307. strokeLinecap: "round",
  21308. strokeLinejoin: "round"
  21309. }
  21310. }), h("path", {
  21311. attrs: {
  21312. d: "M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",
  21313. fill: "#FFC6A0"
  21314. }
  21315. }), h("path", {
  21316. attrs: {
  21317. d: "M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",
  21318. stroke: "#E59788",
  21319. strokeWidth: ".774",
  21320. strokeLinecap: "round",
  21321. strokeLinejoin: "round"
  21322. }
  21323. }), h("path", {
  21324. attrs: {
  21325. d: "M109.278 112.533s3.38-3.613 7.575-4.662",
  21326. stroke: "#E4EBF7",
  21327. strokeWidth: "1.085",
  21328. strokeLinecap: "round",
  21329. strokeLinejoin: "round"
  21330. }
  21331. }), h("path", {
  21332. attrs: {
  21333. d: "M107.375 123.006s9.697-2.745 11.445-.88",
  21334. stroke: "#E59788",
  21335. strokeWidth: ".774",
  21336. strokeLinecap: "round",
  21337. strokeLinejoin: "round"
  21338. }
  21339. }), h("path", {
  21340. attrs: {
  21341. d: "M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",
  21342. stroke: "#BFCDDD",
  21343. strokeWidth: "2",
  21344. strokeLinecap: "round",
  21345. strokeLinejoin: "round"
  21346. }
  21347. }), h("path", {
  21348. attrs: {
  21349. d: "M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",
  21350. fill: "#A3B4C6"
  21351. }
  21352. }), h("path", {
  21353. attrs: {
  21354. d: "M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",
  21355. fill: "#A3B4C6"
  21356. }
  21357. }), h("mask", {
  21358. attrs: { fill: "#fff" }
  21359. }), h("path", {
  21360. attrs: { fill: "#A3B4C6", mask: "url(#d)", d: "M154.098 190.096h70.513v-84.617h-70.513z" }
  21361. }), h("path", {
  21362. attrs: {
  21363. d: "M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",
  21364. fill: "#BFCDDD",
  21365. mask: "url(#d)"
  21366. }
  21367. }), h("path", {
  21368. attrs: {
  21369. d: "M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",
  21370. fill: "#FFF",
  21371. mask: "url(#d)"
  21372. }
  21373. }), h("path", {
  21374. attrs: {
  21375. d: "M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",
  21376. fill: "#BFCDDD",
  21377. mask: "url(#d)"
  21378. }
  21379. }), h("path", {
  21380. attrs: {
  21381. d: "M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",
  21382. stroke: "#7C90A5",
  21383. strokeWidth: "1.124",
  21384. strokeLinecap: "round",
  21385. strokeLinejoin: "round",
  21386. mask: "url(#d)"
  21387. }
  21388. }), h("path", {
  21389. attrs: {
  21390. d: "M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",
  21391. fill: "#FFF",
  21392. mask: "url(#d)"
  21393. }
  21394. }), h("path", {
  21395. attrs: {
  21396. d: "M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",
  21397. fill: "#BFCDDD",
  21398. mask: "url(#d)"
  21399. }
  21400. }), h("path", {
  21401. attrs: {
  21402. d: "M177.259 207.217v11.52M201.05 207.217v11.52",
  21403. stroke: "#A3B4C6",
  21404. strokeWidth: "1.124",
  21405. strokeLinecap: "round",
  21406. strokeLinejoin: "round",
  21407. mask: "url(#d)"
  21408. }
  21409. }), h("path", {
  21410. attrs: {
  21411. d: "M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",
  21412. fill: "#5BA02E",
  21413. mask: "url(#d)"
  21414. }
  21415. }), h("path", {
  21416. attrs: {
  21417. d: "M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",
  21418. fill: "#92C110",
  21419. mask: "url(#d)"
  21420. }
  21421. }), h("path", {
  21422. attrs: {
  21423. d: "M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",
  21424. fill: "#F2D7AD",
  21425. mask: "url(#d)"
  21426. }
  21427. })]
  21428. )]
  21429. );
  21430. }
  21431. };
  21432. /* harmony default export */ __webpack_exports__["default"] = (ServerError);
  21433. /***/ }),
  21434. /***/ "./components/result/style/index.js":
  21435. /*!******************************************!*\
  21436. !*** ./components/result/style/index.js ***!
  21437. \******************************************/
  21438. /*! no exports provided */
  21439. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21440. "use strict";
  21441. __webpack_require__.r(__webpack_exports__);
  21442. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  21443. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  21444. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/result/style/index.less");
  21445. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  21446. /***/ }),
  21447. /***/ "./components/result/style/index.less":
  21448. /*!********************************************!*\
  21449. !*** ./components/result/style/index.less ***!
  21450. \********************************************/
  21451. /*! no static exports found */
  21452. /***/ (function(module, exports, __webpack_require__) {
  21453. // extracted by mini-css-extract-plugin
  21454. /***/ }),
  21455. /***/ "./components/result/unauthorized.jsx":
  21456. /*!********************************************!*\
  21457. !*** ./components/result/unauthorized.jsx ***!
  21458. \********************************************/
  21459. /*! exports provided: default */
  21460. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21461. "use strict";
  21462. __webpack_require__.r(__webpack_exports__);
  21463. var Unauthorized = {
  21464. functional: true,
  21465. render: function render() {
  21466. var h = arguments[0];
  21467. return h(
  21468. "svg",
  21469. {
  21470. attrs: { width: "251", height: "294" }
  21471. },
  21472. [h(
  21473. "g",
  21474. {
  21475. attrs: { fill: "none", fillRule: "evenodd" }
  21476. },
  21477. [h("path", {
  21478. attrs: {
  21479. d: "M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",
  21480. fill: "#E4EBF7"
  21481. }
  21482. }), h("path", {
  21483. attrs: {
  21484. d: "M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",
  21485. fill: "#FFF"
  21486. }
  21487. }), h("path", {
  21488. attrs: {
  21489. d: "M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",
  21490. stroke: "#FFF",
  21491. strokeWidth: "2"
  21492. }
  21493. }), h("path", {
  21494. attrs: {
  21495. d: "M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",
  21496. fill: "#FFF"
  21497. }
  21498. }), h("path", {
  21499. attrs: {
  21500. d: "M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",
  21501. fill: "#FFF"
  21502. }
  21503. }), h("path", {
  21504. attrs: {
  21505. d: "M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",
  21506. stroke: "#FFF",
  21507. strokeWidth: "2"
  21508. }
  21509. }), h("path", {
  21510. attrs: {
  21511. d: "M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",
  21512. fill: "#FFF"
  21513. }
  21514. }), h("path", {
  21515. attrs: {
  21516. d: "M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",
  21517. stroke: "#FFF",
  21518. strokeWidth: "2"
  21519. }
  21520. }), h("path", {
  21521. attrs: {
  21522. stroke: "#FFF",
  21523. strokeWidth: "2",
  21524. d: "M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"
  21525. }
  21526. }), h("path", {
  21527. attrs: {
  21528. d: "M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",
  21529. fill: "#A26EF4"
  21530. }
  21531. }), h("path", {
  21532. attrs: {
  21533. d: "M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",
  21534. fill: "#FFF"
  21535. }
  21536. }), h("path", {
  21537. attrs: {
  21538. d: "M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",
  21539. fill: "#FFF"
  21540. }
  21541. }), h("path", {
  21542. attrs: {
  21543. d: "M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",
  21544. fill: "#5BA02E"
  21545. }
  21546. }), h("path", {
  21547. attrs: {
  21548. d: "M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",
  21549. fill: "#92C110"
  21550. }
  21551. }), h("path", {
  21552. attrs: {
  21553. d: "M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",
  21554. fill: "#F2D7AD"
  21555. }
  21556. }), h("path", {
  21557. attrs: {
  21558. d: "M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",
  21559. fill: "#FFF"
  21560. }
  21561. }), h("path", {
  21562. attrs: {
  21563. d: "M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",
  21564. fill: "#FFC6A0"
  21565. }
  21566. }), h("path", {
  21567. attrs: {
  21568. d: "M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",
  21569. fill: "#FFB594"
  21570. }
  21571. }), h("path", {
  21572. attrs: {
  21573. d: "M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",
  21574. fill: "#FFC6A0"
  21575. }
  21576. }), h("path", {
  21577. attrs: {
  21578. d: "M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",
  21579. fill: "#FFF"
  21580. }
  21581. }), h("path", {
  21582. attrs: {
  21583. d: "M78.18 94.656s.911 7.41-4.914 13.078",
  21584. stroke: "#E4EBF7",
  21585. strokeWidth: "1.051",
  21586. strokeLinecap: "round",
  21587. strokeLinejoin: "round"
  21588. }
  21589. }), h("path", {
  21590. attrs: {
  21591. d: "M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",
  21592. stroke: "#E4EBF7",
  21593. strokeWidth: ".932",
  21594. strokeLinecap: "round",
  21595. strokeLinejoin: "round"
  21596. }
  21597. }), h("path", {
  21598. attrs: {
  21599. d: "M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",
  21600. fill: "#FFC6A0"
  21601. }
  21602. }), h("path", {
  21603. attrs: {
  21604. d: "M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",
  21605. fill: "#FFB594"
  21606. }
  21607. }), h("path", {
  21608. attrs: {
  21609. d: "M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",
  21610. fill: "#5C2552"
  21611. }
  21612. }), h("path", {
  21613. attrs: {
  21614. d: "M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",
  21615. fill: "#FFC6A0"
  21616. }
  21617. }), h("path", {
  21618. attrs: {
  21619. stroke: "#DB836E",
  21620. strokeWidth: "1.145",
  21621. strokeLinecap: "round",
  21622. strokeLinejoin: "round",
  21623. d: "M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"
  21624. }
  21625. }), h("path", {
  21626. attrs: {
  21627. d: "M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",
  21628. fill: "#552950"
  21629. }
  21630. }), h("path", {
  21631. attrs: {
  21632. d: "M91.132 86.786s5.269 4.957 12.679 2.327",
  21633. stroke: "#DB836E",
  21634. strokeWidth: "1.145",
  21635. strokeLinecap: "round",
  21636. strokeLinejoin: "round"
  21637. }
  21638. }), h("path", {
  21639. attrs: {
  21640. d: "M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",
  21641. fill: "#DB836E"
  21642. }
  21643. }), h("path", {
  21644. attrs: {
  21645. d: "M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",
  21646. stroke: "#5C2552",
  21647. strokeWidth: "1.526",
  21648. strokeLinecap: "round",
  21649. strokeLinejoin: "round"
  21650. }
  21651. }), h("path", {
  21652. attrs: {
  21653. d: "M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",
  21654. stroke: "#DB836E",
  21655. strokeWidth: "1.145",
  21656. strokeLinecap: "round",
  21657. strokeLinejoin: "round"
  21658. }
  21659. }), h("path", {
  21660. attrs: {
  21661. d: "M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",
  21662. stroke: "#E4EBF7",
  21663. strokeWidth: "1.051",
  21664. strokeLinecap: "round",
  21665. strokeLinejoin: "round"
  21666. }
  21667. }), h("path", {
  21668. attrs: {
  21669. d: "M66.508 86.763s-1.598 8.83-6.697 14.078",
  21670. stroke: "#E4EBF7",
  21671. strokeWidth: "1.114",
  21672. strokeLinecap: "round",
  21673. strokeLinejoin: "round"
  21674. }
  21675. }), h("path", {
  21676. attrs: {
  21677. d: "M128.31 87.934s3.013 4.121 4.06 11.785",
  21678. stroke: "#E4EBF7",
  21679. strokeWidth: "1.051",
  21680. strokeLinecap: "round",
  21681. strokeLinejoin: "round"
  21682. }
  21683. }), h("path", {
  21684. attrs: {
  21685. d: "M64.09 84.816s-6.03 9.912-13.607 9.903",
  21686. stroke: "#DB836E",
  21687. strokeWidth: ".795",
  21688. strokeLinecap: "round",
  21689. strokeLinejoin: "round"
  21690. }
  21691. }), h("path", {
  21692. attrs: {
  21693. d: "M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",
  21694. fill: "#FFC6A0"
  21695. }
  21696. }), h("path", {
  21697. attrs: {
  21698. d: "M130.532 85.488s4.588 5.757 11.619 6.214",
  21699. stroke: "#DB836E",
  21700. strokeWidth: ".75",
  21701. strokeLinecap: "round",
  21702. strokeLinejoin: "round"
  21703. }
  21704. }), h("path", {
  21705. attrs: {
  21706. d: "M121.708 105.73s-.393 8.564-1.34 13.612",
  21707. stroke: "#E4EBF7",
  21708. strokeWidth: "1.051",
  21709. strokeLinecap: "round",
  21710. strokeLinejoin: "round"
  21711. }
  21712. }), h("path", {
  21713. attrs: {
  21714. d: "M115.784 161.512s-3.57-1.488-2.678-7.14",
  21715. stroke: "#648BD8",
  21716. strokeWidth: "1.051",
  21717. strokeLinecap: "round",
  21718. strokeLinejoin: "round"
  21719. }
  21720. }), h("path", {
  21721. attrs: {
  21722. d: "M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",
  21723. fill: "#CBD1D1"
  21724. }
  21725. }), h("path", {
  21726. attrs: {
  21727. d: "M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",
  21728. fill: "#2B0849"
  21729. }
  21730. }), h("path", {
  21731. attrs: {
  21732. d: "M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",
  21733. fill: "#A4AABA"
  21734. }
  21735. }), h("path", {
  21736. attrs: {
  21737. d: "M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",
  21738. fill: "#CBD1D1"
  21739. }
  21740. }), h("path", {
  21741. attrs: {
  21742. d: "M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",
  21743. fill: "#2B0849"
  21744. }
  21745. }), h("path", {
  21746. attrs: {
  21747. d: "M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",
  21748. fill: "#A4AABA"
  21749. }
  21750. }), h("path", {
  21751. attrs: {
  21752. d: "M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",
  21753. fill: "#7BB2F9"
  21754. }
  21755. }), h("path", {
  21756. attrs: {
  21757. d: "M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",
  21758. stroke: "#648BD8",
  21759. strokeWidth: "1.051",
  21760. strokeLinecap: "round",
  21761. strokeLinejoin: "round"
  21762. }
  21763. }), h("path", {
  21764. attrs: {
  21765. d: "M108.459 220.905s2.759-1.104 6.07-3.863",
  21766. stroke: "#648BD8",
  21767. strokeLinecap: "round",
  21768. strokeLinejoin: "round"
  21769. }
  21770. }), h("path", {
  21771. attrs: {
  21772. d: "M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",
  21773. stroke: "#648BD8",
  21774. strokeWidth: "1.051",
  21775. strokeLinecap: "round",
  21776. strokeLinejoin: "round"
  21777. }
  21778. }), h("path", {
  21779. attrs: {
  21780. d: "M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",
  21781. fill: "#192064"
  21782. }
  21783. }), h("path", {
  21784. attrs: {
  21785. d: "M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",
  21786. fill: "#FFF"
  21787. }
  21788. }), h("path", {
  21789. attrs: {
  21790. d: "M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",
  21791. fill: "#192064"
  21792. }
  21793. }), h("path", {
  21794. attrs: {
  21795. d: "M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",
  21796. stroke: "#648BD8",
  21797. strokeWidth: "1.051",
  21798. strokeLinecap: "round",
  21799. strokeLinejoin: "round"
  21800. }
  21801. })]
  21802. )]
  21803. );
  21804. }
  21805. };
  21806. /* harmony default export */ __webpack_exports__["default"] = (Unauthorized);
  21807. /***/ }),
  21808. /***/ "./components/row/index.js":
  21809. /*!*********************************!*\
  21810. !*** ./components/row/index.js ***!
  21811. \*********************************/
  21812. /*! exports provided: default */
  21813. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21814. "use strict";
  21815. __webpack_require__.r(__webpack_exports__);
  21816. /* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../grid */ "./components/grid/index.js");
  21817. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  21818. /* istanbul ignore next */
  21819. _grid__WEBPACK_IMPORTED_MODULE_0__["Row"].install = function (Vue) {
  21820. Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
  21821. Vue.component(_grid__WEBPACK_IMPORTED_MODULE_0__["Row"].name, _grid__WEBPACK_IMPORTED_MODULE_0__["Row"]);
  21822. };
  21823. /* harmony default export */ __webpack_exports__["default"] = (_grid__WEBPACK_IMPORTED_MODULE_0__["Row"]);
  21824. /***/ }),
  21825. /***/ "./components/row/style/index.js":
  21826. /*!***************************************!*\
  21827. !*** ./components/row/style/index.js ***!
  21828. \***************************************/
  21829. /*! no exports provided */
  21830. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21831. "use strict";
  21832. __webpack_require__.r(__webpack_exports__);
  21833. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  21834. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  21835. /* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
  21836. // style dependencies
  21837. // deps-lint-skip: grid
  21838. /***/ }),
  21839. /***/ "./components/select/index.jsx":
  21840. /*!*************************************!*\
  21841. !*** ./components/select/index.jsx ***!
  21842. \*************************************/
  21843. /*! exports provided: AbstractSelectProps, SelectValue, SelectProps, default */
  21844. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  21845. "use strict";
  21846. __webpack_require__.r(__webpack_exports__);
  21847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbstractSelectProps", function() { return AbstractSelectProps; });
  21848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectValue", function() { return SelectValue; });
  21849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectProps", function() { return SelectProps; });
  21850. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  21851. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  21852. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  21853. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  21854. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  21855. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
  21856. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  21857. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
  21858. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  21859. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  21860. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  21861. /* harmony import */ var _vc_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-select */ "./components/vc-select/index.js");
  21862. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  21863. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  21864. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  21865. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  21866. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  21867. var AbstractSelectProps = function AbstractSelectProps() {
  21868. return {
  21869. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  21870. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['small', 'large', 'default']),
  21871. showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(String)]),
  21872. notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  21873. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  21874. choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  21875. showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  21876. allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  21877. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  21878. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
  21879. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  21880. defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  21881. dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  21882. dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  21883. dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  21884. dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  21885. // onSearch: (value: string) => any,
  21886. filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func]),
  21887. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  21888. backfill: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  21889. showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  21890. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  21891. open: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  21892. defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  21893. autoClearSearchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  21894. dropdownRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  21895. loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool
  21896. };
  21897. };
  21898. var Value = _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].shape({
  21899. key: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number])
  21900. }).loose;
  21901. var SelectValue = _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([Value, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number])), Value]);
  21902. var SelectProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, AbstractSelectProps(), {
  21903. value: SelectValue,
  21904. defaultValue: SelectValue,
  21905. // mode: PropTypes.oneOf(['default', 'multiple', 'tags', 'combobox']),
  21906. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  21907. optionLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  21908. firstActiveValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([String, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(String)]),
  21909. maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
  21910. maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  21911. maxTagTextLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
  21912. dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  21913. optionFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  21914. labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].boolean,
  21915. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  21916. tokenSeparators: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string),
  21917. getInputElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  21918. options: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  21919. suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  21920. removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  21921. clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  21922. menuItemSelectedIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any
  21923. });
  21924. var SelectPropTypes = {
  21925. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  21926. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['default', 'large', 'small']),
  21927. // combobox: PropTypes.bool,
  21928. notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  21929. showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  21930. optionLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  21931. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  21932. choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string
  21933. };
  21934. var SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
  21935. var Select = {
  21936. SECRET_COMBOBOX_MODE_DO_NOT_USE: SECRET_COMBOBOX_MODE_DO_NOT_USE,
  21937. Option: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, _vc_select__WEBPACK_IMPORTED_MODULE_7__["Option"], { name: 'ASelectOption' }),
  21938. OptGroup: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, _vc_select__WEBPACK_IMPORTED_MODULE_7__["OptGroup"], { name: 'ASelectOptGroup' }),
  21939. name: 'ASelect',
  21940. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, SelectProps, {
  21941. showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(false),
  21942. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string.def('slide-up'),
  21943. choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string.def('zoom')
  21944. }),
  21945. propTypes: SelectPropTypes,
  21946. model: {
  21947. prop: 'value',
  21948. event: 'change'
  21949. },
  21950. provide: function provide() {
  21951. return {
  21952. savePopupRef: this.savePopupRef
  21953. };
  21954. },
  21955. inject: {
  21956. configProvider: { 'default': function _default() {
  21957. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
  21958. } }
  21959. },
  21960. created: function created() {
  21961. Object(_util_warning__WEBPACK_IMPORTED_MODULE_4__["default"])(this.$props.mode !== 'combobox', 'Select', 'The combobox mode of Select is deprecated,' + 'it will be removed in next major version,' + 'please use AutoComplete instead');
  21962. },
  21963. methods: {
  21964. getNotFoundContent: function getNotFoundContent(renderEmpty) {
  21965. var h = this.$createElement;
  21966. var notFoundContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'notFoundContent');
  21967. if (notFoundContent !== undefined) {
  21968. return notFoundContent;
  21969. }
  21970. if (this.isCombobox()) {
  21971. return null;
  21972. }
  21973. return renderEmpty(h, 'Select');
  21974. },
  21975. savePopupRef: function savePopupRef(ref) {
  21976. this.popupRef = ref;
  21977. },
  21978. focus: function focus() {
  21979. this.$refs.vcSelect.focus();
  21980. },
  21981. blur: function blur() {
  21982. this.$refs.vcSelect.blur();
  21983. },
  21984. isCombobox: function isCombobox() {
  21985. var mode = this.mode;
  21986. return mode === 'combobox' || mode === SECRET_COMBOBOX_MODE_DO_NOT_USE;
  21987. },
  21988. renderSuffixIcon: function renderSuffixIcon(prefixCls) {
  21989. var h = this.$createElement;
  21990. var loading = this.$props.loading;
  21991. var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'suffixIcon');
  21992. suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
  21993. if (suffixIcon) {
  21994. return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(suffixIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(suffixIcon, { 'class': prefixCls + '-arrow-icon' }) : suffixIcon;
  21995. }
  21996. if (loading) {
  21997. return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  21998. attrs: { type: 'loading' }
  21999. });
  22000. }
  22001. return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  22002. attrs: { type: 'down' },
  22003. 'class': prefixCls + '-arrow-icon' });
  22004. }
  22005. },
  22006. render: function render() {
  22007. var _cls;
  22008. var h = arguments[0];
  22009. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this),
  22010. customizePrefixCls = _getOptionProps.prefixCls,
  22011. size = _getOptionProps.size,
  22012. mode = _getOptionProps.mode,
  22013. options = _getOptionProps.options,
  22014. getPopupContainer = _getOptionProps.getPopupContainer,
  22015. showArrow = _getOptionProps.showArrow,
  22016. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getOptionProps, ['prefixCls', 'size', 'mode', 'options', 'getPopupContainer', 'showArrow']);
  22017. var getPrefixCls = this.configProvider.getPrefixCls;
  22018. var renderEmpty = this.configProvider.renderEmpty;
  22019. var prefixCls = getPrefixCls('select', customizePrefixCls);
  22020. var getContextPopupContainer = this.configProvider.getPopupContainer;
  22021. var removeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'removeIcon');
  22022. removeIcon = Array.isArray(removeIcon) ? removeIcon[0] : removeIcon;
  22023. var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'clearIcon');
  22024. clearIcon = Array.isArray(clearIcon) ? clearIcon[0] : clearIcon;
  22025. var menuItemSelectedIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'menuItemSelectedIcon');
  22026. menuItemSelectedIcon = Array.isArray(menuItemSelectedIcon) ? menuItemSelectedIcon[0] : menuItemSelectedIcon;
  22027. var rest = Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(restProps, ['inputIcon', 'removeIcon', 'clearIcon', 'suffixIcon', 'menuItemSelectedIcon']);
  22028. var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-show-arrow', showArrow), _cls);
  22029. var optionLabelProp = this.$props.optionLabelProp;
  22030. if (this.isCombobox()) {
  22031. // children 带 dom 结构时,无法填入输入框
  22032. optionLabelProp = optionLabelProp || 'value';
  22033. }
  22034. var modeConfig = {
  22035. multiple: mode === 'multiple',
  22036. tags: mode === 'tags',
  22037. combobox: this.isCombobox()
  22038. };
  22039. var finalRemoveIcon = removeIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(removeIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(removeIcon, { 'class': prefixCls + '-remove-icon' }) : removeIcon) || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  22040. attrs: { type: 'close' },
  22041. 'class': prefixCls + '-remove-icon' });
  22042. var finalClearIcon = clearIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(clearIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(clearIcon, { 'class': prefixCls + '-clear-icon' }) : clearIcon) || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  22043. attrs: { type: 'close-circle', theme: 'filled' },
  22044. 'class': prefixCls + '-clear-icon' });
  22045. var finalMenuItemSelectedIcon = menuItemSelectedIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(menuItemSelectedIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(menuItemSelectedIcon, { 'class': prefixCls + '-selected-icon' }) : menuItemSelectedIcon) || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  22046. attrs: { type: 'check' },
  22047. 'class': prefixCls + '-selected-icon' });
  22048. var selectProps = {
  22049. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
  22050. inputIcon: this.renderSuffixIcon(prefixCls),
  22051. removeIcon: finalRemoveIcon,
  22052. clearIcon: finalClearIcon,
  22053. menuItemSelectedIcon: finalMenuItemSelectedIcon,
  22054. showArrow: showArrow
  22055. }, rest, modeConfig, {
  22056. prefixCls: prefixCls,
  22057. optionLabelProp: optionLabelProp || 'children',
  22058. notFoundContent: this.getNotFoundContent(renderEmpty),
  22059. maxTagPlaceholder: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'maxTagPlaceholder'),
  22060. placeholder: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'placeholder'),
  22061. children: options ? options.map(function (option) {
  22062. var key = option.key,
  22063. _option$label = option.label,
  22064. label = _option$label === undefined ? option.title : _option$label,
  22065. on = option.on,
  22066. cls = option['class'],
  22067. style = option.style,
  22068. restOption = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(option, ['key', 'label', 'on', 'class', 'style']);
  22069. return h(
  22070. _vc_select__WEBPACK_IMPORTED_MODULE_7__["Option"],
  22071. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: key }, { props: restOption, on: on, 'class': cls, style: style }]),
  22072. [label]
  22073. );
  22074. }) : Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["filterEmpty"])(this.$slots['default']),
  22075. __propsSymbol__: Symbol(),
  22076. dropdownRender: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'dropdownRender', {}, false),
  22077. getPopupContainer: getPopupContainer || getContextPopupContainer
  22078. }),
  22079. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this),
  22080. 'class': cls,
  22081. ref: 'vcSelect'
  22082. };
  22083. return h(_vc_select__WEBPACK_IMPORTED_MODULE_7__["Select"], selectProps);
  22084. }
  22085. };
  22086. /* istanbul ignore next */
  22087. Select.install = function (Vue) {
  22088. Vue.use(_base__WEBPACK_IMPORTED_MODULE_12__["default"]);
  22089. Vue.component(Select.name, Select);
  22090. Vue.component(Select.Option.name, Select.Option);
  22091. Vue.component(Select.OptGroup.name, Select.OptGroup);
  22092. };
  22093. /* harmony default export */ __webpack_exports__["default"] = (Select);
  22094. /***/ }),
  22095. /***/ "./components/select/style/index.js":
  22096. /*!******************************************!*\
  22097. !*** ./components/select/style/index.js ***!
  22098. \******************************************/
  22099. /*! no exports provided */
  22100. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22101. "use strict";
  22102. __webpack_require__.r(__webpack_exports__);
  22103. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  22104. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  22105. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/select/style/index.less");
  22106. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  22107. /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
  22108. // style dependencies
  22109. /***/ }),
  22110. /***/ "./components/select/style/index.less":
  22111. /*!********************************************!*\
  22112. !*** ./components/select/style/index.less ***!
  22113. \********************************************/
  22114. /*! no static exports found */
  22115. /***/ (function(module, exports, __webpack_require__) {
  22116. // extracted by mini-css-extract-plugin
  22117. /***/ }),
  22118. /***/ "./components/skeleton/Avatar.jsx":
  22119. /*!****************************************!*\
  22120. !*** ./components/skeleton/Avatar.jsx ***!
  22121. \****************************************/
  22122. /*! exports provided: SkeletonAvatarProps, default */
  22123. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22124. "use strict";
  22125. __webpack_require__.r(__webpack_exports__);
  22126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonAvatarProps", function() { return SkeletonAvatarProps; });
  22127. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  22128. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  22129. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  22130. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
  22131. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  22132. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  22133. var skeletonAvatarProps = {
  22134. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  22135. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['large', 'small', 'default']), _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number]),
  22136. shape: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['circle', 'square'])
  22137. };
  22138. var SkeletonAvatarProps = _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(skeletonAvatarProps).loose;
  22139. var Avatar = {
  22140. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(skeletonAvatarProps, {
  22141. size: 'large'
  22142. }),
  22143. render: function render() {
  22144. var _classNames, _classNames2;
  22145. var h = arguments[0];
  22146. var _$props = this.$props,
  22147. prefixCls = _$props.prefixCls,
  22148. size = _$props.size,
  22149. shape = _$props.shape;
  22150. var sizeCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-sm', size === 'small'), _classNames));
  22151. var shapeCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-circle', shape === 'circle'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-square', shape === 'square'), _classNames2));
  22152. var sizeStyle = typeof size === 'number' ? {
  22153. width: size + 'px',
  22154. height: size + 'px',
  22155. lineHeight: size + 'px'
  22156. } : {};
  22157. return h('span', { 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, sizeCls, shapeCls), style: sizeStyle });
  22158. }
  22159. };
  22160. /* harmony default export */ __webpack_exports__["default"] = (Avatar);
  22161. /***/ }),
  22162. /***/ "./components/skeleton/Paragraph.jsx":
  22163. /*!*******************************************!*\
  22164. !*** ./components/skeleton/Paragraph.jsx ***!
  22165. \*******************************************/
  22166. /*! exports provided: SkeletonParagraphProps, default */
  22167. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22168. "use strict";
  22169. __webpack_require__.r(__webpack_exports__);
  22170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonParagraphProps", function() { return SkeletonParagraphProps; });
  22171. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  22172. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  22173. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  22174. var widthUnit = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string]);
  22175. var skeletonParagraphProps = {
  22176. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  22177. width: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([widthUnit, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(widthUnit)]),
  22178. rows: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number
  22179. };
  22180. var SkeletonParagraphProps = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape(skeletonParagraphProps);
  22181. var Paragraph = {
  22182. props: skeletonParagraphProps,
  22183. methods: {
  22184. getWidth: function getWidth(index) {
  22185. var width = this.width,
  22186. _rows = this.rows,
  22187. rows = _rows === undefined ? 2 : _rows;
  22188. if (Array.isArray(width)) {
  22189. return width[index];
  22190. }
  22191. // last paragraph
  22192. if (rows - 1 === index) {
  22193. return width;
  22194. }
  22195. return undefined;
  22196. }
  22197. },
  22198. render: function render() {
  22199. var _this = this;
  22200. var h = arguments[0];
  22201. var _$props = this.$props,
  22202. prefixCls = _$props.prefixCls,
  22203. rows = _$props.rows;
  22204. var rowList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(Array(rows))).map(function (_, index) {
  22205. var width = _this.getWidth(index);
  22206. return h('li', { key: index, style: { width: typeof width === 'number' ? width + 'px' : width } });
  22207. });
  22208. return h(
  22209. 'ul',
  22210. { 'class': prefixCls },
  22211. [rowList]
  22212. );
  22213. }
  22214. };
  22215. /* harmony default export */ __webpack_exports__["default"] = (Paragraph);
  22216. /***/ }),
  22217. /***/ "./components/skeleton/Title.jsx":
  22218. /*!***************************************!*\
  22219. !*** ./components/skeleton/Title.jsx ***!
  22220. \***************************************/
  22221. /*! exports provided: SkeletonTitleProps, default */
  22222. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22223. "use strict";
  22224. __webpack_require__.r(__webpack_exports__);
  22225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonTitleProps", function() { return SkeletonTitleProps; });
  22226. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  22227. var skeletonTitleProps = {
  22228. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  22229. width: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string])
  22230. };
  22231. var SkeletonTitleProps = _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].shape(skeletonTitleProps);
  22232. var Title = {
  22233. props: skeletonTitleProps,
  22234. render: function render() {
  22235. var h = arguments[0];
  22236. var _$props = this.$props,
  22237. prefixCls = _$props.prefixCls,
  22238. width = _$props.width;
  22239. var zWidth = typeof width === 'number' ? width + 'px' : width;
  22240. return h('h3', { 'class': prefixCls, style: { width: zWidth } });
  22241. }
  22242. };
  22243. /* harmony default export */ __webpack_exports__["default"] = (Title);
  22244. /***/ }),
  22245. /***/ "./components/skeleton/index.jsx":
  22246. /*!***************************************!*\
  22247. !*** ./components/skeleton/index.jsx ***!
  22248. \***************************************/
  22249. /*! exports provided: SkeletonProps, default */
  22250. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22251. "use strict";
  22252. __webpack_require__.r(__webpack_exports__);
  22253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonProps", function() { return SkeletonProps; });
  22254. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  22255. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  22256. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  22257. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  22258. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  22259. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
  22260. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  22261. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  22262. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  22263. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  22264. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  22265. /* harmony import */ var _Avatar__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Avatar */ "./components/skeleton/Avatar.jsx");
  22266. /* harmony import */ var _Title__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Title */ "./components/skeleton/Title.jsx");
  22267. /* harmony import */ var _Paragraph__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Paragraph */ "./components/skeleton/Paragraph.jsx");
  22268. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  22269. var SkeletonProps = {
  22270. active: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  22271. loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  22272. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  22273. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  22274. avatar: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _Avatar__WEBPACK_IMPORTED_MODULE_7__["SkeletonAvatarProps"], _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool]),
  22275. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _Title__WEBPACK_IMPORTED_MODULE_8__["SkeletonTitleProps"]]),
  22276. paragraph: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _Paragraph__WEBPACK_IMPORTED_MODULE_9__["SkeletonParagraphProps"]])
  22277. };
  22278. function getComponentProps(prop) {
  22279. if (prop && (typeof prop === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(prop)) === 'object') {
  22280. return prop;
  22281. }
  22282. return {};
  22283. }
  22284. function getAvatarBasicProps(hasTitle, hasParagraph) {
  22285. if (hasTitle && !hasParagraph) {
  22286. return { shape: 'square' };
  22287. }
  22288. return { shape: 'circle' };
  22289. }
  22290. function getTitleBasicProps(hasAvatar, hasParagraph) {
  22291. if (!hasAvatar && hasParagraph) {
  22292. return { width: '38%' };
  22293. }
  22294. if (hasAvatar && hasParagraph) {
  22295. return { width: '50%' };
  22296. }
  22297. return {};
  22298. }
  22299. function getParagraphBasicProps(hasAvatar, hasTitle) {
  22300. var basicProps = {};
  22301. // Width
  22302. if (!hasAvatar || !hasTitle) {
  22303. basicProps.width = '61%';
  22304. }
  22305. // Rows
  22306. if (!hasAvatar && hasTitle) {
  22307. basicProps.rows = 3;
  22308. } else {
  22309. basicProps.rows = 2;
  22310. }
  22311. return basicProps;
  22312. }
  22313. var Skeleton = {
  22314. name: 'ASkeleton',
  22315. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])(SkeletonProps, {
  22316. avatar: false,
  22317. title: true,
  22318. paragraph: true
  22319. }),
  22320. inject: {
  22321. configProvider: { 'default': function _default() {
  22322. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
  22323. } }
  22324. },
  22325. render: function render() {
  22326. var h = arguments[0];
  22327. var _$props = this.$props,
  22328. customizePrefixCls = _$props.prefixCls,
  22329. loading = _$props.loading,
  22330. avatar = _$props.avatar,
  22331. title = _$props.title,
  22332. paragraph = _$props.paragraph,
  22333. active = _$props.active;
  22334. var getPrefixCls = this.configProvider.getPrefixCls;
  22335. var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
  22336. if (loading || !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'loading')) {
  22337. var _classNames;
  22338. var hasAvatar = !!avatar || avatar === '';
  22339. var hasTitle = !!title;
  22340. var hasParagraph = !!paragraph;
  22341. // Avatar
  22342. var avatarNode = void 0;
  22343. if (hasAvatar) {
  22344. var avatarProps = {
  22345. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
  22346. prefixCls: prefixCls + '-avatar'
  22347. }, getAvatarBasicProps(hasTitle, hasParagraph), getComponentProps(avatar))
  22348. };
  22349. avatarNode = h(
  22350. 'div',
  22351. { 'class': prefixCls + '-header' },
  22352. [h(_Avatar__WEBPACK_IMPORTED_MODULE_7__["default"], avatarProps)]
  22353. );
  22354. }
  22355. var contentNode = void 0;
  22356. if (hasTitle || hasParagraph) {
  22357. // Title
  22358. var $title = void 0;
  22359. if (hasTitle) {
  22360. var titleProps = {
  22361. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
  22362. prefixCls: prefixCls + '-title'
  22363. }, getTitleBasicProps(hasAvatar, hasParagraph), getComponentProps(title))
  22364. };
  22365. $title = h(_Title__WEBPACK_IMPORTED_MODULE_8__["default"], titleProps);
  22366. }
  22367. // Paragraph
  22368. var paragraphNode = void 0;
  22369. if (hasParagraph) {
  22370. var paragraphProps = {
  22371. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
  22372. prefixCls: prefixCls + '-paragraph'
  22373. }, getParagraphBasicProps(hasAvatar, hasTitle), getComponentProps(paragraph))
  22374. };
  22375. paragraphNode = h(_Paragraph__WEBPACK_IMPORTED_MODULE_9__["default"], paragraphProps);
  22376. }
  22377. contentNode = h(
  22378. 'div',
  22379. { 'class': prefixCls + '-content' },
  22380. [$title, paragraphNode]
  22381. );
  22382. }
  22383. var cls = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-with-avatar', hasAvatar), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-active', active), _classNames));
  22384. return h(
  22385. 'div',
  22386. { 'class': cls },
  22387. [avatarNode, contentNode]
  22388. );
  22389. }
  22390. var children = this.$slots['default'];
  22391. return children && children.length === 1 ? children[0] : h('span', [children]);
  22392. }
  22393. };
  22394. /* istanbul ignore next */
  22395. Skeleton.install = function (Vue) {
  22396. Vue.use(_base__WEBPACK_IMPORTED_MODULE_10__["default"]);
  22397. Vue.component(Skeleton.name, Skeleton);
  22398. };
  22399. /* harmony default export */ __webpack_exports__["default"] = (Skeleton);
  22400. /***/ }),
  22401. /***/ "./components/skeleton/style/index.js":
  22402. /*!********************************************!*\
  22403. !*** ./components/skeleton/style/index.js ***!
  22404. \********************************************/
  22405. /*! no exports provided */
  22406. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22407. "use strict";
  22408. __webpack_require__.r(__webpack_exports__);
  22409. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  22410. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  22411. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/skeleton/style/index.less");
  22412. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  22413. /***/ }),
  22414. /***/ "./components/skeleton/style/index.less":
  22415. /*!**********************************************!*\
  22416. !*** ./components/skeleton/style/index.less ***!
  22417. \**********************************************/
  22418. /*! no static exports found */
  22419. /***/ (function(module, exports, __webpack_require__) {
  22420. // extracted by mini-css-extract-plugin
  22421. /***/ }),
  22422. /***/ "./components/slider/index.jsx":
  22423. /*!*************************************!*\
  22424. !*** ./components/slider/index.jsx ***!
  22425. \*************************************/
  22426. /*! exports provided: SliderProps, default */
  22427. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22428. "use strict";
  22429. __webpack_require__.r(__webpack_exports__);
  22430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SliderProps", function() { return SliderProps; });
  22431. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  22432. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
  22433. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  22434. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  22435. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  22436. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  22437. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  22438. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  22439. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  22440. /* harmony import */ var _vc_slider_src_Slider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-slider/src/Slider */ "./components/vc-slider/src/Slider.jsx");
  22441. /* harmony import */ var _vc_slider_src_Range__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-slider/src/Range */ "./components/vc-slider/src/Range.jsx");
  22442. /* harmony import */ var _vc_slider_src_Handle__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../vc-slider/src/Handle */ "./components/vc-slider/src/Handle.jsx");
  22443. /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
  22444. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  22445. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  22446. /* harmony import */ var _tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../tooltip/abstractTooltipProps */ "./components/tooltip/abstractTooltipProps.js");
  22447. // export interface SliderMarks {
  22448. // [key]: React.ReactNode | {
  22449. // style: React.CSSProperties,
  22450. // label: React.ReactNode,
  22451. // };
  22452. // }
  22453. // const SliderMarks = PropTypes.shape({
  22454. // style: PropTypes.object,
  22455. // label: PropTypes.any,
  22456. // }).loose
  22457. var tooltipProps = Object(_tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_12__["default"])();
  22458. var SliderProps = function SliderProps() {
  22459. return {
  22460. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  22461. tooltipPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  22462. range: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  22463. reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  22464. min: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  22465. max: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  22466. step: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any]),
  22467. marks: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  22468. dots: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  22469. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number)]),
  22470. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number)]),
  22471. included: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  22472. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  22473. vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  22474. tipFormatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
  22475. tooltipVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  22476. tooltipPlacement: tooltipProps.placement,
  22477. getTooltipPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func
  22478. };
  22479. };
  22480. var Slider = {
  22481. name: 'ASlider',
  22482. model: {
  22483. prop: 'value',
  22484. event: 'change'
  22485. },
  22486. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  22487. inject: {
  22488. configProvider: { 'default': function _default() {
  22489. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_11__["ConfigConsumerProps"];
  22490. } }
  22491. },
  22492. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, SliderProps(), {
  22493. tipFormatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]).def(function (value) {
  22494. return value.toString();
  22495. })
  22496. }),
  22497. data: function data() {
  22498. return {
  22499. visibles: {}
  22500. };
  22501. },
  22502. methods: {
  22503. toggleTooltipVisible: function toggleTooltipVisible(index, visible) {
  22504. this.setState(function (_ref) {
  22505. var visibles = _ref.visibles;
  22506. return {
  22507. visibles: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, visibles, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, index, visible))
  22508. };
  22509. });
  22510. },
  22511. handleWithTooltip: function handleWithTooltip(tooltipPrefixCls, prefixCls, _ref2) {
  22512. var _this = this;
  22513. var value = _ref2.value,
  22514. dragging = _ref2.dragging,
  22515. index = _ref2.index,
  22516. directives = _ref2.directives,
  22517. on = _ref2.on,
  22518. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_ref2, ['value', 'dragging', 'index', 'directives', 'on']);
  22519. var h = this.$createElement;
  22520. var _$props = this.$props,
  22521. tipFormatter = _$props.tipFormatter,
  22522. tooltipVisible = _$props.tooltipVisible,
  22523. tooltipPlacement = _$props.tooltipPlacement,
  22524. getTooltipPopupContainer = _$props.getTooltipPopupContainer;
  22525. var visibles = this.visibles;
  22526. var isTipFormatter = tipFormatter ? visibles[index] || dragging : false;
  22527. var visible = tooltipVisible || tooltipVisible === undefined && isTipFormatter;
  22528. var tooltipProps = {
  22529. props: {
  22530. prefixCls: tooltipPrefixCls,
  22531. title: tipFormatter ? tipFormatter(value) : '',
  22532. visible: visible,
  22533. placement: tooltipPlacement || 'top',
  22534. transitionName: 'zoom-down',
  22535. overlayClassName: prefixCls + '-tooltip',
  22536. getPopupContainer: getTooltipPopupContainer || function () {
  22537. return document.body;
  22538. }
  22539. },
  22540. key: index
  22541. };
  22542. var handleProps = {
  22543. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  22544. value: value
  22545. }, restProps),
  22546. directives: directives,
  22547. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, on, {
  22548. mouseenter: function mouseenter() {
  22549. return _this.toggleTooltipVisible(index, true);
  22550. },
  22551. mouseleave: function mouseleave() {
  22552. return _this.toggleTooltipVisible(index, false);
  22553. }
  22554. })
  22555. };
  22556. return h(
  22557. _tooltip__WEBPACK_IMPORTED_MODULE_9__["default"],
  22558. tooltipProps,
  22559. [h(_vc_slider_src_Handle__WEBPACK_IMPORTED_MODULE_8__["default"], handleProps)]
  22560. );
  22561. },
  22562. focus: function focus() {
  22563. this.$refs.sliderRef.focus();
  22564. },
  22565. blur: function blur() {
  22566. this.$refs.sliderRef.blur();
  22567. }
  22568. },
  22569. render: function render() {
  22570. var _this2 = this;
  22571. var h = arguments[0];
  22572. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this),
  22573. range = _getOptionProps.range,
  22574. customizePrefixCls = _getOptionProps.prefixCls,
  22575. customizeTooltipPrefixCls = _getOptionProps.tooltipPrefixCls,
  22576. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['range', 'prefixCls', 'tooltipPrefixCls']);
  22577. var getPrefixCls = this.configProvider.getPrefixCls;
  22578. var prefixCls = getPrefixCls('slider', customizePrefixCls);
  22579. var tooltipPrefixCls = getPrefixCls('tooltip', customizeTooltipPrefixCls);
  22580. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this);
  22581. if (range) {
  22582. var vcRangeProps = {
  22583. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, {
  22584. prefixCls: prefixCls,
  22585. tooltipPrefixCls: tooltipPrefixCls,
  22586. handle: function handle(info) {
  22587. return _this2.handleWithTooltip(tooltipPrefixCls, prefixCls, info);
  22588. }
  22589. }),
  22590. ref: 'sliderRef',
  22591. on: listeners
  22592. };
  22593. return h(_vc_slider_src_Range__WEBPACK_IMPORTED_MODULE_7__["default"], vcRangeProps);
  22594. }
  22595. var vcSliderProps = {
  22596. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, {
  22597. prefixCls: prefixCls,
  22598. tooltipPrefixCls: tooltipPrefixCls,
  22599. handle: function handle(info) {
  22600. return _this2.handleWithTooltip(tooltipPrefixCls, prefixCls, info);
  22601. }
  22602. }),
  22603. ref: 'sliderRef',
  22604. on: listeners
  22605. };
  22606. return h(_vc_slider_src_Slider__WEBPACK_IMPORTED_MODULE_6__["default"], vcSliderProps);
  22607. }
  22608. };
  22609. /* istanbul ignore next */
  22610. Slider.install = function (Vue) {
  22611. Vue.use(_base__WEBPACK_IMPORTED_MODULE_10__["default"]);
  22612. Vue.component(Slider.name, Slider);
  22613. };
  22614. /* harmony default export */ __webpack_exports__["default"] = (Slider);
  22615. /***/ }),
  22616. /***/ "./components/slider/style/index.js":
  22617. /*!******************************************!*\
  22618. !*** ./components/slider/style/index.js ***!
  22619. \******************************************/
  22620. /*! no exports provided */
  22621. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22622. "use strict";
  22623. __webpack_require__.r(__webpack_exports__);
  22624. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  22625. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  22626. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/slider/style/index.less");
  22627. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  22628. /* harmony import */ var _tooltip_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tooltip/style */ "./components/tooltip/style/index.js");
  22629. // style dependencies
  22630. /***/ }),
  22631. /***/ "./components/slider/style/index.less":
  22632. /*!********************************************!*\
  22633. !*** ./components/slider/style/index.less ***!
  22634. \********************************************/
  22635. /*! no static exports found */
  22636. /***/ (function(module, exports, __webpack_require__) {
  22637. // extracted by mini-css-extract-plugin
  22638. /***/ }),
  22639. /***/ "./components/space/index.jsx":
  22640. /*!************************************!*\
  22641. !*** ./components/space/index.jsx ***!
  22642. \************************************/
  22643. /*! exports provided: SpaceSizeType, SpaceProps, default */
  22644. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22645. "use strict";
  22646. __webpack_require__.r(__webpack_exports__);
  22647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpaceSizeType", function() { return SpaceSizeType; });
  22648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpaceProps", function() { return SpaceProps; });
  22649. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  22650. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  22651. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  22652. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  22653. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  22654. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  22655. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  22656. var SpaceSizeType = _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['small', 'middle', 'large'])]);
  22657. var spaceSize = {
  22658. small: 8,
  22659. middle: 16,
  22660. large: 24
  22661. };
  22662. var SpaceProps = {
  22663. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  22664. size: SpaceSizeType,
  22665. direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['horizontal', 'vertical']),
  22666. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['start', 'end', 'center', 'baseline'])
  22667. };
  22668. var Space = {
  22669. functional: true,
  22670. name: 'ASpace',
  22671. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(SpaceProps, {
  22672. size: 'small',
  22673. direction: 'horizontal'
  22674. }),
  22675. inject: {
  22676. configProvider: { 'default': function _default() {
  22677. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
  22678. } }
  22679. },
  22680. render: function render(h, content) {
  22681. var _ref;
  22682. var customizePrefixCls = content.prefixCls,
  22683. configProvider = content.injections.configProvider,
  22684. children = content.children;
  22685. var _content$props = content.props,
  22686. align = _content$props.align,
  22687. size = _content$props.size,
  22688. direction = _content$props.direction;
  22689. var getPrefixCls = configProvider.getPrefixCls;
  22690. var prefixCls = getPrefixCls('space', customizePrefixCls);
  22691. var items = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["filterEmpty"])(children);
  22692. var len = items.length;
  22693. if (len === 0) {
  22694. return null;
  22695. }
  22696. var mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align;
  22697. var someSpaceClass = [(_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-' + direction, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-align-' + mergedAlign, mergedAlign), _ref)];
  22698. if (content.data['class']) {
  22699. someSpaceClass.push(content.data['class']);
  22700. }
  22701. var itemClassName = prefixCls + '-item';
  22702. var marginDirection = 'marginRight'; // directionConfig === 'rtl' ? 'marginLeft' : 'marginRight';
  22703. return h(
  22704. 'div',
  22705. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([content.data, { 'class': someSpaceClass }]),
  22706. [items.map(function (child, i) {
  22707. return h(
  22708. 'div',
  22709. {
  22710. 'class': itemClassName,
  22711. key: itemClassName + '-' + i,
  22712. style: i === len - 1 ? {} : babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, direction === 'vertical' ? 'marginBottom' : marginDirection, typeof size === 'string' ? spaceSize[size] + 'px' : size + 'px')
  22713. },
  22714. [child]
  22715. );
  22716. })]
  22717. );
  22718. }
  22719. };
  22720. /* istanbul ignore next */
  22721. Space.install = function (Vue) {
  22722. Vue.component(Space.name, Space);
  22723. };
  22724. /* harmony default export */ __webpack_exports__["default"] = (Space);
  22725. /***/ }),
  22726. /***/ "./components/space/style/index.js":
  22727. /*!*****************************************!*\
  22728. !*** ./components/space/style/index.js ***!
  22729. \*****************************************/
  22730. /*! no exports provided */
  22731. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22732. "use strict";
  22733. __webpack_require__.r(__webpack_exports__);
  22734. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  22735. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  22736. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/space/style/index.less");
  22737. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  22738. /***/ }),
  22739. /***/ "./components/space/style/index.less":
  22740. /*!*******************************************!*\
  22741. !*** ./components/space/style/index.less ***!
  22742. \*******************************************/
  22743. /*! no static exports found */
  22744. /***/ (function(module, exports, __webpack_require__) {
  22745. // extracted by mini-css-extract-plugin
  22746. /***/ }),
  22747. /***/ "./components/spin/Spin.jsx":
  22748. /*!**********************************!*\
  22749. !*** ./components/spin/Spin.jsx ***!
  22750. \**********************************/
  22751. /*! exports provided: SpinSize, SpinProps, setDefaultIndicator, default */
  22752. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22753. "use strict";
  22754. __webpack_require__.r(__webpack_exports__);
  22755. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpinSize", function() { return SpinSize; });
  22756. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpinProps", function() { return SpinProps; });
  22757. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDefaultIndicator", function() { return setDefaultIndicator; });
  22758. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  22759. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  22760. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  22761. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  22762. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  22763. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
  22764. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
  22765. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_3__);
  22766. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  22767. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  22768. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  22769. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  22770. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  22771. var SpinSize = _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['small', 'default', 'large']);
  22772. var SpinProps = function SpinProps() {
  22773. return {
  22774. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  22775. spinning: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  22776. size: SpinSize,
  22777. wrapperClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  22778. tip: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  22779. delay: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  22780. indicator: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any
  22781. };
  22782. };
  22783. // Render indicator
  22784. var defaultIndicator = void 0;
  22785. function shouldDelay(spinning, delay) {
  22786. return !!spinning && !!delay && !isNaN(Number(delay));
  22787. }
  22788. function setDefaultIndicator(Content) {
  22789. defaultIndicator = typeof Content.indicator === 'function' ? Content.indicator : function (h) {
  22790. return h(Content.indicator);
  22791. };
  22792. }
  22793. /* harmony default export */ __webpack_exports__["default"] = ({
  22794. name: 'ASpin',
  22795. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
  22796. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(SpinProps(), {
  22797. size: 'default',
  22798. spinning: true,
  22799. wrapperClassName: ''
  22800. }),
  22801. inject: {
  22802. configProvider: { 'default': function _default() {
  22803. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
  22804. } }
  22805. },
  22806. data: function data() {
  22807. var spinning = this.spinning,
  22808. delay = this.delay;
  22809. var shouldBeDelayed = shouldDelay(spinning, delay);
  22810. this.originalUpdateSpinning = this.updateSpinning;
  22811. this.debouncifyUpdateSpinning(this.$props);
  22812. return {
  22813. sSpinning: spinning && !shouldBeDelayed
  22814. };
  22815. },
  22816. mounted: function mounted() {
  22817. this.updateSpinning();
  22818. },
  22819. updated: function updated() {
  22820. var _this = this;
  22821. this.$nextTick(function () {
  22822. _this.debouncifyUpdateSpinning();
  22823. _this.updateSpinning();
  22824. });
  22825. },
  22826. beforeDestroy: function beforeDestroy() {
  22827. this.cancelExistingSpin();
  22828. },
  22829. methods: {
  22830. debouncifyUpdateSpinning: function debouncifyUpdateSpinning(props) {
  22831. var _ref = props || this.$props,
  22832. delay = _ref.delay;
  22833. if (delay) {
  22834. this.cancelExistingSpin();
  22835. this.updateSpinning = lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default()(this.originalUpdateSpinning, delay);
  22836. }
  22837. },
  22838. updateSpinning: function updateSpinning() {
  22839. var spinning = this.spinning,
  22840. sSpinning = this.sSpinning;
  22841. if (sSpinning !== spinning) {
  22842. this.setState({ sSpinning: spinning });
  22843. }
  22844. },
  22845. cancelExistingSpin: function cancelExistingSpin() {
  22846. var updateSpinning = this.updateSpinning;
  22847. if (updateSpinning && updateSpinning.cancel) {
  22848. updateSpinning.cancel();
  22849. }
  22850. },
  22851. getChildren: function getChildren() {
  22852. if (this.$slots && this.$slots['default']) {
  22853. return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(this.$slots['default']);
  22854. }
  22855. return null;
  22856. },
  22857. renderIndicator: function renderIndicator(h, prefixCls) {
  22858. // const h = this.$createElement
  22859. var dotClassName = prefixCls + '-dot';
  22860. var indicator = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'indicator');
  22861. // should not be render default indicator when indicator value is null
  22862. if (indicator === null) {
  22863. return null;
  22864. }
  22865. if (Array.isArray(indicator)) {
  22866. indicator = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(indicator);
  22867. indicator = indicator.length === 1 ? indicator[0] : indicator;
  22868. }
  22869. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(indicator)) {
  22870. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(indicator, { 'class': dotClassName });
  22871. }
  22872. if (defaultIndicator && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(defaultIndicator(h))) {
  22873. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(defaultIndicator(h), { 'class': dotClassName });
  22874. }
  22875. return h(
  22876. 'span',
  22877. { 'class': dotClassName + ' ' + prefixCls + '-dot-spin' },
  22878. [h('i', { 'class': prefixCls + '-dot-item' }), h('i', { 'class': prefixCls + '-dot-item' }), h('i', { 'class': prefixCls + '-dot-item' }), h('i', { 'class': prefixCls + '-dot-item' })]
  22879. );
  22880. }
  22881. },
  22882. render: function render(h) {
  22883. var _spinClassName;
  22884. var _$props = this.$props,
  22885. size = _$props.size,
  22886. customizePrefixCls = _$props.prefixCls,
  22887. tip = _$props.tip,
  22888. wrapperClassName = _$props.wrapperClassName,
  22889. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_$props, ['size', 'prefixCls', 'tip', 'wrapperClassName']);
  22890. var getPrefixCls = this.configProvider.getPrefixCls;
  22891. var prefixCls = getPrefixCls('spin', customizePrefixCls);
  22892. var sSpinning = this.sSpinning;
  22893. var spinClassName = (_spinClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls + '-spinning', sSpinning), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls + '-show-text', !!tip), _spinClassName);
  22894. var spinElement = h(
  22895. 'div',
  22896. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([restProps, { 'class': spinClassName }]),
  22897. [this.renderIndicator(h, prefixCls), tip ? h(
  22898. 'div',
  22899. { 'class': prefixCls + '-text' },
  22900. [tip]
  22901. ) : null]
  22902. );
  22903. var children = this.getChildren();
  22904. if (children) {
  22905. var _containerClassName;
  22906. var containerClassName = (_containerClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_containerClassName, prefixCls + '-container', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_containerClassName, prefixCls + '-blur', sSpinning), _containerClassName);
  22907. return h(
  22908. 'div',
  22909. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this) }, {
  22910. 'class': [prefixCls + '-nested-loading', wrapperClassName]
  22911. }]),
  22912. [sSpinning && h(
  22913. 'div',
  22914. { key: 'loading' },
  22915. [spinElement]
  22916. ), h(
  22917. 'div',
  22918. { 'class': containerClassName, key: 'container' },
  22919. [children]
  22920. )]
  22921. );
  22922. }
  22923. return spinElement;
  22924. }
  22925. });
  22926. /***/ }),
  22927. /***/ "./components/spin/index.js":
  22928. /*!**********************************!*\
  22929. !*** ./components/spin/index.js ***!
  22930. \**********************************/
  22931. /*! exports provided: SpinProps, default */
  22932. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22933. "use strict";
  22934. __webpack_require__.r(__webpack_exports__);
  22935. /* harmony import */ var _Spin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Spin */ "./components/spin/Spin.jsx");
  22936. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  22937. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SpinProps", function() { return _Spin__WEBPACK_IMPORTED_MODULE_0__["SpinProps"]; });
  22938. _Spin__WEBPACK_IMPORTED_MODULE_0__["default"].setDefaultIndicator = _Spin__WEBPACK_IMPORTED_MODULE_0__["setDefaultIndicator"];
  22939. /* istanbul ignore next */
  22940. _Spin__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  22941. Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
  22942. Vue.component(_Spin__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Spin__WEBPACK_IMPORTED_MODULE_0__["default"]);
  22943. };
  22944. /* harmony default export */ __webpack_exports__["default"] = (_Spin__WEBPACK_IMPORTED_MODULE_0__["default"]);
  22945. /***/ }),
  22946. /***/ "./components/spin/style/index.js":
  22947. /*!****************************************!*\
  22948. !*** ./components/spin/style/index.js ***!
  22949. \****************************************/
  22950. /*! no exports provided */
  22951. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22952. "use strict";
  22953. __webpack_require__.r(__webpack_exports__);
  22954. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  22955. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  22956. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/spin/style/index.less");
  22957. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  22958. /***/ }),
  22959. /***/ "./components/spin/style/index.less":
  22960. /*!******************************************!*\
  22961. !*** ./components/spin/style/index.less ***!
  22962. \******************************************/
  22963. /*! no static exports found */
  22964. /***/ (function(module, exports, __webpack_require__) {
  22965. // extracted by mini-css-extract-plugin
  22966. /***/ }),
  22967. /***/ "./components/statistic/Countdown.jsx":
  22968. /*!********************************************!*\
  22969. !*** ./components/statistic/Countdown.jsx ***!
  22970. \********************************************/
  22971. /*! exports provided: default */
  22972. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22973. "use strict";
  22974. __webpack_require__.r(__webpack_exports__);
  22975. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  22976. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  22977. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  22978. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  22979. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "moment");
  22980. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
  22981. /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
  22982. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  22983. /* harmony import */ var _Statistic__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Statistic */ "./components/statistic/Statistic.jsx");
  22984. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./components/statistic/utils.js");
  22985. var REFRESH_INTERVAL = 1000 / 30;
  22986. function getTime(value) {
  22987. return Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__)(value).valueOf();
  22988. }
  22989. /* harmony default export */ __webpack_exports__["default"] = ({
  22990. name: 'AStatisticCountdown',
  22991. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(_Statistic__WEBPACK_IMPORTED_MODULE_5__["StatisticProps"], {
  22992. format: 'HH:mm:ss'
  22993. }),
  22994. created: function created() {
  22995. this.countdownId = undefined;
  22996. },
  22997. mounted: function mounted() {
  22998. this.syncTimer();
  22999. },
  23000. updated: function updated() {
  23001. this.syncTimer();
  23002. },
  23003. beforeDestroy: function beforeDestroy() {
  23004. this.stopTimer();
  23005. },
  23006. methods: {
  23007. syncTimer: function syncTimer() {
  23008. var value = this.$props.value;
  23009. var timestamp = getTime(value);
  23010. if (timestamp >= Date.now()) {
  23011. this.startTimer();
  23012. } else {
  23013. this.stopTimer();
  23014. }
  23015. },
  23016. startTimer: function startTimer() {
  23017. var _this = this;
  23018. if (this.countdownId) return;
  23019. this.countdownId = window.setInterval(function () {
  23020. _this.$refs.statistic.$forceUpdate();
  23021. _this.syncTimer();
  23022. }, REFRESH_INTERVAL);
  23023. },
  23024. stopTimer: function stopTimer() {
  23025. var value = this.$props.value;
  23026. if (this.countdownId) {
  23027. clearInterval(this.countdownId);
  23028. this.countdownId = undefined;
  23029. var timestamp = getTime(value);
  23030. if (timestamp < Date.now()) {
  23031. this.$emit('finish');
  23032. }
  23033. }
  23034. },
  23035. formatCountdown: function formatCountdown(_ref) {
  23036. var value = _ref.value,
  23037. config = _ref.config;
  23038. var format = this.$props.format;
  23039. return Object(_utils__WEBPACK_IMPORTED_MODULE_6__["formatCountdown"])(value, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, config, { format: format }));
  23040. },
  23041. valueRenderHtml: function valueRenderHtml(node) {
  23042. return node;
  23043. }
  23044. },
  23045. render: function render() {
  23046. var h = arguments[0];
  23047. return h(_Statistic__WEBPACK_IMPORTED_MODULE_5__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  23048. ref: 'statistic'
  23049. }, {
  23050. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, {
  23051. valueRender: this.valueRenderHtml,
  23052. formatter: this.formatCountdown
  23053. }),
  23054. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
  23055. }]));
  23056. }
  23057. });
  23058. /***/ }),
  23059. /***/ "./components/statistic/Number.jsx":
  23060. /*!*****************************************!*\
  23061. !*** ./components/statistic/Number.jsx ***!
  23062. \*****************************************/
  23063. /*! exports provided: default */
  23064. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23065. "use strict";
  23066. __webpack_require__.r(__webpack_exports__);
  23067. /* harmony import */ var lodash_padEnd__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/padEnd */ "./node_modules/lodash/padEnd.js");
  23068. /* harmony import */ var lodash_padEnd__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_padEnd__WEBPACK_IMPORTED_MODULE_0__);
  23069. /* harmony default export */ __webpack_exports__["default"] = ({
  23070. name: 'AStatisticNumber',
  23071. functional: true,
  23072. render: function render(h, context) {
  23073. var _context$props = context.props,
  23074. value = _context$props.value,
  23075. formatter = _context$props.formatter,
  23076. precision = _context$props.precision,
  23077. decimalSeparator = _context$props.decimalSeparator,
  23078. _context$props$groupS = _context$props.groupSeparator,
  23079. groupSeparator = _context$props$groupS === undefined ? '' : _context$props$groupS,
  23080. prefixCls = _context$props.prefixCls;
  23081. var valueNode = void 0;
  23082. if (typeof formatter === 'function') {
  23083. // Customize formatter
  23084. valueNode = formatter({ value: value, h: h });
  23085. } else {
  23086. // Internal formatter
  23087. var val = String(value);
  23088. var cells = val.match(/^(-?)(\d*)(\.(\d+))?$/);
  23089. // Process if illegal number
  23090. if (!cells) {
  23091. valueNode = val;
  23092. } else {
  23093. var negative = cells[1];
  23094. var int = cells[2] || '0';
  23095. var decimal = cells[4] || '';
  23096. int = int.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
  23097. if (typeof precision === 'number') {
  23098. decimal = lodash_padEnd__WEBPACK_IMPORTED_MODULE_0___default()(decimal, precision, '0').slice(0, precision);
  23099. }
  23100. if (decimal) {
  23101. decimal = '' + decimalSeparator + decimal;
  23102. }
  23103. valueNode = [h(
  23104. 'span',
  23105. { key: 'int', 'class': prefixCls + '-content-value-int' },
  23106. [negative, int]
  23107. ), decimal && h(
  23108. 'span',
  23109. { key: 'decimal', 'class': prefixCls + '-content-value-decimal' },
  23110. [decimal]
  23111. )];
  23112. }
  23113. }
  23114. return h(
  23115. 'span',
  23116. { 'class': prefixCls + '-content-value' },
  23117. [valueNode]
  23118. );
  23119. }
  23120. });
  23121. /***/ }),
  23122. /***/ "./components/statistic/Statistic.jsx":
  23123. /*!********************************************!*\
  23124. !*** ./components/statistic/Statistic.jsx ***!
  23125. \********************************************/
  23126. /*! exports provided: StatisticProps, default */
  23127. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23128. "use strict";
  23129. __webpack_require__.r(__webpack_exports__);
  23130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticProps", function() { return StatisticProps; });
  23131. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  23132. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  23133. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  23134. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  23135. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  23136. /* harmony import */ var _Number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Number */ "./components/statistic/Number.jsx");
  23137. var StatisticProps = {
  23138. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  23139. decimalSeparator: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  23140. groupSeparator: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  23141. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  23142. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object]),
  23143. valueStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  23144. valueRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  23145. formatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  23146. precision: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  23147. prefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  23148. suffix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  23149. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  23150. };
  23151. /* harmony default export */ __webpack_exports__["default"] = ({
  23152. name: 'AStatistic',
  23153. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(StatisticProps, {
  23154. decimalSeparator: '.',
  23155. groupSeparator: ','
  23156. }),
  23157. inject: {
  23158. configProvider: { 'default': function _default() {
  23159. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
  23160. } }
  23161. },
  23162. render: function render() {
  23163. var h = arguments[0];
  23164. var _$props = this.$props,
  23165. customizePrefixCls = _$props.prefixCls,
  23166. _$props$value = _$props.value,
  23167. value = _$props$value === undefined ? 0 : _$props$value,
  23168. valueStyle = _$props.valueStyle,
  23169. valueRender = _$props.valueRender;
  23170. var getPrefixCls = this.configProvider.getPrefixCls;
  23171. var prefixCls = getPrefixCls('statistic', customizePrefixCls);
  23172. var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'title');
  23173. var prefix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'prefix');
  23174. var suffix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'suffix');
  23175. var formatter = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'formatter', {}, false);
  23176. var valueNode = h(_Number__WEBPACK_IMPORTED_MODULE_4__["default"], { props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, { prefixCls: prefixCls, value: value, formatter: formatter }) });
  23177. if (valueRender) {
  23178. valueNode = valueRender(valueNode);
  23179. }
  23180. return h(
  23181. 'div',
  23182. { 'class': prefixCls },
  23183. [title && h(
  23184. 'div',
  23185. { 'class': prefixCls + '-title' },
  23186. [title]
  23187. ), h(
  23188. 'div',
  23189. { style: valueStyle, 'class': prefixCls + '-content' },
  23190. [prefix && h(
  23191. 'span',
  23192. { 'class': prefixCls + '-content-prefix' },
  23193. [prefix]
  23194. ), valueNode, suffix && h(
  23195. 'span',
  23196. { 'class': prefixCls + '-content-suffix' },
  23197. [suffix]
  23198. )]
  23199. )]
  23200. );
  23201. }
  23202. });
  23203. /***/ }),
  23204. /***/ "./components/statistic/index.js":
  23205. /*!***************************************!*\
  23206. !*** ./components/statistic/index.js ***!
  23207. \***************************************/
  23208. /*! exports provided: default */
  23209. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23210. "use strict";
  23211. __webpack_require__.r(__webpack_exports__);
  23212. /* harmony import */ var _Statistic__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Statistic */ "./components/statistic/Statistic.jsx");
  23213. /* harmony import */ var _Countdown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Countdown */ "./components/statistic/Countdown.jsx");
  23214. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  23215. _Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].Countdown = _Countdown__WEBPACK_IMPORTED_MODULE_1__["default"];
  23216. /* istanbul ignore next */
  23217. _Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  23218. Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
  23219. Vue.component(_Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Statistic__WEBPACK_IMPORTED_MODULE_0__["default"]);
  23220. Vue.component(_Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].Countdown.name, _Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].Countdown);
  23221. };
  23222. /* harmony default export */ __webpack_exports__["default"] = (_Statistic__WEBPACK_IMPORTED_MODULE_0__["default"]);
  23223. /***/ }),
  23224. /***/ "./components/statistic/style/index.js":
  23225. /*!*********************************************!*\
  23226. !*** ./components/statistic/style/index.js ***!
  23227. \*********************************************/
  23228. /*! no exports provided */
  23229. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23230. "use strict";
  23231. __webpack_require__.r(__webpack_exports__);
  23232. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  23233. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  23234. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/statistic/style/index.less");
  23235. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  23236. /***/ }),
  23237. /***/ "./components/statistic/style/index.less":
  23238. /*!***********************************************!*\
  23239. !*** ./components/statistic/style/index.less ***!
  23240. \***********************************************/
  23241. /*! no static exports found */
  23242. /***/ (function(module, exports, __webpack_require__) {
  23243. // extracted by mini-css-extract-plugin
  23244. /***/ }),
  23245. /***/ "./components/statistic/utils.js":
  23246. /*!***************************************!*\
  23247. !*** ./components/statistic/utils.js ***!
  23248. \***************************************/
  23249. /*! exports provided: formatTimeStr, formatCountdown */
  23250. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23251. "use strict";
  23252. __webpack_require__.r(__webpack_exports__);
  23253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatTimeStr", function() { return formatTimeStr; });
  23254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatCountdown", function() { return formatCountdown; });
  23255. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
  23256. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
  23257. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
  23258. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
  23259. /* harmony import */ var lodash_padStart__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/padStart */ "./node_modules/lodash/padStart.js");
  23260. /* harmony import */ var lodash_padStart__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_padStart__WEBPACK_IMPORTED_MODULE_2__);
  23261. /* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
  23262. // Countdown
  23263. var timeUnits = [['Y', 1000 * 60 * 60 * 24 * 365], // years
  23264. ['M', 1000 * 60 * 60 * 24 * 30], // months
  23265. ['D', 1000 * 60 * 60 * 24], // days
  23266. ['H', 1000 * 60 * 60], // hours
  23267. ['m', 1000 * 60], // minutes
  23268. ['s', 1000], // seconds
  23269. ['S', 1]];
  23270. function formatTimeStr(duration, format) {
  23271. var leftDuration = duration;
  23272. var escapeRegex = /\[[^\]]*\]/g;
  23273. var keepList = (format.match(escapeRegex) || []).map(function (str) {
  23274. return str.slice(1, -1);
  23275. });
  23276. var templateText = format.replace(escapeRegex, '[]');
  23277. var replacedText = timeUnits.reduce(function (current, _ref) {
  23278. var _ref2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 2),
  23279. name = _ref2[0],
  23280. unit = _ref2[1];
  23281. if (current.indexOf(name) !== -1) {
  23282. var value = Math.floor(leftDuration / unit);
  23283. leftDuration -= value * unit;
  23284. return current.replace(new RegExp(name + '+', 'g'), function (match) {
  23285. var len = match.length;
  23286. return lodash_padStart__WEBPACK_IMPORTED_MODULE_2___default()(value.toString(), len, '0');
  23287. });
  23288. }
  23289. return current;
  23290. }, templateText);
  23291. var index = 0;
  23292. return replacedText.replace(escapeRegex, function () {
  23293. var match = keepList[index];
  23294. index += 1;
  23295. return match;
  23296. });
  23297. }
  23298. function formatCountdown(value, config) {
  23299. var _config$format = config.format,
  23300. format = _config$format === undefined ? '' : _config$format;
  23301. var target = Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)(value).valueOf();
  23302. var current = Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)().valueOf();
  23303. var diff = Math.max(target - current, 0);
  23304. return formatTimeStr(diff, format);
  23305. }
  23306. /***/ }),
  23307. /***/ "./components/steps/index.jsx":
  23308. /*!************************************!*\
  23309. !*** ./components/steps/index.jsx ***!
  23310. \************************************/
  23311. /*! exports provided: default */
  23312. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23313. "use strict";
  23314. __webpack_require__.r(__webpack_exports__);
  23315. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  23316. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  23317. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  23318. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  23319. /* harmony import */ var _vc_steps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-steps */ "./components/vc-steps/index.js");
  23320. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  23321. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  23322. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  23323. var getStepsProps = function getStepsProps() {
  23324. var defaultProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  23325. var props = {
  23326. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  23327. iconPrefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  23328. current: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  23329. initial: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  23330. labelPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['horizontal', 'vertical']).def('horizontal'),
  23331. status: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['wait', 'process', 'finish', 'error']),
  23332. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['default', 'small']),
  23333. direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['horizontal', 'vertical']),
  23334. progressDot: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
  23335. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['default', 'navigation'])
  23336. };
  23337. return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(props, defaultProps);
  23338. };
  23339. var Steps = {
  23340. name: 'ASteps',
  23341. props: getStepsProps({
  23342. current: 0
  23343. }),
  23344. inject: {
  23345. configProvider: { 'default': function _default() {
  23346. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
  23347. } }
  23348. },
  23349. model: {
  23350. prop: 'current',
  23351. event: 'change'
  23352. },
  23353. Step: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_steps__WEBPACK_IMPORTED_MODULE_3__["default"].Step, { name: 'AStep' }),
  23354. render: function render() {
  23355. var h = arguments[0];
  23356. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
  23357. var customizePrefixCls = props.prefixCls,
  23358. customizeIconPrefixCls = props.iconPrefix;
  23359. var getPrefixCls = this.configProvider.getPrefixCls;
  23360. var prefixCls = getPrefixCls('steps', customizePrefixCls);
  23361. var iconPrefix = getPrefixCls('', customizeIconPrefixCls);
  23362. var icons = {
  23363. finish: h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
  23364. attrs: { type: 'check' },
  23365. 'class': prefixCls + '-finish-icon' }),
  23366. error: h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
  23367. attrs: { type: 'close' },
  23368. 'class': prefixCls + '-error-icon' })
  23369. };
  23370. var stepsProps = {
  23371. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  23372. icons: icons,
  23373. iconPrefix: iconPrefix,
  23374. prefixCls: prefixCls
  23375. }, props),
  23376. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this),
  23377. scopedSlots: this.$scopedSlots
  23378. };
  23379. return h(
  23380. _vc_steps__WEBPACK_IMPORTED_MODULE_3__["default"],
  23381. stepsProps,
  23382. [this.$slots['default']]
  23383. );
  23384. }
  23385. };
  23386. /* istanbul ignore next */
  23387. Steps.install = function (Vue) {
  23388. Vue.use(_base__WEBPACK_IMPORTED_MODULE_6__["default"]);
  23389. Vue.component(Steps.name, Steps);
  23390. Vue.component(Steps.Step.name, Steps.Step);
  23391. };
  23392. /* harmony default export */ __webpack_exports__["default"] = (Steps);
  23393. /***/ }),
  23394. /***/ "./components/steps/style/index.js":
  23395. /*!*****************************************!*\
  23396. !*** ./components/steps/style/index.js ***!
  23397. \*****************************************/
  23398. /*! no exports provided */
  23399. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23400. "use strict";
  23401. __webpack_require__.r(__webpack_exports__);
  23402. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  23403. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  23404. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/steps/style/index.less");
  23405. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  23406. /***/ }),
  23407. /***/ "./components/steps/style/index.less":
  23408. /*!*******************************************!*\
  23409. !*** ./components/steps/style/index.less ***!
  23410. \*******************************************/
  23411. /*! no static exports found */
  23412. /***/ (function(module, exports, __webpack_require__) {
  23413. // extracted by mini-css-extract-plugin
  23414. /***/ }),
  23415. /***/ "./components/style/index.less":
  23416. /*!*************************************!*\
  23417. !*** ./components/style/index.less ***!
  23418. \*************************************/
  23419. /*! no static exports found */
  23420. /***/ (function(module, exports, __webpack_require__) {
  23421. // extracted by mini-css-extract-plugin
  23422. /***/ }),
  23423. /***/ "./components/switch/index.jsx":
  23424. /*!*************************************!*\
  23425. !*** ./components/switch/index.jsx ***!
  23426. \*************************************/
  23427. /*! exports provided: default */
  23428. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23429. "use strict";
  23430. __webpack_require__.r(__webpack_exports__);
  23431. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  23432. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  23433. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  23434. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  23435. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  23436. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
  23437. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  23438. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  23439. /* harmony import */ var _vc_switch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-switch */ "./components/vc-switch/index.js");
  23440. /* harmony import */ var _util_wave__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/wave */ "./components/_util/wave.jsx");
  23441. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  23442. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  23443. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  23444. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  23445. var Switch = {
  23446. name: 'ASwitch',
  23447. __ANT_SWITCH: true,
  23448. model: {
  23449. prop: 'checked',
  23450. event: 'change'
  23451. },
  23452. props: {
  23453. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  23454. // size=default and size=large are the same
  23455. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['small', 'default', 'large']),
  23456. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  23457. checkedChildren: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  23458. unCheckedChildren: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  23459. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
  23460. checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  23461. defaultChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  23462. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  23463. loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
  23464. },
  23465. inject: {
  23466. configProvider: { 'default': function _default() {
  23467. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
  23468. } }
  23469. },
  23470. methods: {
  23471. focus: function focus() {
  23472. this.$refs.refSwitchNode.focus();
  23473. },
  23474. blur: function blur() {
  23475. this.$refs.refSwitchNode.blur();
  23476. }
  23477. },
  23478. created: function created() {
  23479. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'checked') || !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'value'), 'Switch', '`value` is not validate prop, do you mean `checked`?');
  23480. },
  23481. render: function render() {
  23482. var _classes;
  23483. var h = arguments[0];
  23484. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
  23485. customizePrefixCls = _getOptionProps.prefixCls,
  23486. size = _getOptionProps.size,
  23487. loading = _getOptionProps.loading,
  23488. disabled = _getOptionProps.disabled,
  23489. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getOptionProps, ['prefixCls', 'size', 'loading', 'disabled']);
  23490. var getPrefixCls = this.configProvider.getPrefixCls;
  23491. var prefixCls = getPrefixCls('switch', customizePrefixCls);
  23492. var classes = (_classes = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classes, prefixCls + '-small', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classes, prefixCls + '-loading', loading), _classes);
  23493. var loadingIcon = loading ? h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
  23494. attrs: { type: 'loading' },
  23495. 'class': prefixCls + '-loading-icon' }) : null;
  23496. var switchProps = {
  23497. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps, {
  23498. prefixCls: prefixCls,
  23499. loadingIcon: loadingIcon,
  23500. checkedChildren: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'checkedChildren'),
  23501. unCheckedChildren: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'unCheckedChildren'),
  23502. disabled: disabled || loading
  23503. }),
  23504. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
  23505. 'class': classes,
  23506. ref: 'refSwitchNode'
  23507. };
  23508. return h(
  23509. _util_wave__WEBPACK_IMPORTED_MODULE_6__["default"],
  23510. {
  23511. attrs: { insertExtraNode: true }
  23512. },
  23513. [h(_vc_switch__WEBPACK_IMPORTED_MODULE_5__["default"], switchProps)]
  23514. );
  23515. }
  23516. };
  23517. /* istanbul ignore next */
  23518. Switch.install = function (Vue) {
  23519. Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
  23520. Vue.component(Switch.name, Switch);
  23521. };
  23522. /* harmony default export */ __webpack_exports__["default"] = (Switch);
  23523. /***/ }),
  23524. /***/ "./components/switch/style/index.js":
  23525. /*!******************************************!*\
  23526. !*** ./components/switch/style/index.js ***!
  23527. \******************************************/
  23528. /*! no exports provided */
  23529. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23530. "use strict";
  23531. __webpack_require__.r(__webpack_exports__);
  23532. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  23533. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  23534. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/switch/style/index.less");
  23535. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  23536. /***/ }),
  23537. /***/ "./components/switch/style/index.less":
  23538. /*!********************************************!*\
  23539. !*** ./components/switch/style/index.less ***!
  23540. \********************************************/
  23541. /*! no static exports found */
  23542. /***/ (function(module, exports, __webpack_require__) {
  23543. // extracted by mini-css-extract-plugin
  23544. /***/ }),
  23545. /***/ "./components/table/Column.jsx":
  23546. /*!*************************************!*\
  23547. !*** ./components/table/Column.jsx ***!
  23548. \*************************************/
  23549. /*! exports provided: default */
  23550. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23551. "use strict";
  23552. __webpack_require__.r(__webpack_exports__);
  23553. /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
  23554. /* harmony default export */ __webpack_exports__["default"] = ({
  23555. name: 'ATableColumn',
  23556. props: _interface__WEBPACK_IMPORTED_MODULE_0__["ColumnProps"]
  23557. });
  23558. /***/ }),
  23559. /***/ "./components/table/ColumnGroup.jsx":
  23560. /*!******************************************!*\
  23561. !*** ./components/table/ColumnGroup.jsx ***!
  23562. \******************************************/
  23563. /*! exports provided: default */
  23564. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23565. "use strict";
  23566. __webpack_require__.r(__webpack_exports__);
  23567. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  23568. /* harmony default export */ __webpack_exports__["default"] = ({
  23569. name: 'ATableColumnGroup',
  23570. props: {
  23571. fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['left', 'right'])]),
  23572. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
  23573. },
  23574. __ANT_TABLE_COLUMN_GROUP: true
  23575. });
  23576. /***/ }),
  23577. /***/ "./components/table/FilterDropdownMenuWrapper.jsx":
  23578. /*!********************************************************!*\
  23579. !*** ./components/table/FilterDropdownMenuWrapper.jsx ***!
  23580. \********************************************************/
  23581. /*! exports provided: default */
  23582. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23583. "use strict";
  23584. __webpack_require__.r(__webpack_exports__);
  23585. /* harmony default export */ __webpack_exports__["default"] = ({
  23586. name: 'FilterDropdownMenuWrapper',
  23587. methods: {
  23588. handelClick: function handelClick(e) {
  23589. e.stopPropagation();
  23590. //this.$emit('click', e);
  23591. }
  23592. },
  23593. render: function render() {
  23594. var h = arguments[0];
  23595. var $slots = this.$slots,
  23596. handelClick = this.handelClick;
  23597. return h(
  23598. 'div',
  23599. {
  23600. on: {
  23601. 'click': handelClick
  23602. }
  23603. },
  23604. [$slots['default']]
  23605. );
  23606. }
  23607. });
  23608. /***/ }),
  23609. /***/ "./components/table/SelectionBox.jsx":
  23610. /*!*******************************************!*\
  23611. !*** ./components/table/SelectionBox.jsx ***!
  23612. \*******************************************/
  23613. /*! exports provided: default */
  23614. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23615. "use strict";
  23616. __webpack_require__.r(__webpack_exports__);
  23617. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  23618. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  23619. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  23620. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  23621. /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
  23622. /* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../radio */ "./components/radio/index.js");
  23623. /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
  23624. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  23625. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  23626. /* harmony default export */ __webpack_exports__["default"] = ({
  23627. name: 'SelectionBox',
  23628. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
  23629. props: _interface__WEBPACK_IMPORTED_MODULE_4__["SelectionBoxProps"],
  23630. computed: {
  23631. checked: function checked() {
  23632. var _$props = this.$props,
  23633. store = _$props.store,
  23634. defaultSelection = _$props.defaultSelection,
  23635. rowIndex = _$props.rowIndex;
  23636. var checked = false;
  23637. if (store.selectionDirty) {
  23638. checked = store.selectedRowKeys.indexOf(rowIndex) >= 0;
  23639. } else {
  23640. checked = store.selectedRowKeys.indexOf(rowIndex) >= 0 || defaultSelection.indexOf(rowIndex) >= 0;
  23641. }
  23642. return checked;
  23643. }
  23644. },
  23645. render: function render() {
  23646. var h = arguments[0];
  23647. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
  23648. type = _getOptionProps.type,
  23649. rowIndex = _getOptionProps.rowIndex,
  23650. rest = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['type', 'rowIndex']);
  23651. var checked = this.checked;
  23652. var checkboxProps = {
  23653. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  23654. checked: checked
  23655. }, rest),
  23656. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this)
  23657. };
  23658. if (type === 'radio') {
  23659. checkboxProps.props.value = rowIndex;
  23660. return h(_radio__WEBPACK_IMPORTED_MODULE_3__["default"], checkboxProps);
  23661. }
  23662. return h(_checkbox__WEBPACK_IMPORTED_MODULE_2__["default"], checkboxProps);
  23663. }
  23664. });
  23665. /***/ }),
  23666. /***/ "./components/table/SelectionCheckboxAll.jsx":
  23667. /*!***************************************************!*\
  23668. !*** ./components/table/SelectionCheckboxAll.jsx ***!
  23669. \***************************************************/
  23670. /*! exports provided: default */
  23671. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23672. "use strict";
  23673. __webpack_require__.r(__webpack_exports__);
  23674. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  23675. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  23676. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  23677. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  23678. /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
  23679. /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dropdown */ "./components/dropdown/index.js");
  23680. /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../menu */ "./components/menu/index.jsx");
  23681. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  23682. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  23683. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
  23684. /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
  23685. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  23686. function checkSelection(_ref) {
  23687. var store = _ref.store,
  23688. getCheckboxPropsByItem = _ref.getCheckboxPropsByItem,
  23689. getRecordKey = _ref.getRecordKey,
  23690. data = _ref.data,
  23691. type = _ref.type,
  23692. byDefaultChecked = _ref.byDefaultChecked;
  23693. return byDefaultChecked ? data[type](function (item, i) {
  23694. return getCheckboxPropsByItem(item, i).defaultChecked;
  23695. }) : data[type](function (item, i) {
  23696. return store.selectedRowKeys.indexOf(getRecordKey(item, i)) >= 0;
  23697. });
  23698. }
  23699. function getIndeterminateState(props) {
  23700. var store = props.store,
  23701. data = props.data;
  23702. if (!data.length) {
  23703. return false;
  23704. }
  23705. var someCheckedNotByDefaultChecked = checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  23706. data: data,
  23707. type: 'some',
  23708. byDefaultChecked: false
  23709. })) && !checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  23710. data: data,
  23711. type: 'every',
  23712. byDefaultChecked: false
  23713. }));
  23714. var someCheckedByDefaultChecked = checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  23715. data: data,
  23716. type: 'some',
  23717. byDefaultChecked: true
  23718. })) && !checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  23719. data: data,
  23720. type: 'every',
  23721. byDefaultChecked: true
  23722. }));
  23723. if (store.selectionDirty) {
  23724. return someCheckedNotByDefaultChecked;
  23725. }
  23726. return someCheckedNotByDefaultChecked || someCheckedByDefaultChecked;
  23727. }
  23728. function getCheckState(props) {
  23729. var store = props.store,
  23730. data = props.data;
  23731. if (!data.length) {
  23732. return false;
  23733. }
  23734. if (store.selectionDirty) {
  23735. return checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  23736. data: data,
  23737. type: 'every',
  23738. byDefaultChecked: false
  23739. }));
  23740. }
  23741. return checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  23742. data: data,
  23743. type: 'every',
  23744. byDefaultChecked: false
  23745. })) || checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  23746. data: data,
  23747. type: 'every',
  23748. byDefaultChecked: true
  23749. }));
  23750. }
  23751. /* harmony default export */ __webpack_exports__["default"] = ({
  23752. name: 'SelectionCheckboxAll',
  23753. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
  23754. props: _interface__WEBPACK_IMPORTED_MODULE_7__["SelectionCheckboxAllProps"],
  23755. data: function data() {
  23756. var props = this.$props;
  23757. this.defaultSelections = props.hideDefaultSelections ? [] : [{
  23758. key: 'all',
  23759. text: props.locale.selectAll
  23760. }, {
  23761. key: 'invert',
  23762. text: props.locale.selectInvert
  23763. }];
  23764. return {
  23765. checked: getCheckState(props),
  23766. indeterminate: getIndeterminateState(props)
  23767. };
  23768. },
  23769. watch: {
  23770. $props: {
  23771. handler: function handler() {
  23772. this.setCheckState(this.$props);
  23773. },
  23774. deep: true,
  23775. immediate: true
  23776. }
  23777. },
  23778. methods: {
  23779. checkSelection: function checkSelection(props, data, type, byDefaultChecked) {
  23780. var _ref2 = props || this.$props,
  23781. store = _ref2.store,
  23782. getCheckboxPropsByItem = _ref2.getCheckboxPropsByItem,
  23783. getRecordKey = _ref2.getRecordKey;
  23784. // type should be 'every' | 'some'
  23785. if (type === 'every' || type === 'some') {
  23786. return byDefaultChecked ? data[type](function (item, i) {
  23787. return getCheckboxPropsByItem(item, i).props.defaultChecked;
  23788. }) : data[type](function (item, i) {
  23789. return store.selectedRowKeys.indexOf(getRecordKey(item, i)) >= 0;
  23790. });
  23791. }
  23792. return false;
  23793. },
  23794. setCheckState: function setCheckState(props) {
  23795. var checked = getCheckState(props);
  23796. var indeterminate = getIndeterminateState(props);
  23797. this.setState(function (prevState) {
  23798. var newState = {};
  23799. if (indeterminate !== prevState.indeterminate) {
  23800. newState.indeterminate = indeterminate;
  23801. }
  23802. if (checked !== prevState.checked) {
  23803. newState.checked = checked;
  23804. }
  23805. return newState;
  23806. });
  23807. },
  23808. handleSelectAllChange: function handleSelectAllChange(e) {
  23809. var checked = e.target.checked;
  23810. this.$emit('select', checked ? 'all' : 'removeAll', 0, null);
  23811. },
  23812. renderMenus: function renderMenus(selections) {
  23813. var _this = this;
  23814. var h = this.$createElement;
  23815. return selections.map(function (selection, index) {
  23816. return h(
  23817. _menu__WEBPACK_IMPORTED_MODULE_4__["default"].Item,
  23818. { key: selection.key || index },
  23819. [h(
  23820. 'div',
  23821. {
  23822. on: {
  23823. 'click': function click() {
  23824. _this.$emit('select', selection.key, index, selection.onSelect);
  23825. }
  23826. }
  23827. },
  23828. [selection.text]
  23829. )]
  23830. );
  23831. });
  23832. }
  23833. },
  23834. render: function render() {
  23835. var h = arguments[0];
  23836. var disabled = this.disabled,
  23837. prefixCls = this.prefixCls,
  23838. selections = this.selections,
  23839. getPopupContainer = this.getPopupContainer,
  23840. checked = this.checked,
  23841. indeterminate = this.indeterminate;
  23842. var selectionPrefixCls = prefixCls + '-selection';
  23843. var customSelections = null;
  23844. if (selections) {
  23845. var newSelections = Array.isArray(selections) ? this.defaultSelections.concat(selections) : this.defaultSelections;
  23846. var menu = h(
  23847. _menu__WEBPACK_IMPORTED_MODULE_4__["default"],
  23848. { 'class': selectionPrefixCls + '-menu', attrs: { selectedKeys: [] }
  23849. },
  23850. [this.renderMenus(newSelections)]
  23851. );
  23852. customSelections = newSelections.length > 0 ? h(
  23853. _dropdown__WEBPACK_IMPORTED_MODULE_3__["default"],
  23854. {
  23855. attrs: { getPopupContainer: getPopupContainer }
  23856. },
  23857. [h(
  23858. 'template',
  23859. { slot: 'overlay' },
  23860. [menu]
  23861. ), h(
  23862. 'div',
  23863. { 'class': selectionPrefixCls + '-down' },
  23864. [h(_icon__WEBPACK_IMPORTED_MODULE_5__["default"], {
  23865. attrs: { type: 'down' }
  23866. })]
  23867. )]
  23868. ) : null;
  23869. }
  23870. return h(
  23871. 'div',
  23872. { 'class': selectionPrefixCls },
  23873. [h(_checkbox__WEBPACK_IMPORTED_MODULE_2__["default"], {
  23874. 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, selectionPrefixCls + '-select-all-custom', customSelections)),
  23875. attrs: { checked: checked,
  23876. indeterminate: indeterminate,
  23877. disabled: disabled
  23878. },
  23879. on: {
  23880. 'change': this.handleSelectAllChange
  23881. }
  23882. }), customSelections]
  23883. );
  23884. }
  23885. });
  23886. /***/ }),
  23887. /***/ "./components/table/Table.jsx":
  23888. /*!************************************!*\
  23889. !*** ./components/table/Table.jsx ***!
  23890. \************************************/
  23891. /*! exports provided: default */
  23892. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23893. "use strict";
  23894. __webpack_require__.r(__webpack_exports__);
  23895. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  23896. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
  23897. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  23898. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  23899. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  23900. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
  23901. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  23902. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__);
  23903. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  23904. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4__);
  23905. /* harmony import */ var _vc_table__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-table */ "./components/vc-table/index.js");
  23906. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  23907. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
  23908. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
  23909. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_7__);
  23910. /* harmony import */ var _filterDropdown__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./filterDropdown */ "./components/table/filterDropdown.jsx");
  23911. /* harmony import */ var _SelectionBox__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SelectionBox */ "./components/table/SelectionBox.jsx");
  23912. /* harmony import */ var _SelectionCheckboxAll__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./SelectionCheckboxAll */ "./components/table/SelectionCheckboxAll.jsx");
  23913. /* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Column */ "./components/table/Column.jsx");
  23914. /* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ColumnGroup */ "./components/table/ColumnGroup.jsx");
  23915. /* harmony import */ var _createBodyRow__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./createBodyRow */ "./components/table/createBodyRow.jsx");
  23916. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./util */ "./components/table/util.js");
  23917. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  23918. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  23919. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  23920. /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
  23921. /* harmony import */ var _pagination__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../pagination */ "./components/pagination/index.js");
  23922. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  23923. /* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../spin */ "./components/spin/index.js");
  23924. /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
  23925. /* harmony import */ var _locale_provider_default__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../locale-provider/default */ "./components/locale-provider/default.js");
  23926. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  23927. /* harmony import */ var _util_scrollTo__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../_util/scrollTo */ "./components/_util/scrollTo.js");
  23928. /* harmony import */ var _util_transButton__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../_util/transButton */ "./components/_util/transButton.jsx");
  23929. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! vue */ "vue");
  23930. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_27__);
  23931. function noop() {}
  23932. function stopPropagation(e) {
  23933. e.stopPropagation();
  23934. }
  23935. function getRowSelection(props) {
  23936. return props.rowSelection || {};
  23937. }
  23938. function getColumnKey(column, index) {
  23939. return column.key || column.dataIndex || index;
  23940. }
  23941. function isSameColumn(a, b) {
  23942. if (a && b && a.key && a.key === b.key) {
  23943. return true;
  23944. }
  23945. return a === b || shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(a, b, function (value, other) {
  23946. // https://github.com/ant-design/ant-design/issues/12737
  23947. if (typeof value === 'function' && typeof other === 'function') {
  23948. return value === other || value.toString() === other.toString();
  23949. }
  23950. // https://github.com/ant-design/ant-design/issues/19398
  23951. if (Array.isArray(value) && Array.isArray(other)) {
  23952. return value === other || shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(value, other);
  23953. }
  23954. });
  23955. }
  23956. var defaultPagination = {
  23957. onChange: noop,
  23958. onShowSizeChange: noop
  23959. };
  23960. /**
  23961. * Avoid creating new object, so that parent component's shouldComponentUpdate
  23962. * can works appropriately。
  23963. */
  23964. var emptyObject = {};
  23965. var createComponents = function createComponents() {
  23966. var components = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  23967. var bodyRow = components && components.body && components.body.row;
  23968. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, components, {
  23969. body: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, components.body, {
  23970. row: Object(_createBodyRow__WEBPACK_IMPORTED_MODULE_13__["default"])(bodyRow)
  23971. })
  23972. });
  23973. };
  23974. function isTheSameComponents() {
  23975. var components1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  23976. var components2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  23977. return components1 === components2 || ['table', 'header', 'body'].every(function (key) {
  23978. return shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(components1[key], components2[key]);
  23979. });
  23980. }
  23981. function getFilteredValueColumns(state, columns) {
  23982. return Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatFilter"])(columns || (state || {}).columns || [], function (column) {
  23983. return typeof column.filteredValue !== 'undefined';
  23984. });
  23985. }
  23986. function getFiltersFromColumns(state, columns) {
  23987. var filters = {};
  23988. getFilteredValueColumns(state, columns).forEach(function (col) {
  23989. var colKey = getColumnKey(col);
  23990. filters[colKey] = col.filteredValue;
  23991. });
  23992. return filters;
  23993. }
  23994. function isFiltersChanged(state, filters) {
  23995. if (Object.keys(filters).length !== Object.keys(state.filters).length) {
  23996. return true;
  23997. }
  23998. return Object.keys(filters).some(function (columnKey) {
  23999. return filters[columnKey] !== state.filters[columnKey];
  24000. });
  24001. }
  24002. /* harmony default export */ __webpack_exports__["default"] = ({
  24003. name: 'Table',
  24004. Column: _Column__WEBPACK_IMPORTED_MODULE_11__["default"],
  24005. ColumnGroup: _ColumnGroup__WEBPACK_IMPORTED_MODULE_12__["default"],
  24006. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_16__["default"]],
  24007. inject: {
  24008. configProvider: { 'default': function _default() {
  24009. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_17__["ConfigConsumerProps"];
  24010. } }
  24011. },
  24012. provide: function provide() {
  24013. return {
  24014. store: this.store
  24015. };
  24016. },
  24017. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["initDefaultProps"])(_interface__WEBPACK_IMPORTED_MODULE_18__["TableProps"], {
  24018. dataSource: [],
  24019. useFixedHeader: false,
  24020. // rowSelection: null,
  24021. size: 'default',
  24022. loading: false,
  24023. bordered: false,
  24024. indentSize: 20,
  24025. locale: {},
  24026. rowKey: 'key',
  24027. showHeader: true,
  24028. sortDirections: ['ascend', 'descend'],
  24029. childrenColumnName: 'children'
  24030. }),
  24031. data: function data() {
  24032. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["getOptionProps"])(this);
  24033. Object(_util_warning__WEBPACK_IMPORTED_MODULE_24__["default"])(!props.expandedRowRender || !('scroll' in props) || !props.scroll.x, '`expandedRowRender` and `scroll` are not compatible. Please use one of them at one time.');
  24034. this.CheckboxPropsCache = {};
  24035. this.store = vue__WEBPACK_IMPORTED_MODULE_27___default.a.observable({
  24036. selectedRowKeys: getRowSelection(this.$props).selectedRowKeys || [],
  24037. selectionDirty: false
  24038. });
  24039. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.getDefaultSortOrder(props.columns || []), {
  24040. // 减少状态
  24041. sFilters: this.getDefaultFilters(props.columns),
  24042. sPagination: this.getDefaultPagination(this.$props),
  24043. pivot: undefined,
  24044. sComponents: createComponents(this.components),
  24045. filterDataCnt: 0
  24046. });
  24047. },
  24048. watch: {
  24049. pagination: {
  24050. handler: function handler(val) {
  24051. this.setState(function (previousState) {
  24052. var newPagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, defaultPagination, previousState.sPagination, val);
  24053. newPagination.current = newPagination.current || 1;
  24054. newPagination.pageSize = newPagination.pageSize || 10;
  24055. return { sPagination: val !== false ? newPagination : emptyObject };
  24056. });
  24057. },
  24058. deep: true
  24059. },
  24060. rowSelection: {
  24061. handler: function handler(val, oldVal) {
  24062. if (val && 'selectedRowKeys' in val) {
  24063. this.store.selectedRowKeys = val.selectedRowKeys || [];
  24064. var rowSelection = this.rowSelection;
  24065. if (rowSelection && val.getCheckboxProps !== rowSelection.getCheckboxProps) {
  24066. this.CheckboxPropsCache = {};
  24067. }
  24068. } else if (oldVal && !val) {
  24069. this.store.selectedRowKeys = [];
  24070. }
  24071. },
  24072. deep: true
  24073. },
  24074. dataSource: function dataSource() {
  24075. this.store.selectionDirty = false;
  24076. this.CheckboxPropsCache = {};
  24077. },
  24078. columns: function columns(val) {
  24079. var filteredValueColumns = getFilteredValueColumns({ columns: val }, val);
  24080. if (filteredValueColumns.length > 0) {
  24081. var filtersFromColumns = getFiltersFromColumns({ columns: val }, val);
  24082. var newFilters = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.sFilters);
  24083. Object.keys(filtersFromColumns).forEach(function (key) {
  24084. newFilters[key] = filtersFromColumns[key];
  24085. });
  24086. if (isFiltersChanged({ filters: this.sFilters }, newFilters)) {
  24087. this.setState({ sFilters: newFilters });
  24088. }
  24089. }
  24090. this.$forceUpdate();
  24091. },
  24092. components: {
  24093. handler: function handler(val, oldVal) {
  24094. if (!isTheSameComponents(val, oldVal)) {
  24095. var components = createComponents(val);
  24096. this.setState({ sComponents: components });
  24097. }
  24098. },
  24099. deep: true
  24100. }
  24101. },
  24102. updated: function updated() {
  24103. var columns = this.columns,
  24104. sortColumn = this.sSortColumn,
  24105. sortOrder = this.sSortOrder;
  24106. if (this.getSortOrderColumns(columns).length > 0) {
  24107. var sortState = this.getSortStateFromColumns(columns);
  24108. if (!isSameColumn(sortState.sSortColumn, sortColumn) || sortState.sSortOrder !== sortOrder) {
  24109. this.setState(sortState);
  24110. }
  24111. }
  24112. },
  24113. methods: {
  24114. getCheckboxPropsByItem: function getCheckboxPropsByItem(item, index) {
  24115. var rowSelection = getRowSelection(this.$props);
  24116. if (!rowSelection.getCheckboxProps) {
  24117. return { props: {} };
  24118. }
  24119. var key = this.getRecordKey(item, index);
  24120. // Cache checkboxProps
  24121. if (!this.CheckboxPropsCache[key]) {
  24122. this.CheckboxPropsCache[key] = rowSelection.getCheckboxProps(item);
  24123. }
  24124. this.CheckboxPropsCache[key].props = this.CheckboxPropsCache[key].props || {};
  24125. return this.CheckboxPropsCache[key];
  24126. },
  24127. getDefaultSelection: function getDefaultSelection() {
  24128. var _this = this;
  24129. var rowSelection = getRowSelection(this.$props);
  24130. if (!rowSelection.getCheckboxProps) {
  24131. return [];
  24132. }
  24133. return this.getFlatData().filter(function (item, rowIndex) {
  24134. return _this.getCheckboxPropsByItem(item, rowIndex).props.defaultChecked;
  24135. }).map(function (record, rowIndex) {
  24136. return _this.getRecordKey(record, rowIndex);
  24137. });
  24138. },
  24139. getDefaultPagination: function getDefaultPagination(props) {
  24140. var pagination = babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default()(props.pagination) === 'object' ? props.pagination : {};
  24141. var current = void 0;
  24142. if ('current' in pagination) {
  24143. current = pagination.current;
  24144. } else if ('defaultCurrent' in pagination) {
  24145. current = pagination.defaultCurrent;
  24146. }
  24147. var pageSize = void 0;
  24148. if ('pageSize' in pagination) {
  24149. pageSize = pagination.pageSize;
  24150. } else if ('defaultPageSize' in pagination) {
  24151. pageSize = pagination.defaultPageSize;
  24152. }
  24153. return this.hasPagination(props) ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, defaultPagination, pagination, {
  24154. current: current || 1,
  24155. pageSize: pageSize || 10
  24156. }) : {};
  24157. },
  24158. getSortOrderColumns: function getSortOrderColumns(columns) {
  24159. return Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatFilter"])(columns || this.columns || [], function (column) {
  24160. return 'sortOrder' in column;
  24161. });
  24162. },
  24163. getDefaultFilters: function getDefaultFilters(columns) {
  24164. var definedFilters = getFiltersFromColumns({ columns: this.columns }, columns);
  24165. var defaultFilteredValueColumns = Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatFilter"])(columns || [], function (column) {
  24166. return typeof column.defaultFilteredValue !== 'undefined';
  24167. });
  24168. var defaultFilters = defaultFilteredValueColumns.reduce(function (soFar, col) {
  24169. var colKey = getColumnKey(col);
  24170. soFar[colKey] = col.defaultFilteredValue;
  24171. return soFar;
  24172. }, {});
  24173. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, defaultFilters, definedFilters);
  24174. },
  24175. getDefaultSortOrder: function getDefaultSortOrder(columns) {
  24176. var definedSortState = this.getSortStateFromColumns(columns);
  24177. var defaultSortedColumn = Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatFilter"])(columns || [], function (column) {
  24178. return column.defaultSortOrder != null;
  24179. })[0];
  24180. if (defaultSortedColumn && !definedSortState.sortColumn) {
  24181. return {
  24182. sSortColumn: defaultSortedColumn,
  24183. sSortOrder: defaultSortedColumn.defaultSortOrder
  24184. };
  24185. }
  24186. return definedSortState;
  24187. },
  24188. getSortStateFromColumns: function getSortStateFromColumns(columns) {
  24189. // return first column which sortOrder is not falsy
  24190. var sortedColumn = this.getSortOrderColumns(columns).filter(function (col) {
  24191. return col.sortOrder;
  24192. })[0];
  24193. if (sortedColumn) {
  24194. return {
  24195. sSortColumn: sortedColumn,
  24196. sSortOrder: sortedColumn.sortOrder
  24197. };
  24198. }
  24199. return {
  24200. sSortColumn: null,
  24201. sSortOrder: null
  24202. };
  24203. },
  24204. getMaxCurrent: function getMaxCurrent(total) {
  24205. var _sPagination = this.sPagination,
  24206. current = _sPagination.current,
  24207. pageSize = _sPagination.pageSize;
  24208. if ((current - 1) * pageSize >= total) {
  24209. return Math.floor((total - 1) / pageSize) + 1;
  24210. }
  24211. return current;
  24212. },
  24213. getRecordKey: function getRecordKey(record, index) {
  24214. var rowKey = this.rowKey;
  24215. var recordKey = typeof rowKey === 'function' ? rowKey(record, index) : record[rowKey];
  24216. Object(_util_warning__WEBPACK_IMPORTED_MODULE_24__["default"])(recordKey !== undefined, 'Table', 'Each record in dataSource of table should have a unique `key` prop, ' + 'or set `rowKey` of Table to an unique primary key, ');
  24217. return recordKey === undefined ? index : recordKey;
  24218. },
  24219. getSorterFn: function getSorterFn(state) {
  24220. var _ref = state || this.$data,
  24221. sortOrder = _ref.sSortOrder,
  24222. sortColumn = _ref.sSortColumn;
  24223. if (!sortOrder || !sortColumn || typeof sortColumn.sorter !== 'function') {
  24224. return;
  24225. }
  24226. return function (a, b) {
  24227. var result = sortColumn.sorter(a, b, sortOrder);
  24228. if (result !== 0) {
  24229. return sortOrder === 'descend' ? -result : result;
  24230. }
  24231. return 0;
  24232. };
  24233. },
  24234. getCurrentPageData: function getCurrentPageData() {
  24235. var data = this.getLocalData();
  24236. this.filterDataCnt = data.length;
  24237. var current = void 0;
  24238. var pageSize = void 0;
  24239. var sPagination = this.sPagination;
  24240. // 如果没有分页的话,默认全部展示
  24241. if (!this.hasPagination()) {
  24242. pageSize = Number.MAX_VALUE;
  24243. current = 1;
  24244. } else {
  24245. pageSize = sPagination.pageSize;
  24246. current = this.getMaxCurrent(sPagination.total || data.length);
  24247. }
  24248. // 分页
  24249. // ---
  24250. // 当数据量少于等于每页数量时,直接设置数据
  24251. // 否则进行读取分页数据
  24252. if (data.length > pageSize || pageSize === Number.MAX_VALUE) {
  24253. data = data.slice((current - 1) * pageSize, current * pageSize);
  24254. }
  24255. return data;
  24256. },
  24257. getFlatData: function getFlatData() {
  24258. var childrenColumnName = this.$props.childrenColumnName;
  24259. return Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatArray"])(this.getLocalData(null, false), childrenColumnName);
  24260. },
  24261. getFlatCurrentPageData: function getFlatCurrentPageData() {
  24262. var childrenColumnName = this.$props.childrenColumnName;
  24263. return Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatArray"])(this.getCurrentPageData(), childrenColumnName);
  24264. },
  24265. getLocalData: function getLocalData(state) {
  24266. var _this2 = this;
  24267. var filter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  24268. var currentState = state || this.$data;
  24269. var filters = currentState.sFilters;
  24270. var dataSource = this.$props.dataSource;
  24271. var data = dataSource || [];
  24272. // 优化本地排序
  24273. data = data.slice(0);
  24274. var sorterFn = this.getSorterFn(currentState);
  24275. if (sorterFn) {
  24276. // 使用新数组,避免改变原数组导致无限循环更新
  24277. // https://github.com/vueComponent/ant-design-vue/issues/2270
  24278. data = this.recursiveSort([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(data)), sorterFn);
  24279. }
  24280. // 筛选
  24281. if (filter && filters) {
  24282. Object.keys(filters).forEach(function (columnKey) {
  24283. var col = _this2.findColumn(columnKey);
  24284. if (!col) {
  24285. return;
  24286. }
  24287. var values = filters[columnKey] || [];
  24288. if (values.length === 0) {
  24289. return;
  24290. }
  24291. var onFilter = col.onFilter;
  24292. data = onFilter ? data.filter(function (record) {
  24293. return values.some(function (v) {
  24294. return onFilter(v, record);
  24295. });
  24296. }) : data;
  24297. });
  24298. }
  24299. return data;
  24300. },
  24301. onRow: function onRow(prefixCls, record, index) {
  24302. var customRow = this.customRow;
  24303. var custom = customRow ? customRow(record, index) : {};
  24304. return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["mergeProps"])(custom, {
  24305. props: {
  24306. prefixCls: prefixCls,
  24307. store: this.store,
  24308. rowKey: this.getRecordKey(record, index)
  24309. }
  24310. });
  24311. },
  24312. setSelectedRowKeys: function setSelectedRowKeys(selectedRowKeys, selectionInfo) {
  24313. var _this3 = this;
  24314. var selectWay = selectionInfo.selectWay,
  24315. record = selectionInfo.record,
  24316. checked = selectionInfo.checked,
  24317. changeRowKeys = selectionInfo.changeRowKeys,
  24318. nativeEvent = selectionInfo.nativeEvent;
  24319. var rowSelection = getRowSelection(this.$props);
  24320. if (rowSelection && !('selectedRowKeys' in rowSelection)) {
  24321. this.store.selectedRowKeys = selectedRowKeys;
  24322. }
  24323. var data = this.getFlatData();
  24324. if (!rowSelection.onChange && !rowSelection[selectWay]) {
  24325. return;
  24326. }
  24327. var selectedRows = data.filter(function (row, i) {
  24328. return selectedRowKeys.indexOf(_this3.getRecordKey(row, i)) >= 0;
  24329. });
  24330. if (rowSelection.onChange) {
  24331. rowSelection.onChange(selectedRowKeys, selectedRows);
  24332. }
  24333. if (selectWay === 'onSelect' && rowSelection.onSelect) {
  24334. rowSelection.onSelect(record, checked, selectedRows, nativeEvent);
  24335. } else if (selectWay === 'onSelectMultiple' && rowSelection.onSelectMultiple) {
  24336. var changeRows = data.filter(function (row, i) {
  24337. return changeRowKeys.indexOf(_this3.getRecordKey(row, i)) >= 0;
  24338. });
  24339. rowSelection.onSelectMultiple(checked, selectedRows, changeRows);
  24340. } else if (selectWay === 'onSelectAll' && rowSelection.onSelectAll) {
  24341. var _changeRows = data.filter(function (row, i) {
  24342. return changeRowKeys.indexOf(_this3.getRecordKey(row, i)) >= 0;
  24343. });
  24344. rowSelection.onSelectAll(checked, selectedRows, _changeRows);
  24345. } else if (selectWay === 'onSelectInvert' && rowSelection.onSelectInvert) {
  24346. rowSelection.onSelectInvert(selectedRowKeys);
  24347. }
  24348. },
  24349. generatePopupContainerFunc: function generatePopupContainerFunc(getPopupContainer) {
  24350. var scroll = this.$props.scroll;
  24351. var table = this.$refs.vcTable;
  24352. if (getPopupContainer) {
  24353. return getPopupContainer;
  24354. }
  24355. // Use undefined to let rc component use default logic.
  24356. return scroll && table ? function () {
  24357. return table.getTableNode();
  24358. } : undefined;
  24359. },
  24360. scrollToFirstRow: function scrollToFirstRow() {
  24361. var _this4 = this;
  24362. var scroll = this.$props.scroll;
  24363. if (scroll && scroll.scrollToFirstRowOnChange !== false) {
  24364. Object(_util_scrollTo__WEBPACK_IMPORTED_MODULE_25__["default"])(0, {
  24365. getContainer: function getContainer() {
  24366. return _this4.$refs.vcTable.getBodyTable();
  24367. }
  24368. });
  24369. }
  24370. },
  24371. isSameColumn: function isSameColumn(a, b) {
  24372. if (a && b && a.key && a.key === b.key) {
  24373. return true;
  24374. }
  24375. return a === b || shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(a, b, function (value, other) {
  24376. if (typeof value === 'function' && typeof other === 'function') {
  24377. return value === other || value.toString() === other.toString();
  24378. }
  24379. });
  24380. },
  24381. handleFilter: function handleFilter(column, nextFilters) {
  24382. var _this5 = this;
  24383. var props = this.$props;
  24384. var pagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.sPagination);
  24385. var filters = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.sFilters, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, getColumnKey(column), nextFilters));
  24386. // Remove filters not in current columns
  24387. var currentColumnKeys = [];
  24388. Object(_util__WEBPACK_IMPORTED_MODULE_14__["treeMap"])(this.columns, function (c) {
  24389. if (!c.children) {
  24390. currentColumnKeys.push(getColumnKey(c));
  24391. }
  24392. });
  24393. Object.keys(filters).forEach(function (columnKey) {
  24394. if (currentColumnKeys.indexOf(columnKey) < 0) {
  24395. delete filters[columnKey];
  24396. }
  24397. });
  24398. if (props.pagination) {
  24399. // Reset current prop
  24400. pagination.current = 1;
  24401. pagination.onChange(pagination.current);
  24402. }
  24403. var newState = {
  24404. sPagination: pagination,
  24405. sFilters: {}
  24406. };
  24407. var filtersToSetState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, filters);
  24408. // Remove filters which is controlled
  24409. getFilteredValueColumns({ columns: props.columns }).forEach(function (col) {
  24410. var columnKey = getColumnKey(col);
  24411. if (columnKey) {
  24412. delete filtersToSetState[columnKey];
  24413. }
  24414. });
  24415. if (Object.keys(filtersToSetState).length > 0) {
  24416. newState.sFilters = filtersToSetState;
  24417. }
  24418. // Controlled current prop will not respond user interaction
  24419. if (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default()(props.pagination) === 'object' && 'current' in props.pagination) {
  24420. newState.sPagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, pagination, {
  24421. current: this.sPagination.current
  24422. });
  24423. }
  24424. this.setState(newState, function () {
  24425. _this5.scrollToFirstRow();
  24426. _this5.store.selectionDirty = false;
  24427. _this5.$emit.apply(_this5, ['change'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(_this5.prepareParamsArguments(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, _this5.$data, {
  24428. sSelectionDirty: false,
  24429. sFilters: filters,
  24430. sPagination: pagination
  24431. })))));
  24432. });
  24433. },
  24434. handleSelect: function handleSelect(record, rowIndex, e) {
  24435. var _this6 = this;
  24436. var checked = e.target.checked;
  24437. var nativeEvent = e.nativeEvent;
  24438. var defaultSelection = this.store.selectionDirty ? [] : this.getDefaultSelection();
  24439. var selectedRowKeys = this.store.selectedRowKeys.concat(defaultSelection);
  24440. var key = this.getRecordKey(record, rowIndex);
  24441. var pivot = this.$data.pivot;
  24442. var rows = this.getFlatCurrentPageData();
  24443. var realIndex = rowIndex;
  24444. if (this.$props.expandedRowRender) {
  24445. realIndex = rows.findIndex(function (row) {
  24446. return _this6.getRecordKey(row, rowIndex) === key;
  24447. });
  24448. }
  24449. if (nativeEvent.shiftKey && pivot !== undefined && realIndex !== pivot) {
  24450. var changeRowKeys = [];
  24451. var direction = Math.sign(pivot - realIndex);
  24452. var dist = Math.abs(pivot - realIndex);
  24453. var step = 0;
  24454. var _loop = function _loop() {
  24455. var i = realIndex + step * direction;
  24456. step += 1;
  24457. var row = rows[i];
  24458. var rowKey = _this6.getRecordKey(row, i);
  24459. var checkboxProps = _this6.getCheckboxPropsByItem(row, i);
  24460. if (!checkboxProps.disabled) {
  24461. if (selectedRowKeys.includes(rowKey)) {
  24462. if (!checked) {
  24463. selectedRowKeys = selectedRowKeys.filter(function (j) {
  24464. return rowKey !== j;
  24465. });
  24466. changeRowKeys.push(rowKey);
  24467. }
  24468. } else if (checked) {
  24469. selectedRowKeys.push(rowKey);
  24470. changeRowKeys.push(rowKey);
  24471. }
  24472. }
  24473. };
  24474. while (step <= dist) {
  24475. _loop();
  24476. }
  24477. this.setState({ pivot: realIndex });
  24478. this.store.selectionDirty = true;
  24479. this.setSelectedRowKeys(selectedRowKeys, {
  24480. selectWay: 'onSelectMultiple',
  24481. record: record,
  24482. checked: checked,
  24483. changeRowKeys: changeRowKeys,
  24484. nativeEvent: nativeEvent
  24485. });
  24486. } else {
  24487. if (checked) {
  24488. selectedRowKeys.push(this.getRecordKey(record, realIndex));
  24489. } else {
  24490. selectedRowKeys = selectedRowKeys.filter(function (i) {
  24491. return key !== i;
  24492. });
  24493. }
  24494. this.setState({ pivot: realIndex });
  24495. this.store.selectionDirty = true;
  24496. this.setSelectedRowKeys(selectedRowKeys, {
  24497. selectWay: 'onSelect',
  24498. record: record,
  24499. checked: checked,
  24500. changeRowKeys: undefined,
  24501. nativeEvent: nativeEvent
  24502. });
  24503. }
  24504. },
  24505. handleRadioSelect: function handleRadioSelect(record, rowIndex, e) {
  24506. var checked = e.target.checked;
  24507. var nativeEvent = e.nativeEvent;
  24508. var key = this.getRecordKey(record, rowIndex);
  24509. var selectedRowKeys = [key];
  24510. this.store.selectionDirty = true;
  24511. this.setSelectedRowKeys(selectedRowKeys, {
  24512. selectWay: 'onSelect',
  24513. record: record,
  24514. checked: checked,
  24515. changeRowKeys: undefined,
  24516. nativeEvent: nativeEvent
  24517. });
  24518. },
  24519. handleSelectRow: function handleSelectRow(selectionKey, index, onSelectFunc) {
  24520. var _this7 = this;
  24521. var data = this.getFlatCurrentPageData();
  24522. var defaultSelection = this.store.selectionDirty ? [] : this.getDefaultSelection();
  24523. var selectedRowKeys = this.store.selectedRowKeys.concat(defaultSelection);
  24524. var changeableRowKeys = data.filter(function (item, i) {
  24525. return !_this7.getCheckboxPropsByItem(item, i).props.disabled;
  24526. }).map(function (item, i) {
  24527. return _this7.getRecordKey(item, i);
  24528. });
  24529. var changeRowKeys = [];
  24530. var selectWay = 'onSelectAll';
  24531. var checked = void 0;
  24532. // handle default selection
  24533. switch (selectionKey) {
  24534. case 'all':
  24535. changeableRowKeys.forEach(function (key) {
  24536. if (selectedRowKeys.indexOf(key) < 0) {
  24537. selectedRowKeys.push(key);
  24538. changeRowKeys.push(key);
  24539. }
  24540. });
  24541. selectWay = 'onSelectAll';
  24542. checked = true;
  24543. break;
  24544. case 'removeAll':
  24545. changeableRowKeys.forEach(function (key) {
  24546. if (selectedRowKeys.indexOf(key) >= 0) {
  24547. selectedRowKeys.splice(selectedRowKeys.indexOf(key), 1);
  24548. changeRowKeys.push(key);
  24549. }
  24550. });
  24551. selectWay = 'onSelectAll';
  24552. checked = false;
  24553. break;
  24554. case 'invert':
  24555. changeableRowKeys.forEach(function (key) {
  24556. if (selectedRowKeys.indexOf(key) < 0) {
  24557. selectedRowKeys.push(key);
  24558. } else {
  24559. selectedRowKeys.splice(selectedRowKeys.indexOf(key), 1);
  24560. }
  24561. changeRowKeys.push(key);
  24562. selectWay = 'onSelectInvert';
  24563. });
  24564. break;
  24565. default:
  24566. break;
  24567. }
  24568. this.store.selectionDirty = true;
  24569. // when select custom selection, callback selections[n].onSelect
  24570. var rowSelection = this.rowSelection;
  24571. var customSelectionStartIndex = 2;
  24572. if (rowSelection && rowSelection.hideDefaultSelections) {
  24573. customSelectionStartIndex = 0;
  24574. }
  24575. if (index >= customSelectionStartIndex && typeof onSelectFunc === 'function') {
  24576. return onSelectFunc(changeableRowKeys);
  24577. }
  24578. this.setSelectedRowKeys(selectedRowKeys, {
  24579. selectWay: selectWay,
  24580. checked: checked,
  24581. changeRowKeys: changeRowKeys
  24582. });
  24583. },
  24584. handlePageChange: function handlePageChange(current) {
  24585. var props = this.$props;
  24586. var pagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.sPagination);
  24587. if (current) {
  24588. pagination.current = current;
  24589. } else {
  24590. pagination.current = pagination.current || 1;
  24591. }
  24592. for (var _len = arguments.length, otherArguments = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  24593. otherArguments[_key - 1] = arguments[_key];
  24594. }
  24595. pagination.onChange.apply(pagination, [pagination.current].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(otherArguments)));
  24596. var newState = {
  24597. sPagination: pagination
  24598. };
  24599. // Controlled current prop will not respond user interaction
  24600. if (props.pagination && babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default()(props.pagination) === 'object' && 'current' in props.pagination) {
  24601. newState.sPagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, pagination, {
  24602. current: this.sPagination.current
  24603. });
  24604. }
  24605. this.setState(newState, this.scrollToFirstRow);
  24606. this.store.selectionDirty = false;
  24607. this.$emit.apply(this, ['change'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.prepareParamsArguments(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.$data, {
  24608. sSelectionDirty: false,
  24609. sPagination: pagination
  24610. })))));
  24611. },
  24612. handleShowSizeChange: function handleShowSizeChange(current, pageSize) {
  24613. var pagination = this.sPagination;
  24614. pagination.onShowSizeChange(current, pageSize);
  24615. var nextPagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, pagination, {
  24616. pageSize: pageSize,
  24617. current: current
  24618. });
  24619. this.setState({ sPagination: nextPagination }, this.scrollToFirstRow);
  24620. this.$emit.apply(this, ['change'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.prepareParamsArguments(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.$data, {
  24621. sPagination: nextPagination
  24622. })))));
  24623. },
  24624. toggleSortOrder: function toggleSortOrder(column) {
  24625. var sortDirections = column.sortDirections || this.sortDirections;
  24626. var sortOrder = this.sSortOrder,
  24627. sortColumn = this.sSortColumn;
  24628. // 只同时允许一列进行排序,否则会导致排序顺序的逻辑问题
  24629. var newSortOrder = void 0;
  24630. // 切换另一列时,丢弃 sortOrder 的状态
  24631. if (isSameColumn(sortColumn, column) && sortOrder !== undefined) {
  24632. // 按照sortDirections的内容依次切换排序状态
  24633. var methodIndex = sortDirections.indexOf(sortOrder) + 1;
  24634. newSortOrder = methodIndex === sortDirections.length ? undefined : sortDirections[methodIndex];
  24635. } else {
  24636. newSortOrder = sortDirections[0];
  24637. }
  24638. var newState = {
  24639. sSortOrder: newSortOrder,
  24640. sSortColumn: newSortOrder ? column : null
  24641. };
  24642. // Controlled
  24643. if (this.getSortOrderColumns().length === 0) {
  24644. this.setState(newState, this.scrollToFirstRow);
  24645. }
  24646. this.$emit.apply(this, ['change'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.prepareParamsArguments(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.$data, newState), column))));
  24647. },
  24648. hasPagination: function hasPagination(props) {
  24649. return (props || this.$props).pagination !== false;
  24650. },
  24651. isSortColumn: function isSortColumn(column) {
  24652. var sortColumn = this.sSortColumn;
  24653. if (!column || !sortColumn) {
  24654. return false;
  24655. }
  24656. return getColumnKey(sortColumn) === getColumnKey(column);
  24657. },
  24658. // Get pagination, filters, sorter
  24659. prepareParamsArguments: function prepareParamsArguments(state, column) {
  24660. var pagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, state.sPagination);
  24661. // remove useless handle function in Table.onChange
  24662. delete pagination.onChange;
  24663. delete pagination.onShowSizeChange;
  24664. var filters = state.sFilters;
  24665. var sorter = {};
  24666. var currentColumn = column;
  24667. if (state.sSortColumn && state.sSortOrder) {
  24668. currentColumn = state.sSortColumn;
  24669. sorter.column = state.sSortColumn;
  24670. sorter.order = state.sSortOrder;
  24671. }
  24672. if (currentColumn) {
  24673. sorter.field = currentColumn.dataIndex;
  24674. sorter.columnKey = getColumnKey(currentColumn);
  24675. }
  24676. var extra = {
  24677. currentDataSource: this.getLocalData(state)
  24678. };
  24679. return [pagination, filters, sorter, extra];
  24680. },
  24681. findColumn: function findColumn(myKey) {
  24682. var column = void 0;
  24683. Object(_util__WEBPACK_IMPORTED_MODULE_14__["treeMap"])(this.columns, function (c) {
  24684. if (getColumnKey(c) === myKey) {
  24685. column = c;
  24686. }
  24687. });
  24688. return column;
  24689. },
  24690. recursiveSort: function recursiveSort(data, sorterFn) {
  24691. var _this8 = this;
  24692. var _childrenColumnName = this.childrenColumnName,
  24693. childrenColumnName = _childrenColumnName === undefined ? 'children' : _childrenColumnName;
  24694. return data.sort(sorterFn).map(function (item) {
  24695. return item[childrenColumnName] ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, item, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, childrenColumnName, _this8.recursiveSort([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(item[childrenColumnName])), sorterFn))) : item;
  24696. });
  24697. },
  24698. renderExpandIcon: function renderExpandIcon(prefixCls) {
  24699. var h = this.$createElement;
  24700. return function (_ref2) {
  24701. var expandable = _ref2.expandable,
  24702. expanded = _ref2.expanded,
  24703. needIndentSpaced = _ref2.needIndentSpaced,
  24704. record = _ref2.record,
  24705. onExpand = _ref2.onExpand;
  24706. if (expandable) {
  24707. return h(
  24708. _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_22__["default"],
  24709. {
  24710. attrs: { componentName: 'Table', defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_23__["default"].Table }
  24711. },
  24712. [function (locale) {
  24713. var _classNames;
  24714. return h(_util_transButton__WEBPACK_IMPORTED_MODULE_26__["default"], {
  24715. 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-row-expand-icon', (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-collapsed', !expanded), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-expanded', expanded), _classNames)),
  24716. on: {
  24717. 'click': function click(event) {
  24718. onExpand(record, event);
  24719. }
  24720. },
  24721. attrs: {
  24722. 'aria-label': expanded ? locale.collapse : locale.expand,
  24723. noStyle: true
  24724. }
  24725. });
  24726. }]
  24727. );
  24728. }
  24729. if (needIndentSpaced) {
  24730. return h('span', { 'class': prefixCls + '-row-expand-icon ' + prefixCls + '-row-spaced' });
  24731. }
  24732. return null;
  24733. };
  24734. },
  24735. renderPagination: function renderPagination(prefixCls, paginationPosition) {
  24736. var h = this.$createElement;
  24737. // 强制不需要分页
  24738. if (!this.hasPagination()) {
  24739. return null;
  24740. }
  24741. var size = 'default';
  24742. var pagination = this.sPagination;
  24743. if (pagination.size) {
  24744. size = pagination.size;
  24745. } else if (this.size === 'middle' || this.size === 'small') {
  24746. size = 'small';
  24747. }
  24748. var position = pagination.position || 'bottom';
  24749. var total = pagination.total || this.filterDataCnt;
  24750. var cls = pagination['class'],
  24751. style = pagination.style,
  24752. onChange = pagination.onChange,
  24753. onShowSizeChange = pagination.onShowSizeChange,
  24754. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(pagination, ['class', 'style', 'onChange', 'onShowSizeChange']); // eslint-disable-line
  24755. var paginationProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["mergeProps"])({
  24756. key: 'pagination-' + paginationPosition,
  24757. 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(cls, prefixCls + '-pagination'),
  24758. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, restProps, {
  24759. total: total,
  24760. size: size,
  24761. current: this.getMaxCurrent(total)
  24762. }),
  24763. style: style,
  24764. on: {
  24765. change: this.handlePageChange,
  24766. showSizeChange: this.handleShowSizeChange
  24767. }
  24768. });
  24769. return total > 0 && (position === paginationPosition || position === 'both') ? h(_pagination__WEBPACK_IMPORTED_MODULE_19__["default"], paginationProps) : null;
  24770. },
  24771. renderSelectionBox: function renderSelectionBox(type) {
  24772. var _this9 = this;
  24773. var h = this.$createElement;
  24774. return function (_, record, index) {
  24775. var rowKey = _this9.getRecordKey(record, index); // 从 1 开始
  24776. var props = _this9.getCheckboxPropsByItem(record, index);
  24777. var handleChange = function handleChange(e) {
  24778. type === 'radio' ? _this9.handleRadioSelect(record, index, e) : _this9.handleSelect(record, index, e);
  24779. };
  24780. var selectionBoxProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["mergeProps"])({
  24781. props: {
  24782. type: type,
  24783. store: _this9.store,
  24784. rowIndex: rowKey,
  24785. defaultSelection: _this9.getDefaultSelection()
  24786. },
  24787. on: {
  24788. change: handleChange
  24789. }
  24790. }, props);
  24791. return h(
  24792. 'span',
  24793. {
  24794. on: {
  24795. 'click': stopPropagation
  24796. }
  24797. },
  24798. [h(_SelectionBox__WEBPACK_IMPORTED_MODULE_9__["default"], selectionBoxProps)]
  24799. );
  24800. };
  24801. },
  24802. renderRowSelection: function renderRowSelection(_ref3) {
  24803. var _this10 = this;
  24804. var prefixCls = _ref3.prefixCls,
  24805. locale = _ref3.locale,
  24806. getPopupContainer = _ref3.getPopupContainer;
  24807. var h = this.$createElement;
  24808. var rowSelection = this.rowSelection;
  24809. var columns = this.columns.concat();
  24810. if (rowSelection) {
  24811. var data = this.getFlatCurrentPageData().filter(function (item, index) {
  24812. if (rowSelection.getCheckboxProps) {
  24813. return !_this10.getCheckboxPropsByItem(item, index).props.disabled;
  24814. }
  24815. return true;
  24816. });
  24817. var selectionColumnClass = classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-selection-column', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-selection-column-custom', rowSelection.selections));
  24818. var selectionColumn = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({
  24819. key: 'selection-column',
  24820. customRender: this.renderSelectionBox(rowSelection.type),
  24821. className: selectionColumnClass,
  24822. fixed: rowSelection.fixed,
  24823. width: rowSelection.columnWidth,
  24824. title: rowSelection.columnTitle
  24825. }, _vc_table__WEBPACK_IMPORTED_MODULE_5__["INTERNAL_COL_DEFINE"], {
  24826. 'class': prefixCls + '-selection-col'
  24827. });
  24828. if (rowSelection.type !== 'radio') {
  24829. var checkboxAllDisabled = data.every(function (item, index) {
  24830. return _this10.getCheckboxPropsByItem(item, index).props.disabled;
  24831. });
  24832. selectionColumn.title = selectionColumn.title || h(_SelectionCheckboxAll__WEBPACK_IMPORTED_MODULE_10__["default"], {
  24833. attrs: {
  24834. store: this.store,
  24835. locale: locale,
  24836. data: data,
  24837. getCheckboxPropsByItem: this.getCheckboxPropsByItem,
  24838. getRecordKey: this.getRecordKey,
  24839. disabled: checkboxAllDisabled,
  24840. prefixCls: prefixCls,
  24841. selections: rowSelection.selections,
  24842. hideDefaultSelections: rowSelection.hideDefaultSelections,
  24843. getPopupContainer: this.generatePopupContainerFunc(getPopupContainer)
  24844. },
  24845. on: {
  24846. 'select': this.handleSelectRow
  24847. }
  24848. });
  24849. }
  24850. if ('fixed' in rowSelection) {
  24851. selectionColumn.fixed = rowSelection.fixed;
  24852. } else if (columns.some(function (column) {
  24853. return column.fixed === 'left' || column.fixed === true;
  24854. })) {
  24855. selectionColumn.fixed = 'left';
  24856. }
  24857. if (columns[0] && columns[0].key === 'selection-column') {
  24858. columns[0] = selectionColumn;
  24859. } else {
  24860. columns.unshift(selectionColumn);
  24861. }
  24862. }
  24863. return columns;
  24864. },
  24865. renderColumnsDropdown: function renderColumnsDropdown(_ref4) {
  24866. var _this11 = this;
  24867. var prefixCls = _ref4.prefixCls,
  24868. dropdownPrefixCls = _ref4.dropdownPrefixCls,
  24869. columns = _ref4.columns,
  24870. locale = _ref4.locale,
  24871. getPopupContainer = _ref4.getPopupContainer;
  24872. var h = this.$createElement;
  24873. var sortOrder = this.sSortOrder,
  24874. filters = this.sFilters;
  24875. return Object(_util__WEBPACK_IMPORTED_MODULE_14__["treeMap"])(columns, function (column, i) {
  24876. var _classNames3;
  24877. var key = getColumnKey(column, i);
  24878. var filterDropdown = void 0;
  24879. var sortButton = void 0;
  24880. var customHeaderCell = column.customHeaderCell;
  24881. var isSortColumn = _this11.isSortColumn(column);
  24882. if (column.filters && column.filters.length > 0 || column.filterDropdown) {
  24883. var colFilters = key in filters ? filters[key] : [];
  24884. filterDropdown = h(_filterDropdown__WEBPACK_IMPORTED_MODULE_8__["default"], {
  24885. attrs: {
  24886. _propsSymbol: Symbol(),
  24887. locale: locale,
  24888. column: column,
  24889. selectedKeys: colFilters,
  24890. confirmFilter: _this11.handleFilter,
  24891. prefixCls: prefixCls + '-filter',
  24892. dropdownPrefixCls: dropdownPrefixCls || 'ant-dropdown',
  24893. getPopupContainer: _this11.generatePopupContainerFunc(getPopupContainer)
  24894. },
  24895. key: 'filter-dropdown'
  24896. });
  24897. }
  24898. if (column.sorter) {
  24899. var sortDirections = column.sortDirections || _this11.sortDirections;
  24900. var isAscend = isSortColumn && sortOrder === 'ascend';
  24901. var isDescend = isSortColumn && sortOrder === 'descend';
  24902. var ascend = sortDirections.indexOf('ascend') !== -1 && h(_icon__WEBPACK_IMPORTED_MODULE_20__["default"], {
  24903. 'class': prefixCls + '-column-sorter-up ' + (isAscend ? 'on' : 'off'),
  24904. attrs: { type: 'caret-up',
  24905. theme: 'filled'
  24906. },
  24907. key: 'caret-up'
  24908. });
  24909. var descend = sortDirections.indexOf('descend') !== -1 && h(_icon__WEBPACK_IMPORTED_MODULE_20__["default"], {
  24910. 'class': prefixCls + '-column-sorter-down ' + (isDescend ? 'on' : 'off'),
  24911. attrs: { type: 'caret-down',
  24912. theme: 'filled'
  24913. },
  24914. key: 'caret-down'
  24915. });
  24916. sortButton = h(
  24917. 'div',
  24918. {
  24919. attrs: {
  24920. title: locale.sortTitle
  24921. },
  24922. 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-column-sorter-inner', ascend && descend && prefixCls + '-column-sorter-inner-full'),
  24923. key: 'sorter'
  24924. },
  24925. [ascend, descend]
  24926. );
  24927. customHeaderCell = function customHeaderCell(col) {
  24928. var colProps = {};
  24929. // Get original first
  24930. if (column.customHeaderCell) {
  24931. colProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, column.customHeaderCell(col));
  24932. }
  24933. colProps.on = colProps.on || {};
  24934. // Add sorter logic
  24935. var onHeaderCellClick = colProps.on.click;
  24936. colProps.on.click = function () {
  24937. _this11.toggleSortOrder(column);
  24938. if (onHeaderCellClick) {
  24939. onHeaderCellClick.apply(undefined, arguments);
  24940. }
  24941. };
  24942. return colProps;
  24943. };
  24944. }
  24945. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, column, {
  24946. className: classnames__WEBPACK_IMPORTED_MODULE_6___default()(column.className, (_classNames3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames3, prefixCls + '-column-has-actions', sortButton || filterDropdown), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames3, prefixCls + '-column-has-filters', filterDropdown), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames3, prefixCls + '-column-has-sorters', sortButton), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames3, prefixCls + '-column-sort', isSortColumn && sortOrder), _classNames3)),
  24947. title: [h(
  24948. 'span',
  24949. { key: 'title', 'class': prefixCls + '-header-column' },
  24950. [h(
  24951. 'div',
  24952. { 'class': sortButton ? prefixCls + '-column-sorters' : undefined },
  24953. [h(
  24954. 'span',
  24955. { 'class': prefixCls + '-column-title' },
  24956. [_this11.renderColumnTitle(column.title)]
  24957. ), h(
  24958. 'span',
  24959. { 'class': prefixCls + '-column-sorter' },
  24960. [sortButton]
  24961. )]
  24962. )]
  24963. ), filterDropdown],
  24964. customHeaderCell: customHeaderCell
  24965. });
  24966. });
  24967. },
  24968. renderColumnTitle: function renderColumnTitle(title) {
  24969. var _$data = this.$data,
  24970. filters = _$data.sFilters,
  24971. sortOrder = _$data.sSortOrder,
  24972. sortColumn = _$data.sSortColumn;
  24973. // https://github.com/ant-design/ant-design/issues/11246#issuecomment-405009167
  24974. if (title instanceof Function) {
  24975. return title({
  24976. filters: filters,
  24977. sortOrder: sortOrder,
  24978. sortColumn: sortColumn
  24979. });
  24980. }
  24981. return title;
  24982. },
  24983. renderTable: function renderTable(_ref5) {
  24984. var _classNames4,
  24985. _this12 = this;
  24986. var prefixCls = _ref5.prefixCls,
  24987. renderEmpty = _ref5.renderEmpty,
  24988. dropdownPrefixCls = _ref5.dropdownPrefixCls,
  24989. contextLocale = _ref5.contextLocale,
  24990. contextGetPopupContainer = _ref5.getPopupContainer,
  24991. transformCellText = _ref5.transformCellText;
  24992. var h = this.$createElement;
  24993. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["getOptionProps"])(this),
  24994. showHeader = _getOptionProps.showHeader,
  24995. locale = _getOptionProps.locale,
  24996. getPopupContainer = _getOptionProps.getPopupContainer,
  24997. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['showHeader', 'locale', 'getPopupContainer']);
  24998. var data = this.getCurrentPageData();
  24999. var expandIconAsCell = this.expandedRowRender && this.expandIconAsCell !== false;
  25000. // use props.getPopupContainer first
  25001. var realGetPopupContainer = getPopupContainer || contextGetPopupContainer;
  25002. // Merge too locales
  25003. var mergedLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, contextLocale, locale);
  25004. if (!locale || !locale.emptyText) {
  25005. mergedLocale.emptyText = renderEmpty(h, 'Table');
  25006. }
  25007. var classString = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames4 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-' + this.size, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-bordered', this.bordered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-empty', !data.length), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-without-column-header', !showHeader), _classNames4));
  25008. var columnsWithRowSelection = this.renderRowSelection({
  25009. prefixCls: prefixCls,
  25010. locale: mergedLocale,
  25011. getPopupContainer: realGetPopupContainer
  25012. });
  25013. var columns = this.renderColumnsDropdown({
  25014. columns: columnsWithRowSelection,
  25015. prefixCls: prefixCls,
  25016. dropdownPrefixCls: dropdownPrefixCls,
  25017. locale: mergedLocale,
  25018. getPopupContainer: realGetPopupContainer
  25019. }).map(function (column, i) {
  25020. var newColumn = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, column);
  25021. newColumn.key = getColumnKey(newColumn, i);
  25022. return newColumn;
  25023. });
  25024. var expandIconColumnIndex = columns[0] && columns[0].key === 'selection-column' ? 1 : 0;
  25025. if ('expandIconColumnIndex' in restProps) {
  25026. expandIconColumnIndex = restProps.expandIconColumnIndex;
  25027. }
  25028. var vcTableProps = {
  25029. key: 'table',
  25030. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({
  25031. expandIcon: this.renderExpandIcon(prefixCls)
  25032. }, restProps, {
  25033. customRow: function customRow(record, index) {
  25034. return _this12.onRow(prefixCls, record, index);
  25035. },
  25036. components: this.sComponents,
  25037. prefixCls: prefixCls,
  25038. data: data,
  25039. columns: columns,
  25040. showHeader: showHeader,
  25041. expandIconColumnIndex: expandIconColumnIndex,
  25042. expandIconAsCell: expandIconAsCell,
  25043. emptyText: mergedLocale.emptyText,
  25044. transformCellText: transformCellText
  25045. }),
  25046. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["getListeners"])(this),
  25047. 'class': classString,
  25048. ref: 'vcTable'
  25049. };
  25050. return h(_vc_table__WEBPACK_IMPORTED_MODULE_5__["default"], vcTableProps);
  25051. }
  25052. },
  25053. render: function render() {
  25054. var _this13 = this;
  25055. var h = arguments[0];
  25056. var customizePrefixCls = this.prefixCls,
  25057. customizeDropdownPrefixCls = this.dropdownPrefixCls,
  25058. customizeTransformCellText = this.transformCellText;
  25059. var data = this.getCurrentPageData();
  25060. var _configProvider = this.configProvider,
  25061. getContextPopupContainer = _configProvider.getPopupContainer,
  25062. tct = _configProvider.transformCellText;
  25063. var getPopupContainer = this.getPopupContainer || getContextPopupContainer;
  25064. var transformCellText = customizeTransformCellText || tct;
  25065. var loading = this.loading;
  25066. if (typeof loading === 'boolean') {
  25067. loading = {
  25068. props: {
  25069. spinning: loading
  25070. }
  25071. };
  25072. } else {
  25073. loading = {
  25074. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, loading)
  25075. };
  25076. }
  25077. var getPrefixCls = this.configProvider.getPrefixCls;
  25078. var renderEmpty = this.configProvider.renderEmpty;
  25079. var prefixCls = getPrefixCls('table', customizePrefixCls);
  25080. var dropdownPrefixCls = getPrefixCls('dropdown', customizeDropdownPrefixCls);
  25081. var table = h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_22__["default"], {
  25082. attrs: {
  25083. componentName: 'Table',
  25084. defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_23__["default"].Table,
  25085. children: function children(locale) {
  25086. return _this13.renderTable({
  25087. prefixCls: prefixCls,
  25088. renderEmpty: renderEmpty,
  25089. dropdownPrefixCls: dropdownPrefixCls,
  25090. contextLocale: locale,
  25091. getPopupContainer: getPopupContainer,
  25092. transformCellText: transformCellText
  25093. });
  25094. }
  25095. }
  25096. });
  25097. // if there is no pagination or no data,
  25098. // the height of spin should decrease by half of pagination
  25099. var paginationPatchClass = this.hasPagination() && data && data.length !== 0 ? prefixCls + '-with-pagination' : prefixCls + '-without-pagination';
  25100. var spinProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, loading, {
  25101. 'class': loading.props && loading.props.spinning ? paginationPatchClass + ' ' + prefixCls + '-spin-holder' : ''
  25102. });
  25103. return h(
  25104. 'div',
  25105. { 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-wrapper') },
  25106. [h(
  25107. _spin__WEBPACK_IMPORTED_MODULE_21__["default"],
  25108. spinProps,
  25109. [this.renderPagination(prefixCls, 'top'), table, this.renderPagination(prefixCls, 'bottom')]
  25110. )]
  25111. );
  25112. }
  25113. });
  25114. /***/ }),
  25115. /***/ "./components/table/createBodyRow.jsx":
  25116. /*!********************************************!*\
  25117. !*** ./components/table/createBodyRow.jsx ***!
  25118. \********************************************/
  25119. /*! exports provided: default */
  25120. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25121. "use strict";
  25122. __webpack_require__.r(__webpack_exports__);
  25123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createBodyRow; });
  25124. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  25125. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  25126. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  25127. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  25128. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  25129. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  25130. var BodyRowProps = {
  25131. store: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  25132. rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number]),
  25133. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
  25134. };
  25135. function createBodyRow() {
  25136. var Component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'tr';
  25137. var BodyRow = {
  25138. name: 'BodyRow',
  25139. props: BodyRowProps,
  25140. computed: {
  25141. selected: function selected() {
  25142. return this.$props.store.selectedRowKeys.indexOf(this.$props.rowKey) >= 0;
  25143. }
  25144. },
  25145. render: function render() {
  25146. var h = arguments[0];
  25147. var className = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, this.prefixCls + '-row-selected', this.selected);
  25148. return h(
  25149. Component,
  25150. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': className }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this) }]),
  25151. [this.$slots['default']]
  25152. );
  25153. }
  25154. };
  25155. return BodyRow;
  25156. }
  25157. /***/ }),
  25158. /***/ "./components/table/filterDropdown.jsx":
  25159. /*!*********************************************!*\
  25160. !*** ./components/table/filterDropdown.jsx ***!
  25161. \*********************************************/
  25162. /*! exports provided: default */
  25163. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25164. "use strict";
  25165. __webpack_require__.r(__webpack_exports__);
  25166. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  25167. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  25168. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  25169. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  25170. /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
  25171. /* harmony import */ var dom_closest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-closest */ "./node_modules/dom-closest/index.js");
  25172. /* harmony import */ var dom_closest__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(dom_closest__WEBPACK_IMPORTED_MODULE_3__);
  25173. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  25174. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
  25175. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
  25176. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_5__);
  25177. /* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dropdown */ "./components/dropdown/index.js");
  25178. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  25179. /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
  25180. /* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../radio */ "./components/radio/index.js");
  25181. /* harmony import */ var _FilterDropdownMenuWrapper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./FilterDropdownMenuWrapper */ "./components/table/FilterDropdownMenuWrapper.jsx");
  25182. /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
  25183. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  25184. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  25185. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  25186. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./util */ "./components/table/util.js");
  25187. function stopPropagation(e) {
  25188. e.stopPropagation();
  25189. }
  25190. /* harmony default export */ __webpack_exports__["default"] = ({
  25191. name: 'FilterMenu',
  25192. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__["default"]],
  25193. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])(_interface__WEBPACK_IMPORTED_MODULE_11__["FilterMenuProps"], {
  25194. handleFilter: function handleFilter() {},
  25195. column: {}
  25196. }),
  25197. data: function data() {
  25198. var visible = 'filterDropdownVisible' in this.column ? this.column.filterDropdownVisible : false;
  25199. this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this));
  25200. return {
  25201. sSelectedKeys: this.selectedKeys,
  25202. sKeyPathOfSelectedItem: {}, // 记录所有有选中子菜单的祖先菜单
  25203. sVisible: visible,
  25204. sValueKeys: Object(_util__WEBPACK_IMPORTED_MODULE_15__["generateValueMaps"])(this.column.filters)
  25205. };
  25206. },
  25207. watch: {
  25208. _propsSymbol: function _propsSymbol() {
  25209. var nextProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
  25210. var column = nextProps.column;
  25211. var newState = {};
  25212. /**
  25213. * if the state is visible the component should ignore updates on selectedKeys prop to avoid
  25214. * that the user selection is lost
  25215. * this happens frequently when a table is connected on some sort of realtime data
  25216. * Fixes https://github.com/ant-design/ant-design/issues/10289 and
  25217. * https://github.com/ant-design/ant-design/issues/10209
  25218. */
  25219. if ('selectedKeys' in nextProps && !shallowequal__WEBPACK_IMPORTED_MODULE_5___default()(this.preProps.selectedKeys, nextProps.selectedKeys)) {
  25220. newState.sSelectedKeys = nextProps.selectedKeys;
  25221. }
  25222. if (!shallowequal__WEBPACK_IMPORTED_MODULE_5___default()((this.preProps.column || {}).filters, (nextProps.column || {}).filters)) {
  25223. newState.sValueKeys = Object(_util__WEBPACK_IMPORTED_MODULE_15__["generateValueMaps"])(nextProps.column.filters);
  25224. }
  25225. if ('filterDropdownVisible' in column) {
  25226. newState.sVisible = column.filterDropdownVisible;
  25227. }
  25228. if (Object.keys(newState).length > 0) {
  25229. this.setState(newState);
  25230. }
  25231. this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, nextProps);
  25232. }
  25233. },
  25234. mounted: function mounted() {
  25235. var _this = this;
  25236. var column = this.column;
  25237. this.$nextTick(function () {
  25238. _this.setNeverShown(column);
  25239. });
  25240. },
  25241. updated: function updated() {
  25242. var _this2 = this;
  25243. var column = this.column;
  25244. this.$nextTick(function () {
  25245. _this2.setNeverShown(column);
  25246. });
  25247. },
  25248. methods: {
  25249. getDropdownVisible: function getDropdownVisible() {
  25250. return this.neverShown ? false : this.sVisible;
  25251. },
  25252. setNeverShown: function setNeverShown(column) {
  25253. var rootNode = this.$el;
  25254. var filterBelongToScrollBody = !!dom_closest__WEBPACK_IMPORTED_MODULE_3___default()(rootNode, '.ant-table-scroll');
  25255. if (filterBelongToScrollBody) {
  25256. // When fixed column have filters, there will be two dropdown menus
  25257. // Filter dropdown menu inside scroll body should never be shown
  25258. // To fix https://github.com/ant-design/ant-design/issues/5010 and
  25259. // https://github.com/ant-design/ant-design/issues/7909
  25260. this.neverShown = !!column.fixed;
  25261. }
  25262. },
  25263. setSelectedKeys: function setSelectedKeys(_ref) {
  25264. var selectedKeys = _ref.selectedKeys;
  25265. this.setState({ sSelectedKeys: selectedKeys });
  25266. },
  25267. setVisible: function setVisible(visible) {
  25268. var column = this.column;
  25269. if (!('filterDropdownVisible' in column)) {
  25270. this.setState({ sVisible: visible });
  25271. }
  25272. if (column.onFilterDropdownVisibleChange) {
  25273. column.onFilterDropdownVisibleChange(visible);
  25274. }
  25275. },
  25276. handleClearFilters: function handleClearFilters() {
  25277. this.setState({
  25278. sSelectedKeys: []
  25279. }, this.handleConfirm);
  25280. },
  25281. handleConfirm: function handleConfirm() {
  25282. var _this3 = this;
  25283. this.setVisible(false);
  25284. this.confirmFilter2();
  25285. // Call `setSelectedKeys` & `confirm` in the same time will make filter data not up to date
  25286. // https://github.com/ant-design/ant-design/issues/12284
  25287. this.$forceUpdate();
  25288. this.$nextTick(function () {
  25289. _this3.confirmFilter;
  25290. });
  25291. },
  25292. onVisibleChange: function onVisibleChange(visible) {
  25293. this.setVisible(visible);
  25294. var column = this.$props.column;
  25295. // https://github.com/ant-design/ant-design/issues/17833
  25296. if (!visible && !(column.filterDropdown instanceof Function)) {
  25297. this.confirmFilter2();
  25298. }
  25299. },
  25300. handleMenuItemClick: function handleMenuItemClick(info) {
  25301. var selectedKeys = this.$data.sSelectedKeys;
  25302. if (!info.keyPath || info.keyPath.length <= 1) {
  25303. return;
  25304. }
  25305. var keyPathOfSelectedItem = this.$data.sKeyPathOfSelectedItem;
  25306. if (selectedKeys && selectedKeys.indexOf(info.key) >= 0) {
  25307. // deselect SubMenu child
  25308. delete keyPathOfSelectedItem[info.key];
  25309. } else {
  25310. // select SubMenu child
  25311. keyPathOfSelectedItem[info.key] = info.keyPath;
  25312. }
  25313. this.setState({ sKeyPathOfSelectedItem: keyPathOfSelectedItem });
  25314. },
  25315. hasSubMenu: function hasSubMenu() {
  25316. var _column$filters = this.column.filters,
  25317. filters = _column$filters === undefined ? [] : _column$filters;
  25318. return filters.some(function (item) {
  25319. return !!(item.children && item.children.length > 0);
  25320. });
  25321. },
  25322. confirmFilter2: function confirmFilter2() {
  25323. var _$props = this.$props,
  25324. column = _$props.column,
  25325. propSelectedKeys = _$props.selectedKeys,
  25326. confirmFilter = _$props.confirmFilter;
  25327. var _$data = this.$data,
  25328. selectedKeys = _$data.sSelectedKeys,
  25329. valueKeys = _$data.sValueKeys;
  25330. var filterDropdown = column.filterDropdown;
  25331. if (!shallowequal__WEBPACK_IMPORTED_MODULE_5___default()(selectedKeys, propSelectedKeys)) {
  25332. confirmFilter(column, filterDropdown ? selectedKeys : selectedKeys.map(function (key) {
  25333. return valueKeys[key];
  25334. }).filter(function (key) {
  25335. return key !== undefined;
  25336. }));
  25337. }
  25338. },
  25339. renderMenus: function renderMenus(items) {
  25340. var _this4 = this;
  25341. var h = this.$createElement;
  25342. var _$props2 = this.$props,
  25343. dropdownPrefixCls = _$props2.dropdownPrefixCls,
  25344. prefixCls = _$props2.prefixCls;
  25345. return items.map(function (item) {
  25346. if (item.children && item.children.length > 0) {
  25347. var sKeyPathOfSelectedItem = _this4.sKeyPathOfSelectedItem;
  25348. var containSelected = Object.keys(sKeyPathOfSelectedItem).some(function (key) {
  25349. return sKeyPathOfSelectedItem[key].indexOf(item.value) >= 0;
  25350. });
  25351. var subMenuCls = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-dropdown-submenu', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, dropdownPrefixCls + '-submenu-contain-selected', containSelected));
  25352. return h(
  25353. _vc_menu__WEBPACK_IMPORTED_MODULE_2__["SubMenu"],
  25354. {
  25355. attrs: { title: item.text, popupClassName: subMenuCls },
  25356. key: item.value },
  25357. [_this4.renderMenus(item.children)]
  25358. );
  25359. }
  25360. return _this4.renderMenuItem(item);
  25361. });
  25362. },
  25363. renderFilterIcon: function renderFilterIcon() {
  25364. var _classNames2;
  25365. var h = this.$createElement;
  25366. var column = this.column,
  25367. locale = this.locale,
  25368. prefixCls = this.prefixCls,
  25369. selectedKeys = this.selectedKeys;
  25370. var filtered = selectedKeys && selectedKeys.length > 0;
  25371. var filterIcon = column.filterIcon;
  25372. if (typeof filterIcon === 'function') {
  25373. filterIcon = filterIcon(filtered, column);
  25374. }
  25375. var dropdownIconClass = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-selected', 'filtered' in column ? column.filtered : filtered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-open', this.getDropdownVisible()), _classNames2));
  25376. if (!filterIcon) {
  25377. return h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
  25378. attrs: {
  25379. title: locale.filterTitle,
  25380. type: 'filter',
  25381. theme: 'filled'
  25382. },
  25383. 'class': dropdownIconClass,
  25384. on: {
  25385. 'click': stopPropagation
  25386. }
  25387. });
  25388. }
  25389. if (filterIcon.length === 1 && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["isValidElement"])(filterIcon[0])) {
  25390. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_13__["cloneElement"])(filterIcon[0], {
  25391. on: {
  25392. click: stopPropagation
  25393. },
  25394. 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-icon', dropdownIconClass)
  25395. });
  25396. }
  25397. return h(
  25398. 'span',
  25399. { 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-icon', dropdownIconClass) },
  25400. [filterIcon]
  25401. );
  25402. },
  25403. renderMenuItem: function renderMenuItem(item) {
  25404. var h = this.$createElement;
  25405. var column = this.column;
  25406. var selectedKeys = this.$data.sSelectedKeys;
  25407. var multiple = 'filterMultiple' in column ? column.filterMultiple : true;
  25408. var input = multiple ? h(_checkbox__WEBPACK_IMPORTED_MODULE_8__["default"], {
  25409. attrs: { checked: selectedKeys && selectedKeys.indexOf(item.value) >= 0 }
  25410. }) : h(_radio__WEBPACK_IMPORTED_MODULE_9__["default"], {
  25411. attrs: { checked: selectedKeys && selectedKeys.indexOf(item.value) >= 0 }
  25412. });
  25413. return h(
  25414. _vc_menu__WEBPACK_IMPORTED_MODULE_2__["Item"],
  25415. { key: item.value },
  25416. [input, h('span', [item.text])]
  25417. );
  25418. }
  25419. },
  25420. render: function render() {
  25421. var _this5 = this;
  25422. var h = arguments[0];
  25423. var originSelectedKeys = this.$data.sSelectedKeys;
  25424. var column = this.column,
  25425. locale = this.locale,
  25426. prefixCls = this.prefixCls,
  25427. dropdownPrefixCls = this.dropdownPrefixCls,
  25428. getPopupContainer = this.getPopupContainer;
  25429. // default multiple selection in filter dropdown
  25430. var multiple = 'filterMultiple' in column ? column.filterMultiple : true;
  25431. var dropdownMenuClass = classnames__WEBPACK_IMPORTED_MODULE_4___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, dropdownPrefixCls + '-menu-without-submenu', !this.hasSubMenu()));
  25432. var filterDropdown = column.filterDropdown;
  25433. if (filterDropdown instanceof Function) {
  25434. filterDropdown = filterDropdown({
  25435. prefixCls: dropdownPrefixCls + '-custom',
  25436. setSelectedKeys: function setSelectedKeys(selectedKeys) {
  25437. return _this5.setSelectedKeys({ selectedKeys: selectedKeys });
  25438. },
  25439. selectedKeys: originSelectedKeys,
  25440. confirm: this.handleConfirm,
  25441. clearFilters: this.handleClearFilters,
  25442. filters: column.filters,
  25443. visible: this.getDropdownVisible(),
  25444. column: column
  25445. });
  25446. }
  25447. var menus = filterDropdown ? h(
  25448. _FilterDropdownMenuWrapper__WEBPACK_IMPORTED_MODULE_10__["default"],
  25449. { 'class': prefixCls + '-dropdown' },
  25450. [filterDropdown]
  25451. ) : h(
  25452. _FilterDropdownMenuWrapper__WEBPACK_IMPORTED_MODULE_10__["default"],
  25453. { 'class': prefixCls + '-dropdown' },
  25454. [h(
  25455. _vc_menu__WEBPACK_IMPORTED_MODULE_2__["default"],
  25456. {
  25457. attrs: {
  25458. multiple: multiple,
  25459. prefixCls: dropdownPrefixCls + '-menu',
  25460. selectedKeys: originSelectedKeys && originSelectedKeys.map(function (val) {
  25461. return val;
  25462. }),
  25463. getPopupContainer: getPopupContainer
  25464. },
  25465. on: {
  25466. 'click': this.handleMenuItemClick,
  25467. 'select': this.setSelectedKeys,
  25468. 'deselect': this.setSelectedKeys
  25469. },
  25470. 'class': dropdownMenuClass
  25471. },
  25472. [this.renderMenus(column.filters)]
  25473. ), h(
  25474. 'div',
  25475. { 'class': prefixCls + '-dropdown-btns' },
  25476. [h(
  25477. 'a',
  25478. { 'class': prefixCls + '-dropdown-link confirm', on: {
  25479. 'click': this.handleConfirm
  25480. }
  25481. },
  25482. [locale.filterConfirm]
  25483. ), h(
  25484. 'a',
  25485. { 'class': prefixCls + '-dropdown-link clear', on: {
  25486. 'click': this.handleClearFilters
  25487. }
  25488. },
  25489. [locale.filterReset]
  25490. )]
  25491. )]
  25492. );
  25493. return h(
  25494. _dropdown__WEBPACK_IMPORTED_MODULE_6__["default"],
  25495. {
  25496. attrs: {
  25497. trigger: ['click'],
  25498. placement: 'bottomRight',
  25499. visible: this.getDropdownVisible(),
  25500. getPopupContainer: getPopupContainer,
  25501. forceRender: true
  25502. },
  25503. on: {
  25504. 'visibleChange': this.onVisibleChange
  25505. }
  25506. },
  25507. [h(
  25508. 'template',
  25509. { slot: 'overlay' },
  25510. [menus]
  25511. ), this.renderFilterIcon()]
  25512. );
  25513. }
  25514. });
  25515. /***/ }),
  25516. /***/ "./components/table/index.jsx":
  25517. /*!************************************!*\
  25518. !*** ./components/table/index.jsx ***!
  25519. \************************************/
  25520. /*! exports provided: default */
  25521. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25522. "use strict";
  25523. __webpack_require__.r(__webpack_exports__);
  25524. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  25525. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  25526. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  25527. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  25528. /* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Table */ "./components/table/Table.jsx");
  25529. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  25530. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_3__);
  25531. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ "vue");
  25532. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_4__);
  25533. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  25534. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  25535. vue__WEBPACK_IMPORTED_MODULE_4___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_3___default.a, { name: 'ant-ref' });
  25536. var Table = {
  25537. name: 'ATable',
  25538. Column: _Table__WEBPACK_IMPORTED_MODULE_2__["default"].Column,
  25539. ColumnGroup: _Table__WEBPACK_IMPORTED_MODULE_2__["default"].ColumnGroup,
  25540. props: _Table__WEBPACK_IMPORTED_MODULE_2__["default"].props,
  25541. methods: {
  25542. normalize: function normalize() {
  25543. var _this = this;
  25544. var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  25545. var columns = [];
  25546. elements.forEach(function (element) {
  25547. if (!element.tag) {
  25548. return;
  25549. }
  25550. var key = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getKey"])(element);
  25551. var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getStyle"])(element);
  25552. var cls = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getClass"])(element);
  25553. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(element);
  25554. var events = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getEvents"])(element);
  25555. var listeners = {};
  25556. Object.keys(events).forEach(function (e) {
  25557. /*
  25558. Convert events on template Column to function props onPropAbcChange in Table.columns prop.
  25559. If you write template code like below:
  25560. <Column @prop-abc-change="f1" @update:prop-abc="f2" :prop-abc.sync="dataAbc" />
  25561. You will get these events:
  25562. {
  25563. 'prop-abc-change': this.f1,
  25564. 'update:prop-abc': [this.f2, e => this.dataAbc = e],
  25565. 'update:propAbc': e => this.dataAbc = e,
  25566. }
  25567. All of these events would be treat as column.onPropAbcChange,
  25568. but only one of them will be valid, which can not be determined.
  25569. */
  25570. var k = void 0;
  25571. if (e.startsWith('update:')) {
  25572. k = 'on-' + e.substr('update:'.length) + '-change';
  25573. } else {
  25574. k = 'on-' + e;
  25575. }
  25576. listeners[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["camelize"])(k)] = events[e];
  25577. });
  25578. var _getSlots = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getSlots"])(element),
  25579. children = _getSlots['default'],
  25580. restSlots = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getSlots, ['default']);
  25581. var column = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restSlots, props, { style: style, 'class': cls }, listeners);
  25582. if (key) {
  25583. column.key = key;
  25584. }
  25585. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getSlotOptions"])(element).__ANT_TABLE_COLUMN_GROUP) {
  25586. column.children = _this.normalize(typeof children === 'function' ? children() : children);
  25587. } else {
  25588. var customRender = element.data && element.data.scopedSlots && element.data.scopedSlots['default'];
  25589. column.customRender = column.customRender || customRender;
  25590. }
  25591. columns.push(column);
  25592. });
  25593. return columns;
  25594. },
  25595. updateColumns: function updateColumns() {
  25596. var _this2 = this;
  25597. var cols = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  25598. var columns = [];
  25599. var $slots = this.$slots,
  25600. $scopedSlots = this.$scopedSlots;
  25601. cols.forEach(function (col) {
  25602. var _col$slots = col.slots,
  25603. slots = _col$slots === undefined ? {} : _col$slots,
  25604. _col$scopedSlots = col.scopedSlots,
  25605. scopedSlots = _col$scopedSlots === undefined ? {} : _col$scopedSlots,
  25606. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(col, ['slots', 'scopedSlots']);
  25607. var column = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps);
  25608. Object.keys(slots).forEach(function (key) {
  25609. var name = slots[key];
  25610. if (column[key] === undefined && $slots[name]) {
  25611. column[key] = $slots[name].length === 1 ? $slots[name][0] : $slots[name];
  25612. }
  25613. });
  25614. Object.keys(scopedSlots).forEach(function (key) {
  25615. var name = scopedSlots[key];
  25616. if (column[key] === undefined && $scopedSlots[name]) {
  25617. column[key] = $scopedSlots[name];
  25618. }
  25619. });
  25620. // if (slotScopeName && $scopedSlots[slotScopeName]) {
  25621. // column.customRender = column.customRender || $scopedSlots[slotScopeName]
  25622. // }
  25623. if (col.children) {
  25624. column.children = _this2.updateColumns(column.children);
  25625. }
  25626. columns.push(column);
  25627. });
  25628. return columns;
  25629. }
  25630. },
  25631. render: function render() {
  25632. var h = arguments[0];
  25633. var $slots = this.$slots,
  25634. normalize = this.normalize,
  25635. $scopedSlots = this.$scopedSlots;
  25636. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  25637. var columns = props.columns ? this.updateColumns(props.columns) : normalize($slots['default']);
  25638. var title = props.title,
  25639. footer = props.footer;
  25640. var slotTitle = $scopedSlots.title,
  25641. slotFooter = $scopedSlots.footer,
  25642. _$scopedSlots$expande = $scopedSlots.expandedRowRender,
  25643. expandedRowRender = _$scopedSlots$expande === undefined ? props.expandedRowRender : _$scopedSlots$expande;
  25644. title = title || slotTitle;
  25645. footer = footer || slotFooter;
  25646. var tProps = {
  25647. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
  25648. columns: columns,
  25649. title: title,
  25650. footer: footer,
  25651. expandedRowRender: expandedRowRender
  25652. }),
  25653. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
  25654. };
  25655. return h(_Table__WEBPACK_IMPORTED_MODULE_2__["default"], tProps);
  25656. }
  25657. };
  25658. /* istanbul ignore next */
  25659. Table.install = function (Vue) {
  25660. Vue.use(_base__WEBPACK_IMPORTED_MODULE_6__["default"]);
  25661. Vue.component(Table.name, Table);
  25662. Vue.component(Table.Column.name, Table.Column);
  25663. Vue.component(Table.ColumnGroup.name, Table.ColumnGroup);
  25664. };
  25665. /* harmony default export */ __webpack_exports__["default"] = (Table);
  25666. /***/ }),
  25667. /***/ "./components/table/interface.js":
  25668. /*!***************************************!*\
  25669. !*** ./components/table/interface.js ***!
  25670. \***************************************/
  25671. /*! exports provided: ColumnFilterItem, ColumnProps, TableLocale, RowSelectionType, TableRowSelection, TableProps, SelectionCheckboxAllProps, SelectionBoxProps, FilterMenuProps */
  25672. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25673. "use strict";
  25674. __webpack_require__.r(__webpack_exports__);
  25675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnFilterItem", function() { return ColumnFilterItem; });
  25676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnProps", function() { return ColumnProps; });
  25677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TableLocale", function() { return TableLocale; });
  25678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RowSelectionType", function() { return RowSelectionType; });
  25679. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TableRowSelection", function() { return TableRowSelection; });
  25680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TableProps", function() { return TableProps; });
  25681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionCheckboxAllProps", function() { return SelectionCheckboxAllProps; });
  25682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionBoxProps", function() { return SelectionBoxProps; });
  25683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FilterMenuProps", function() { return FilterMenuProps; });
  25684. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  25685. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  25686. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  25687. /* harmony import */ var _pagination__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../pagination */ "./components/pagination/index.js");
  25688. /* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../spin */ "./components/spin/index.js");
  25689. var PaginationProps = Object(_pagination__WEBPACK_IMPORTED_MODULE_2__["PaginationProps"])();
  25690. var SpinProps = Object(_spin__WEBPACK_IMPORTED_MODULE_3__["SpinProps"])();
  25691. // export type CompareFn<T> = ((a: T, b: T) => number);
  25692. var ColumnFilterItem = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
  25693. text: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25694. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25695. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
  25696. }).loose;
  25697. var ColumnProps = {
  25698. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25699. // key?: React.Key;
  25700. dataIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25701. customRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25702. customCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25703. customHeaderCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25704. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['left', 'right', 'center']),
  25705. ellipsis: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25706. filters: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(ColumnFilterItem),
  25707. // onFilter: (value: any, record: T) => PropTypes.bool,
  25708. filterMultiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25709. filterDropdown: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25710. filterDropdownVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25711. // onFilterDropdownVisibleChange?: (visible: boolean) => void;
  25712. sorter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].boolean, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
  25713. defaultSortOrder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['ascend', 'descend']),
  25714. colSpan: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  25715. width: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
  25716. className: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25717. fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['left', 'right'])]),
  25718. filterIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25719. filteredValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  25720. filtered: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25721. defaultFilteredValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  25722. sortOrder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['ascend', 'descend'])]),
  25723. sortDirections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
  25724. // children?: ColumnProps<T>[];
  25725. // onCellClick?: (record: T, event: any) => void;
  25726. // onCell?: (record: T) => any;
  25727. // onHeaderCell?: (props: ColumnProps<T>) => any;
  25728. };
  25729. // export interface TableComponents {
  25730. // table?: any;
  25731. // header?: {
  25732. // wrapper?: any;
  25733. // row?: any;
  25734. // cell?: any;
  25735. // };
  25736. // body?: {
  25737. // wrapper?: any;
  25738. // row?: any;
  25739. // cell?: any;
  25740. // };
  25741. // }
  25742. var TableLocale = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
  25743. filterTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25744. filterConfirm: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25745. filterReset: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25746. emptyText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25747. selectAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25748. selectInvert: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25749. sortTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25750. expand: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25751. collapse: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
  25752. }).loose;
  25753. var RowSelectionType = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['checkbox', 'radio']);
  25754. // export type SelectionSelectFn<T> = (record: T, selected: boolean, selectedRows: Object[]) => any;
  25755. var TableRowSelection = {
  25756. type: RowSelectionType,
  25757. selectedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  25758. // onChange?: (selectedRowKeys: string[] | number[], selectedRows: Object[]) => any;
  25759. getCheckboxProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25760. // onSelect?: SelectionSelectFn<T>;
  25761. // onSelectAll?: (selected: boolean, selectedRows: Object[], changeRows: Object[]) => any;
  25762. // onSelectInvert?: (selectedRows: Object[]) => any;
  25763. selections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
  25764. hideDefaultSelections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25765. fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25766. columnWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
  25767. selectWay: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['onSelect', 'onSelectMultiple', 'onSelectAll', 'onSelectInvert']),
  25768. columnTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  25769. };
  25770. var TableProps = {
  25771. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25772. dropdownPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25773. rowSelection: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape(TableRowSelection).loose, null]),
  25774. pagination: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PaginationProps, {
  25775. position: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['top', 'bottom', 'both'])
  25776. })).loose, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
  25777. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['default', 'middle', 'small', 'large']),
  25778. dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  25779. components: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  25780. columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  25781. rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
  25782. rowClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25783. expandedRowRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25784. defaultExpandAllRows: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25785. defaultExpandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  25786. expandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  25787. expandIconAsCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25788. expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  25789. expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25790. // onExpandedRowsChange?: (expandedRowKeys: string[] | number[]) => void;
  25791. // onExpand?: (expanded: boolean, record: T) => void;
  25792. // onChange?: (pagination: PaginationProps | boolean, filters: string[], sorter: Object) => any;
  25793. loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape(SpinProps).loose, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
  25794. locale: TableLocale,
  25795. indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  25796. // onRowClick?: (record: T, index: number, event: Event) => any;
  25797. customRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25798. customHeaderRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25799. useFixedHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25800. bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25801. showHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25802. footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25803. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25804. scroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  25805. childrenColumnName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string]),
  25806. bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25807. sortDirections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  25808. tableLayout: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25809. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25810. expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25811. transformCellText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  25812. // className?: PropTypes.string,
  25813. // style?: React.CSSProperties;
  25814. // children?: React.ReactNode;
  25815. };
  25816. // export interface TableStateFilters {
  25817. // [key: string]: string[];
  25818. // }
  25819. // export interface TableState<T> {
  25820. // pagination: PaginationProps;
  25821. // filters: TableStateFilters;
  25822. // sortColumn: ColumnProps<T> | null;
  25823. // sortOrder: PropTypes.string,
  25824. // }
  25825. // export type SelectionItemSelectFn = (key: string[]) => any;
  25826. // export interface SelectionItem {
  25827. // key: PropTypes.string,
  25828. // text: PropTypes.any,
  25829. // onSelect: SelectionItemSelectFn;
  25830. // }
  25831. var SelectionCheckboxAllProps = {
  25832. store: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25833. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25834. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25835. getCheckboxPropsByItem: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25836. getRecordKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25837. data: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  25838. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25839. // onSelect: (key: string, index: number, selectFunc: any) => void;
  25840. hideDefaultSelections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25841. selections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
  25842. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  25843. };
  25844. // export interface SelectionCheckboxAllState {
  25845. // checked: PropTypes.bool,
  25846. // indeterminate: PropTypes.bool,
  25847. // }
  25848. var SelectionBoxProps = {
  25849. store: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25850. type: RowSelectionType,
  25851. defaultSelection: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
  25852. rowIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
  25853. name: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25854. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  25855. id: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
  25856. // onChange: React.ChangeEventHandler<HTMLInputElement>;
  25857. };
  25858. // export interface SelectionBoxState {
  25859. // checked?: PropTypes.bool,
  25860. // }
  25861. var FilterMenuProps = {
  25862. _propsSymbol: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  25863. locale: TableLocale,
  25864. selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
  25865. column: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  25866. confirmFilter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25867. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25868. dropdownPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  25869. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  25870. handleFilter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  25871. };
  25872. // export interface FilterMenuState {
  25873. // selectedKeys: string[];
  25874. // keyPathOfSelectedItem: { [key: string]: string };
  25875. // visible?: PropTypes.bool,
  25876. // }
  25877. /***/ }),
  25878. /***/ "./components/table/style/index.js":
  25879. /*!*****************************************!*\
  25880. !*** ./components/table/style/index.js ***!
  25881. \*****************************************/
  25882. /*! no exports provided */
  25883. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25884. "use strict";
  25885. __webpack_require__.r(__webpack_exports__);
  25886. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  25887. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  25888. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/table/style/index.less");
  25889. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  25890. /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
  25891. /* harmony import */ var _radio_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../radio/style */ "./components/radio/style/index.js");
  25892. /* harmony import */ var _checkbox_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../checkbox/style */ "./components/checkbox/style/index.js");
  25893. /* harmony import */ var _dropdown_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dropdown/style */ "./components/dropdown/style/index.js");
  25894. /* harmony import */ var _spin_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../spin/style */ "./components/spin/style/index.js");
  25895. /* harmony import */ var _pagination_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../pagination/style */ "./components/pagination/style/index.js");
  25896. // style dependencies
  25897. // deps-lint-skip: menu
  25898. /***/ }),
  25899. /***/ "./components/table/style/index.less":
  25900. /*!*******************************************!*\
  25901. !*** ./components/table/style/index.less ***!
  25902. \*******************************************/
  25903. /*! no static exports found */
  25904. /***/ (function(module, exports, __webpack_require__) {
  25905. // extracted by mini-css-extract-plugin
  25906. /***/ }),
  25907. /***/ "./components/table/util.js":
  25908. /*!**********************************!*\
  25909. !*** ./components/table/util.js ***!
  25910. \**********************************/
  25911. /*! exports provided: flatArray, treeMap, flatFilter, generateValueMaps */
  25912. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25913. "use strict";
  25914. __webpack_require__.r(__webpack_exports__);
  25915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flatArray", function() { return flatArray; });
  25916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "treeMap", function() { return treeMap; });
  25917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flatFilter", function() { return flatFilter; });
  25918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateValueMaps", function() { return generateValueMaps; });
  25919. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  25920. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  25921. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  25922. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  25923. function flatArray() {
  25924. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  25925. var childrenName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'children';
  25926. var result = [];
  25927. var loop = function loop(array) {
  25928. array.forEach(function (item) {
  25929. if (item[childrenName]) {
  25930. var newItem = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, item);
  25931. delete newItem[childrenName];
  25932. result.push(newItem);
  25933. if (item[childrenName].length > 0) {
  25934. loop(item[childrenName]);
  25935. }
  25936. } else {
  25937. result.push(item);
  25938. }
  25939. });
  25940. };
  25941. loop(data);
  25942. return result;
  25943. }
  25944. function treeMap(tree, mapper) {
  25945. var childrenName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'children';
  25946. return tree.map(function (node, index) {
  25947. var extra = {};
  25948. if (node[childrenName]) {
  25949. extra[childrenName] = treeMap(node[childrenName], mapper, childrenName);
  25950. }
  25951. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, mapper(node, index), extra);
  25952. });
  25953. }
  25954. function flatFilter(tree, callback) {
  25955. return tree.reduce(function (acc, node) {
  25956. if (callback(node)) {
  25957. acc.push(node);
  25958. }
  25959. if (node.children) {
  25960. var children = flatFilter(node.children, callback);
  25961. acc.push.apply(acc, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(children));
  25962. }
  25963. return acc;
  25964. }, []);
  25965. }
  25966. // export function normalizeColumns (elements) {
  25967. // const columns = []
  25968. // React.Children.forEach(elements, (element) => {
  25969. // if (!React.isValidElement(element)) {
  25970. // return
  25971. // }
  25972. // const column = {
  25973. // ...element.props,
  25974. // }
  25975. // if (element.key) {
  25976. // column.key = element.key
  25977. // }
  25978. // if (element.type && element.type.__ANT_TABLE_COLUMN_GROUP) {
  25979. // column.children = normalizeColumns(column.children)
  25980. // }
  25981. // columns.push(column)
  25982. // })
  25983. // return columns
  25984. // }
  25985. function generateValueMaps(items) {
  25986. var maps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25987. (items || []).forEach(function (_ref) {
  25988. var value = _ref.value,
  25989. children = _ref.children;
  25990. maps[value.toString()] = value;
  25991. generateValueMaps(children, maps);
  25992. });
  25993. return maps;
  25994. }
  25995. /***/ }),
  25996. /***/ "./components/tabs/TabBar.jsx":
  25997. /*!************************************!*\
  25998. !*** ./components/tabs/TabBar.jsx ***!
  25999. \************************************/
  26000. /*! exports provided: default */
  26001. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26002. "use strict";
  26003. __webpack_require__.r(__webpack_exports__);
  26004. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  26005. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  26006. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  26007. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  26008. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  26009. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
  26010. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  26011. /* harmony import */ var _vc_tabs_src_ScrollableInkTabBar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-tabs/src/ScrollableInkTabBar */ "./components/vc-tabs/src/ScrollableInkTabBar.jsx");
  26012. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  26013. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  26014. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  26015. var TabBar = {
  26016. name: 'TabBar',
  26017. inheritAttrs: false,
  26018. props: {
  26019. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  26020. tabBarStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
  26021. tabBarExtraContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  26022. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['line', 'card', 'editable-card']),
  26023. tabPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['top', 'right', 'bottom', 'left']).def('top'),
  26024. tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['top', 'right', 'bottom', 'left']),
  26025. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['default', 'small', 'large']),
  26026. animated: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object]),
  26027. renderTabBar: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  26028. panels: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array.def([]),
  26029. activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number]),
  26030. tabBarGutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number
  26031. },
  26032. render: function render() {
  26033. var _cls;
  26034. var h = arguments[0];
  26035. var _$props = this.$props,
  26036. tabBarStyle = _$props.tabBarStyle,
  26037. _$props$animated = _$props.animated,
  26038. animated = _$props$animated === undefined ? true : _$props$animated,
  26039. renderTabBar = _$props.renderTabBar,
  26040. tabBarExtraContent = _$props.tabBarExtraContent,
  26041. tabPosition = _$props.tabPosition,
  26042. prefixCls = _$props.prefixCls,
  26043. _$props$type = _$props.type,
  26044. type = _$props$type === undefined ? 'line' : _$props$type,
  26045. size = _$props.size;
  26046. var inkBarAnimated = (typeof animated === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(animated)) === 'object' ? animated.inkBar : animated;
  26047. var isVertical = tabPosition === 'left' || tabPosition === 'right';
  26048. var prevIconType = isVertical ? 'up' : 'left';
  26049. var nextIconType = isVertical ? 'down' : 'right';
  26050. var prevIcon = h(
  26051. 'span',
  26052. { 'class': prefixCls + '-tab-prev-icon' },
  26053. [h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
  26054. attrs: { type: prevIconType },
  26055. 'class': prefixCls + '-tab-prev-icon-target' })]
  26056. );
  26057. var nextIcon = h(
  26058. 'span',
  26059. { 'class': prefixCls + '-tab-next-icon' },
  26060. [h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
  26061. attrs: { type: nextIconType },
  26062. 'class': prefixCls + '-tab-next-icon-target' })]
  26063. );
  26064. // Additional className for style usage
  26065. var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-' + tabPosition + '-bar', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-' + size + '-bar', !!size), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-card-bar', type && type.indexOf('card') >= 0), _cls);
  26066. var renderProps = {
  26067. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, this.$attrs, {
  26068. inkBarAnimated: inkBarAnimated,
  26069. extraContent: tabBarExtraContent,
  26070. prevIcon: prevIcon,
  26071. nextIcon: nextIcon
  26072. }),
  26073. style: tabBarStyle,
  26074. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
  26075. 'class': cls
  26076. };
  26077. var RenderTabBar = void 0;
  26078. if (renderTabBar) {
  26079. RenderTabBar = renderTabBar(renderProps, _vc_tabs_src_ScrollableInkTabBar__WEBPACK_IMPORTED_MODULE_4__["default"]);
  26080. // https://github.com/vueComponent/ant-design-vue/issues/2157
  26081. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(RenderTabBar, renderProps);
  26082. } else {
  26083. return h(_vc_tabs_src_ScrollableInkTabBar__WEBPACK_IMPORTED_MODULE_4__["default"], renderProps);
  26084. }
  26085. }
  26086. };
  26087. /* harmony default export */ __webpack_exports__["default"] = (TabBar);
  26088. /***/ }),
  26089. /***/ "./components/tabs/index.js":
  26090. /*!**********************************!*\
  26091. !*** ./components/tabs/index.js ***!
  26092. \**********************************/
  26093. /*! exports provided: default, TabPane, TabContent */
  26094. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26095. "use strict";
  26096. __webpack_require__.r(__webpack_exports__);
  26097. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  26098. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  26099. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  26100. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_1__);
  26101. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
  26102. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
  26103. /* harmony import */ var _tabs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tabs */ "./components/tabs/tabs.jsx");
  26104. /* harmony import */ var _vc_tabs_src_TabPane__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-tabs/src/TabPane */ "./components/vc-tabs/src/TabPane.jsx");
  26105. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPane", function() { return _vc_tabs_src_TabPane__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  26106. /* harmony import */ var _vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-tabs/src/TabContent */ "./components/vc-tabs/src/TabContent.jsx");
  26107. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContent", function() { return _vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_5__["default"]; });
  26108. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  26109. _tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabPane = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_tabs_src_TabPane__WEBPACK_IMPORTED_MODULE_4__["default"], { name: 'ATabPane', __ANT_TAB_PANE: true });
  26110. _tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabContent = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_5__["default"], { name: 'ATabContent' });
  26111. vue__WEBPACK_IMPORTED_MODULE_2___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_1___default.a, { name: 'ant-ref' });
  26112. /* istanbul ignore next */
  26113. _tabs__WEBPACK_IMPORTED_MODULE_3__["default"].install = function (Vue) {
  26114. Vue.use(_base__WEBPACK_IMPORTED_MODULE_6__["default"]);
  26115. Vue.component(_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].name, _tabs__WEBPACK_IMPORTED_MODULE_3__["default"]);
  26116. Vue.component(_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabPane.name, _tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabPane);
  26117. Vue.component(_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabContent.name, _tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabContent);
  26118. };
  26119. /* harmony default export */ __webpack_exports__["default"] = (_tabs__WEBPACK_IMPORTED_MODULE_3__["default"]);
  26120. /***/ }),
  26121. /***/ "./components/tabs/style/index.js":
  26122. /*!****************************************!*\
  26123. !*** ./components/tabs/style/index.js ***!
  26124. \****************************************/
  26125. /*! no exports provided */
  26126. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26127. "use strict";
  26128. __webpack_require__.r(__webpack_exports__);
  26129. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  26130. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  26131. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tabs/style/index.less");
  26132. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  26133. /***/ }),
  26134. /***/ "./components/tabs/style/index.less":
  26135. /*!******************************************!*\
  26136. !*** ./components/tabs/style/index.less ***!
  26137. \******************************************/
  26138. /*! no static exports found */
  26139. /***/ (function(module, exports, __webpack_require__) {
  26140. // extracted by mini-css-extract-plugin
  26141. /***/ }),
  26142. /***/ "./components/tabs/tabs.jsx":
  26143. /*!**********************************!*\
  26144. !*** ./components/tabs/tabs.jsx ***!
  26145. \**********************************/
  26146. /*! exports provided: default */
  26147. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26148. "use strict";
  26149. __webpack_require__.r(__webpack_exports__);
  26150. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  26151. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  26152. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  26153. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  26154. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  26155. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  26156. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  26157. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__);
  26158. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  26159. /* harmony import */ var _vc_tabs_src__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-tabs/src */ "./components/vc-tabs/src/index.js");
  26160. /* harmony import */ var _vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-tabs/src/TabContent */ "./components/vc-tabs/src/TabContent.jsx");
  26161. /* harmony import */ var _util_styleChecker__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/styleChecker */ "./components/_util/styleChecker.js");
  26162. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  26163. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  26164. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  26165. /* harmony import */ var _util_isValid__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/isValid */ "./components/_util/isValid.js");
  26166. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  26167. /* harmony import */ var _TabBar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TabBar */ "./components/tabs/TabBar.jsx");
  26168. /* harmony default export */ __webpack_exports__["default"] = ({
  26169. TabPane: _vc_tabs_src__WEBPACK_IMPORTED_MODULE_5__["TabPane"],
  26170. name: 'ATabs',
  26171. model: {
  26172. prop: 'activeKey',
  26173. event: 'change'
  26174. },
  26175. props: {
  26176. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
  26177. activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number]),
  26178. defaultActiveKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number]),
  26179. hideAdd: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool.def(false),
  26180. tabBarStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].object,
  26181. tabBarExtraContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
  26182. destroyInactiveTabPane: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool.def(false),
  26183. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOf(['line', 'card', 'editable-card']),
  26184. tabPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOf(['top', 'right', 'bottom', 'left']).def('top'),
  26185. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOf(['default', 'small', 'large']),
  26186. animated: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].object]),
  26187. tabBarGutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number,
  26188. renderTabBar: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func
  26189. },
  26190. inject: {
  26191. configProvider: { 'default': function _default() {
  26192. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
  26193. } }
  26194. },
  26195. mounted: function mounted() {
  26196. var NO_FLEX = ' no-flex';
  26197. var tabNode = this.$el;
  26198. if (tabNode && !_util_styleChecker__WEBPACK_IMPORTED_MODULE_7__["isFlexSupported"] && tabNode.className.indexOf(NO_FLEX) === -1) {
  26199. tabNode.className += NO_FLEX;
  26200. }
  26201. },
  26202. methods: {
  26203. removeTab: function removeTab(targetKey, e) {
  26204. e.stopPropagation();
  26205. if (Object(_util_isValid__WEBPACK_IMPORTED_MODULE_11__["default"])(targetKey)) {
  26206. this.$emit('edit', targetKey, 'remove');
  26207. }
  26208. },
  26209. handleChange: function handleChange(activeKey) {
  26210. this.$emit('change', activeKey);
  26211. },
  26212. createNewTab: function createNewTab(targetKey) {
  26213. this.$emit('edit', targetKey, 'add');
  26214. },
  26215. onTabClick: function onTabClick(val) {
  26216. this.$emit('tabClick', val);
  26217. },
  26218. onPrevClick: function onPrevClick(val) {
  26219. this.$emit('prevClick', val);
  26220. },
  26221. onNextClick: function onNextClick(val) {
  26222. this.$emit('nextClick', val);
  26223. }
  26224. },
  26225. render: function render() {
  26226. var _cls,
  26227. _this = this,
  26228. _contentCls;
  26229. var h = arguments[0];
  26230. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this);
  26231. var customizePrefixCls = props.prefixCls,
  26232. size = props.size,
  26233. _props$type = props.type,
  26234. type = _props$type === undefined ? 'line' : _props$type,
  26235. tabPosition = props.tabPosition,
  26236. _props$animated = props.animated,
  26237. animated = _props$animated === undefined ? true : _props$animated,
  26238. hideAdd = props.hideAdd,
  26239. renderTabBar = props.renderTabBar;
  26240. var getPrefixCls = this.configProvider.getPrefixCls;
  26241. var prefixCls = getPrefixCls('tabs', customizePrefixCls);
  26242. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["filterEmpty"])(this.$slots['default']);
  26243. var tabBarExtraContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'tabBarExtraContent');
  26244. var tabPaneAnimated = (typeof animated === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default()(animated)) === 'object' ? animated.tabPane : animated;
  26245. // card tabs should not have animation
  26246. if (type !== 'line') {
  26247. tabPaneAnimated = 'animated' in props ? tabPaneAnimated : false;
  26248. }
  26249. var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-vertical', tabPosition === 'left' || tabPosition === 'right'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-' + size, !!size), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-card', type.indexOf('card') >= 0), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-' + type, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-no-animation', !tabPaneAnimated), _cls);
  26250. // only card type tabs can be added and closed
  26251. var childrenWithClose = [];
  26252. if (type === 'editable-card') {
  26253. childrenWithClose = [];
  26254. children.forEach(function (child, index) {
  26255. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(child);
  26256. var closable = props.closable;
  26257. closable = typeof closable === 'undefined' ? true : closable;
  26258. var closeIcon = closable ? h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
  26259. attrs: {
  26260. type: 'close'
  26261. },
  26262. 'class': prefixCls + '-close-x',
  26263. on: {
  26264. 'click': function click(e) {
  26265. return _this.removeTab(child.key, e);
  26266. }
  26267. }
  26268. }) : null;
  26269. childrenWithClose.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_10__["cloneElement"])(child, {
  26270. props: {
  26271. tab: h(
  26272. 'div',
  26273. { 'class': closable ? undefined : prefixCls + '-tab-unclosable' },
  26274. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(child, 'tab'), closeIcon]
  26275. )
  26276. },
  26277. key: child.key || index
  26278. }));
  26279. });
  26280. // Add new tab handler
  26281. if (!hideAdd) {
  26282. tabBarExtraContent = h('span', [h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
  26283. attrs: { type: 'plus' },
  26284. 'class': prefixCls + '-new-tab', on: {
  26285. 'click': this.createNewTab
  26286. }
  26287. }), tabBarExtraContent]);
  26288. }
  26289. }
  26290. tabBarExtraContent = tabBarExtraContent ? h(
  26291. 'div',
  26292. { 'class': prefixCls + '-extra-content' },
  26293. [tabBarExtraContent]
  26294. ) : null;
  26295. var renderTabBarSlot = renderTabBar || this.$scopedSlots.renderTabBar;
  26296. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this);
  26297. var tabBarProps = {
  26298. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, {
  26299. prefixCls: prefixCls,
  26300. tabBarExtraContent: tabBarExtraContent,
  26301. renderTabBar: renderTabBarSlot
  26302. }),
  26303. on: listeners
  26304. };
  26305. var contentCls = (_contentCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_contentCls, prefixCls + '-' + tabPosition + '-content', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_contentCls, prefixCls + '-card-content', type.indexOf('card') >= 0), _contentCls);
  26306. var tabsProps = {
  26307. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this), {
  26308. prefixCls: prefixCls,
  26309. tabBarPosition: tabPosition,
  26310. // https://github.com/vueComponent/ant-design-vue/issues/2030
  26311. // 如仅传递 tabBarProps 会导致,第二次执行 renderTabBar 时,丢失 on 属性,
  26312. // 添加key之后,会在babel jsx 插件中做一次merge,最终TabBar接收的是一个新的对象,而不是 tabBarProps
  26313. renderTabBar: function renderTabBar() {
  26314. return h(_TabBar__WEBPACK_IMPORTED_MODULE_13__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'tabBar' }, tabBarProps]));
  26315. },
  26316. renderTabContent: function renderTabContent() {
  26317. return h(_vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_6__["default"], { 'class': contentCls, attrs: { animated: tabPaneAnimated, animatedWithMargin: true }
  26318. });
  26319. },
  26320. children: childrenWithClose.length > 0 ? childrenWithClose : children,
  26321. __propsSymbol__: Symbol()
  26322. }),
  26323. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, listeners, {
  26324. change: this.handleChange
  26325. }),
  26326. 'class': cls
  26327. };
  26328. return h(_vc_tabs_src__WEBPACK_IMPORTED_MODULE_5__["default"], tabsProps);
  26329. }
  26330. });
  26331. /***/ }),
  26332. /***/ "./components/tag/CheckableTag.jsx":
  26333. /*!*****************************************!*\
  26334. !*** ./components/tag/CheckableTag.jsx ***!
  26335. \*****************************************/
  26336. /*! exports provided: default */
  26337. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26338. "use strict";
  26339. __webpack_require__.r(__webpack_exports__);
  26340. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  26341. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  26342. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  26343. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  26344. /* harmony default export */ __webpack_exports__["default"] = ({
  26345. name: 'ACheckableTag',
  26346. model: {
  26347. prop: 'checked'
  26348. },
  26349. props: {
  26350. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  26351. checked: Boolean
  26352. },
  26353. inject: {
  26354. configProvider: { 'default': function _default() {
  26355. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
  26356. } }
  26357. },
  26358. computed: {
  26359. classes: function classes() {
  26360. var _ref;
  26361. var checked = this.checked,
  26362. customizePrefixCls = this.prefixCls;
  26363. var getPrefixCls = this.configProvider.getPrefixCls;
  26364. var prefixCls = getPrefixCls('tag', customizePrefixCls);
  26365. return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-checkable', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-checkable-checked', checked), _ref;
  26366. }
  26367. },
  26368. methods: {
  26369. handleClick: function handleClick() {
  26370. var checked = this.checked;
  26371. this.$emit('input', !checked);
  26372. this.$emit('change', !checked);
  26373. }
  26374. },
  26375. render: function render() {
  26376. var h = arguments[0];
  26377. var classes = this.classes,
  26378. handleClick = this.handleClick,
  26379. $slots = this.$slots;
  26380. return h(
  26381. 'div',
  26382. { 'class': classes, on: {
  26383. 'click': handleClick
  26384. }
  26385. },
  26386. [$slots['default']]
  26387. );
  26388. }
  26389. });
  26390. /***/ }),
  26391. /***/ "./components/tag/Tag.jsx":
  26392. /*!********************************!*\
  26393. !*** ./components/tag/Tag.jsx ***!
  26394. \********************************/
  26395. /*! exports provided: default */
  26396. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26397. "use strict";
  26398. __webpack_require__.r(__webpack_exports__);
  26399. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  26400. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  26401. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  26402. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  26403. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  26404. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  26405. /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
  26406. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  26407. /* harmony import */ var _util_wave__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/wave */ "./components/_util/wave.jsx");
  26408. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  26409. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  26410. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  26411. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  26412. var PresetColorTypes = ['pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime'];
  26413. var PresetColorRegex = new RegExp('^(' + PresetColorTypes.join('|') + ')(-inverse)?$');
  26414. /* harmony default export */ __webpack_exports__["default"] = ({
  26415. name: 'ATag',
  26416. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
  26417. model: {
  26418. prop: 'visible',
  26419. event: 'close.visible'
  26420. },
  26421. props: {
  26422. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  26423. color: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  26424. closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
  26425. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  26426. afterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
  26427. },
  26428. inject: {
  26429. configProvider: { 'default': function _default() {
  26430. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
  26431. } }
  26432. },
  26433. data: function data() {
  26434. var _visible = true;
  26435. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
  26436. if ('visible' in props) {
  26437. _visible = this.visible;
  26438. }
  26439. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!('afterClose' in props), 'Tag', "'afterClose' will be deprecated, please use 'close' event, we will remove this in the next version.");
  26440. return {
  26441. _visible: _visible
  26442. };
  26443. },
  26444. watch: {
  26445. visible: function visible(val) {
  26446. this.setState({
  26447. _visible: val
  26448. });
  26449. }
  26450. },
  26451. methods: {
  26452. setVisible: function setVisible(visible, e) {
  26453. this.$emit('close', e);
  26454. this.$emit('close.visible', false);
  26455. var afterClose = this.afterClose;
  26456. if (afterClose) {
  26457. // next version remove.
  26458. afterClose();
  26459. }
  26460. if (e.defaultPrevented) {
  26461. return;
  26462. }
  26463. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["hasProp"])(this, 'visible')) {
  26464. this.setState({ _visible: visible });
  26465. }
  26466. },
  26467. handleIconClick: function handleIconClick(e) {
  26468. e.stopPropagation();
  26469. this.setVisible(false, e);
  26470. },
  26471. isPresetColor: function isPresetColor() {
  26472. var color = this.$props.color;
  26473. if (!color) {
  26474. return false;
  26475. }
  26476. return PresetColorRegex.test(color);
  26477. },
  26478. getTagStyle: function getTagStyle() {
  26479. var color = this.$props.color;
  26480. var isPresetColor = this.isPresetColor();
  26481. return {
  26482. backgroundColor: color && !isPresetColor ? color : undefined
  26483. };
  26484. },
  26485. getTagClassName: function getTagClassName(prefixCls) {
  26486. var _ref;
  26487. var color = this.$props.color;
  26488. var isPresetColor = this.isPresetColor();
  26489. return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-' + color, isPresetColor), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-has-color', color && !isPresetColor), _ref;
  26490. },
  26491. renderCloseIcon: function renderCloseIcon() {
  26492. var h = this.$createElement;
  26493. var closable = this.$props.closable;
  26494. return closable ? h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
  26495. attrs: { type: 'close' },
  26496. on: {
  26497. 'click': this.handleIconClick
  26498. }
  26499. }) : null;
  26500. }
  26501. },
  26502. render: function render() {
  26503. var h = arguments[0];
  26504. var customizePrefixCls = this.$props.prefixCls;
  26505. var getPrefixCls = this.configProvider.getPrefixCls;
  26506. var prefixCls = getPrefixCls('tag', customizePrefixCls);
  26507. var visible = this.$data._visible;
  26508. var tag = h(
  26509. 'span',
  26510. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  26511. directives: [{
  26512. name: 'show',
  26513. value: visible
  26514. }]
  26515. }, { on: Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), ['close']) }, {
  26516. 'class': this.getTagClassName(prefixCls),
  26517. style: this.getTagStyle()
  26518. }]),
  26519. [this.$slots['default'], this.renderCloseIcon()]
  26520. );
  26521. var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_4__["default"])(prefixCls + '-zoom', {
  26522. appear: false
  26523. });
  26524. return h(_util_wave__WEBPACK_IMPORTED_MODULE_6__["default"], [h(
  26525. 'transition',
  26526. transitionProps,
  26527. [tag]
  26528. )]);
  26529. }
  26530. });
  26531. /***/ }),
  26532. /***/ "./components/tag/index.js":
  26533. /*!*********************************!*\
  26534. !*** ./components/tag/index.js ***!
  26535. \*********************************/
  26536. /*! exports provided: default */
  26537. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26538. "use strict";
  26539. __webpack_require__.r(__webpack_exports__);
  26540. /* harmony import */ var _Tag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tag */ "./components/tag/Tag.jsx");
  26541. /* harmony import */ var _CheckableTag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CheckableTag */ "./components/tag/CheckableTag.jsx");
  26542. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  26543. _Tag__WEBPACK_IMPORTED_MODULE_0__["default"].CheckableTag = _CheckableTag__WEBPACK_IMPORTED_MODULE_1__["default"];
  26544. /* istanbul ignore next */
  26545. _Tag__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  26546. Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
  26547. Vue.component(_Tag__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Tag__WEBPACK_IMPORTED_MODULE_0__["default"]);
  26548. Vue.component(_Tag__WEBPACK_IMPORTED_MODULE_0__["default"].CheckableTag.name, _Tag__WEBPACK_IMPORTED_MODULE_0__["default"].CheckableTag);
  26549. };
  26550. /* harmony default export */ __webpack_exports__["default"] = (_Tag__WEBPACK_IMPORTED_MODULE_0__["default"]);
  26551. /***/ }),
  26552. /***/ "./components/tag/style/index.js":
  26553. /*!***************************************!*\
  26554. !*** ./components/tag/style/index.js ***!
  26555. \***************************************/
  26556. /*! no exports provided */
  26557. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26558. "use strict";
  26559. __webpack_require__.r(__webpack_exports__);
  26560. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  26561. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  26562. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tag/style/index.less");
  26563. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  26564. /***/ }),
  26565. /***/ "./components/tag/style/index.less":
  26566. /*!*****************************************!*\
  26567. !*** ./components/tag/style/index.less ***!
  26568. \*****************************************/
  26569. /*! no static exports found */
  26570. /***/ (function(module, exports, __webpack_require__) {
  26571. // extracted by mini-css-extract-plugin
  26572. /***/ }),
  26573. /***/ "./components/time-picker/index.jsx":
  26574. /*!******************************************!*\
  26575. !*** ./components/time-picker/index.jsx ***!
  26576. \******************************************/
  26577. /*! exports provided: generateShowHourMinuteSecond, TimePickerProps, default */
  26578. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26579. "use strict";
  26580. __webpack_require__.r(__webpack_exports__);
  26581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateShowHourMinuteSecond", function() { return generateShowHourMinuteSecond; });
  26582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimePickerProps", function() { return TimePickerProps; });
  26583. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  26584. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  26585. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  26586. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  26587. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  26588. /* harmony import */ var _vc_time_picker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-time-picker */ "./components/vc-time-picker/index.js");
  26589. /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
  26590. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  26591. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  26592. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  26593. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  26594. /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./locale/en_US */ "./components/time-picker/locale/en_US.js");
  26595. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  26596. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  26597. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  26598. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  26599. /* harmony import */ var _util_moment_util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/moment-util */ "./components/_util/moment-util.js");
  26600. function generateShowHourMinuteSecond(format) {
  26601. // Ref: http://momentjs.com/docs/#/parsing/string-format/
  26602. return {
  26603. showHour: format.indexOf('H') > -1 || format.indexOf('h') > -1 || format.indexOf('k') > -1,
  26604. showMinute: format.indexOf('m') > -1,
  26605. showSecond: format.indexOf('s') > -1
  26606. };
  26607. }
  26608. var TimePickerProps = function TimePickerProps() {
  26609. return {
  26610. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['large', 'default', 'small']),
  26611. value: _util_moment_util__WEBPACK_IMPORTED_MODULE_14__["TimeOrTimesType"],
  26612. defaultValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_14__["TimeOrTimesType"],
  26613. open: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  26614. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  26615. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  26616. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  26617. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  26618. hideDisabledOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  26619. disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  26620. disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  26621. disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  26622. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  26623. use12Hours: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  26624. focusOnOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  26625. hourStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
  26626. minuteStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
  26627. secondStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
  26628. allowEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  26629. allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  26630. inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  26631. clearText: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  26632. defaultOpenValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
  26633. popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  26634. popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
  26635. suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  26636. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
  26637. placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  26638. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  26639. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  26640. addon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  26641. clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  26642. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
  26643. valueFormat: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string
  26644. };
  26645. };
  26646. var TimePicker = {
  26647. name: 'ATimePicker',
  26648. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
  26649. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["initDefaultProps"])(TimePickerProps(), {
  26650. align: {
  26651. offset: [0, -2]
  26652. },
  26653. disabled: false,
  26654. disabledHours: undefined,
  26655. disabledMinutes: undefined,
  26656. disabledSeconds: undefined,
  26657. hideDisabledOptions: false,
  26658. placement: 'bottomLeft',
  26659. transitionName: 'slide-up',
  26660. focusOnOpen: true,
  26661. allowClear: true
  26662. }),
  26663. model: {
  26664. prop: 'value',
  26665. event: 'change'
  26666. },
  26667. provide: function provide() {
  26668. return {
  26669. savePopupRef: this.savePopupRef
  26670. };
  26671. },
  26672. inject: {
  26673. configProvider: { 'default': function _default() {
  26674. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
  26675. } }
  26676. },
  26677. data: function data() {
  26678. var value = this.value,
  26679. defaultValue = this.defaultValue,
  26680. valueFormat = this.valueFormat;
  26681. Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["checkValidate"])('TimePicker', defaultValue, 'defaultValue', valueFormat);
  26682. Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["checkValidate"])('TimePicker', value, 'value', valueFormat);
  26683. Object(_util_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'allowEmpty'), 'TimePicker', '`allowEmpty` is deprecated. Please use `allowClear` instead.');
  26684. return {
  26685. sValue: Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["stringToMoment"])(value || defaultValue, valueFormat)
  26686. };
  26687. },
  26688. watch: {
  26689. value: function value(val) {
  26690. Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["checkValidate"])('TimePicker', val, 'value', this.valueFormat);
  26691. this.setState({ sValue: Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["stringToMoment"])(val, this.valueFormat) });
  26692. }
  26693. },
  26694. methods: {
  26695. getDefaultFormat: function getDefaultFormat() {
  26696. var format = this.format,
  26697. use12Hours = this.use12Hours;
  26698. if (format) {
  26699. return format;
  26700. } else if (use12Hours) {
  26701. return 'h:mm:ss a';
  26702. }
  26703. return 'HH:mm:ss';
  26704. },
  26705. getAllowClear: function getAllowClear() {
  26706. var _$props = this.$props,
  26707. allowClear = _$props.allowClear,
  26708. allowEmpty = _$props.allowEmpty;
  26709. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'allowClear')) {
  26710. return allowClear;
  26711. }
  26712. return allowEmpty;
  26713. },
  26714. getDefaultLocale: function getDefaultLocale() {
  26715. var defaultLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _locale_en_US__WEBPACK_IMPORTED_MODULE_9__["default"], this.$props.locale);
  26716. return defaultLocale;
  26717. },
  26718. savePopupRef: function savePopupRef(ref) {
  26719. this.popupRef = ref;
  26720. },
  26721. handleChange: function handleChange(value) {
  26722. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'value')) {
  26723. this.setState({ sValue: value });
  26724. }
  26725. var _format = this.format,
  26726. format = _format === undefined ? 'HH:mm:ss' : _format;
  26727. this.$emit('change', this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["momentToString"])(value, this.valueFormat) : value, value && value.format(format) || '');
  26728. },
  26729. handleOpenClose: function handleOpenClose(_ref) {
  26730. var open = _ref.open;
  26731. this.$emit('openChange', open);
  26732. this.$emit('update:open', open);
  26733. },
  26734. focus: function focus() {
  26735. this.$refs.timePicker.focus();
  26736. },
  26737. blur: function blur() {
  26738. this.$refs.timePicker.blur();
  26739. },
  26740. renderInputIcon: function renderInputIcon(prefixCls) {
  26741. var h = this.$createElement;
  26742. var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getComponentFromProp"])(this, 'suffixIcon');
  26743. suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
  26744. var clockIcon = suffixIcon && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["isValidElement"])(suffixIcon) && Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(suffixIcon, {
  26745. 'class': prefixCls + '-clock-icon'
  26746. }) || h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
  26747. attrs: { type: 'clock-circle' },
  26748. 'class': prefixCls + '-clock-icon' });
  26749. return h(
  26750. 'span',
  26751. { 'class': prefixCls + '-icon' },
  26752. [clockIcon]
  26753. );
  26754. },
  26755. renderClearIcon: function renderClearIcon(prefixCls) {
  26756. var h = this.$createElement;
  26757. var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getComponentFromProp"])(this, 'clearIcon');
  26758. var clearIconPrefixCls = prefixCls + '-clear';
  26759. if (clearIcon && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["isValidElement"])(clearIcon)) {
  26760. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(clearIcon, {
  26761. 'class': clearIconPrefixCls
  26762. });
  26763. }
  26764. return h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
  26765. attrs: { type: 'close-circle', theme: 'filled' },
  26766. 'class': clearIconPrefixCls });
  26767. },
  26768. renderTimePicker: function renderTimePicker(locale) {
  26769. var h = this.$createElement;
  26770. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getOptionProps"])(this);
  26771. props = Object(omit_js__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ['defaultValue', 'suffixIcon', 'allowEmpty', 'allowClear']);
  26772. var _props = props,
  26773. customizePrefixCls = _props.prefixCls,
  26774. getPopupContainer = _props.getPopupContainer,
  26775. placeholder = _props.placeholder,
  26776. size = _props.size;
  26777. var getPrefixCls = this.configProvider.getPrefixCls;
  26778. var prefixCls = getPrefixCls('time-picker', customizePrefixCls);
  26779. var format = this.getDefaultFormat();
  26780. var pickerClassName = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-' + size, !!size);
  26781. var tempAddon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getComponentFromProp"])(this, 'addon', {}, false);
  26782. var pickerAddon = function pickerAddon(panel) {
  26783. return tempAddon ? h(
  26784. 'div',
  26785. { 'class': prefixCls + '-panel-addon' },
  26786. [typeof tempAddon === 'function' ? tempAddon(panel) : tempAddon]
  26787. ) : null;
  26788. };
  26789. var inputIcon = this.renderInputIcon(prefixCls);
  26790. var clearIcon = this.renderClearIcon(prefixCls);
  26791. var getContextPopupContainer = this.configProvider.getPopupContainer;
  26792. var timeProps = {
  26793. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, generateShowHourMinuteSecond(format), props, {
  26794. allowEmpty: this.getAllowClear(),
  26795. prefixCls: prefixCls,
  26796. getPopupContainer: getPopupContainer || getContextPopupContainer,
  26797. format: format,
  26798. value: this.sValue,
  26799. placeholder: placeholder === undefined ? locale.placeholder : placeholder,
  26800. addon: pickerAddon,
  26801. inputIcon: inputIcon,
  26802. clearIcon: clearIcon
  26803. }),
  26804. 'class': pickerClassName,
  26805. ref: 'timePicker',
  26806. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getListeners"])(this), {
  26807. change: this.handleChange,
  26808. open: this.handleOpenClose,
  26809. close: this.handleOpenClose
  26810. })
  26811. };
  26812. return h(_vc_time_picker__WEBPACK_IMPORTED_MODULE_3__["default"], timeProps);
  26813. }
  26814. },
  26815. render: function render() {
  26816. var h = arguments[0];
  26817. return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_4__["default"], {
  26818. attrs: {
  26819. componentName: 'TimePicker',
  26820. defaultLocale: this.getDefaultLocale()
  26821. },
  26822. scopedSlots: { 'default': this.renderTimePicker }
  26823. });
  26824. }
  26825. };
  26826. /* istanbul ignore next */
  26827. TimePicker.install = function (Vue) {
  26828. Vue.use(_base__WEBPACK_IMPORTED_MODULE_13__["default"]);
  26829. Vue.component(TimePicker.name, TimePicker);
  26830. };
  26831. /* harmony default export */ __webpack_exports__["default"] = (TimePicker);
  26832. /***/ }),
  26833. /***/ "./components/time-picker/locale/en_US.js":
  26834. /*!************************************************!*\
  26835. !*** ./components/time-picker/locale/en_US.js ***!
  26836. \************************************************/
  26837. /*! exports provided: default */
  26838. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26839. "use strict";
  26840. __webpack_require__.r(__webpack_exports__);
  26841. var locale = {
  26842. placeholder: 'Select time'
  26843. };
  26844. /* harmony default export */ __webpack_exports__["default"] = (locale);
  26845. /***/ }),
  26846. /***/ "./components/time-picker/style/index.js":
  26847. /*!***********************************************!*\
  26848. !*** ./components/time-picker/style/index.js ***!
  26849. \***********************************************/
  26850. /*! no exports provided */
  26851. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26852. "use strict";
  26853. __webpack_require__.r(__webpack_exports__);
  26854. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  26855. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  26856. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/time-picker/style/index.less");
  26857. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  26858. /***/ }),
  26859. /***/ "./components/time-picker/style/index.less":
  26860. /*!*************************************************!*\
  26861. !*** ./components/time-picker/style/index.less ***!
  26862. \*************************************************/
  26863. /*! no static exports found */
  26864. /***/ (function(module, exports, __webpack_require__) {
  26865. // extracted by mini-css-extract-plugin
  26866. /***/ }),
  26867. /***/ "./components/timeline/Timeline.jsx":
  26868. /*!******************************************!*\
  26869. !*** ./components/timeline/Timeline.jsx ***!
  26870. \******************************************/
  26871. /*! exports provided: TimelineProps, default */
  26872. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26873. "use strict";
  26874. __webpack_require__.r(__webpack_exports__);
  26875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineProps", function() { return TimelineProps; });
  26876. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  26877. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  26878. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  26879. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
  26880. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  26881. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  26882. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  26883. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);
  26884. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  26885. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
  26886. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  26887. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  26888. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  26889. /* harmony import */ var _TimelineItem__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TimelineItem */ "./components/timeline/TimelineItem.jsx");
  26890. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  26891. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  26892. var TimelineProps = {
  26893. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  26894. /** 指定最后一个幽灵节点是否存在或内容 */
  26895. pending: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  26896. pendingDot: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  26897. reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  26898. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['left', 'alternate', 'right', ''])
  26899. };
  26900. /* harmony default export */ __webpack_exports__["default"] = ({
  26901. name: 'ATimeline',
  26902. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(TimelineProps, {
  26903. reverse: false,
  26904. mode: ''
  26905. }),
  26906. inject: {
  26907. configProvider: { 'default': function _default() {
  26908. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
  26909. } }
  26910. },
  26911. render: function render() {
  26912. var _classNames;
  26913. var h = arguments[0];
  26914. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
  26915. customizePrefixCls = _getOptionProps.prefixCls,
  26916. reverse = _getOptionProps.reverse,
  26917. mode = _getOptionProps.mode,
  26918. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_getOptionProps, ['prefixCls', 'reverse', 'mode']);
  26919. var getPrefixCls = this.configProvider.getPrefixCls;
  26920. var prefixCls = getPrefixCls('timeline', customizePrefixCls);
  26921. var pendingDot = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'pendingDot');
  26922. var pending = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'pending');
  26923. var pendingNode = typeof pending === 'boolean' ? null : pending;
  26924. var classString = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-pending', !!pending), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-reverse', !!reverse), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-' + mode, !!mode), _classNames));
  26925. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(this.$slots['default']);
  26926. // // Remove falsy items
  26927. // const falsylessItems = filterEmpty(this.$slots.default)
  26928. // const items = falsylessItems.map((item, idx) => {
  26929. // return cloneElement(item, {
  26930. // props: {
  26931. // last: falsylessItems.length - 1 === idx,
  26932. // },
  26933. // })
  26934. // })
  26935. var pendingItem = pending ? h(
  26936. _TimelineItem__WEBPACK_IMPORTED_MODULE_8__["default"],
  26937. {
  26938. attrs: { pending: !!pending }
  26939. },
  26940. [h(
  26941. 'template',
  26942. { slot: 'dot' },
  26943. [pendingDot || h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], {
  26944. attrs: { type: 'loading' }
  26945. })]
  26946. ), pendingNode]
  26947. ) : null;
  26948. var timeLineItems = reverse ? [pendingItem].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(children.reverse())) : [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(children), [pendingItem]);
  26949. var getPositionCls = function getPositionCls(ele, idx) {
  26950. var eleProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getPropsData"])(ele);
  26951. if (mode === 'alternate') {
  26952. if (eleProps.position === 'right') return prefixCls + '-item-right';
  26953. if (eleProps.position === 'left') return prefixCls + '-item-left';
  26954. return idx % 2 === 0 ? prefixCls + '-item-left' : prefixCls + '-item-right';
  26955. }
  26956. if (mode === 'left') return prefixCls + '-item-left';
  26957. if (mode === 'right') return prefixCls + '-item-right';
  26958. if (eleProps.position === 'right') return prefixCls + '-item-right';
  26959. return '';
  26960. };
  26961. // Remove falsy items
  26962. var truthyItems = timeLineItems.filter(function (item) {
  26963. return !!item;
  26964. });
  26965. var itemsCount = truthyItems.length;
  26966. var lastCls = prefixCls + '-item-last';
  26967. var items = truthyItems.map(function (ele, idx) {
  26968. var pendingClass = idx === itemsCount - 2 ? lastCls : '';
  26969. var readyClass = idx === itemsCount - 1 ? lastCls : '';
  26970. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(ele, {
  26971. 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()([!reverse && !!pending ? pendingClass : readyClass, getPositionCls(ele, idx)])
  26972. });
  26973. });
  26974. var timelineProps = {
  26975. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps),
  26976. 'class': classString,
  26977. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this)
  26978. };
  26979. return h(
  26980. 'ul',
  26981. timelineProps,
  26982. [items]
  26983. );
  26984. }
  26985. });
  26986. /***/ }),
  26987. /***/ "./components/timeline/TimelineItem.jsx":
  26988. /*!**********************************************!*\
  26989. !*** ./components/timeline/TimelineItem.jsx ***!
  26990. \**********************************************/
  26991. /*! exports provided: TimeLineItemProps, default */
  26992. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26993. "use strict";
  26994. __webpack_require__.r(__webpack_exports__);
  26995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeLineItemProps", function() { return TimeLineItemProps; });
  26996. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  26997. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  26998. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  26999. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
  27000. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  27001. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  27002. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  27003. var TimeLineItemProps = {
  27004. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  27005. color: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  27006. dot: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  27007. pending: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  27008. position: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['left', 'right', '']).def('')
  27009. };
  27010. /* harmony default export */ __webpack_exports__["default"] = ({
  27011. name: 'ATimelineItem',
  27012. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(TimeLineItemProps, {
  27013. color: 'blue',
  27014. pending: false
  27015. }),
  27016. inject: {
  27017. configProvider: { 'default': function _default() {
  27018. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
  27019. } }
  27020. },
  27021. render: function render() {
  27022. var _classNames, _classNames2;
  27023. var h = arguments[0];
  27024. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this),
  27025. customizePrefixCls = _getOptionProps.prefixCls,
  27026. _getOptionProps$color = _getOptionProps.color,
  27027. color = _getOptionProps$color === undefined ? '' : _getOptionProps$color,
  27028. pending = _getOptionProps.pending;
  27029. var getPrefixCls = this.configProvider.getPrefixCls;
  27030. var prefixCls = getPrefixCls('timeline', customizePrefixCls);
  27031. var dot = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'dot');
  27032. var itemClassName = classnames__WEBPACK_IMPORTED_MODULE_1___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-item-pending', pending), _classNames));
  27033. var dotClassName = classnames__WEBPACK_IMPORTED_MODULE_1___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-item-head', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-item-head-custom', dot), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-item-head-' + color, true), _classNames2));
  27034. var liProps = {
  27035. 'class': itemClassName,
  27036. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
  27037. };
  27038. return h(
  27039. 'li',
  27040. liProps,
  27041. [h('div', { 'class': prefixCls + '-item-tail' }), h(
  27042. 'div',
  27043. {
  27044. 'class': dotClassName,
  27045. style: { borderColor: /blue|red|green|gray/.test(color) ? undefined : color }
  27046. },
  27047. [dot]
  27048. ), h(
  27049. 'div',
  27050. { 'class': prefixCls + '-item-content' },
  27051. [this.$slots['default']]
  27052. )]
  27053. );
  27054. }
  27055. });
  27056. /***/ }),
  27057. /***/ "./components/timeline/index.jsx":
  27058. /*!***************************************!*\
  27059. !*** ./components/timeline/index.jsx ***!
  27060. \***************************************/
  27061. /*! exports provided: TimelineProps, TimeLineItemProps, default */
  27062. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27063. "use strict";
  27064. __webpack_require__.r(__webpack_exports__);
  27065. /* harmony import */ var _Timeline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Timeline */ "./components/timeline/Timeline.jsx");
  27066. /* harmony import */ var _TimelineItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TimelineItem */ "./components/timeline/TimelineItem.jsx");
  27067. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  27068. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimelineProps", function() { return _Timeline__WEBPACK_IMPORTED_MODULE_0__["TimelineProps"]; });
  27069. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimeLineItemProps", function() { return _TimelineItem__WEBPACK_IMPORTED_MODULE_1__["TimeLineItemProps"]; });
  27070. _Timeline__WEBPACK_IMPORTED_MODULE_0__["default"].Item = _TimelineItem__WEBPACK_IMPORTED_MODULE_1__["default"];
  27071. /* istanbul ignore next */
  27072. _Timeline__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  27073. Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
  27074. Vue.component(_Timeline__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Timeline__WEBPACK_IMPORTED_MODULE_0__["default"]);
  27075. Vue.component(_TimelineItem__WEBPACK_IMPORTED_MODULE_1__["default"].name, _TimelineItem__WEBPACK_IMPORTED_MODULE_1__["default"]);
  27076. };
  27077. /* harmony default export */ __webpack_exports__["default"] = (_Timeline__WEBPACK_IMPORTED_MODULE_0__["default"]);
  27078. /***/ }),
  27079. /***/ "./components/timeline/style/index.js":
  27080. /*!********************************************!*\
  27081. !*** ./components/timeline/style/index.js ***!
  27082. \********************************************/
  27083. /*! no exports provided */
  27084. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27085. "use strict";
  27086. __webpack_require__.r(__webpack_exports__);
  27087. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  27088. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  27089. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/timeline/style/index.less");
  27090. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  27091. /***/ }),
  27092. /***/ "./components/timeline/style/index.less":
  27093. /*!**********************************************!*\
  27094. !*** ./components/timeline/style/index.less ***!
  27095. \**********************************************/
  27096. /*! no static exports found */
  27097. /***/ (function(module, exports, __webpack_require__) {
  27098. // extracted by mini-css-extract-plugin
  27099. /***/ }),
  27100. /***/ "./components/tooltip/Tooltip.jsx":
  27101. /*!****************************************!*\
  27102. !*** ./components/tooltip/Tooltip.jsx ***!
  27103. \****************************************/
  27104. /*! exports provided: default */
  27105. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27106. "use strict";
  27107. __webpack_require__.r(__webpack_exports__);
  27108. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  27109. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  27110. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  27111. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  27112. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  27113. /* harmony import */ var _vc_tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-tooltip */ "./components/vc-tooltip/index.js");
  27114. /* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placements */ "./components/tooltip/placements.js");
  27115. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  27116. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  27117. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  27118. /* harmony import */ var _abstractTooltipProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./abstractTooltipProps */ "./components/tooltip/abstractTooltipProps.js");
  27119. var splitObject = function splitObject(obj, keys) {
  27120. var picked = {};
  27121. var omitted = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, obj);
  27122. keys.forEach(function (key) {
  27123. if (obj && key in obj) {
  27124. picked[key] = obj[key];
  27125. delete omitted[key];
  27126. }
  27127. });
  27128. return { picked: picked, omitted: omitted };
  27129. };
  27130. var props = Object(_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_8__["default"])();
  27131. /* harmony default export */ __webpack_exports__["default"] = ({
  27132. name: 'ATooltip',
  27133. model: {
  27134. prop: 'visible',
  27135. event: 'visibleChange'
  27136. },
  27137. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  27138. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any
  27139. }),
  27140. inject: {
  27141. configProvider: { 'default': function _default() {
  27142. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
  27143. } }
  27144. },
  27145. data: function data() {
  27146. return {
  27147. sVisible: !!this.$props.visible || !!this.$props.defaultVisible
  27148. };
  27149. },
  27150. watch: {
  27151. visible: function visible(val) {
  27152. this.sVisible = val;
  27153. }
  27154. },
  27155. methods: {
  27156. onVisibleChange: function onVisibleChange(visible) {
  27157. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'visible')) {
  27158. this.sVisible = this.isNoTitle() ? false : visible;
  27159. }
  27160. if (!this.isNoTitle()) {
  27161. this.$emit('visibleChange', visible);
  27162. }
  27163. },
  27164. getPopupDomNode: function getPopupDomNode() {
  27165. return this.$refs.tooltip.getPopupDomNode();
  27166. },
  27167. getPlacements: function getPlacements() {
  27168. var _$props = this.$props,
  27169. builtinPlacements = _$props.builtinPlacements,
  27170. arrowPointAtCenter = _$props.arrowPointAtCenter,
  27171. autoAdjustOverflow = _$props.autoAdjustOverflow;
  27172. return builtinPlacements || Object(_placements__WEBPACK_IMPORTED_MODULE_4__["default"])({
  27173. arrowPointAtCenter: arrowPointAtCenter,
  27174. verticalArrowShift: 8,
  27175. autoAdjustOverflow: autoAdjustOverflow
  27176. });
  27177. },
  27178. // Fix Tooltip won't hide at disabled button
  27179. // mouse events don't trigger at disabled button in Chrome
  27180. // https://github.com/react-component/tooltip/issues/18
  27181. getDisabledCompatibleChildren: function getDisabledCompatibleChildren(ele) {
  27182. var h = this.$createElement;
  27183. var options = ele.componentOptions && ele.componentOptions.Ctor.options || {};
  27184. if ((options.__ANT_BUTTON === true || options.__ANT_SWITCH === true || options.__ANT_CHECKBOX === true) && (ele.componentOptions.propsData.disabled || ele.componentOptions.propsData.disabled === '') || ele.tag === 'button' && ele.data && ele.data.attrs && ele.data.attrs.disabled !== undefined) {
  27185. // Pick some layout related style properties up to span
  27186. // Prevent layout bugs like https://github.com/ant-design/ant-design/issues/5254
  27187. var _splitObject = splitObject(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getStyle"])(ele), ['position', 'left', 'right', 'top', 'bottom', 'float', 'display', 'zIndex']),
  27188. picked = _splitObject.picked,
  27189. omitted = _splitObject.omitted;
  27190. var spanStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
  27191. display: 'inline-block' }, picked, {
  27192. cursor: 'not-allowed',
  27193. width: ele.componentOptions.propsData.block ? '100%' : null
  27194. });
  27195. var buttonStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, omitted, {
  27196. pointerEvents: 'none'
  27197. });
  27198. var spanCls = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getClass"])(ele);
  27199. var child = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(ele, {
  27200. style: buttonStyle,
  27201. 'class': null
  27202. });
  27203. return h(
  27204. 'span',
  27205. { style: spanStyle, 'class': spanCls },
  27206. [child]
  27207. );
  27208. }
  27209. return ele;
  27210. },
  27211. isNoTitle: function isNoTitle() {
  27212. var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'title');
  27213. return !title && title !== 0;
  27214. },
  27215. getOverlay: function getOverlay() {
  27216. var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'title');
  27217. if (title === 0) {
  27218. return title;
  27219. }
  27220. return title || '';
  27221. },
  27222. // 动态设置动画点
  27223. onPopupAlign: function onPopupAlign(domNode, align) {
  27224. var placements = this.getPlacements();
  27225. // 当前返回的位置
  27226. var placement = Object.keys(placements).filter(function (key) {
  27227. return placements[key].points[0] === align.points[0] && placements[key].points[1] === align.points[1];
  27228. })[0];
  27229. if (!placement) {
  27230. return;
  27231. }
  27232. // 根据当前坐标设置动画点
  27233. var rect = domNode.getBoundingClientRect();
  27234. var transformOrigin = {
  27235. top: '50%',
  27236. left: '50%'
  27237. };
  27238. if (placement.indexOf('top') >= 0 || placement.indexOf('Bottom') >= 0) {
  27239. transformOrigin.top = rect.height - align.offset[1] + 'px';
  27240. } else if (placement.indexOf('Top') >= 0 || placement.indexOf('bottom') >= 0) {
  27241. transformOrigin.top = -align.offset[1] + 'px';
  27242. }
  27243. if (placement.indexOf('left') >= 0 || placement.indexOf('Right') >= 0) {
  27244. transformOrigin.left = rect.width - align.offset[0] + 'px';
  27245. } else if (placement.indexOf('right') >= 0 || placement.indexOf('Left') >= 0) {
  27246. transformOrigin.left = -align.offset[0] + 'px';
  27247. }
  27248. domNode.style.transformOrigin = transformOrigin.left + ' ' + transformOrigin.top;
  27249. }
  27250. },
  27251. render: function render() {
  27252. var h = arguments[0];
  27253. var $props = this.$props,
  27254. $data = this.$data,
  27255. $slots = this.$slots;
  27256. var customizePrefixCls = $props.prefixCls,
  27257. openClassName = $props.openClassName,
  27258. getPopupContainer = $props.getPopupContainer;
  27259. var getContextPopupContainer = this.configProvider.getPopupContainer;
  27260. var getPrefixCls = this.configProvider.getPrefixCls;
  27261. var prefixCls = getPrefixCls('tooltip', customizePrefixCls);
  27262. var children = ($slots['default'] || []).filter(function (c) {
  27263. return c.tag || c.text.trim() !== '';
  27264. });
  27265. children = children.length === 1 ? children[0] : children;
  27266. var sVisible = $data.sVisible;
  27267. // Hide tooltip when there is no title
  27268. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'visible') && this.isNoTitle()) {
  27269. sVisible = false;
  27270. }
  27271. if (!children) {
  27272. return null;
  27273. }
  27274. var child = this.getDisabledCompatibleChildren(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(children) ? children : h('span', [children]));
  27275. var childCls = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, openClassName || prefixCls + '-open', true);
  27276. var tooltipProps = {
  27277. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, $props, {
  27278. prefixCls: prefixCls,
  27279. getTooltipContainer: getPopupContainer || getContextPopupContainer,
  27280. builtinPlacements: this.getPlacements(),
  27281. overlay: this.getOverlay(),
  27282. visible: sVisible
  27283. }),
  27284. ref: 'tooltip',
  27285. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this), {
  27286. visibleChange: this.onVisibleChange,
  27287. popupAlign: this.onPopupAlign
  27288. })
  27289. };
  27290. return h(
  27291. _vc_tooltip__WEBPACK_IMPORTED_MODULE_3__["default"],
  27292. tooltipProps,
  27293. [sVisible ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, { 'class': childCls }) : child]
  27294. );
  27295. }
  27296. });
  27297. /***/ }),
  27298. /***/ "./components/tooltip/abstractTooltipProps.js":
  27299. /*!****************************************************!*\
  27300. !*** ./components/tooltip/abstractTooltipProps.js ***!
  27301. \****************************************************/
  27302. /*! exports provided: default */
  27303. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27304. "use strict";
  27305. __webpack_require__.r(__webpack_exports__);
  27306. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  27307. var triggerType = _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['hover', 'focus', 'click', 'contextmenu']);
  27308. /* harmony default export */ __webpack_exports__["default"] = (function () {
  27309. return {
  27310. trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([triggerType, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(triggerType)]).def('hover'),
  27311. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  27312. defaultVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  27313. placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['top', 'left', 'right', 'bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight', 'leftTop', 'leftBottom', 'rightTop', 'rightBottom']).def('top'),
  27314. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('zoom-big-fast'),
  27315. // onVisibleChange: PropTypes.func,
  27316. overlayStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
  27317. return {};
  27318. }),
  27319. overlayClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  27320. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  27321. mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.1),
  27322. mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.1),
  27323. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  27324. arrowPointAtCenter: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  27325. autoAdjustOverflow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object]).def(true),
  27326. destroyTooltipOnHide: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  27327. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
  27328. return {};
  27329. }),
  27330. builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object
  27331. };
  27332. });
  27333. /***/ }),
  27334. /***/ "./components/tooltip/index.js":
  27335. /*!*************************************!*\
  27336. !*** ./components/tooltip/index.js ***!
  27337. \*************************************/
  27338. /*! exports provided: default */
  27339. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27340. "use strict";
  27341. __webpack_require__.r(__webpack_exports__);
  27342. /* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tooltip */ "./components/tooltip/Tooltip.jsx");
  27343. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  27344. /* istanbul ignore next */
  27345. _Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  27346. Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
  27347. Vue.component(_Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);
  27348. };
  27349. /* harmony default export */ __webpack_exports__["default"] = (_Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);
  27350. /***/ }),
  27351. /***/ "./components/tooltip/placements.js":
  27352. /*!******************************************!*\
  27353. !*** ./components/tooltip/placements.js ***!
  27354. \******************************************/
  27355. /*! exports provided: getOverflowOptions, default */
  27356. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27357. "use strict";
  27358. __webpack_require__.r(__webpack_exports__);
  27359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOverflowOptions", function() { return getOverflowOptions; });
  27360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getPlacements; });
  27361. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  27362. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  27363. /* harmony import */ var _vc_tooltip_placements__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-tooltip/placements */ "./components/vc-tooltip/placements.js");
  27364. var autoAdjustOverflowEnabled = {
  27365. adjustX: 1,
  27366. adjustY: 1
  27367. };
  27368. var autoAdjustOverflowDisabled = {
  27369. adjustX: 0,
  27370. adjustY: 0
  27371. };
  27372. var targetOffset = [0, 0];
  27373. function getOverflowOptions(autoAdjustOverflow) {
  27374. if (typeof autoAdjustOverflow === 'boolean') {
  27375. return autoAdjustOverflow ? autoAdjustOverflowEnabled : autoAdjustOverflowDisabled;
  27376. }
  27377. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, autoAdjustOverflowDisabled, autoAdjustOverflow);
  27378. }
  27379. function getPlacements(config) {
  27380. var _config$arrowWidth = config.arrowWidth,
  27381. arrowWidth = _config$arrowWidth === undefined ? 5 : _config$arrowWidth,
  27382. _config$horizontalArr = config.horizontalArrowShift,
  27383. horizontalArrowShift = _config$horizontalArr === undefined ? 16 : _config$horizontalArr,
  27384. _config$verticalArrow = config.verticalArrowShift,
  27385. verticalArrowShift = _config$verticalArrow === undefined ? 12 : _config$verticalArrow,
  27386. _config$autoAdjustOve = config.autoAdjustOverflow,
  27387. autoAdjustOverflow = _config$autoAdjustOve === undefined ? true : _config$autoAdjustOve;
  27388. var placementMap = {
  27389. left: {
  27390. points: ['cr', 'cl'],
  27391. offset: [-4, 0]
  27392. },
  27393. right: {
  27394. points: ['cl', 'cr'],
  27395. offset: [4, 0]
  27396. },
  27397. top: {
  27398. points: ['bc', 'tc'],
  27399. offset: [0, -4]
  27400. },
  27401. bottom: {
  27402. points: ['tc', 'bc'],
  27403. offset: [0, 4]
  27404. },
  27405. topLeft: {
  27406. points: ['bl', 'tc'],
  27407. offset: [-(horizontalArrowShift + arrowWidth), -4]
  27408. },
  27409. leftTop: {
  27410. points: ['tr', 'cl'],
  27411. offset: [-4, -(verticalArrowShift + arrowWidth)]
  27412. },
  27413. topRight: {
  27414. points: ['br', 'tc'],
  27415. offset: [horizontalArrowShift + arrowWidth, -4]
  27416. },
  27417. rightTop: {
  27418. points: ['tl', 'cr'],
  27419. offset: [4, -(verticalArrowShift + arrowWidth)]
  27420. },
  27421. bottomRight: {
  27422. points: ['tr', 'bc'],
  27423. offset: [horizontalArrowShift + arrowWidth, 4]
  27424. },
  27425. rightBottom: {
  27426. points: ['bl', 'cr'],
  27427. offset: [4, verticalArrowShift + arrowWidth]
  27428. },
  27429. bottomLeft: {
  27430. points: ['tl', 'bc'],
  27431. offset: [-(horizontalArrowShift + arrowWidth), 4]
  27432. },
  27433. leftBottom: {
  27434. points: ['br', 'cl'],
  27435. offset: [-4, verticalArrowShift + arrowWidth]
  27436. }
  27437. };
  27438. Object.keys(placementMap).forEach(function (key) {
  27439. placementMap[key] = config.arrowPointAtCenter ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, placementMap[key], {
  27440. overflow: getOverflowOptions(autoAdjustOverflow),
  27441. targetOffset: targetOffset
  27442. }) : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_tooltip_placements__WEBPACK_IMPORTED_MODULE_1__["placements"][key], {
  27443. overflow: getOverflowOptions(autoAdjustOverflow)
  27444. });
  27445. placementMap[key].ignoreShake = true;
  27446. });
  27447. return placementMap;
  27448. }
  27449. /***/ }),
  27450. /***/ "./components/tooltip/style/index.js":
  27451. /*!*******************************************!*\
  27452. !*** ./components/tooltip/style/index.js ***!
  27453. \*******************************************/
  27454. /*! no exports provided */
  27455. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27456. "use strict";
  27457. __webpack_require__.r(__webpack_exports__);
  27458. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  27459. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  27460. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tooltip/style/index.less");
  27461. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  27462. /***/ }),
  27463. /***/ "./components/tooltip/style/index.less":
  27464. /*!*********************************************!*\
  27465. !*** ./components/tooltip/style/index.less ***!
  27466. \*********************************************/
  27467. /*! no static exports found */
  27468. /***/ (function(module, exports, __webpack_require__) {
  27469. // extracted by mini-css-extract-plugin
  27470. /***/ }),
  27471. /***/ "./components/transfer/ListItem.jsx":
  27472. /*!******************************************!*\
  27473. !*** ./components/transfer/ListItem.jsx ***!
  27474. \******************************************/
  27475. /*! exports provided: default */
  27476. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27477. "use strict";
  27478. __webpack_require__.r(__webpack_exports__);
  27479. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  27480. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  27481. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  27482. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  27483. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  27484. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  27485. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  27486. /* harmony import */ var _vc_lazy_load__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-lazy-load */ "./components/vc-lazy-load/index.js");
  27487. /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
  27488. function noop() {}
  27489. /* harmony default export */ __webpack_exports__["default"] = ({
  27490. name: 'ListItem',
  27491. props: {
  27492. renderedText: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  27493. renderedEl: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  27494. item: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  27495. lazy: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object]),
  27496. checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  27497. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  27498. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
  27499. },
  27500. render: function render() {
  27501. var _classNames,
  27502. _this = this;
  27503. var h = arguments[0];
  27504. var _$props = this.$props,
  27505. renderedText = _$props.renderedText,
  27506. renderedEl = _$props.renderedEl,
  27507. item = _$props.item,
  27508. lazy = _$props.lazy,
  27509. checked = _$props.checked,
  27510. disabled = _$props.disabled,
  27511. prefixCls = _$props.prefixCls;
  27512. var className = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-content-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-content-item-disabled', disabled || item.disabled), _classNames));
  27513. var title = void 0;
  27514. if (typeof renderedText === 'string' || typeof renderedText === 'number') {
  27515. title = String(renderedText);
  27516. }
  27517. var listItem = h(
  27518. 'li',
  27519. {
  27520. 'class': className,
  27521. attrs: { title: title
  27522. },
  27523. on: {
  27524. 'click': disabled || item.disabled ? noop : function () {
  27525. _this.$emit('click', item);
  27526. }
  27527. }
  27528. },
  27529. [h(_checkbox__WEBPACK_IMPORTED_MODULE_5__["default"], {
  27530. attrs: { checked: checked, disabled: disabled || item.disabled }
  27531. }), h(
  27532. 'span',
  27533. { 'class': prefixCls + '-content-item-text' },
  27534. [renderedEl]
  27535. )]
  27536. );
  27537. var children = null;
  27538. if (lazy) {
  27539. var lazyProps = {
  27540. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  27541. height: 32,
  27542. offset: 500,
  27543. throttle: 0,
  27544. debounce: false
  27545. }, lazy, {
  27546. _propsSymbol: Symbol()
  27547. })
  27548. };
  27549. children = h(
  27550. _vc_lazy_load__WEBPACK_IMPORTED_MODULE_4__["default"],
  27551. lazyProps,
  27552. [listItem]
  27553. );
  27554. } else {
  27555. children = listItem;
  27556. }
  27557. return children;
  27558. }
  27559. });
  27560. /***/ }),
  27561. /***/ "./components/transfer/index.jsx":
  27562. /*!***************************************!*\
  27563. !*** ./components/transfer/index.jsx ***!
  27564. \***************************************/
  27565. /*! exports provided: TransferDirection, TransferItem, TransferProps, TransferLocale, default */
  27566. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27567. "use strict";
  27568. __webpack_require__.r(__webpack_exports__);
  27569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferDirection", function() { return TransferDirection; });
  27570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferItem", function() { return TransferItem; });
  27571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferProps", function() { return TransferProps; });
  27572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferLocale", function() { return TransferLocale; });
  27573. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  27574. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  27575. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  27576. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  27577. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  27578. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  27579. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  27580. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  27581. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  27582. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  27583. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
  27584. /* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./list */ "./components/transfer/list.jsx");
  27585. /* harmony import */ var _operation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./operation */ "./components/transfer/operation.jsx");
  27586. /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
  27587. /* harmony import */ var _locale_provider_default__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../locale-provider/default */ "./components/locale-provider/default.js");
  27588. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  27589. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  27590. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  27591. var TransferDirection = 'left' | 'right';
  27592. var TransferItem = {
  27593. key: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
  27594. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
  27595. description: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  27596. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
  27597. };
  27598. var TransferProps = {
  27599. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  27600. dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape(TransferItem).loose),
  27601. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].boolean,
  27602. targetKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
  27603. selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
  27604. render: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  27605. listStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
  27606. operationStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  27607. titles: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
  27608. operations: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
  27609. showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  27610. filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  27611. searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  27612. notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  27613. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  27614. rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  27615. lazy: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool]),
  27616. showSelectAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
  27617. };
  27618. var TransferLocale = {
  27619. titles: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
  27620. notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  27621. itemUnit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  27622. itemsUnit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
  27623. };
  27624. var Transfer = {
  27625. name: 'ATransfer',
  27626. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
  27627. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(TransferProps, {
  27628. dataSource: [],
  27629. locale: {},
  27630. showSearch: false,
  27631. listStyle: function listStyle() {}
  27632. }),
  27633. inject: {
  27634. configProvider: { 'default': function _default() {
  27635. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_11__["ConfigConsumerProps"];
  27636. } }
  27637. },
  27638. data: function data() {
  27639. // vue 中 通过slot,不方便传递,保留notFoundContent及searchPlaceholder
  27640. // warning(
  27641. // !(getComponentFromProp(this, 'notFoundContent') || hasProp(this, 'searchPlaceholder')),
  27642. // 'Transfer[notFoundContent] and Transfer[searchPlaceholder] will be removed, ' +
  27643. // 'please use Transfer[locale] instead.',
  27644. // )
  27645. var _selectedKeys = this.selectedKeys,
  27646. selectedKeys = _selectedKeys === undefined ? [] : _selectedKeys,
  27647. _targetKeys = this.targetKeys,
  27648. targetKeys = _targetKeys === undefined ? [] : _targetKeys;
  27649. return {
  27650. leftFilter: '',
  27651. rightFilter: '',
  27652. sourceSelectedKeys: selectedKeys.filter(function (key) {
  27653. return targetKeys.indexOf(key) === -1;
  27654. }),
  27655. targetSelectedKeys: selectedKeys.filter(function (key) {
  27656. return targetKeys.indexOf(key) > -1;
  27657. })
  27658. };
  27659. },
  27660. mounted: function mounted() {
  27661. // this.currentProps = { ...this.$props }
  27662. },
  27663. watch: {
  27664. targetKeys: function targetKeys() {
  27665. this.updateState();
  27666. if (this.selectedKeys) {
  27667. var targetKeys = this.targetKeys || [];
  27668. this.setState({
  27669. sourceSelectedKeys: this.selectedKeys.filter(function (key) {
  27670. return !targetKeys.includes(key);
  27671. }),
  27672. targetSelectedKeys: this.selectedKeys.filter(function (key) {
  27673. return targetKeys.includes(key);
  27674. })
  27675. });
  27676. }
  27677. },
  27678. dataSource: function dataSource() {
  27679. this.updateState();
  27680. },
  27681. selectedKeys: function selectedKeys() {
  27682. if (this.selectedKeys) {
  27683. var targetKeys = this.targetKeys || [];
  27684. this.setState({
  27685. sourceSelectedKeys: this.selectedKeys.filter(function (key) {
  27686. return !targetKeys.includes(key);
  27687. }),
  27688. targetSelectedKeys: this.selectedKeys.filter(function (key) {
  27689. return targetKeys.includes(key);
  27690. })
  27691. });
  27692. }
  27693. }
  27694. },
  27695. methods: {
  27696. getSelectedKeysName: function getSelectedKeysName(direction) {
  27697. return direction === 'left' ? 'sourceSelectedKeys' : 'targetSelectedKeys';
  27698. },
  27699. getTitles: function getTitles(transferLocale) {
  27700. if (this.titles) {
  27701. return this.titles;
  27702. }
  27703. return transferLocale.titles || ['', ''];
  27704. },
  27705. getLocale: function getLocale(transferLocale, renderEmpty) {
  27706. var h = this.$createElement;
  27707. // Keep old locale props still working.
  27708. var oldLocale = {
  27709. notFoundContent: renderEmpty(h, 'Transfer')
  27710. };
  27711. var notFoundContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'notFoundContent');
  27712. if (notFoundContent) {
  27713. oldLocale.notFoundContent = notFoundContent;
  27714. }
  27715. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'searchPlaceholder')) {
  27716. oldLocale.searchPlaceholder = this.$props.searchPlaceholder;
  27717. }
  27718. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, transferLocale, oldLocale, this.$props.locale);
  27719. },
  27720. updateState: function updateState() {
  27721. var sourceSelectedKeys = this.sourceSelectedKeys,
  27722. targetSelectedKeys = this.targetSelectedKeys;
  27723. this.separatedDataSource = null;
  27724. if (!this.selectedKeys) {
  27725. // clear key nolonger existed
  27726. // clear checkedKeys according to targetKeys
  27727. var dataSource = this.dataSource,
  27728. _targetKeys2 = this.targetKeys,
  27729. targetKeys = _targetKeys2 === undefined ? [] : _targetKeys2;
  27730. var newSourceSelectedKeys = [];
  27731. var newTargetSelectedKeys = [];
  27732. dataSource.forEach(function (_ref) {
  27733. var key = _ref.key;
  27734. if (sourceSelectedKeys.includes(key) && !targetKeys.includes(key)) {
  27735. newSourceSelectedKeys.push(key);
  27736. }
  27737. if (targetSelectedKeys.includes(key) && targetKeys.includes(key)) {
  27738. newTargetSelectedKeys.push(key);
  27739. }
  27740. });
  27741. this.setState({
  27742. sourceSelectedKeys: newSourceSelectedKeys,
  27743. targetSelectedKeys: newTargetSelectedKeys
  27744. });
  27745. }
  27746. },
  27747. moveTo: function moveTo(direction) {
  27748. var _$props = this.$props,
  27749. _$props$targetKeys = _$props.targetKeys,
  27750. targetKeys = _$props$targetKeys === undefined ? [] : _$props$targetKeys,
  27751. _$props$dataSource = _$props.dataSource,
  27752. dataSource = _$props$dataSource === undefined ? [] : _$props$dataSource;
  27753. var sourceSelectedKeys = this.sourceSelectedKeys,
  27754. targetSelectedKeys = this.targetSelectedKeys;
  27755. var moveKeys = direction === 'right' ? sourceSelectedKeys : targetSelectedKeys;
  27756. // filter the disabled options
  27757. var newMoveKeys = moveKeys.filter(function (key) {
  27758. return !dataSource.some(function (data) {
  27759. return !!(key === data.key && data.disabled);
  27760. });
  27761. });
  27762. // move items to target box
  27763. var newTargetKeys = direction === 'right' ? newMoveKeys.concat(targetKeys) : targetKeys.filter(function (targetKey) {
  27764. return newMoveKeys.indexOf(targetKey) === -1;
  27765. });
  27766. // empty checked keys
  27767. var oppositeDirection = direction === 'right' ? 'left' : 'right';
  27768. this.setState(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getSelectedKeysName(oppositeDirection), []));
  27769. this.handleSelectChange(oppositeDirection, []);
  27770. this.$emit('change', newTargetKeys, direction, newMoveKeys);
  27771. },
  27772. moveToLeft: function moveToLeft() {
  27773. this.moveTo('left');
  27774. },
  27775. moveToRight: function moveToRight() {
  27776. this.moveTo('right');
  27777. },
  27778. onItemSelectAll: function onItemSelectAll(direction, selectedKeys, checkAll) {
  27779. var originalSelectedKeys = this.$data[this.getSelectedKeysName(direction)] || [];
  27780. var mergedCheckedKeys = [];
  27781. if (checkAll) {
  27782. // Merge current keys with origin key
  27783. mergedCheckedKeys = Array.from(new Set([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(originalSelectedKeys), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(selectedKeys))));
  27784. } else {
  27785. // Remove current keys from origin keys
  27786. mergedCheckedKeys = originalSelectedKeys.filter(function (key) {
  27787. return selectedKeys.indexOf(key) === -1;
  27788. });
  27789. }
  27790. this.handleSelectChange(direction, mergedCheckedKeys);
  27791. if (!this.$props.selectedKeys) {
  27792. this.setState(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getSelectedKeysName(direction), mergedCheckedKeys));
  27793. }
  27794. },
  27795. handleSelectAll: function handleSelectAll(direction, filteredDataSource, checkAll) {
  27796. this.onItemSelectAll(direction, filteredDataSource.map(function (_ref2) {
  27797. var key = _ref2.key;
  27798. return key;
  27799. }), !checkAll);
  27800. },
  27801. // [Legacy] Old prop `body` pass origin check as arg. It's confusing.
  27802. // TODO: Remove this in next version.
  27803. handleLeftSelectAll: function handleLeftSelectAll(filteredDataSource, checkAll) {
  27804. return this.handleSelectAll('left', filteredDataSource, !checkAll);
  27805. },
  27806. handleRightSelectAll: function handleRightSelectAll(filteredDataSource, checkAll) {
  27807. return this.handleSelectAll('right', filteredDataSource, !checkAll);
  27808. },
  27809. onLeftItemSelectAll: function onLeftItemSelectAll(selectedKeys, checkAll) {
  27810. return this.onItemSelectAll('left', selectedKeys, checkAll);
  27811. },
  27812. onRightItemSelectAll: function onRightItemSelectAll(selectedKeys, checkAll) {
  27813. return this.onItemSelectAll('right', selectedKeys, checkAll);
  27814. },
  27815. handleFilter: function handleFilter(direction, e) {
  27816. var value = e.target.value;
  27817. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this).searchChange) {
  27818. Object(_util_warning__WEBPACK_IMPORTED_MODULE_12__["default"])(false, 'Transfer', '`searchChange` in Transfer is deprecated. Please use `search` instead.');
  27819. this.$emit('searchChange', direction, e);
  27820. }
  27821. this.$emit('search', direction, value);
  27822. },
  27823. handleLeftFilter: function handleLeftFilter(e) {
  27824. this.handleFilter('left', e);
  27825. },
  27826. handleRightFilter: function handleRightFilter(e) {
  27827. this.handleFilter('right', e);
  27828. },
  27829. handleClear: function handleClear(direction) {
  27830. this.$emit('search', direction, '');
  27831. },
  27832. handleLeftClear: function handleLeftClear() {
  27833. this.handleClear('left');
  27834. },
  27835. handleRightClear: function handleRightClear() {
  27836. this.handleClear('right');
  27837. },
  27838. onItemSelect: function onItemSelect(direction, selectedKey, checked) {
  27839. var sourceSelectedKeys = this.sourceSelectedKeys,
  27840. targetSelectedKeys = this.targetSelectedKeys;
  27841. var holder = direction === 'left' ? [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(sourceSelectedKeys)) : [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(targetSelectedKeys));
  27842. var index = holder.indexOf(selectedKey);
  27843. if (index > -1) {
  27844. holder.splice(index, 1);
  27845. }
  27846. if (checked) {
  27847. holder.push(selectedKey);
  27848. }
  27849. this.handleSelectChange(direction, holder);
  27850. if (!this.selectedKeys) {
  27851. this.setState(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getSelectedKeysName(direction), holder));
  27852. }
  27853. },
  27854. handleSelect: function handleSelect(direction, selectedItem, checked) {
  27855. Object(_util_warning__WEBPACK_IMPORTED_MODULE_12__["default"])(false, 'Transfer', '`handleSelect` will be removed, please use `onSelect` instead.');
  27856. this.onItemSelect(direction, selectedItem.key, checked);
  27857. },
  27858. handleLeftSelect: function handleLeftSelect(selectedItem, checked) {
  27859. return this.handleSelect('left', selectedItem, checked);
  27860. },
  27861. handleRightSelect: function handleRightSelect(selectedItem, checked) {
  27862. return this.handleSelect('right', selectedItem, checked);
  27863. },
  27864. onLeftItemSelect: function onLeftItemSelect(selectedKey, checked) {
  27865. return this.onItemSelect('left', selectedKey, checked);
  27866. },
  27867. onRightItemSelect: function onRightItemSelect(selectedKey, checked) {
  27868. return this.onItemSelect('right', selectedKey, checked);
  27869. },
  27870. handleScroll: function handleScroll(direction, e) {
  27871. this.$emit('scroll', direction, e);
  27872. },
  27873. handleLeftScroll: function handleLeftScroll(e) {
  27874. this.handleScroll('left', e);
  27875. },
  27876. handleRightScroll: function handleRightScroll(e) {
  27877. this.handleScroll('right', e);
  27878. },
  27879. handleSelectChange: function handleSelectChange(direction, holder) {
  27880. var sourceSelectedKeys = this.sourceSelectedKeys,
  27881. targetSelectedKeys = this.targetSelectedKeys;
  27882. if (direction === 'left') {
  27883. this.$emit('selectChange', holder, targetSelectedKeys);
  27884. } else {
  27885. this.$emit('selectChange', sourceSelectedKeys, holder);
  27886. }
  27887. },
  27888. handleListStyle: function handleListStyle(listStyle, direction) {
  27889. if (typeof listStyle === 'function') {
  27890. return listStyle({ direction: direction });
  27891. }
  27892. return listStyle;
  27893. },
  27894. separateDataSource: function separateDataSource() {
  27895. var _$props2 = this.$props,
  27896. dataSource = _$props2.dataSource,
  27897. rowKey = _$props2.rowKey,
  27898. _$props2$targetKeys = _$props2.targetKeys,
  27899. targetKeys = _$props2$targetKeys === undefined ? [] : _$props2$targetKeys;
  27900. var leftDataSource = [];
  27901. var rightDataSource = new Array(targetKeys.length);
  27902. dataSource.forEach(function (record) {
  27903. if (rowKey) {
  27904. record.key = rowKey(record);
  27905. }
  27906. // rightDataSource should be ordered by targetKeys
  27907. // leftDataSource should be ordered by dataSource
  27908. var indexOfKey = targetKeys.indexOf(record.key);
  27909. if (indexOfKey !== -1) {
  27910. rightDataSource[indexOfKey] = record;
  27911. } else {
  27912. leftDataSource.push(record);
  27913. }
  27914. });
  27915. return {
  27916. leftDataSource: leftDataSource,
  27917. rightDataSource: rightDataSource
  27918. };
  27919. },
  27920. renderTransfer: function renderTransfer(transferLocale) {
  27921. var _classNames;
  27922. var h = this.$createElement;
  27923. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
  27924. var customizePrefixCls = props.prefixCls,
  27925. disabled = props.disabled,
  27926. _props$operations = props.operations,
  27927. operations = _props$operations === undefined ? [] : _props$operations,
  27928. showSearch = props.showSearch,
  27929. listStyle = props.listStyle,
  27930. operationStyle = props.operationStyle,
  27931. filterOption = props.filterOption,
  27932. lazy = props.lazy,
  27933. showSelectAll = props.showSelectAll;
  27934. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'children', {}, false);
  27935. var getPrefixCls = this.configProvider.getPrefixCls;
  27936. var prefixCls = getPrefixCls('transfer', customizePrefixCls);
  27937. var renderEmpty = this.configProvider.renderEmpty;
  27938. var locale = this.getLocale(transferLocale, renderEmpty);
  27939. var sourceSelectedKeys = this.sourceSelectedKeys,
  27940. targetSelectedKeys = this.targetSelectedKeys,
  27941. $scopedSlots = this.$scopedSlots;
  27942. var body = $scopedSlots.body,
  27943. footer = $scopedSlots.footer;
  27944. var renderItem = props.render;
  27945. var _separateDataSource = this.separateDataSource(),
  27946. leftDataSource = _separateDataSource.leftDataSource,
  27947. rightDataSource = _separateDataSource.rightDataSource;
  27948. var leftActive = targetSelectedKeys.length > 0;
  27949. var rightActive = sourceSelectedKeys.length > 0;
  27950. var cls = classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-customize-list', !!children), _classNames));
  27951. var titles = this.getTitles(locale);
  27952. return h(
  27953. 'div',
  27954. { 'class': cls },
  27955. [h(_list__WEBPACK_IMPORTED_MODULE_7__["default"], {
  27956. key: 'leftList',
  27957. attrs: { prefixCls: prefixCls + '-list',
  27958. titleText: titles[0],
  27959. dataSource: leftDataSource,
  27960. filterOption: filterOption,
  27961. checkedKeys: sourceSelectedKeys,
  27962. handleFilter: this.handleLeftFilter,
  27963. handleClear: this.handleLeftClear,
  27964. handleSelect: this.handleLeftSelect,
  27965. handleSelectAll: this.handleLeftSelectAll,
  27966. renderItem: renderItem,
  27967. showSearch: showSearch,
  27968. body: body,
  27969. renderList: children,
  27970. footer: footer,
  27971. lazy: lazy,
  27972. disabled: disabled,
  27973. direction: 'left',
  27974. showSelectAll: showSelectAll,
  27975. itemUnit: locale.itemUnit,
  27976. itemsUnit: locale.itemsUnit,
  27977. notFoundContent: locale.notFoundContent,
  27978. searchPlaceholder: locale.searchPlaceholder
  27979. },
  27980. style: this.handleListStyle(listStyle, 'left'), on: {
  27981. 'itemSelect': this.onLeftItemSelect,
  27982. 'itemSelectAll': this.onLeftItemSelectAll,
  27983. 'scroll': this.handleLeftScroll
  27984. }
  27985. }), h(_operation__WEBPACK_IMPORTED_MODULE_8__["default"], {
  27986. key: 'operation',
  27987. 'class': prefixCls + '-operation',
  27988. attrs: { rightActive: rightActive,
  27989. rightArrowText: operations[0],
  27990. moveToRight: this.moveToRight,
  27991. leftActive: leftActive,
  27992. leftArrowText: operations[1],
  27993. moveToLeft: this.moveToLeft,
  27994. disabled: disabled
  27995. },
  27996. style: operationStyle }), h(_list__WEBPACK_IMPORTED_MODULE_7__["default"], {
  27997. key: 'rightList',
  27998. attrs: { prefixCls: prefixCls + '-list',
  27999. titleText: titles[1],
  28000. dataSource: rightDataSource,
  28001. filterOption: filterOption,
  28002. checkedKeys: targetSelectedKeys,
  28003. handleFilter: this.handleRightFilter,
  28004. handleClear: this.handleRightClear,
  28005. handleSelect: this.handleRightSelect,
  28006. handleSelectAll: this.handleRightSelectAll,
  28007. renderItem: renderItem,
  28008. showSearch: showSearch,
  28009. body: body,
  28010. renderList: children,
  28011. footer: footer,
  28012. lazy: lazy,
  28013. disabled: disabled,
  28014. direction: 'right',
  28015. showSelectAll: showSelectAll,
  28016. itemUnit: locale.itemUnit,
  28017. itemsUnit: locale.itemsUnit,
  28018. notFoundContent: locale.notFoundContent,
  28019. searchPlaceholder: locale.searchPlaceholder
  28020. },
  28021. style: this.handleListStyle(listStyle, 'right'), on: {
  28022. 'itemSelect': this.onRightItemSelect,
  28023. 'itemSelectAll': this.onRightItemSelectAll,
  28024. 'scroll': this.handleRightScroll
  28025. }
  28026. })]
  28027. );
  28028. }
  28029. },
  28030. render: function render() {
  28031. var h = arguments[0];
  28032. return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_9__["default"], {
  28033. attrs: {
  28034. componentName: 'Transfer',
  28035. defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_10__["default"].Transfer
  28036. },
  28037. scopedSlots: { 'default': this.renderTransfer }
  28038. });
  28039. }
  28040. };
  28041. /* istanbul ignore next */
  28042. Transfer.install = function (Vue) {
  28043. Vue.use(_base__WEBPACK_IMPORTED_MODULE_13__["default"]);
  28044. Vue.component(Transfer.name, Transfer);
  28045. };
  28046. /* harmony default export */ __webpack_exports__["default"] = (Transfer);
  28047. /***/ }),
  28048. /***/ "./components/transfer/list.jsx":
  28049. /*!**************************************!*\
  28050. !*** ./components/transfer/list.jsx ***!
  28051. \**************************************/
  28052. /*! exports provided: TransferListProps, default */
  28053. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28054. "use strict";
  28055. __webpack_require__.r(__webpack_exports__);
  28056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferListProps", function() { return TransferListProps; });
  28057. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  28058. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  28059. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  28060. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  28061. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  28062. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  28063. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  28064. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  28065. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  28066. /* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
  28067. /* harmony import */ var _search__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./search */ "./components/transfer/search.jsx");
  28068. /* harmony import */ var _renderListBody__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./renderListBody */ "./components/transfer/renderListBody.jsx");
  28069. /* harmony import */ var _util_triggerEvent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/triggerEvent */ "./components/_util/triggerEvent.js");
  28070. /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
  28071. var defaultRender = function defaultRender() {
  28072. return null;
  28073. };
  28074. var TransferItem = {
  28075. key: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
  28076. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
  28077. description: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  28078. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
  28079. };
  28080. function isRenderResultPlainObject(result) {
  28081. return result && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["isValidElement"])(result) && Object.prototype.toString.call(result) === '[object Object]';
  28082. }
  28083. var TransferListProps = {
  28084. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  28085. titleText: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  28086. dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape(TransferItem).loose),
  28087. filter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  28088. filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  28089. checkedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
  28090. handleFilter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  28091. handleSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  28092. handleSelectAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  28093. handleClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  28094. renderItem: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  28095. showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  28096. searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  28097. notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  28098. itemUnit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  28099. itemsUnit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  28100. body: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  28101. renderList: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  28102. footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  28103. lazy: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
  28104. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  28105. direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  28106. showSelectAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
  28107. };
  28108. function renderListNode(h, renderList, props) {
  28109. var bodyContent = renderList ? renderList(props) : null;
  28110. var customize = !!bodyContent;
  28111. if (!customize) {
  28112. bodyContent = Object(_renderListBody__WEBPACK_IMPORTED_MODULE_8__["default"])(h, props);
  28113. }
  28114. return {
  28115. customize: customize,
  28116. bodyContent: bodyContent
  28117. };
  28118. }
  28119. /* harmony default export */ __webpack_exports__["default"] = ({
  28120. name: 'TransferList',
  28121. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
  28122. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(TransferListProps, {
  28123. dataSource: [],
  28124. titleText: '',
  28125. showSearch: false,
  28126. lazy: {}
  28127. }),
  28128. data: function data() {
  28129. this.timer = null;
  28130. this.triggerScrollTimer = null;
  28131. return {
  28132. filterValue: ''
  28133. };
  28134. },
  28135. // mounted() {
  28136. // this.timer = setTimeout(() => {
  28137. // this.setState({
  28138. // mounted: true,
  28139. // });
  28140. // }, 0);
  28141. // this.$nextTick(() => {
  28142. // if (this.$refs.listContentWrapper) {
  28143. // const listContentWrapperDom = this.$refs.listContentWrapper.$el;
  28144. // this.scrollEvent = addEventListener(listContentWrapperDom, 'scroll', this.handleScroll);
  28145. // }
  28146. // });
  28147. // },
  28148. beforeDestroy: function beforeDestroy() {
  28149. clearTimeout(this.triggerScrollTimer);
  28150. // if (this.scrollEvent) {
  28151. // this.scrollEvent.remove();
  28152. // }
  28153. },
  28154. updated: function updated() {
  28155. var _this = this;
  28156. this.$nextTick(function () {
  28157. if (_this.scrollEvent) {
  28158. _this.scrollEvent.remove();
  28159. }
  28160. if (_this.$refs.listContentWrapper) {
  28161. var listContentWrapperDom = _this.$refs.listContentWrapper.$el;
  28162. _this.scrollEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_10__["default"])(listContentWrapperDom, 'scroll', _this.handleScroll);
  28163. }
  28164. });
  28165. },
  28166. methods: {
  28167. handleScroll: function handleScroll(e) {
  28168. this.$emit('scroll', e);
  28169. },
  28170. getCheckStatus: function getCheckStatus(filteredItems) {
  28171. var checkedKeys = this.$props.checkedKeys;
  28172. if (checkedKeys.length === 0) {
  28173. return 'none';
  28174. }
  28175. if (filteredItems.every(function (item) {
  28176. return checkedKeys.indexOf(item.key) >= 0 || !!item.disabled;
  28177. })) {
  28178. return 'all';
  28179. }
  28180. return 'part';
  28181. },
  28182. getFilteredItems: function getFilteredItems(dataSource, filterValue) {
  28183. var _this2 = this;
  28184. var filteredItems = [];
  28185. var filteredRenderItems = [];
  28186. dataSource.forEach(function (item) {
  28187. var renderedItem = _this2.renderItemHtml(item);
  28188. var renderedText = renderedItem.renderedText;
  28189. // Filter skip
  28190. if (filterValue && filterValue.trim() && !_this2.matchFilter(renderedText, item)) {
  28191. return null;
  28192. }
  28193. filteredItems.push(item);
  28194. filteredRenderItems.push(renderedItem);
  28195. });
  28196. return { filteredItems: filteredItems, filteredRenderItems: filteredRenderItems };
  28197. },
  28198. getListBody: function getListBody(prefixCls, searchPlaceholder, filterValue, filteredItems, notFoundContent, bodyDom, filteredRenderItems, checkedKeys, renderList, showSearch, disabled) {
  28199. var h = this.$createElement;
  28200. var search = showSearch ? h(
  28201. 'div',
  28202. { 'class': prefixCls + '-body-search-wrapper' },
  28203. [h(_search__WEBPACK_IMPORTED_MODULE_7__["default"], {
  28204. attrs: {
  28205. prefixCls: prefixCls + '-search',
  28206. handleClear: this._handleClear,
  28207. placeholder: searchPlaceholder,
  28208. value: filterValue,
  28209. disabled: disabled
  28210. },
  28211. on: {
  28212. 'change': this._handleFilter
  28213. }
  28214. })]
  28215. ) : null;
  28216. var listBody = bodyDom;
  28217. if (!listBody) {
  28218. var bodyNode = void 0;
  28219. var _renderListNode = renderListNode(this.$createElement, renderList, {
  28220. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, { filteredItems: filteredItems, filteredRenderItems: filteredRenderItems, selectedKeys: checkedKeys }),
  28221. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
  28222. }),
  28223. bodyContent = _renderListNode.bodyContent,
  28224. customize = _renderListNode.customize;
  28225. // We should wrap customize list body in a classNamed div to use flex layout.
  28226. if (customize) {
  28227. bodyNode = h(
  28228. 'div',
  28229. { 'class': prefixCls + '-body-customize-wrapper' },
  28230. [bodyContent]
  28231. );
  28232. } else {
  28233. bodyNode = filteredItems.length ? bodyContent : h(
  28234. 'div',
  28235. { 'class': prefixCls + '-body-not-found' },
  28236. [notFoundContent]
  28237. );
  28238. }
  28239. listBody = h(
  28240. 'div',
  28241. {
  28242. 'class': classnames__WEBPACK_IMPORTED_MODULE_2___default()(showSearch ? prefixCls + '-body ' + prefixCls + '-body-with-search' : prefixCls + '-body')
  28243. },
  28244. [search, bodyNode]
  28245. );
  28246. }
  28247. return listBody;
  28248. },
  28249. getCheckBox: function getCheckBox(filteredItems, showSelectAll, disabled) {
  28250. var _this3 = this;
  28251. var h = this.$createElement;
  28252. var checkStatus = this.getCheckStatus(filteredItems);
  28253. var checkedAll = checkStatus === 'all';
  28254. var checkAllCheckbox = showSelectAll !== false && h(_checkbox__WEBPACK_IMPORTED_MODULE_6__["default"], {
  28255. attrs: {
  28256. disabled: disabled,
  28257. checked: checkedAll,
  28258. indeterminate: checkStatus === 'part'
  28259. },
  28260. on: {
  28261. 'change': function change() {
  28262. // Only select enabled items
  28263. _this3.$emit('itemSelectAll', filteredItems.filter(function (item) {
  28264. return !item.disabled;
  28265. }).map(function (_ref) {
  28266. var key = _ref.key;
  28267. return key;
  28268. }), !checkedAll);
  28269. }
  28270. }
  28271. });
  28272. return checkAllCheckbox;
  28273. },
  28274. _handleSelect: function _handleSelect(selectedItem) {
  28275. var checkedKeys = this.$props.checkedKeys;
  28276. var result = checkedKeys.some(function (key) {
  28277. return key === selectedItem.key;
  28278. });
  28279. this.handleSelect(selectedItem, !result);
  28280. },
  28281. _handleFilter: function _handleFilter(e) {
  28282. var _this4 = this;
  28283. var handleFilter = this.$props.handleFilter;
  28284. var filterValue = e.target.value;
  28285. this.setState({ filterValue: filterValue });
  28286. handleFilter(e);
  28287. if (!filterValue) {
  28288. return;
  28289. }
  28290. // Manually trigger scroll event for lazy search bug
  28291. // https://github.com/ant-design/ant-design/issues/5631
  28292. this.triggerScrollTimer = setTimeout(function () {
  28293. var transferNode = _this4.$el;
  28294. var listNode = transferNode.querySelectorAll('.ant-transfer-list-content')[0];
  28295. if (listNode) {
  28296. Object(_util_triggerEvent__WEBPACK_IMPORTED_MODULE_9__["default"])(listNode, 'scroll');
  28297. }
  28298. }, 0);
  28299. },
  28300. _handleClear: function _handleClear(e) {
  28301. this.setState({ filterValue: '' });
  28302. this.handleClear(e);
  28303. },
  28304. matchFilter: function matchFilter(text, item) {
  28305. var filterValue = this.$data.filterValue;
  28306. var filterOption = this.$props.filterOption;
  28307. if (filterOption) {
  28308. return filterOption(filterValue, item);
  28309. }
  28310. return text.indexOf(filterValue) >= 0;
  28311. },
  28312. renderItemHtml: function renderItemHtml(item) {
  28313. var _$props$renderItem = this.$props.renderItem,
  28314. renderItem = _$props$renderItem === undefined ? defaultRender : _$props$renderItem;
  28315. var renderResult = renderItem(item);
  28316. var isRenderResultPlain = isRenderResultPlainObject(renderResult);
  28317. return {
  28318. renderedText: isRenderResultPlain ? renderResult.value : renderResult,
  28319. renderedEl: isRenderResultPlain ? renderResult.label : renderResult,
  28320. item: item
  28321. };
  28322. },
  28323. filterNull: function filterNull(arr) {
  28324. return arr.filter(function (item) {
  28325. return item !== null;
  28326. });
  28327. }
  28328. },
  28329. render: function render() {
  28330. var h = arguments[0];
  28331. var filterValue = this.$data.filterValue;
  28332. var _$props = this.$props,
  28333. prefixCls = _$props.prefixCls,
  28334. dataSource = _$props.dataSource,
  28335. titleText = _$props.titleText,
  28336. checkedKeys = _$props.checkedKeys,
  28337. disabled = _$props.disabled,
  28338. body = _$props.body,
  28339. footer = _$props.footer,
  28340. showSearch = _$props.showSearch,
  28341. searchPlaceholder = _$props.searchPlaceholder,
  28342. notFoundContent = _$props.notFoundContent,
  28343. itemUnit = _$props.itemUnit,
  28344. itemsUnit = _$props.itemsUnit,
  28345. renderList = _$props.renderList,
  28346. showSelectAll = _$props.showSelectAll;
  28347. // Custom Layout
  28348. var footerDom = footer && footer(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props));
  28349. var bodyDom = body && body(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props));
  28350. var listCls = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-with-footer', !!footerDom));
  28351. // ====================== Get filtered, checked item list ======================
  28352. var _getFilteredItems = this.getFilteredItems(dataSource, filterValue),
  28353. filteredItems = _getFilteredItems.filteredItems,
  28354. filteredRenderItems = _getFilteredItems.filteredRenderItems;
  28355. // ================================= List Body =================================
  28356. var unit = dataSource.length > 1 ? itemsUnit : itemUnit;
  28357. var listBody = this.getListBody(prefixCls, searchPlaceholder, filterValue, filteredItems, notFoundContent, bodyDom, filteredRenderItems, checkedKeys, renderList, showSearch, disabled);
  28358. var listFooter = footerDom ? h(
  28359. 'div',
  28360. { 'class': prefixCls + '-footer' },
  28361. [footerDom]
  28362. ) : null;
  28363. var checkAllCheckbox = this.getCheckBox(filteredItems, showSelectAll, disabled);
  28364. return h(
  28365. 'div',
  28366. { 'class': listCls },
  28367. [h(
  28368. 'div',
  28369. { 'class': prefixCls + '-header' },
  28370. [checkAllCheckbox, h(
  28371. 'span',
  28372. { 'class': prefixCls + '-header-selected' },
  28373. [h('span', [(checkedKeys.length > 0 ? checkedKeys.length + '/' : '') + filteredItems.length, ' ', unit]), h(
  28374. 'span',
  28375. { 'class': prefixCls + '-header-title' },
  28376. [titleText]
  28377. )]
  28378. )]
  28379. ), listBody, listFooter]
  28380. );
  28381. }
  28382. });
  28383. /***/ }),
  28384. /***/ "./components/transfer/operation.jsx":
  28385. /*!*******************************************!*\
  28386. !*** ./components/transfer/operation.jsx ***!
  28387. \*******************************************/
  28388. /*! exports provided: TransferOperationProps, default */
  28389. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28390. "use strict";
  28391. __webpack_require__.r(__webpack_exports__);
  28392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferOperationProps", function() { return TransferOperationProps; });
  28393. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  28394. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  28395. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  28396. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  28397. /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
  28398. function noop() {}
  28399. var TransferOperationProps = {
  28400. className: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  28401. leftArrowText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  28402. rightArrowText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  28403. moveToLeft: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  28404. moveToRight: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  28405. leftActive: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  28406. rightActive: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  28407. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
  28408. };
  28409. /* harmony default export */ __webpack_exports__["default"] = ({
  28410. name: 'Operation',
  28411. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, TransferOperationProps),
  28412. render: function render() {
  28413. var h = arguments[0];
  28414. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this),
  28415. disabled = _getOptionProps.disabled,
  28416. _getOptionProps$moveT = _getOptionProps.moveToLeft,
  28417. moveToLeft = _getOptionProps$moveT === undefined ? noop : _getOptionProps$moveT,
  28418. _getOptionProps$moveT2 = _getOptionProps.moveToRight,
  28419. moveToRight = _getOptionProps$moveT2 === undefined ? noop : _getOptionProps$moveT2,
  28420. _getOptionProps$leftA = _getOptionProps.leftArrowText,
  28421. leftArrowText = _getOptionProps$leftA === undefined ? '' : _getOptionProps$leftA,
  28422. _getOptionProps$right = _getOptionProps.rightArrowText,
  28423. rightArrowText = _getOptionProps$right === undefined ? '' : _getOptionProps$right,
  28424. leftActive = _getOptionProps.leftActive,
  28425. rightActive = _getOptionProps.rightActive;
  28426. return h('div', [h(
  28427. _button__WEBPACK_IMPORTED_MODULE_3__["default"],
  28428. {
  28429. attrs: {
  28430. type: 'primary',
  28431. size: 'small',
  28432. disabled: disabled || !rightActive,
  28433. icon: 'right'
  28434. },
  28435. on: {
  28436. 'click': moveToRight
  28437. }
  28438. },
  28439. [rightArrowText]
  28440. ), h(
  28441. _button__WEBPACK_IMPORTED_MODULE_3__["default"],
  28442. {
  28443. attrs: {
  28444. type: 'primary',
  28445. size: 'small',
  28446. disabled: disabled || !leftActive,
  28447. icon: 'left'
  28448. },
  28449. on: {
  28450. 'click': moveToLeft
  28451. }
  28452. },
  28453. [leftArrowText]
  28454. )]);
  28455. }
  28456. });
  28457. /***/ }),
  28458. /***/ "./components/transfer/renderListBody.jsx":
  28459. /*!************************************************!*\
  28460. !*** ./components/transfer/renderListBody.jsx ***!
  28461. \************************************************/
  28462. /*! exports provided: default */
  28463. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28464. "use strict";
  28465. __webpack_require__.r(__webpack_exports__);
  28466. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  28467. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  28468. /* harmony import */ var _util_raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/raf */ "./components/_util/raf.js");
  28469. /* harmony import */ var _ListItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ListItem */ "./components/transfer/ListItem.jsx");
  28470. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  28471. /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
  28472. function noop() {}
  28473. var ListBody = {
  28474. name: 'ListBody',
  28475. inheritAttrs: false,
  28476. props: {
  28477. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  28478. filteredRenderItems: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array.def([]),
  28479. lazy: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
  28480. selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  28481. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
  28482. },
  28483. data: function data() {
  28484. return {
  28485. mounted: false
  28486. };
  28487. },
  28488. computed: {
  28489. itemsLength: function itemsLength() {
  28490. return this.filteredRenderItems ? this.filteredRenderItems.length : 0;
  28491. }
  28492. },
  28493. watch: {
  28494. itemsLength: function itemsLength() {
  28495. var _this = this;
  28496. this.$nextTick(function () {
  28497. var lazy = _this.$props.lazy;
  28498. if (lazy !== false) {
  28499. var container = _this.$el;
  28500. _util_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(_this.lazyId);
  28501. _this.lazyId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
  28502. if (container) {
  28503. var scrollEvent = new Event('scroll', { bubbles: true });
  28504. container.dispatchEvent(scrollEvent);
  28505. }
  28506. });
  28507. }
  28508. });
  28509. }
  28510. },
  28511. mounted: function mounted() {
  28512. var _this2 = this;
  28513. this.mountId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
  28514. _this2.mounted = true;
  28515. });
  28516. },
  28517. beforeDestroy: function beforeDestroy() {
  28518. _util_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(this.mountId);
  28519. _util_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(this.lazyId);
  28520. },
  28521. methods: {
  28522. onItemSelect: function onItemSelect(item) {
  28523. var selectedKeys = this.$props.selectedKeys;
  28524. var checked = selectedKeys.indexOf(item.key) >= 0;
  28525. this.$emit('itemSelect', item.key, !checked);
  28526. },
  28527. onScroll: function onScroll(e) {
  28528. this.$emit('scroll', e);
  28529. }
  28530. },
  28531. render: function render() {
  28532. var _this3 = this;
  28533. var h = arguments[0];
  28534. var mounted = this.$data.mounted;
  28535. var _$props = this.$props,
  28536. prefixCls = _$props.prefixCls,
  28537. filteredRenderItems = _$props.filteredRenderItems,
  28538. lazy = _$props.lazy,
  28539. selectedKeys = _$props.selectedKeys,
  28540. globalDisabled = _$props.disabled;
  28541. var items = filteredRenderItems.map(function (_ref) {
  28542. var renderedEl = _ref.renderedEl,
  28543. renderedText = _ref.renderedText,
  28544. item = _ref.item;
  28545. var disabled = item.disabled;
  28546. var checked = selectedKeys.indexOf(item.key) >= 0;
  28547. return h(_ListItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
  28548. attrs: {
  28549. disabled: globalDisabled || disabled,
  28550. item: item,
  28551. lazy: lazy,
  28552. renderedText: renderedText,
  28553. renderedEl: renderedEl,
  28554. checked: checked,
  28555. prefixCls: prefixCls
  28556. },
  28557. key: item.key, on: {
  28558. 'click': _this3.onItemSelect
  28559. }
  28560. });
  28561. });
  28562. var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_4__["default"])(mounted ? prefixCls + '-content-item-highlight' : '', {
  28563. tag: 'ul',
  28564. nativeOn: {
  28565. scroll: this.onScroll
  28566. },
  28567. leave: noop
  28568. });
  28569. return h(
  28570. 'transition-group',
  28571. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': prefixCls + '-content' }, transitionProps]),
  28572. [items]
  28573. );
  28574. }
  28575. };
  28576. /* harmony default export */ __webpack_exports__["default"] = (function (h, props) {
  28577. return h(ListBody, props);
  28578. });
  28579. /***/ }),
  28580. /***/ "./components/transfer/search.jsx":
  28581. /*!****************************************!*\
  28582. !*** ./components/transfer/search.jsx ***!
  28583. \****************************************/
  28584. /*! exports provided: TransferSearchProps, default */
  28585. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28586. "use strict";
  28587. __webpack_require__.r(__webpack_exports__);
  28588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferSearchProps", function() { return TransferSearchProps; });
  28589. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  28590. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  28591. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  28592. /* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../input */ "./components/input/index.js");
  28593. var TransferSearchProps = {
  28594. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  28595. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  28596. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  28597. handleClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  28598. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
  28599. };
  28600. /* harmony default export */ __webpack_exports__["default"] = ({
  28601. name: 'Search',
  28602. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["initDefaultProps"])(TransferSearchProps, {
  28603. placeholder: ''
  28604. }),
  28605. methods: {
  28606. handleChange: function handleChange(e) {
  28607. this.$emit('change', e);
  28608. },
  28609. handleClear2: function handleClear2(e) {
  28610. e.preventDefault();
  28611. var _$props = this.$props,
  28612. handleClear = _$props.handleClear,
  28613. disabled = _$props.disabled;
  28614. if (!disabled && handleClear) {
  28615. handleClear(e);
  28616. }
  28617. }
  28618. },
  28619. render: function render() {
  28620. var h = arguments[0];
  28621. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getOptionProps"])(this),
  28622. placeholder = _getOptionProps.placeholder,
  28623. value = _getOptionProps.value,
  28624. prefixCls = _getOptionProps.prefixCls,
  28625. disabled = _getOptionProps.disabled;
  28626. var icon = value && value.length > 0 ? h(
  28627. 'a',
  28628. {
  28629. attrs: { href: '#' },
  28630. 'class': prefixCls + '-action', on: {
  28631. 'click': this.handleClear2
  28632. }
  28633. },
  28634. [h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
  28635. attrs: { type: 'close-circle', theme: 'filled' }
  28636. })]
  28637. ) : h(
  28638. 'span',
  28639. { 'class': prefixCls + '-action' },
  28640. [h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
  28641. attrs: { type: 'search' }
  28642. })]
  28643. );
  28644. return h('div', [h(_input__WEBPACK_IMPORTED_MODULE_3__["default"], {
  28645. attrs: {
  28646. placeholder: placeholder,
  28647. value: value,
  28648. disabled: disabled
  28649. },
  28650. 'class': prefixCls, on: {
  28651. 'change': this.handleChange
  28652. }
  28653. }), icon]);
  28654. }
  28655. });
  28656. /***/ }),
  28657. /***/ "./components/transfer/style/index.js":
  28658. /*!********************************************!*\
  28659. !*** ./components/transfer/style/index.js ***!
  28660. \********************************************/
  28661. /*! no exports provided */
  28662. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28663. "use strict";
  28664. __webpack_require__.r(__webpack_exports__);
  28665. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  28666. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  28667. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/transfer/style/index.less");
  28668. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  28669. /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
  28670. /* harmony import */ var _checkbox_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../checkbox/style */ "./components/checkbox/style/index.js");
  28671. /* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
  28672. /* harmony import */ var _input_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../input/style */ "./components/input/style/index.js");
  28673. // style dependencies
  28674. /***/ }),
  28675. /***/ "./components/transfer/style/index.less":
  28676. /*!**********************************************!*\
  28677. !*** ./components/transfer/style/index.less ***!
  28678. \**********************************************/
  28679. /*! no static exports found */
  28680. /***/ (function(module, exports, __webpack_require__) {
  28681. // extracted by mini-css-extract-plugin
  28682. /***/ }),
  28683. /***/ "./components/tree-select/index.jsx":
  28684. /*!******************************************!*\
  28685. !*** ./components/tree-select/index.jsx ***!
  28686. \******************************************/
  28687. /*! exports provided: TreeData, TreeSelectProps, default */
  28688. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28689. "use strict";
  28690. __webpack_require__.r(__webpack_exports__);
  28691. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  28692. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  28693. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  28694. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  28695. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  28696. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  28697. /* harmony import */ var _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-tree-select */ "./components/vc-tree-select/index.js");
  28698. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  28699. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
  28700. /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./interface */ "./components/tree-select/interface.jsx");
  28701. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  28702. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  28703. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  28704. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  28705. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeData", function() { return _interface__WEBPACK_IMPORTED_MODULE_5__["TreeData"]; });
  28706. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeSelectProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_5__["TreeSelectProps"]; });
  28707. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  28708. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  28709. var TreeSelect = {
  28710. TreeNode: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["TreeNode"], { name: 'ATreeSelectNode' }),
  28711. SHOW_ALL: _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["SHOW_ALL"],
  28712. SHOW_PARENT: _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["SHOW_PARENT"],
  28713. SHOW_CHILD: _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["SHOW_CHILD"],
  28714. name: 'ATreeSelect',
  28715. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(Object(_interface__WEBPACK_IMPORTED_MODULE_5__["TreeSelectProps"])(), {
  28716. transitionName: 'slide-up',
  28717. choiceTransitionName: 'zoom',
  28718. showSearch: false
  28719. }),
  28720. model: {
  28721. prop: 'value',
  28722. event: 'change'
  28723. },
  28724. inject: {
  28725. configProvider: { 'default': function _default() {
  28726. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
  28727. } }
  28728. },
  28729. created: function created() {
  28730. Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(this.multiple !== false || !this.treeCheckable, 'TreeSelect', '`multiple` will alway be `true` when `treeCheckable` is true');
  28731. },
  28732. methods: {
  28733. focus: function focus() {
  28734. this.$refs.vcTreeSelect.focus();
  28735. },
  28736. blur: function blur() {
  28737. this.$refs.vcTreeSelect.blur();
  28738. },
  28739. renderSwitcherIcon: function renderSwitcherIcon(prefixCls, _ref) {
  28740. var isLeaf = _ref.isLeaf,
  28741. loading = _ref.loading;
  28742. var h = this.$createElement;
  28743. if (loading) {
  28744. return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  28745. attrs: { type: 'loading' },
  28746. 'class': prefixCls + '-switcher-loading-icon' });
  28747. }
  28748. if (isLeaf) {
  28749. return null;
  28750. }
  28751. return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  28752. attrs: { type: 'caret-down' },
  28753. 'class': prefixCls + '-switcher-icon' });
  28754. },
  28755. onChange: function onChange() {
  28756. this.$emit.apply(this, ['change'].concat(Array.prototype.slice.call(arguments)));
  28757. },
  28758. updateTreeData: function updateTreeData(treeData) {
  28759. var _this = this;
  28760. var $scopedSlots = this.$scopedSlots;
  28761. var defaultFields = {
  28762. children: 'children',
  28763. title: 'title',
  28764. key: 'key',
  28765. label: 'label',
  28766. value: 'value'
  28767. };
  28768. var replaceFields = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, defaultFields, this.$props.replaceFields);
  28769. return treeData.map(function (item) {
  28770. var _item$scopedSlots = item.scopedSlots,
  28771. scopedSlots = _item$scopedSlots === undefined ? {} : _item$scopedSlots;
  28772. var label = item[replaceFields.label];
  28773. var title = item[replaceFields.title];
  28774. var value = item[replaceFields.value];
  28775. var key = item[replaceFields.key];
  28776. var children = item[replaceFields.children];
  28777. var newLabel = typeof label === 'function' ? label(_this.$createElement) : label;
  28778. var newTitle = typeof title === 'function' ? title(_this.$createElement) : title;
  28779. if (!newLabel && scopedSlots.label && $scopedSlots[scopedSlots.label]) {
  28780. newLabel = $scopedSlots[scopedSlots.label](item);
  28781. }
  28782. if (!newTitle && scopedSlots.title && $scopedSlots[scopedSlots.title]) {
  28783. newTitle = $scopedSlots[scopedSlots.title](item);
  28784. }
  28785. var treeNodeProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, item, {
  28786. title: newTitle || newLabel,
  28787. value: value,
  28788. dataRef: item,
  28789. key: key
  28790. });
  28791. if (children) {
  28792. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, treeNodeProps, { children: _this.updateTreeData(children) });
  28793. }
  28794. return treeNodeProps;
  28795. });
  28796. }
  28797. },
  28798. render: function render(h) {
  28799. var _cls,
  28800. _this2 = this;
  28801. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
  28802. var customizePrefixCls = props.prefixCls,
  28803. size = props.size,
  28804. dropdownStyle = props.dropdownStyle,
  28805. dropdownClassName = props.dropdownClassName,
  28806. getPopupContainer = props.getPopupContainer,
  28807. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(props, ['prefixCls', 'size', 'dropdownStyle', 'dropdownClassName', 'getPopupContainer']);
  28808. var getPrefixCls = this.configProvider.getPrefixCls;
  28809. var prefixCls = getPrefixCls('select', customizePrefixCls);
  28810. var renderEmpty = this.configProvider.renderEmpty;
  28811. var notFoundContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'notFoundContent');
  28812. var removeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'removeIcon');
  28813. var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'clearIcon');
  28814. var getContextPopupContainer = this.configProvider.getPopupContainer;
  28815. var rest = Object(omit_js__WEBPACK_IMPORTED_MODULE_11__["default"])(restProps, ['inputIcon', 'removeIcon', 'clearIcon', 'switcherIcon', 'suffixIcon']);
  28816. var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'suffixIcon');
  28817. suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
  28818. var treeData = props.treeData;
  28819. if (treeData) {
  28820. treeData = this.updateTreeData(treeData);
  28821. }
  28822. var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-sm', size === 'small'), _cls);
  28823. // showSearch: single - false, multiple - true
  28824. var showSearch = restProps.showSearch;
  28825. if (!('showSearch' in restProps)) {
  28826. showSearch = !!(restProps.multiple || restProps.treeCheckable);
  28827. }
  28828. var checkable = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'treeCheckable');
  28829. if (checkable) {
  28830. checkable = h('span', { 'class': prefixCls + '-tree-checkbox-inner' });
  28831. }
  28832. var inputIcon = suffixIcon || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  28833. attrs: { type: 'down' },
  28834. 'class': prefixCls + '-arrow-icon' });
  28835. var finalRemoveIcon = removeIcon || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  28836. attrs: { type: 'close' },
  28837. 'class': prefixCls + '-remove-icon' });
  28838. var finalClearIcon = clearIcon || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  28839. attrs: { type: 'close-circle', theme: 'filled' },
  28840. 'class': prefixCls + '-clear-icon' });
  28841. var VcTreeSelectProps = {
  28842. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  28843. switcherIcon: function switcherIcon(nodeProps) {
  28844. return _this2.renderSwitcherIcon(prefixCls, nodeProps);
  28845. },
  28846. inputIcon: inputIcon,
  28847. removeIcon: finalRemoveIcon,
  28848. clearIcon: finalClearIcon
  28849. }, rest, {
  28850. showSearch: showSearch,
  28851. getPopupContainer: getPopupContainer || getContextPopupContainer,
  28852. dropdownClassName: classnames__WEBPACK_IMPORTED_MODULE_4___default()(dropdownClassName, prefixCls + '-tree-dropdown'),
  28853. prefixCls: prefixCls,
  28854. dropdownStyle: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({ maxHeight: '100vh', overflow: 'auto' }, dropdownStyle),
  28855. treeCheckable: checkable,
  28856. notFoundContent: notFoundContent || renderEmpty(h, 'Select'),
  28857. __propsSymbol__: Symbol()
  28858. }), treeData ? { treeData: treeData } : {}),
  28859. 'class': cls,
  28860. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), { change: this.onChange }),
  28861. ref: 'vcTreeSelect',
  28862. scopedSlots: this.$scopedSlots
  28863. };
  28864. return h(
  28865. _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["default"],
  28866. VcTreeSelectProps,
  28867. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["filterEmpty"])(this.$slots['default'])]
  28868. );
  28869. }
  28870. };
  28871. /* istanbul ignore next */
  28872. TreeSelect.install = function (Vue) {
  28873. Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
  28874. Vue.component(TreeSelect.name, TreeSelect);
  28875. Vue.component(TreeSelect.TreeNode.name, TreeSelect.TreeNode);
  28876. };
  28877. /* harmony default export */ __webpack_exports__["default"] = (TreeSelect);
  28878. /***/ }),
  28879. /***/ "./components/tree-select/interface.jsx":
  28880. /*!**********************************************!*\
  28881. !*** ./components/tree-select/interface.jsx ***!
  28882. \**********************************************/
  28883. /*! exports provided: TreeData, TreeSelectProps */
  28884. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28885. "use strict";
  28886. __webpack_require__.r(__webpack_exports__);
  28887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeData", function() { return TreeData; });
  28888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeSelectProps", function() { return TreeSelectProps; });
  28889. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  28890. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  28891. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  28892. /* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
  28893. var TreeData = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
  28894. key: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  28895. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  28896. label: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  28897. scopedSlots: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  28898. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
  28899. }).loose;
  28900. var TreeSelectProps = function TreeSelectProps() {
  28901. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_select__WEBPACK_IMPORTED_MODULE_2__["AbstractSelectProps"])(), {
  28902. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  28903. dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  28904. filterTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([Function, Boolean]),
  28905. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  28906. labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  28907. loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  28908. maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  28909. maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  28910. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
  28911. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
  28912. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  28913. notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  28914. // onSelect: (value: any) => void,
  28915. // onChange: (value: any, label: any) => void,
  28916. // onSearch: (value: any) => void,
  28917. searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  28918. searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  28919. showCheckedStrategy: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['SHOW_ALL', 'SHOW_PARENT', 'SHOW_CHILD']),
  28920. suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  28921. treeCheckable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
  28922. treeCheckStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  28923. treeData: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(Object),
  28924. treeDataSimpleMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([Boolean, Object]),
  28925. dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  28926. dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  28927. treeDefaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  28928. treeExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  28929. treeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  28930. treeDefaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  28931. treeNodeFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  28932. treeNodeLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  28933. replaceFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def({})
  28934. });
  28935. };
  28936. /***/ }),
  28937. /***/ "./components/tree-select/style/index.js":
  28938. /*!***********************************************!*\
  28939. !*** ./components/tree-select/style/index.js ***!
  28940. \***********************************************/
  28941. /*! no exports provided */
  28942. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28943. "use strict";
  28944. __webpack_require__.r(__webpack_exports__);
  28945. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  28946. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  28947. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tree-select/style/index.less");
  28948. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  28949. /* harmony import */ var _select_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../select/style */ "./components/select/style/index.js");
  28950. /* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
  28951. // style dependencies
  28952. // deps-lint-skip: select
  28953. /***/ }),
  28954. /***/ "./components/tree-select/style/index.less":
  28955. /*!*************************************************!*\
  28956. !*** ./components/tree-select/style/index.less ***!
  28957. \*************************************************/
  28958. /*! no static exports found */
  28959. /***/ (function(module, exports, __webpack_require__) {
  28960. // extracted by mini-css-extract-plugin
  28961. /***/ }),
  28962. /***/ "./components/tree/DirectoryTree.jsx":
  28963. /*!*******************************************!*\
  28964. !*** ./components/tree/DirectoryTree.jsx ***!
  28965. \*******************************************/
  28966. /*! exports provided: default */
  28967. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28968. "use strict";
  28969. __webpack_require__.r(__webpack_exports__);
  28970. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  28971. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
  28972. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  28973. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
  28974. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  28975. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  28976. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  28977. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
  28978. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_4__);
  28979. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  28980. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  28981. /* harmony import */ var _vc_tree_src_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-tree/src/util */ "./components/vc-tree/src/util.js");
  28982. /* harmony import */ var _Tree__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Tree */ "./components/tree/Tree.jsx");
  28983. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./util */ "./components/tree/util.js");
  28984. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  28985. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  28986. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  28987. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  28988. // export type ExpandAction = false | 'click' | 'dblclick'; export interface
  28989. // DirectoryTreeProps extends TreeProps { expandAction?: ExpandAction; }
  28990. // export interface DirectoryTreeState { expandedKeys?: string[];
  28991. // selectedKeys?: string[]; }
  28992. function getIcon(props, h) {
  28993. var isLeaf = props.isLeaf,
  28994. expanded = props.expanded;
  28995. if (isLeaf) {
  28996. return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  28997. attrs: { type: 'file' }
  28998. });
  28999. }
  29000. return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  29001. attrs: { type: expanded ? 'folder-open' : 'folder' }
  29002. });
  29003. }
  29004. /* harmony default export */ __webpack_exports__["default"] = ({
  29005. name: 'ADirectoryTree',
  29006. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
  29007. model: {
  29008. prop: 'checkedKeys',
  29009. event: 'check'
  29010. },
  29011. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_Tree__WEBPACK_IMPORTED_MODULE_8__["TreeProps"])(), {
  29012. expandAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf([false, 'click', 'doubleclick', 'dblclick'])
  29013. }), {
  29014. showIcon: true,
  29015. expandAction: 'click'
  29016. }),
  29017. // state: DirectoryTreeState; onDebounceExpand: (event, node: AntTreeNode) =>
  29018. // void; // Shift click usage lastSelectedKey?: string; cachedSelectedKeys?:
  29019. // string[];
  29020. inject: {
  29021. configProvider: {
  29022. 'default': function _default() {
  29023. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__["ConfigConsumerProps"];
  29024. }
  29025. }
  29026. },
  29027. data: function data() {
  29028. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
  29029. var defaultExpandAll = props.defaultExpandAll,
  29030. defaultExpandParent = props.defaultExpandParent,
  29031. expandedKeys = props.expandedKeys,
  29032. defaultExpandedKeys = props.defaultExpandedKeys;
  29033. var _convertTreeToEntitie = Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_7__["convertTreeToEntities"])(this.$slots['default']),
  29034. keyEntities = _convertTreeToEntitie.keyEntities;
  29035. var state = {};
  29036. // Selected keys
  29037. state._selectedKeys = props.selectedKeys || props.defaultSelectedKeys || [];
  29038. // Expanded keys
  29039. if (defaultExpandAll) {
  29040. if (props.treeData) {
  29041. state._expandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getFullKeyListByTreeData"])(props.treeData);
  29042. } else {
  29043. state._expandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getFullKeyList"])(this.$slots['default']);
  29044. }
  29045. } else if (defaultExpandParent) {
  29046. state._expandedKeys = Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_7__["conductExpandParent"])(expandedKeys || defaultExpandedKeys, keyEntities);
  29047. } else {
  29048. state._expandedKeys = expandedKeys || defaultExpandedKeys;
  29049. }
  29050. this.onDebounceExpand = lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default()(this.expandFolderNode, 200, { leading: true });
  29051. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  29052. _selectedKeys: [],
  29053. _expandedKeys: []
  29054. }, state);
  29055. },
  29056. watch: {
  29057. expandedKeys: function expandedKeys(val) {
  29058. this.setState({ _expandedKeys: val });
  29059. },
  29060. selectedKeys: function selectedKeys(val) {
  29061. this.setState({ _selectedKeys: val });
  29062. }
  29063. },
  29064. methods: {
  29065. onExpand: function onExpand(expandedKeys, info) {
  29066. this.setUncontrolledState({ _expandedKeys: expandedKeys });
  29067. this.$emit('expand', expandedKeys, info);
  29068. return undefined;
  29069. },
  29070. onClick: function onClick(event, node) {
  29071. var expandAction = this.$props.expandAction;
  29072. // Expand the tree
  29073. if (expandAction === 'click') {
  29074. this.onDebounceExpand(event, node);
  29075. }
  29076. this.$emit('click', event, node);
  29077. },
  29078. onDoubleClick: function onDoubleClick(event, node) {
  29079. var expandAction = this.$props.expandAction;
  29080. // Expand the tree
  29081. if (expandAction === 'dblclick' || expandAction === 'doubleclick') {
  29082. this.onDebounceExpand(event, node);
  29083. }
  29084. this.$emit('doubleclick', event, node);
  29085. this.$emit('dblclick', event, node);
  29086. },
  29087. onSelect: function onSelect(keys, event) {
  29088. var multiple = this.$props.multiple;
  29089. var children = this.$slots['default'] || [];
  29090. var _$data$_expandedKeys = this.$data._expandedKeys,
  29091. expandedKeys = _$data$_expandedKeys === undefined ? [] : _$data$_expandedKeys;
  29092. var node = event.node,
  29093. nativeEvent = event.nativeEvent;
  29094. var _node$eventKey = node.eventKey,
  29095. eventKey = _node$eventKey === undefined ? '' : _node$eventKey;
  29096. var newState = {};
  29097. // We need wrap this event since some value is not same
  29098. var newEvent = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, event, {
  29099. selected: true // Directory selected always true
  29100. });
  29101. // Windows / Mac single pick
  29102. var ctrlPick = nativeEvent.ctrlKey || nativeEvent.metaKey;
  29103. var shiftPick = nativeEvent.shiftKey;
  29104. // Generate new selected keys
  29105. var newSelectedKeys = void 0;
  29106. if (multiple && ctrlPick) {
  29107. // Control click
  29108. newSelectedKeys = keys;
  29109. this.lastSelectedKey = eventKey;
  29110. this.cachedSelectedKeys = newSelectedKeys;
  29111. newEvent.selectedNodes = Object(_util__WEBPACK_IMPORTED_MODULE_9__["convertDirectoryKeysToNodes"])(children, newSelectedKeys);
  29112. } else if (multiple && shiftPick) {
  29113. // Shift click
  29114. newSelectedKeys = Array.from(new Set([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(this.cachedSelectedKeys || []), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(Object(_util__WEBPACK_IMPORTED_MODULE_9__["calcRangeKeys"])(children, expandedKeys, eventKey, this.lastSelectedKey)))));
  29115. newEvent.selectedNodes = Object(_util__WEBPACK_IMPORTED_MODULE_9__["convertDirectoryKeysToNodes"])(children, newSelectedKeys);
  29116. } else {
  29117. // Single click
  29118. newSelectedKeys = [eventKey];
  29119. this.lastSelectedKey = eventKey;
  29120. this.cachedSelectedKeys = newSelectedKeys;
  29121. newEvent.selectedNodes = [event.node];
  29122. }
  29123. newState._selectedKeys = newSelectedKeys;
  29124. this.$emit('update:selectedKeys', newSelectedKeys);
  29125. this.$emit('select', newSelectedKeys, newEvent);
  29126. this.setUncontrolledState(newState);
  29127. },
  29128. expandFolderNode: function expandFolderNode(event, node) {
  29129. var isLeaf = node.isLeaf;
  29130. if (isLeaf || event.shiftKey || event.metaKey || event.ctrlKey) {
  29131. return;
  29132. }
  29133. if (this.$refs.tree.$refs.tree) {
  29134. // Get internal vc-tree
  29135. var internalTree = this.$refs.tree.$refs.tree;
  29136. // Call internal rc-tree expand function
  29137. // https://github.com/ant-design/ant-design/issues/12567
  29138. internalTree.onNodeExpand(event, node);
  29139. }
  29140. },
  29141. setUncontrolledState: function setUncontrolledState(state) {
  29142. var newState = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(state, Object.keys(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this)).map(function (p) {
  29143. return '_' + p;
  29144. }));
  29145. if (Object.keys(newState).length) {
  29146. this.setState(newState);
  29147. }
  29148. }
  29149. },
  29150. render: function render() {
  29151. var h = arguments[0];
  29152. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this),
  29153. customizePrefixCls = _getOptionProps.prefixCls,
  29154. props = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['prefixCls']);
  29155. var getPrefixCls = this.configProvider.getPrefixCls;
  29156. var prefixCls = getPrefixCls('tree', customizePrefixCls);
  29157. var _$data = this.$data,
  29158. expandedKeys = _$data._expandedKeys,
  29159. selectedKeys = _$data._selectedKeys;
  29160. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this);
  29161. Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(!listeners.doubleclick, '`doubleclick` is deprecated. please use `dblclick` instead.');
  29162. var treeProps = {
  29163. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  29164. icon: getIcon
  29165. }, props, {
  29166. prefixCls: prefixCls,
  29167. expandedKeys: expandedKeys,
  29168. selectedKeys: selectedKeys,
  29169. switcherIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'switcherIcon')
  29170. }),
  29171. ref: 'tree',
  29172. 'class': prefixCls + '-directory',
  29173. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(listeners, ['update:selectedKeys']), {
  29174. select: this.onSelect,
  29175. click: this.onClick,
  29176. dblclick: this.onDoubleClick,
  29177. expand: this.onExpand
  29178. })
  29179. };
  29180. return h(
  29181. _Tree__WEBPACK_IMPORTED_MODULE_8__["default"],
  29182. treeProps,
  29183. [this.$slots['default']]
  29184. );
  29185. }
  29186. });
  29187. /***/ }),
  29188. /***/ "./components/tree/Tree.jsx":
  29189. /*!**********************************!*\
  29190. !*** ./components/tree/Tree.jsx ***!
  29191. \**********************************/
  29192. /*! exports provided: TreeProps, default */
  29193. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  29194. "use strict";
  29195. __webpack_require__.r(__webpack_exports__);
  29196. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeProps", function() { return TreeProps; });
  29197. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  29198. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
  29199. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  29200. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  29201. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  29202. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  29203. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
  29204. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_3__);
  29205. /* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-tree */ "./components/vc-tree/index.js");
  29206. /* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_vc_tree__WEBPACK_IMPORTED_MODULE_4__);
  29207. /* harmony import */ var _util_openAnimation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/openAnimation */ "./components/_util/openAnimation.js");
  29208. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  29209. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  29210. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  29211. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  29212. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  29213. function TreeProps() {
  29214. return {
  29215. showLine: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  29216. /** 是否支持多选 */
  29217. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  29218. /** 是否自动展开父节点 */
  29219. autoExpandParent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  29220. /** checkable状态下节点选择完全受控(父子节点选中状态不再关联)*/
  29221. checkStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  29222. /** 是否支持选中 */
  29223. checkable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  29224. /** 是否禁用树 */
  29225. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  29226. /** 默认展开所有树节点 */
  29227. defaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  29228. /** 默认展开对应树节点 */
  29229. defaultExpandParent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  29230. /** 默认展开指定的树节点 */
  29231. defaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  29232. /** (受控)展开指定的树节点 */
  29233. expandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  29234. /** (受控)选中复选框的树节点 */
  29235. checkedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].shape({
  29236. checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  29237. halfChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array
  29238. }).loose]),
  29239. /** 默认选中复选框的树节点 */
  29240. defaultCheckedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  29241. /** (受控)设置选中的树节点 */
  29242. selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  29243. /** 默认选中的树节点 */
  29244. defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  29245. selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  29246. /** 展开/收起节点时触发 */
  29247. // onExpand: (expandedKeys: string[], info: AntTreeNodeExpandedEvent) => void | PromiseLike<any>,
  29248. /** 点击复选框触发 */
  29249. // onCheck: (checkedKeys: string[] | { checked: string[]; halfChecked: string[] }, e: AntTreeNodeCheckedEvent) => void,
  29250. /** 点击树节点触发 */
  29251. // onSelect: (selectedKeys: string[], e: AntTreeNodeSelectedEvent) => void,
  29252. /** 单击树节点触发 */
  29253. // onClick: (e: React.MouseEvent<HTMLElement>, node: AntTreeNode) => void,
  29254. /** 双击树节点触发 */
  29255. // onDoubleClick: (e: React.MouseEvent<HTMLElement>, node: AntTreeNode) => void,
  29256. /** filter some AntTreeNodes as you need. it should return true */
  29257. filterAntTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  29258. /** 异步加载数据 */
  29259. loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  29260. loadedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  29261. // onLoaded: (loadedKeys: string[], info: { event: 'load', node: AntTreeNode; }) => void,
  29262. /** 响应右键点击 */
  29263. // onRightClick: (options: AntTreeNodeMouseEvent) => void,
  29264. /** 设置节点可拖拽(IE>8)*/
  29265. draggable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  29266. // /** 开始拖拽时调用 */
  29267. // onDragStart: (options: AntTreeNodeMouseEvent) => void,
  29268. // /** dragenter 触发时调用 */
  29269. // onDragEnter: (options: AntTreeNodeMouseEvent) => void,
  29270. // /** dragover 触发时调用 */
  29271. // onDragOver: (options: AntTreeNodeMouseEvent) => void,
  29272. // /** dragleave 触发时调用 */
  29273. // onDragLeave: (options: AntTreeNodeMouseEvent) => void,
  29274. // /** drop 触发时调用 */
  29275. // onDrop: (options: AntTreeNodeMouseEvent) => void,
  29276. showIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
  29277. icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  29278. switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  29279. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
  29280. filterTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
  29281. openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
  29282. treeNodes: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  29283. treeData: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
  29284. /**
  29285. * @default{title,key,children}
  29286. * 替换treeNode中 title,key,children字段为treeData中对应的字段
  29287. */
  29288. replaceFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
  29289. blockNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool
  29290. };
  29291. }
  29292. /* harmony default export */ __webpack_exports__["default"] = ({
  29293. name: 'ATree',
  29294. model: {
  29295. prop: 'checkedKeys',
  29296. event: 'check'
  29297. },
  29298. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(TreeProps(), {
  29299. checkable: false,
  29300. showIcon: false,
  29301. openAnimation: {
  29302. on: _util_openAnimation__WEBPACK_IMPORTED_MODULE_5__["default"],
  29303. props: { appear: null }
  29304. },
  29305. blockNode: false
  29306. }),
  29307. inject: {
  29308. configProvider: { 'default': function _default() {
  29309. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
  29310. } }
  29311. },
  29312. created: function created() {
  29313. warning__WEBPACK_IMPORTED_MODULE_3___default()(!('treeNodes' in Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this)), '`treeNodes` is deprecated. please use treeData instead.');
  29314. },
  29315. TreeNode: _vc_tree__WEBPACK_IMPORTED_MODULE_4__["TreeNode"],
  29316. methods: {
  29317. renderSwitcherIcon: function renderSwitcherIcon(prefixCls, switcherIcon, _ref) {
  29318. var isLeaf = _ref.isLeaf,
  29319. expanded = _ref.expanded,
  29320. loading = _ref.loading;
  29321. var h = this.$createElement;
  29322. var showLine = this.$props.showLine;
  29323. if (loading) {
  29324. return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  29325. attrs: { type: 'loading' },
  29326. 'class': prefixCls + '-switcher-loading-icon' });
  29327. }
  29328. if (isLeaf) {
  29329. return showLine ? h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  29330. attrs: { type: 'file' },
  29331. 'class': prefixCls + '-switcher-line-icon' }) : null;
  29332. }
  29333. var switcherCls = prefixCls + '-switcher-icon';
  29334. if (switcherIcon) {
  29335. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(switcherIcon, {
  29336. 'class': babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, switcherCls, true)
  29337. });
  29338. }
  29339. return showLine ? h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  29340. attrs: {
  29341. type: expanded ? 'minus-square' : 'plus-square',
  29342. theme: 'outlined'
  29343. },
  29344. 'class': prefixCls + '-switcher-line-icon' }) : h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
  29345. attrs: { type: 'caret-down', theme: 'filled' },
  29346. 'class': switcherCls });
  29347. },
  29348. updateTreeData: function updateTreeData(treeData) {
  29349. var _this = this;
  29350. var $slots = this.$slots,
  29351. $scopedSlots = this.$scopedSlots;
  29352. var defaultFields = { children: 'children', title: 'title', key: 'key' };
  29353. var replaceFields = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, defaultFields, this.$props.replaceFields);
  29354. return treeData.map(function (item) {
  29355. var key = item[replaceFields.key];
  29356. var children = item[replaceFields.children];
  29357. var _item$on = item.on,
  29358. on = _item$on === undefined ? {} : _item$on,
  29359. _item$slots = item.slots,
  29360. slots = _item$slots === undefined ? {} : _item$slots,
  29361. _item$scopedSlots = item.scopedSlots,
  29362. scopedSlots = _item$scopedSlots === undefined ? {} : _item$scopedSlots,
  29363. cls = item['class'],
  29364. style = item.style,
  29365. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(item, ['on', 'slots', 'scopedSlots', 'class', 'style']);
  29366. var treeNodeProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, restProps, {
  29367. icon: $scopedSlots[scopedSlots.icon] || $slots[slots.icon] || restProps.icon,
  29368. switcherIcon: $scopedSlots[scopedSlots.switcherIcon] || $slots[slots.switcherIcon] || restProps.switcherIcon,
  29369. title: $scopedSlots[scopedSlots.title] || $slots[slots.title] || restProps[replaceFields.title],
  29370. dataRef: item,
  29371. on: on,
  29372. key: key,
  29373. 'class': cls,
  29374. style: style
  29375. });
  29376. if (children) {
  29377. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, treeNodeProps, { children: _this.updateTreeData(children) });
  29378. }
  29379. return treeNodeProps;
  29380. });
  29381. }
  29382. },
  29383. render: function render() {
  29384. var _this2 = this,
  29385. _class2;
  29386. var h = arguments[0];
  29387. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
  29388. var $slots = this.$slots,
  29389. $scopedSlots = this.$scopedSlots;
  29390. var customizePrefixCls = props.prefixCls,
  29391. showIcon = props.showIcon,
  29392. treeNodes = props.treeNodes,
  29393. blockNode = props.blockNode;
  29394. var getPrefixCls = this.configProvider.getPrefixCls;
  29395. var prefixCls = getPrefixCls('tree', customizePrefixCls);
  29396. var _switcherIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'switcherIcon');
  29397. var checkable = props.checkable;
  29398. var treeData = props.treeData || treeNodes;
  29399. if (treeData) {
  29400. treeData = this.updateTreeData(treeData);
  29401. }
  29402. var vcTreeProps = {
  29403. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  29404. prefixCls: prefixCls,
  29405. checkable: checkable ? h('span', { 'class': prefixCls + '-checkbox-inner' }) : checkable,
  29406. children: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["filterEmpty"])($scopedSlots['default'] ? $scopedSlots['default']() : $slots['default']),
  29407. __propsSymbol__: Symbol(),
  29408. switcherIcon: function switcherIcon(nodeProps) {
  29409. return _this2.renderSwitcherIcon(prefixCls, _switcherIcon, nodeProps);
  29410. }
  29411. }),
  29412. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
  29413. ref: 'tree',
  29414. 'class': (_class2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_class2, prefixCls + '-icon-hide', !showIcon), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_class2, prefixCls + '-block-node', blockNode), _class2)
  29415. };
  29416. if (treeData) {
  29417. vcTreeProps.props.treeData = treeData;
  29418. }
  29419. return h(_vc_tree__WEBPACK_IMPORTED_MODULE_4__["Tree"], vcTreeProps);
  29420. }
  29421. });
  29422. /***/ }),
  29423. /***/ "./components/tree/index.jsx":
  29424. /*!***********************************!*\
  29425. !*** ./components/tree/index.jsx ***!
  29426. \***********************************/
  29427. /*! exports provided: default */
  29428. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  29429. "use strict";
  29430. __webpack_require__.r(__webpack_exports__);
  29431. /* harmony import */ var _Tree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tree */ "./components/tree/Tree.jsx");
  29432. /* harmony import */ var _DirectoryTree__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DirectoryTree */ "./components/tree/DirectoryTree.jsx");
  29433. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  29434. _Tree__WEBPACK_IMPORTED_MODULE_0__["default"].TreeNode.name = 'ATreeNode';
  29435. _Tree__WEBPACK_IMPORTED_MODULE_0__["default"].DirectoryTree = _DirectoryTree__WEBPACK_IMPORTED_MODULE_1__["default"];
  29436. /* istanbul ignore next */
  29437. _Tree__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  29438. Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
  29439. Vue.component(_Tree__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Tree__WEBPACK_IMPORTED_MODULE_0__["default"]);
  29440. Vue.component(_Tree__WEBPACK_IMPORTED_MODULE_0__["default"].TreeNode.name, _Tree__WEBPACK_IMPORTED_MODULE_0__["default"].TreeNode);
  29441. Vue.component(_DirectoryTree__WEBPACK_IMPORTED_MODULE_1__["default"].name, _DirectoryTree__WEBPACK_IMPORTED_MODULE_1__["default"]);
  29442. };
  29443. /* harmony default export */ __webpack_exports__["default"] = (_Tree__WEBPACK_IMPORTED_MODULE_0__["default"]);
  29444. /***/ }),
  29445. /***/ "./components/tree/style/index.js":
  29446. /*!****************************************!*\
  29447. !*** ./components/tree/style/index.js ***!
  29448. \****************************************/
  29449. /*! no exports provided */
  29450. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  29451. "use strict";
  29452. __webpack_require__.r(__webpack_exports__);
  29453. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  29454. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  29455. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tree/style/index.less");
  29456. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  29457. /***/ }),
  29458. /***/ "./components/tree/style/index.less":
  29459. /*!******************************************!*\
  29460. !*** ./components/tree/style/index.less ***!
  29461. \******************************************/
  29462. /*! no static exports found */
  29463. /***/ (function(module, exports, __webpack_require__) {
  29464. // extracted by mini-css-extract-plugin
  29465. /***/ }),
  29466. /***/ "./components/tree/util.js":
  29467. /*!*********************************!*\
  29468. !*** ./components/tree/util.js ***!
  29469. \*********************************/
  29470. /*! exports provided: getFullKeyList, calcRangeKeys, convertDirectoryKeysToNodes, getFullKeyListByTreeData */
  29471. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  29472. "use strict";
  29473. __webpack_require__.r(__webpack_exports__);
  29474. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFullKeyList", function() { return getFullKeyList; });
  29475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calcRangeKeys", function() { return calcRangeKeys; });
  29476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertDirectoryKeysToNodes", function() { return convertDirectoryKeysToNodes; });
  29477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFullKeyListByTreeData", function() { return getFullKeyListByTreeData; });
  29478. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  29479. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  29480. /* harmony import */ var _vc_tree_src_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-tree/src/util */ "./components/vc-tree/src/util.js");
  29481. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  29482. var Record = {
  29483. None: 'node',
  29484. Start: 'start',
  29485. End: 'end'
  29486. };
  29487. // TODO: Move this logic into `rc-tree`
  29488. function traverseNodesKey(rootChildren, callback) {
  29489. var nodeList = Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_1__["getNodeChildren"])(rootChildren) || [];
  29490. function processNode(node) {
  29491. var key = node.key;
  29492. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getSlots"])(node)['default'];
  29493. if (callback(key, node) !== false) {
  29494. traverseNodesKey(typeof children === 'function' ? children() : children, callback);
  29495. }
  29496. }
  29497. nodeList.forEach(processNode);
  29498. }
  29499. function getFullKeyList(children) {
  29500. var _convertTreeToEntitie = Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_1__["convertTreeToEntities"])(children),
  29501. keyEntities = _convertTreeToEntitie.keyEntities;
  29502. return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keyEntities.keys()));
  29503. }
  29504. /** 计算选中范围,只考虑expanded情况以优化性能 */
  29505. function calcRangeKeys(rootChildren, expandedKeys, startKey, endKey) {
  29506. var keys = [];
  29507. var record = Record.None;
  29508. if (startKey && startKey === endKey) {
  29509. return [startKey];
  29510. }
  29511. if (!startKey || !endKey) {
  29512. return [];
  29513. }
  29514. function matchKey(key) {
  29515. return key === startKey || key === endKey;
  29516. }
  29517. traverseNodesKey(rootChildren, function (key) {
  29518. if (record === Record.End) {
  29519. return false;
  29520. }
  29521. if (matchKey(key)) {
  29522. // Match test
  29523. keys.push(key);
  29524. if (record === Record.None) {
  29525. record = Record.Start;
  29526. } else if (record === Record.Start) {
  29527. record = Record.End;
  29528. return false;
  29529. }
  29530. } else if (record === Record.Start) {
  29531. // Append selection
  29532. keys.push(key);
  29533. }
  29534. if (expandedKeys.indexOf(key) === -1) {
  29535. return false;
  29536. }
  29537. return true;
  29538. });
  29539. return keys;
  29540. }
  29541. function convertDirectoryKeysToNodes(rootChildren, keys) {
  29542. var restKeys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keys));
  29543. var nodes = [];
  29544. traverseNodesKey(rootChildren, function (key, node) {
  29545. var index = restKeys.indexOf(key);
  29546. if (index !== -1) {
  29547. nodes.push(node);
  29548. restKeys.splice(index, 1);
  29549. }
  29550. return !!restKeys.length;
  29551. });
  29552. return nodes;
  29553. }
  29554. function getFullKeyListByTreeData(treeData) {
  29555. var keys = [];
  29556. (treeData || []).forEach(function (item) {
  29557. keys.push(item.key);
  29558. if (item.children) {
  29559. keys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keys), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(getFullKeyListByTreeData(item.children)));
  29560. }
  29561. });
  29562. return keys;
  29563. }
  29564. /***/ }),
  29565. /***/ "./components/upload/Dragger.jsx":
  29566. /*!***************************************!*\
  29567. !*** ./components/upload/Dragger.jsx ***!
  29568. \***************************************/
  29569. /*! exports provided: default */
  29570. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  29571. "use strict";
  29572. __webpack_require__.r(__webpack_exports__);
  29573. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  29574. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  29575. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  29576. /* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Upload */ "./components/upload/Upload.jsx");
  29577. /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interface */ "./components/upload/interface.jsx");
  29578. /* harmony default export */ __webpack_exports__["default"] = ({
  29579. name: 'AUploadDragger',
  29580. props: _interface__WEBPACK_IMPORTED_MODULE_3__["UploadProps"],
  29581. render: function render() {
  29582. var h = arguments[0];
  29583. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getOptionProps"])(this);
  29584. var draggerProps = {
  29585. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
  29586. type: 'drag'
  29587. }),
  29588. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getListeners"])(this),
  29589. style: { height: this.height }
  29590. };
  29591. return h(
  29592. _Upload__WEBPACK_IMPORTED_MODULE_2__["default"],
  29593. draggerProps,
  29594. [this.$slots['default']]
  29595. );
  29596. }
  29597. });
  29598. /***/ }),
  29599. /***/ "./components/upload/Upload.jsx":
  29600. /*!**************************************!*\
  29601. !*** ./components/upload/Upload.jsx ***!
  29602. \**************************************/
  29603. /*! exports provided: UploadProps, default */
  29604. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  29605. "use strict";
  29606. __webpack_require__.r(__webpack_exports__);
  29607. /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  29608. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  29609. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  29610. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  29611. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  29612. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  29613. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  29614. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  29615. /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/uniqBy */ "./node_modules/lodash/uniqBy.js");
  29616. /* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4__);
  29617. /* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/findIndex */ "./node_modules/lodash/findIndex.js");
  29618. /* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_findIndex__WEBPACK_IMPORTED_MODULE_5__);
  29619. /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js");
  29620. /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_6__);
  29621. /* harmony import */ var _vc_upload__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-upload */ "./components/vc-upload/index.js");
  29622. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  29623. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  29624. /* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
  29625. /* harmony import */ var _locale_provider_default__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../locale-provider/default */ "./components/locale-provider/default.js");
  29626. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  29627. /* harmony import */ var _Dragger__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Dragger */ "./components/upload/Dragger.jsx");
  29628. /* harmony import */ var _UploadList__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./UploadList */ "./components/upload/UploadList.jsx");
  29629. /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./interface */ "./components/upload/interface.jsx");
  29630. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_15__["UploadProps"]; });
  29631. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./utils */ "./components/upload/utils.jsx");
  29632. /* harmony default export */ __webpack_exports__["default"] = ({
  29633. name: 'AUpload',
  29634. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
  29635. inheritAttrs: false,
  29636. Dragger: _Dragger__WEBPACK_IMPORTED_MODULE_13__["default"],
  29637. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["initDefaultProps"])(_interface__WEBPACK_IMPORTED_MODULE_15__["UploadProps"], {
  29638. type: 'select',
  29639. multiple: false,
  29640. action: '',
  29641. data: {},
  29642. accept: '',
  29643. beforeUpload: _utils__WEBPACK_IMPORTED_MODULE_16__["T"],
  29644. showUploadList: true,
  29645. listType: 'text', // or pictrue
  29646. disabled: false,
  29647. supportServerRender: true
  29648. }),
  29649. inject: {
  29650. configProvider: { 'default': function _default() {
  29651. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
  29652. } }
  29653. },
  29654. // recentUploadStatus: boolean | PromiseLike<any>;
  29655. data: function data() {
  29656. this.progressTimer = null;
  29657. return {
  29658. sFileList: this.fileList || this.defaultFileList || [],
  29659. dragState: 'drop'
  29660. };
  29661. },
  29662. watch: {
  29663. fileList: function fileList(val) {
  29664. this.sFileList = val || [];
  29665. }
  29666. },
  29667. beforeDestroy: function beforeDestroy() {
  29668. this.clearProgressTimer();
  29669. },
  29670. methods: {
  29671. onStart: function onStart(file) {
  29672. var targetItem = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["fileToObject"])(file);
  29673. targetItem.status = 'uploading';
  29674. var nextFileList = this.sFileList.concat();
  29675. var fileIndex = lodash_findIndex__WEBPACK_IMPORTED_MODULE_5___default()(nextFileList, function (_ref) {
  29676. var uid = _ref.uid;
  29677. return uid === targetItem.uid;
  29678. });
  29679. if (fileIndex === -1) {
  29680. nextFileList.push(targetItem);
  29681. } else {
  29682. nextFileList[fileIndex] = targetItem;
  29683. }
  29684. this.onChange({
  29685. file: targetItem,
  29686. fileList: nextFileList
  29687. });
  29688. // fix ie progress
  29689. if (!window.File || process.env.TEST_IE) {
  29690. this.autoUpdateProgress(0, targetItem);
  29691. }
  29692. },
  29693. onSuccess: function onSuccess(response, file, xhr) {
  29694. this.clearProgressTimer();
  29695. try {
  29696. if (typeof response === 'string') {
  29697. response = JSON.parse(response);
  29698. }
  29699. } catch (e) {
  29700. /* do nothing */
  29701. }
  29702. var fileList = this.sFileList;
  29703. var targetItem = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getFileItem"])(file, fileList);
  29704. // removed
  29705. if (!targetItem) {
  29706. return;
  29707. }
  29708. targetItem.status = 'done';
  29709. targetItem.response = response;
  29710. targetItem.xhr = xhr;
  29711. this.onChange({
  29712. file: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, targetItem),
  29713. fileList: fileList
  29714. });
  29715. },
  29716. onProgress: function onProgress(e, file) {
  29717. var fileList = this.sFileList;
  29718. var targetItem = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getFileItem"])(file, fileList);
  29719. // removed
  29720. if (!targetItem) {
  29721. return;
  29722. }
  29723. targetItem.percent = e.percent;
  29724. this.onChange({
  29725. event: e,
  29726. file: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, targetItem),
  29727. fileList: this.sFileList
  29728. });
  29729. },
  29730. onError: function onError(error, response, file) {
  29731. this.clearProgressTimer();
  29732. var fileList = this.sFileList;
  29733. var targetItem = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getFileItem"])(file, fileList);
  29734. // removed
  29735. if (!targetItem) {
  29736. return;
  29737. }
  29738. targetItem.error = error;
  29739. targetItem.response = response;
  29740. targetItem.status = 'error';
  29741. this.onChange({
  29742. file: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, targetItem),
  29743. fileList: fileList
  29744. });
  29745. },
  29746. onReject: function onReject(fileList) {
  29747. this.$emit('reject', fileList);
  29748. },
  29749. handleRemove: function handleRemove(file) {
  29750. var _this = this;
  29751. var onRemove = this.remove;
  29752. var fileList = this.$data.sFileList;
  29753. Promise.resolve(typeof onRemove === 'function' ? onRemove(file) : onRemove).then(function (ret) {
  29754. // Prevent removing file
  29755. if (ret === false) {
  29756. return;
  29757. }
  29758. var removedFileList = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["removeFileItem"])(file, fileList);
  29759. if (removedFileList) {
  29760. file.status = 'removed'; // eslint-disable-line
  29761. if (_this.upload) {
  29762. _this.upload.abort(file);
  29763. }
  29764. _this.onChange({
  29765. file: file,
  29766. fileList: removedFileList
  29767. });
  29768. }
  29769. });
  29770. },
  29771. handleManualRemove: function handleManualRemove(file) {
  29772. if (this.$refs.uploadRef) {
  29773. this.$refs.uploadRef.abort(file);
  29774. }
  29775. this.handleRemove(file);
  29776. },
  29777. onChange: function onChange(info) {
  29778. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["hasProp"])(this, 'fileList')) {
  29779. this.setState({ sFileList: info.fileList });
  29780. }
  29781. this.$emit('change', info);
  29782. },
  29783. onFileDrop: function onFileDrop(e) {
  29784. this.setState({
  29785. dragState: e.type
  29786. });
  29787. },
  29788. reBeforeUpload: function reBeforeUpload(file, fileList) {
  29789. var beforeUpload = this.$props.beforeUpload;
  29790. var stateFileList = this.$data.sFileList;
  29791. if (!beforeUpload) {
  29792. return true;
  29793. }
  29794. var result = beforeUpload(file, fileList);
  29795. if (result === false) {
  29796. this.onChange({
  29797. file: file,
  29798. fileList: lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4___default()(stateFileList.concat(fileList.map(_utils__WEBPACK_IMPORTED_MODULE_16__["fileToObject"])), function (item) {
  29799. return item.uid;
  29800. })
  29801. });
  29802. return false;
  29803. }
  29804. if (result && result.then) {
  29805. return result;
  29806. }
  29807. return true;
  29808. },
  29809. clearProgressTimer: function clearProgressTimer() {
  29810. clearInterval(this.progressTimer);
  29811. },
  29812. autoUpdateProgress: function autoUpdateProgress(_, file) {
  29813. var _this2 = this;
  29814. var getPercent = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["genPercentAdd"])();
  29815. var curPercent = 0;
  29816. this.clearProgressTimer();
  29817. this.progressTimer = setInterval(function () {
  29818. curPercent = getPercent(curPercent);
  29819. _this2.onProgress({
  29820. percent: curPercent * 100
  29821. }, file);
  29822. }, 200);
  29823. },
  29824. renderUploadList: function renderUploadList(locale) {
  29825. var h = this.$createElement;
  29826. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this),
  29827. _getOptionProps$showU = _getOptionProps.showUploadList,
  29828. showUploadList = _getOptionProps$showU === undefined ? {} : _getOptionProps$showU,
  29829. listType = _getOptionProps.listType,
  29830. previewFile = _getOptionProps.previewFile,
  29831. disabled = _getOptionProps.disabled,
  29832. propLocale = _getOptionProps.locale;
  29833. var showRemoveIcon = showUploadList.showRemoveIcon,
  29834. showPreviewIcon = showUploadList.showPreviewIcon,
  29835. showDownloadIcon = showUploadList.showDownloadIcon;
  29836. var fileList = this.$data.sFileList;
  29837. var uploadListProps = {
  29838. props: {
  29839. listType: listType,
  29840. items: fileList,
  29841. previewFile: previewFile,
  29842. showRemoveIcon: !disabled && showRemoveIcon,
  29843. showPreviewIcon: showPreviewIcon,
  29844. showDownloadIcon: showDownloadIcon,
  29845. locale: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, locale, propLocale)
  29846. },
  29847. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  29848. remove: this.handleManualRemove
  29849. }, lodash_pick__WEBPACK_IMPORTED_MODULE_6___default()(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this), ['download', 'preview']))
  29850. };
  29851. return h(_UploadList__WEBPACK_IMPORTED_MODULE_14__["default"], uploadListProps);
  29852. }
  29853. },
  29854. render: function render() {
  29855. var _classNames2;
  29856. var h = arguments[0];
  29857. var _getOptionProps2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this),
  29858. customizePrefixCls = _getOptionProps2.prefixCls,
  29859. showUploadList = _getOptionProps2.showUploadList,
  29860. listType = _getOptionProps2.listType,
  29861. type = _getOptionProps2.type,
  29862. disabled = _getOptionProps2.disabled;
  29863. var _$data = this.$data,
  29864. fileList = _$data.sFileList,
  29865. dragState = _$data.dragState;
  29866. var getPrefixCls = this.configProvider.getPrefixCls;
  29867. var prefixCls = getPrefixCls('upload', customizePrefixCls);
  29868. var vcUploadProps = {
  29869. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, {
  29870. prefixCls: prefixCls,
  29871. beforeUpload: this.reBeforeUpload
  29872. }),
  29873. on: {
  29874. start: this.onStart,
  29875. error: this.onError,
  29876. progress: this.onProgress,
  29877. success: this.onSuccess,
  29878. reject: this.onReject
  29879. },
  29880. ref: 'uploadRef',
  29881. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$attrs)
  29882. };
  29883. var children = this.$slots['default'];
  29884. // Remove id to avoid open by label when trigger is hidden
  29885. // https://github.com/ant-design/ant-design/issues/14298
  29886. if (!children || disabled) {
  29887. delete vcUploadProps.props.id;
  29888. delete vcUploadProps.attrs.id;
  29889. }
  29890. var uploadList = showUploadList ? h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__["default"], {
  29891. attrs: {
  29892. componentName: 'Upload',
  29893. defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_11__["default"].Upload
  29894. },
  29895. scopedSlots: { 'default': this.renderUploadList }
  29896. }) : null;
  29897. if (type === 'drag') {
  29898. var _classNames;
  29899. var dragCls = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-drag', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-drag-uploading', fileList.some(function (file) {
  29900. return file.status === 'uploading';
  29901. })), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-drag-hover', dragState === 'dragover'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
  29902. return h('span', [h(
  29903. 'div',
  29904. {
  29905. 'class': dragCls,
  29906. on: {
  29907. 'drop': this.onFileDrop,
  29908. 'dragover': this.onFileDrop,
  29909. 'dragleave': this.onFileDrop
  29910. }
  29911. },
  29912. [h(
  29913. _vc_upload__WEBPACK_IMPORTED_MODULE_7__["default"],
  29914. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([vcUploadProps, { 'class': prefixCls + '-btn' }]),
  29915. [h(
  29916. 'div',
  29917. { 'class': prefixCls + '-drag-container' },
  29918. [children]
  29919. )]
  29920. )]
  29921. ), uploadList]);
  29922. }
  29923. var uploadButtonCls = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-select', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-select-' + listType, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-disabled', disabled), _classNames2));
  29924. var uploadButton = h(
  29925. 'div',
  29926. { 'class': uploadButtonCls, style: children ? undefined : { display: 'none' } },
  29927. [h(
  29928. _vc_upload__WEBPACK_IMPORTED_MODULE_7__["default"],
  29929. vcUploadProps,
  29930. [children]
  29931. )]
  29932. );
  29933. if (listType === 'picture-card') {
  29934. return h(
  29935. 'span',
  29936. { 'class': prefixCls + '-picture-card-wrapper' },
  29937. [uploadList, uploadButton]
  29938. );
  29939. }
  29940. return h('span', [uploadButton, uploadList]);
  29941. }
  29942. });
  29943. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/process/browser.js */ "./node_modules/process/browser.js")))
  29944. /***/ }),
  29945. /***/ "./components/upload/UploadList.jsx":
  29946. /*!******************************************!*\
  29947. !*** ./components/upload/UploadList.jsx ***!
  29948. \******************************************/
  29949. /*! exports provided: default */
  29950. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  29951. "use strict";
  29952. __webpack_require__.r(__webpack_exports__);
  29953. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  29954. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  29955. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  29956. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  29957. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  29958. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  29959. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  29960. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  29961. /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
  29962. /* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
  29963. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ "./components/upload/utils.jsx");
  29964. /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
  29965. /* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
  29966. /* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../progress */ "./components/progress/index.jsx");
  29967. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  29968. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_11__);
  29969. /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./interface */ "./components/upload/interface.jsx");
  29970. /* harmony default export */ __webpack_exports__["default"] = ({
  29971. name: 'AUploadList',
  29972. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  29973. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(_interface__WEBPACK_IMPORTED_MODULE_12__["UploadListProps"], {
  29974. listType: 'text', // or picture
  29975. progressAttr: {
  29976. strokeWidth: 2,
  29977. showInfo: false
  29978. },
  29979. showRemoveIcon: true,
  29980. showDownloadIcon: false,
  29981. showPreviewIcon: true,
  29982. previewFile: _utils__WEBPACK_IMPORTED_MODULE_7__["previewImage"]
  29983. }),
  29984. inject: {
  29985. configProvider: { 'default': function _default() {
  29986. return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
  29987. } }
  29988. },
  29989. updated: function updated() {
  29990. var _this = this;
  29991. this.$nextTick(function () {
  29992. var _$props = _this.$props,
  29993. listType = _$props.listType,
  29994. items = _$props.items,
  29995. previewFile = _$props.previewFile;
  29996. if (listType !== 'picture' && listType !== 'picture-card') {
  29997. return;
  29998. }
  29999. (items || []).forEach(function (file) {
  30000. if (typeof document === 'undefined' || typeof window === 'undefined' || !window.FileReader || !window.File || !(file.originFileObj instanceof File || file.originFileObj instanceof Blob) || file.thumbUrl !== undefined) {
  30001. return;
  30002. }
  30003. /*eslint-disable */
  30004. file.thumbUrl = '';
  30005. if (previewFile) {
  30006. previewFile(file.originFileObj).then(function (previewDataUrl) {
  30007. // Need append '' to avoid dead loop
  30008. file.thumbUrl = previewDataUrl || '';
  30009. _this.$forceUpdate();
  30010. });
  30011. }
  30012. });
  30013. });
  30014. },
  30015. methods: {
  30016. handlePreview: function handlePreview(file, e) {
  30017. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
  30018. preview = _getListeners.preview;
  30019. if (!preview) {
  30020. return;
  30021. }
  30022. e.preventDefault();
  30023. return this.$emit('preview', file);
  30024. },
  30025. handleDownload: function handleDownload(file) {
  30026. var _getListeners2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
  30027. download = _getListeners2.download;
  30028. if (typeof download === 'function') {
  30029. download(file);
  30030. } else if (file.url) {
  30031. window.open(file.url);
  30032. }
  30033. },
  30034. handleClose: function handleClose(file) {
  30035. this.$emit('remove', file);
  30036. }
  30037. },
  30038. render: function render() {
  30039. var _this2 = this,
  30040. _classNames4;
  30041. var h = arguments[0];
  30042. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
  30043. customizePrefixCls = _getOptionProps.prefixCls,
  30044. _getOptionProps$items = _getOptionProps.items,
  30045. items = _getOptionProps$items === undefined ? [] : _getOptionProps$items,
  30046. listType = _getOptionProps.listType,
  30047. showPreviewIcon = _getOptionProps.showPreviewIcon,
  30048. showRemoveIcon = _getOptionProps.showRemoveIcon,
  30049. showDownloadIcon = _getOptionProps.showDownloadIcon,
  30050. locale = _getOptionProps.locale,
  30051. progressAttr = _getOptionProps.progressAttr;
  30052. var getPrefixCls = this.configProvider.getPrefixCls;
  30053. var prefixCls = getPrefixCls('upload', customizePrefixCls);
  30054. var list = items.map(function (file) {
  30055. var _classNames, _classNames2;
  30056. var progress = void 0;
  30057. var icon = h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
  30058. attrs: { type: file.status === 'uploading' ? 'loading' : 'paper-clip' }
  30059. });
  30060. if (listType === 'picture' || listType === 'picture-card') {
  30061. if (listType === 'picture-card' && file.status === 'uploading') {
  30062. icon = h(
  30063. 'div',
  30064. { 'class': prefixCls + '-list-item-uploading-text' },
  30065. [locale.uploading]
  30066. );
  30067. } else if (!file.thumbUrl && !file.url) {
  30068. icon = h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], { 'class': prefixCls + '-list-item-thumbnail', attrs: { type: 'picture', theme: 'twoTone' }
  30069. });
  30070. } else {
  30071. var thumbnail = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["isImageUrl"])(file) ? h('img', {
  30072. attrs: {
  30073. src: file.thumbUrl || file.url,
  30074. alt: file.name
  30075. },
  30076. 'class': prefixCls + '-list-item-image'
  30077. }) : h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
  30078. attrs: { type: 'file', theme: 'twoTone' },
  30079. 'class': prefixCls + '-list-item-icon' });
  30080. icon = h(
  30081. 'a',
  30082. {
  30083. 'class': prefixCls + '-list-item-thumbnail',
  30084. on: {
  30085. 'click': function click(e) {
  30086. return _this2.handlePreview(file, e);
  30087. }
  30088. },
  30089. attrs: {
  30090. href: file.url || file.thumbUrl,
  30091. target: '_blank',
  30092. rel: 'noopener noreferrer'
  30093. }
  30094. },
  30095. [thumbnail]
  30096. );
  30097. }
  30098. }
  30099. if (file.status === 'uploading') {
  30100. var progressProps = {
  30101. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, progressAttr, {
  30102. type: 'line',
  30103. percent: file.percent
  30104. })
  30105. };
  30106. // show loading icon if upload progress listener is disabled
  30107. var loadingProgress = 'percent' in file ? h(_progress__WEBPACK_IMPORTED_MODULE_10__["default"], progressProps) : null;
  30108. progress = h(
  30109. 'div',
  30110. { 'class': prefixCls + '-list-item-progress', key: 'progress' },
  30111. [loadingProgress]
  30112. );
  30113. }
  30114. var infoUploadingClass = classnames__WEBPACK_IMPORTED_MODULE_11___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-list-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-list-item-' + file.status, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-list-item-list-type-' + listType, true), _classNames));
  30115. var linkProps = typeof file.linkProps === 'string' ? JSON.parse(file.linkProps) : file.linkProps;
  30116. var removeIcon = showRemoveIcon ? h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
  30117. attrs: { type: 'delete', title: locale.removeFile },
  30118. on: {
  30119. 'click': function click() {
  30120. return _this2.handleClose(file);
  30121. }
  30122. }
  30123. }) : null;
  30124. var downloadIcon = showDownloadIcon && file.status === 'done' ? h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
  30125. attrs: {
  30126. type: 'download',
  30127. title: locale.downloadFile
  30128. },
  30129. on: {
  30130. 'click': function click() {
  30131. return _this2.handleDownload(file);
  30132. }
  30133. }
  30134. }) : null;
  30135. var downloadOrDelete = listType !== 'picture-card' && h(
  30136. 'span',
  30137. {
  30138. key: 'download-delete',
  30139. 'class': prefixCls + '-list-item-card-actions ' + (listType === 'picture' ? 'picture' : '')
  30140. },
  30141. [downloadIcon && h(
  30142. 'a',
  30143. {
  30144. attrs: { title: locale.downloadFile }
  30145. },
  30146. [downloadIcon]
  30147. ), removeIcon && h(
  30148. 'a',
  30149. {
  30150. attrs: { title: locale.removeFile }
  30151. },
  30152. [removeIcon]
  30153. )]
  30154. );
  30155. var listItemNameClass = classnames__WEBPACK_IMPORTED_MODULE_11___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-list-item-name', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-list-item-name-icon-count-' + [downloadIcon, removeIcon].filter(function (x) {
  30156. return x;
  30157. }).length, true), _classNames2));
  30158. var preview = file.url ? [h(
  30159. 'a',
  30160. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  30161. attrs: {
  30162. target: '_blank',
  30163. rel: 'noopener noreferrer',
  30164. title: file.name
  30165. },
  30166. 'class': listItemNameClass }, linkProps, {
  30167. attrs: {
  30168. href: file.url
  30169. },
  30170. on: {
  30171. 'click': function click(e) {
  30172. return _this2.handlePreview(file, e);
  30173. }
  30174. }
  30175. }]),
  30176. [file.name]
  30177. ), downloadOrDelete] : [h(
  30178. 'span',
  30179. {
  30180. key: 'view',
  30181. 'class': prefixCls + '-list-item-name',
  30182. on: {
  30183. 'click': function click(e) {
  30184. return _this2.handlePreview(file, e);
  30185. }
  30186. },
  30187. attrs: {
  30188. title: file.name
  30189. }
  30190. },
  30191. [file.name]
  30192. ), downloadOrDelete];
  30193. var style = file.url || file.thumbUrl ? undefined : {
  30194. pointerEvents: 'none',
  30195. opacity: 0.5
  30196. };
  30197. var previewIcon = showPreviewIcon ? h(
  30198. 'a',
  30199. {
  30200. attrs: {
  30201. href: file.url || file.thumbUrl,
  30202. target: '_blank',
  30203. rel: 'noopener noreferrer',
  30204. title: locale.previewFile
  30205. },
  30206. style: style,
  30207. on: {
  30208. 'click': function click(e) {
  30209. return _this2.handlePreview(file, e);
  30210. }
  30211. }
  30212. },
  30213. [h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
  30214. attrs: { type: 'eye-o' }
  30215. })]
  30216. ) : null;
  30217. var actions = listType === 'picture-card' && file.status !== 'uploading' && h(
  30218. 'span',
  30219. { 'class': prefixCls + '-list-item-actions' },
  30220. [previewIcon, file.status === 'done' && downloadIcon, removeIcon]
  30221. );
  30222. var message = void 0;
  30223. if (file.response && typeof file.response === 'string') {
  30224. message = file.response;
  30225. } else {
  30226. message = file.error && file.error.statusText || locale.uploadError;
  30227. }
  30228. var iconAndPreview = h('span', [icon, preview]);
  30229. var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__["default"])('fade');
  30230. var dom = h(
  30231. 'div',
  30232. { 'class': infoUploadingClass, key: file.uid },
  30233. [h(
  30234. 'div',
  30235. { 'class': prefixCls + '-list-item-info' },
  30236. [iconAndPreview]
  30237. ), actions, h(
  30238. 'transition',
  30239. transitionProps,
  30240. [progress]
  30241. )]
  30242. );
  30243. var listContainerNameClass = classnames__WEBPACK_IMPORTED_MODULE_11___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-list-picture-card-container', listType === 'picture-card'));
  30244. return h(
  30245. 'div',
  30246. { key: file.uid, 'class': listContainerNameClass },
  30247. [file.status === 'error' ? h(
  30248. _tooltip__WEBPACK_IMPORTED_MODULE_9__["default"],
  30249. {
  30250. attrs: { title: message }
  30251. },
  30252. [dom]
  30253. ) : h('span', [dom])]
  30254. );
  30255. });
  30256. var listClassNames = classnames__WEBPACK_IMPORTED_MODULE_11___default()((_classNames4 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-list', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-list-' + listType, true), _classNames4));
  30257. var animationDirection = listType === 'picture-card' ? 'animate-inline' : 'animate';
  30258. var transitionGroupProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__["default"])(prefixCls + '-' + animationDirection);
  30259. return h(
  30260. 'transition-group',
  30261. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([transitionGroupProps, {
  30262. attrs: { tag: 'div' },
  30263. 'class': listClassNames }]),
  30264. [list]
  30265. );
  30266. }
  30267. });
  30268. /***/ }),
  30269. /***/ "./components/upload/index.jsx":
  30270. /*!*************************************!*\
  30271. !*** ./components/upload/index.jsx ***!
  30272. \*************************************/
  30273. /*! exports provided: UploadProps, UploadListProps, UploadChangeParam, default */
  30274. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30275. "use strict";
  30276. __webpack_require__.r(__webpack_exports__);
  30277. /* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Upload */ "./components/upload/Upload.jsx");
  30278. /* harmony import */ var _Dragger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dragger */ "./components/upload/Dragger.jsx");
  30279. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  30280. /* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interface */ "./components/upload/interface.jsx");
  30281. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_3__["UploadProps"]; });
  30282. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadListProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_3__["UploadListProps"]; });
  30283. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadChangeParam", function() { return _interface__WEBPACK_IMPORTED_MODULE_3__["UploadChangeParam"]; });
  30284. _Upload__WEBPACK_IMPORTED_MODULE_0__["default"].Dragger = _Dragger__WEBPACK_IMPORTED_MODULE_1__["default"];
  30285. /* istanbul ignore next */
  30286. _Upload__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
  30287. Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
  30288. Vue.component(_Upload__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Upload__WEBPACK_IMPORTED_MODULE_0__["default"]);
  30289. Vue.component(_Dragger__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Dragger__WEBPACK_IMPORTED_MODULE_1__["default"]);
  30290. };
  30291. /* harmony default export */ __webpack_exports__["default"] = (_Upload__WEBPACK_IMPORTED_MODULE_0__["default"]);
  30292. /***/ }),
  30293. /***/ "./components/upload/interface.jsx":
  30294. /*!*****************************************!*\
  30295. !*** ./components/upload/interface.jsx ***!
  30296. \*****************************************/
  30297. /*! exports provided: UploadFileStatus, UploadChangeParam, ShowUploadListInterface, UploadLocale, UploadProps, UploadState, UploadListProps */
  30298. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30299. "use strict";
  30300. __webpack_require__.r(__webpack_exports__);
  30301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadFileStatus", function() { return UploadFileStatus; });
  30302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadChangeParam", function() { return UploadChangeParam; });
  30303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShowUploadListInterface", function() { return ShowUploadListInterface; });
  30304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadLocale", function() { return UploadLocale; });
  30305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadProps", function() { return UploadProps; });
  30306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadState", function() { return UploadState; });
  30307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadListProps", function() { return UploadListProps; });
  30308. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  30309. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  30310. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  30311. var UploadFileStatus = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['error', 'success', 'done', 'uploading', 'removed']);
  30312. // export const HttpRequestHeader {
  30313. // [key: string]: string;
  30314. // }
  30315. // export const UploadFile = PropsTypes.shape({
  30316. // uid: PropsTypes.oneOfType([
  30317. // PropsTypes.string,
  30318. // PropsTypes.number,
  30319. // ]),
  30320. // size: PropsTypes.number,
  30321. // name: PropsTypes.string,
  30322. // filename: PropsTypes.string,
  30323. // lastModified: PropsTypes.number,
  30324. // lastModifiedDate: PropsTypes.any,
  30325. // url: PropsTypes.string,
  30326. // status: UploadFileStatus,
  30327. // percent: PropsTypes.number,
  30328. // thumbUrl: PropsTypes.string,
  30329. // originFileObj: PropsTypes.any,
  30330. // response: PropsTypes.any,
  30331. // error: PropsTypes.any,
  30332. // linkProps: PropsTypes.any,
  30333. // type: PropsTypes.string,
  30334. // }).loose
  30335. function UploadFile(_ref) {
  30336. var uid = _ref.uid,
  30337. name = _ref.name;
  30338. if (!uid && uid !== 0) return false;
  30339. if (!['string', 'number'].includes(typeof uid === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(uid))) return false;
  30340. if (name === '' || typeof name !== 'string') return false;
  30341. return true;
  30342. }
  30343. var UploadChangeParam = {
  30344. file: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile),
  30345. fileList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
  30346. event: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object
  30347. };
  30348. var ShowUploadListInterface = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
  30349. showRemoveIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  30350. showPreviewIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
  30351. }).loose;
  30352. var UploadLocale = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
  30353. uploading: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  30354. removeFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  30355. downloadFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  30356. uploadError: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  30357. previewFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
  30358. }).loose;
  30359. var UploadProps = {
  30360. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['drag', 'select']),
  30361. name: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  30362. defaultFileList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
  30363. fileList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
  30364. action: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
  30365. directory: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  30366. data: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
  30367. method: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['POST', 'PUT', 'post', 'put']),
  30368. headers: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  30369. showUploadList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool, ShowUploadListInterface]),
  30370. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  30371. accept: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  30372. beforeUpload: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  30373. // onChange: PropsTypes.func,
  30374. listType: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['text', 'picture', 'picture-card']),
  30375. // className: PropsTypes.string,
  30376. // onPreview: PropsTypes.func,
  30377. remove: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  30378. supportServerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  30379. // style: PropsTypes.object,
  30380. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  30381. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  30382. customRequest: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  30383. withCredentials: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  30384. openFileDialogOnClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  30385. locale: UploadLocale,
  30386. height: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  30387. id: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  30388. previewFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  30389. transformFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  30390. };
  30391. var UploadState = {
  30392. fileList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
  30393. dragState: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
  30394. };
  30395. var UploadListProps = {
  30396. listType: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['text', 'picture', 'picture-card']),
  30397. // onPreview: PropsTypes.func,
  30398. // onRemove: PropsTypes.func,
  30399. // items: PropsTypes.arrayOf(UploadFile),
  30400. items: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
  30401. // items: PropsTypes.any,
  30402. progressAttr: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  30403. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  30404. showRemoveIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  30405. showDownloadIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  30406. showPreviewIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  30407. locale: UploadLocale,
  30408. previewFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  30409. };
  30410. /***/ }),
  30411. /***/ "./components/upload/style/index.js":
  30412. /*!******************************************!*\
  30413. !*** ./components/upload/style/index.js ***!
  30414. \******************************************/
  30415. /*! no exports provided */
  30416. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30417. "use strict";
  30418. __webpack_require__.r(__webpack_exports__);
  30419. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  30420. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  30421. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/upload/style/index.less");
  30422. /* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
  30423. /* harmony import */ var _progress_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../progress/style */ "./components/progress/style/index.js");
  30424. /* harmony import */ var _tooltip_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../tooltip/style */ "./components/tooltip/style/index.js");
  30425. // style dependencies
  30426. /***/ }),
  30427. /***/ "./components/upload/style/index.less":
  30428. /*!********************************************!*\
  30429. !*** ./components/upload/style/index.less ***!
  30430. \********************************************/
  30431. /*! no static exports found */
  30432. /***/ (function(module, exports, __webpack_require__) {
  30433. // extracted by mini-css-extract-plugin
  30434. /***/ }),
  30435. /***/ "./components/upload/utils.jsx":
  30436. /*!*************************************!*\
  30437. !*** ./components/upload/utils.jsx ***!
  30438. \*************************************/
  30439. /*! exports provided: T, fileToObject, genPercentAdd, getFileItem, removeFileItem, isImageUrl, previewImage */
  30440. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30441. "use strict";
  30442. __webpack_require__.r(__webpack_exports__);
  30443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return T; });
  30444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fileToObject", function() { return fileToObject; });
  30445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "genPercentAdd", function() { return genPercentAdd; });
  30446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFileItem", function() { return getFileItem; });
  30447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeFileItem", function() { return removeFileItem; });
  30448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isImageUrl", function() { return isImageUrl; });
  30449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "previewImage", function() { return previewImage; });
  30450. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  30451. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  30452. function T() {
  30453. return true;
  30454. }
  30455. // Fix IE file.status problem
  30456. // via coping a new Object
  30457. function fileToObject(file) {
  30458. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, file, {
  30459. lastModified: file.lastModified,
  30460. lastModifiedDate: file.lastModifiedDate,
  30461. name: file.name,
  30462. size: file.size,
  30463. type: file.type,
  30464. uid: file.uid,
  30465. percent: 0,
  30466. originFileObj: file
  30467. });
  30468. }
  30469. /**
  30470. * 生成Progress percent: 0.1 -> 0.98
  30471. * - for ie
  30472. */
  30473. function genPercentAdd() {
  30474. var k = 0.1;
  30475. var i = 0.01;
  30476. var end = 0.98;
  30477. return function (s) {
  30478. var start = s;
  30479. if (start >= end) {
  30480. return start;
  30481. }
  30482. start += k;
  30483. k = k - i;
  30484. if (k < 0.001) {
  30485. k = 0.001;
  30486. }
  30487. return start;
  30488. };
  30489. }
  30490. function getFileItem(file, fileList) {
  30491. var matchKey = file.uid !== undefined ? 'uid' : 'name';
  30492. return fileList.filter(function (item) {
  30493. return item[matchKey] === file[matchKey];
  30494. })[0];
  30495. }
  30496. function removeFileItem(file, fileList) {
  30497. var matchKey = file.uid !== undefined ? 'uid' : 'name';
  30498. var removed = fileList.filter(function (item) {
  30499. return item[matchKey] !== file[matchKey];
  30500. });
  30501. if (removed.length === fileList.length) {
  30502. return null;
  30503. }
  30504. return removed;
  30505. }
  30506. // ==================== Default Image Preview ====================
  30507. var extname = function extname() {
  30508. var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  30509. var temp = url.split('/');
  30510. var filename = temp[temp.length - 1];
  30511. var filenameWithoutSuffix = filename.split(/#|\?/)[0];
  30512. return (/\.[^./\\]*$/.exec(filenameWithoutSuffix) || [''])[0];
  30513. };
  30514. var isImageFileType = function isImageFileType(type) {
  30515. return !!type && type.indexOf('image/') === 0;
  30516. };
  30517. var isImageUrl = function isImageUrl(file) {
  30518. if (isImageFileType(file.type)) {
  30519. return true;
  30520. }
  30521. var url = file.thumbUrl || file.url;
  30522. var extension = extname(url);
  30523. if (/^data:image\//.test(url) || /(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(extension)) {
  30524. return true;
  30525. }
  30526. if (/^data:/.test(url)) {
  30527. // other file types of base64
  30528. return false;
  30529. }
  30530. if (extension) {
  30531. // other file types which have extension
  30532. return false;
  30533. }
  30534. return true;
  30535. };
  30536. var MEASURE_SIZE = 200;
  30537. function previewImage(file) {
  30538. return new Promise(function (resolve) {
  30539. if (!isImageFileType(file.type)) {
  30540. resolve('');
  30541. return;
  30542. }
  30543. var canvas = document.createElement('canvas');
  30544. canvas.width = MEASURE_SIZE;
  30545. canvas.height = MEASURE_SIZE;
  30546. canvas.style.cssText = 'position: fixed; left: 0; top: 0; width: ' + MEASURE_SIZE + 'px; height: ' + MEASURE_SIZE + 'px; z-index: 9999; display: none;';
  30547. document.body.appendChild(canvas);
  30548. var ctx = canvas.getContext('2d');
  30549. var img = new Image();
  30550. img.onload = function () {
  30551. var width = img.width,
  30552. height = img.height;
  30553. var drawWidth = MEASURE_SIZE;
  30554. var drawHeight = MEASURE_SIZE;
  30555. var offsetX = 0;
  30556. var offsetY = 0;
  30557. if (width < height) {
  30558. drawHeight = height * (MEASURE_SIZE / width);
  30559. offsetY = -(drawHeight - drawWidth) / 2;
  30560. } else {
  30561. drawWidth = width * (MEASURE_SIZE / height);
  30562. offsetX = -(drawWidth - drawHeight) / 2;
  30563. }
  30564. ctx.drawImage(img, offsetX, offsetY, drawWidth, drawHeight);
  30565. var dataURL = canvas.toDataURL();
  30566. document.body.removeChild(canvas);
  30567. resolve(dataURL);
  30568. };
  30569. img.src = window.URL.createObjectURL(file);
  30570. });
  30571. }
  30572. /***/ }),
  30573. /***/ "./components/vc-align/Align.jsx":
  30574. /*!***************************************!*\
  30575. !*** ./components/vc-align/Align.jsx ***!
  30576. \***************************************/
  30577. /*! exports provided: default */
  30578. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30579. "use strict";
  30580. __webpack_require__.r(__webpack_exports__);
  30581. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  30582. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  30583. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  30584. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
  30585. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  30586. /* harmony import */ var dom_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-align */ "./node_modules/dom-align/dist-web/index.js");
  30587. /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
  30588. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./components/vc-align/util.js");
  30589. /* harmony import */ var _util_vnode_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vnode.js */ "./components/_util/vnode.js");
  30590. /* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");
  30591. /* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_7__);
  30592. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  30593. function getElement(func) {
  30594. if (typeof func !== 'function' || !func) return null;
  30595. return func();
  30596. }
  30597. function getPoint(point) {
  30598. if ((typeof point === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(point)) !== 'object' || !point) return null;
  30599. return point;
  30600. }
  30601. /* harmony default export */ __webpack_exports__["default"] = ({
  30602. props: {
  30603. childrenProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  30604. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired,
  30605. target: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object]).def(function () {
  30606. return window;
  30607. }),
  30608. monitorBufferTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(50),
  30609. monitorWindowResize: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
  30610. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false)
  30611. },
  30612. data: function data() {
  30613. this.aligned = false;
  30614. return {};
  30615. },
  30616. mounted: function mounted() {
  30617. var _this = this;
  30618. this.$nextTick(function () {
  30619. _this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _this.$props);
  30620. var props = _this.$props;
  30621. // if parent ref not attached .... use document.getElementById
  30622. !_this.aligned && _this.forceAlign();
  30623. if (!props.disabled && props.monitorWindowResize) {
  30624. _this.startMonitorWindowResize();
  30625. }
  30626. });
  30627. },
  30628. updated: function updated() {
  30629. var _this2 = this;
  30630. this.$nextTick(function () {
  30631. var prevProps = _this2.prevProps;
  30632. var props = _this2.$props;
  30633. var reAlign = false;
  30634. if (!props.disabled) {
  30635. var source = _this2.$el;
  30636. var sourceRect = source ? source.getBoundingClientRect() : null;
  30637. if (prevProps.disabled) {
  30638. reAlign = true;
  30639. } else {
  30640. var lastElement = getElement(prevProps.target);
  30641. var currentElement = getElement(props.target);
  30642. var lastPoint = getPoint(prevProps.target);
  30643. var currentPoint = getPoint(props.target);
  30644. if (Object(_util__WEBPACK_IMPORTED_MODULE_5__["isWindow"])(lastElement) && Object(_util__WEBPACK_IMPORTED_MODULE_5__["isWindow"])(currentElement)) {
  30645. // Skip if is window
  30646. reAlign = false;
  30647. } else if (lastElement !== currentElement || // Element change
  30648. lastElement && !currentElement && currentPoint || // Change from element to point
  30649. lastPoint && currentPoint && currentElement || // Change from point to element
  30650. currentPoint && !Object(_util__WEBPACK_IMPORTED_MODULE_5__["isSamePoint"])(lastPoint, currentPoint)) {
  30651. reAlign = true;
  30652. }
  30653. // If source element size changed
  30654. var preRect = _this2.sourceRect || {};
  30655. if (!reAlign && source && (!Object(_util__WEBPACK_IMPORTED_MODULE_5__["isSimilarValue"])(preRect.width, sourceRect.width) || !Object(_util__WEBPACK_IMPORTED_MODULE_5__["isSimilarValue"])(preRect.height, sourceRect.height))) {
  30656. reAlign = true;
  30657. }
  30658. }
  30659. _this2.sourceRect = sourceRect;
  30660. }
  30661. if (reAlign) {
  30662. _this2.forceAlign();
  30663. }
  30664. if (props.monitorWindowResize && !props.disabled) {
  30665. _this2.startMonitorWindowResize();
  30666. } else {
  30667. _this2.stopMonitorWindowResize();
  30668. }
  30669. _this2.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _this2.$props, { align: lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_7___default()(_this2.$props.align) });
  30670. });
  30671. },
  30672. beforeDestroy: function beforeDestroy() {
  30673. this.stopMonitorWindowResize();
  30674. },
  30675. methods: {
  30676. startMonitorWindowResize: function startMonitorWindowResize() {
  30677. if (!this.resizeHandler) {
  30678. this.bufferMonitor = Object(_util__WEBPACK_IMPORTED_MODULE_5__["buffer"])(this.forceAlign, this.$props.monitorBufferTime);
  30679. this.resizeHandler = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_4__["default"])(window, 'resize', this.bufferMonitor);
  30680. }
  30681. },
  30682. stopMonitorWindowResize: function stopMonitorWindowResize() {
  30683. if (this.resizeHandler) {
  30684. this.bufferMonitor.clear();
  30685. this.resizeHandler.remove();
  30686. this.resizeHandler = null;
  30687. }
  30688. },
  30689. forceAlign: function forceAlign() {
  30690. var _$props = this.$props,
  30691. disabled = _$props.disabled,
  30692. target = _$props.target,
  30693. align = _$props.align;
  30694. if (!disabled && target) {
  30695. var source = this.$el;
  30696. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this);
  30697. var result = void 0;
  30698. var element = getElement(target);
  30699. var point = getPoint(target);
  30700. // IE lose focus after element realign
  30701. // We should record activeElement and restore later
  30702. var activeElement = document.activeElement;
  30703. if (element) {
  30704. result = Object(dom_align__WEBPACK_IMPORTED_MODULE_3__["alignElement"])(source, element, align);
  30705. } else if (point) {
  30706. result = Object(dom_align__WEBPACK_IMPORTED_MODULE_3__["alignPoint"])(source, point, align);
  30707. }
  30708. Object(_util__WEBPACK_IMPORTED_MODULE_5__["restoreFocus"])(activeElement, source);
  30709. this.aligned = true;
  30710. listeners.align && listeners.align(source, result);
  30711. }
  30712. }
  30713. },
  30714. render: function render() {
  30715. var childrenProps = this.$props.childrenProps;
  30716. var child = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getSlot"])(this)[0];
  30717. if (child && childrenProps) {
  30718. return Object(_util_vnode_js__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(child, { props: childrenProps });
  30719. }
  30720. return child;
  30721. }
  30722. });
  30723. /***/ }),
  30724. /***/ "./components/vc-align/index.js":
  30725. /*!**************************************!*\
  30726. !*** ./components/vc-align/index.js ***!
  30727. \**************************************/
  30728. /*! exports provided: default */
  30729. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30730. "use strict";
  30731. __webpack_require__.r(__webpack_exports__);
  30732. /* harmony import */ var _Align__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Align */ "./components/vc-align/Align.jsx");
  30733. // based on vc-align 2.4.5
  30734. /* harmony default export */ __webpack_exports__["default"] = (_Align__WEBPACK_IMPORTED_MODULE_0__["default"]);
  30735. /***/ }),
  30736. /***/ "./components/vc-align/util.js":
  30737. /*!*************************************!*\
  30738. !*** ./components/vc-align/util.js ***!
  30739. \*************************************/
  30740. /*! exports provided: buffer, isSamePoint, isWindow, isSimilarValue, restoreFocus */
  30741. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30742. "use strict";
  30743. __webpack_require__.r(__webpack_exports__);
  30744. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buffer", function() { return buffer; });
  30745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSamePoint", function() { return isSamePoint; });
  30746. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isWindow", function() { return isWindow; });
  30747. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSimilarValue", function() { return isSimilarValue; });
  30748. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "restoreFocus", function() { return restoreFocus; });
  30749. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  30750. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  30751. /* harmony import */ var _vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-util/Dom/contains */ "./components/vc-util/Dom/contains.js");
  30752. function buffer(fn, ms) {
  30753. var timer = void 0;
  30754. function clear() {
  30755. if (timer) {
  30756. clearTimeout(timer);
  30757. timer = null;
  30758. }
  30759. }
  30760. function bufferFn() {
  30761. clear();
  30762. timer = setTimeout(fn, ms);
  30763. }
  30764. bufferFn.clear = clear;
  30765. return bufferFn;
  30766. }
  30767. function isSamePoint(prev, next) {
  30768. if (prev === next) return true;
  30769. if (!prev || !next) return false;
  30770. if ('pageX' in next && 'pageY' in next) {
  30771. return prev.pageX === next.pageX && prev.pageY === next.pageY;
  30772. }
  30773. if ('clientX' in next && 'clientY' in next) {
  30774. return prev.clientX === next.clientX && prev.clientY === next.clientY;
  30775. }
  30776. return false;
  30777. }
  30778. function isWindow(obj) {
  30779. return obj && (typeof obj === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(obj)) === 'object' && obj.window === obj;
  30780. }
  30781. function isSimilarValue(val1, val2) {
  30782. var int1 = Math.floor(val1);
  30783. var int2 = Math.floor(val2);
  30784. return Math.abs(int1 - int2) <= 1;
  30785. }
  30786. function restoreFocus(activeElement, container) {
  30787. // Focus back if is in the container
  30788. if (activeElement !== document.activeElement && Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_1__["default"])(container, activeElement)) {
  30789. activeElement.focus();
  30790. }
  30791. }
  30792. /***/ }),
  30793. /***/ "./components/vc-calendar/index.js":
  30794. /*!*****************************************!*\
  30795. !*** ./components/vc-calendar/index.js ***!
  30796. \*****************************************/
  30797. /*! exports provided: default */
  30798. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30799. "use strict";
  30800. __webpack_require__.r(__webpack_exports__);
  30801. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
  30802. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
  30803. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  30804. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_1__);
  30805. /* harmony import */ var _src___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/ */ "./components/vc-calendar/src/index.js");
  30806. // based on rc-calendar 9.15.10
  30807. vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_1___default.a, { name: 'ant-ref' });
  30808. /* harmony default export */ __webpack_exports__["default"] = (_src___WEBPACK_IMPORTED_MODULE_2__["default"]);
  30809. /***/ }),
  30810. /***/ "./components/vc-calendar/src/Calendar.jsx":
  30811. /*!*************************************************!*\
  30812. !*** ./components/vc-calendar/src/Calendar.jsx ***!
  30813. \*************************************************/
  30814. /*! exports provided: default */
  30815. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30816. "use strict";
  30817. __webpack_require__.r(__webpack_exports__);
  30818. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  30819. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  30820. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  30821. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  30822. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  30823. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  30824. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
  30825. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! moment */ "moment");
  30826. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_6__);
  30827. /* harmony import */ var _date_DateTable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./date/DateTable */ "./components/vc-calendar/src/date/DateTable.jsx");
  30828. /* harmony import */ var _calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./calendar/CalendarHeader */ "./components/vc-calendar/src/calendar/CalendarHeader.jsx");
  30829. /* harmony import */ var _calendar_CalendarFooter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./calendar/CalendarFooter */ "./components/vc-calendar/src/calendar/CalendarFooter.jsx");
  30830. /* harmony import */ var _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./mixin/CalendarMixin */ "./components/vc-calendar/src/mixin/CalendarMixin.js");
  30831. /* harmony import */ var _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./mixin/CommonMixin */ "./components/vc-calendar/src/mixin/CommonMixin.js");
  30832. /* harmony import */ var _date_DateInput__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./date/DateInput */ "./components/vc-calendar/src/date/DateInput.jsx");
  30833. /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
  30834. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./util */ "./components/vc-calendar/src/util/index.js");
  30835. /* harmony import */ var _util_toTime__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./util/toTime */ "./components/vc-calendar/src/util/toTime.js");
  30836. var getMomentObjectIfValid = function getMomentObjectIfValid(date) {
  30837. if (moment__WEBPACK_IMPORTED_MODULE_6___default.a.isMoment(date) && date.isValid()) {
  30838. return date;
  30839. }
  30840. return false;
  30841. };
  30842. var Calendar = {
  30843. name: 'Calendar',
  30844. props: {
  30845. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def(_locale_en_US__WEBPACK_IMPORTED_MODULE_13__["default"]),
  30846. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string), _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
  30847. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
  30848. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('rc-calendar'),
  30849. // prefixCls: PropTypes.string,
  30850. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  30851. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  30852. selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  30853. defaultSelectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  30854. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['time', 'date', 'month', 'year', 'decade']),
  30855. // locale: PropTypes.object,
  30856. showDateInput: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
  30857. showWeekNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  30858. showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
  30859. showOk: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  30860. // onSelect: PropTypes.func,
  30861. // onOk: PropTypes.func,
  30862. // onKeyDown: PropTypes.func,
  30863. timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  30864. dateInputPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  30865. // onClear: PropTypes.func,
  30866. // onChange: PropTypes.func,
  30867. // onPanelChange: PropTypes.func,
  30868. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  30869. disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  30870. dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  30871. renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(function () {
  30872. return null;
  30873. }),
  30874. renderSidebar: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(function () {
  30875. return null;
  30876. }),
  30877. clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  30878. focusablePanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
  30879. inputMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  30880. inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
  30881. },
  30882. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"], _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_11__["default"], _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_10__["default"]],
  30883. data: function data() {
  30884. var props = this.$props;
  30885. return {
  30886. sMode: this.mode || 'date',
  30887. sValue: getMomentObjectIfValid(props.value) || getMomentObjectIfValid(props.defaultValue) || moment__WEBPACK_IMPORTED_MODULE_6___default()(),
  30888. sSelectedValue: props.selectedValue || props.defaultSelectedValue
  30889. };
  30890. },
  30891. watch: {
  30892. mode: function mode(val) {
  30893. this.setState({ sMode: val });
  30894. },
  30895. value: function value(val) {
  30896. this.setState({
  30897. sValue: getMomentObjectIfValid(val) || getMomentObjectIfValid(this.defaultValue) || Object(_mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_10__["getNowByCurrentStateValue"])(this.sValue)
  30898. });
  30899. },
  30900. selectedValue: function selectedValue(val) {
  30901. this.setState({
  30902. sSelectedValue: val
  30903. });
  30904. }
  30905. },
  30906. mounted: function mounted() {
  30907. var _this = this;
  30908. this.$nextTick(function () {
  30909. _this.saveFocusElement(_date_DateInput__WEBPACK_IMPORTED_MODULE_12__["default"].getInstance());
  30910. });
  30911. },
  30912. methods: {
  30913. onPanelChange: function onPanelChange(value, mode) {
  30914. var sValue = this.sValue;
  30915. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'mode')) {
  30916. this.setState({ sMode: mode });
  30917. }
  30918. this.__emit('panelChange', value || sValue, mode);
  30919. },
  30920. onKeyDown: function onKeyDown(event) {
  30921. if (event.target.nodeName.toLowerCase() === 'input') {
  30922. return undefined;
  30923. }
  30924. var keyCode = event.keyCode;
  30925. // mac
  30926. var ctrlKey = event.ctrlKey || event.metaKey;
  30927. var disabledDate = this.disabledDate,
  30928. value = this.sValue;
  30929. switch (keyCode) {
  30930. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].DOWN:
  30931. this.goTime(1, 'weeks');
  30932. event.preventDefault();
  30933. return 1;
  30934. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].UP:
  30935. this.goTime(-1, 'weeks');
  30936. event.preventDefault();
  30937. return 1;
  30938. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].LEFT:
  30939. if (ctrlKey) {
  30940. this.goTime(-1, 'years');
  30941. } else {
  30942. this.goTime(-1, 'days');
  30943. }
  30944. event.preventDefault();
  30945. return 1;
  30946. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].RIGHT:
  30947. if (ctrlKey) {
  30948. this.goTime(1, 'years');
  30949. } else {
  30950. this.goTime(1, 'days');
  30951. }
  30952. event.preventDefault();
  30953. return 1;
  30954. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].HOME:
  30955. this.setValue(Object(_util_toTime__WEBPACK_IMPORTED_MODULE_15__["goStartMonth"])(value));
  30956. event.preventDefault();
  30957. return 1;
  30958. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].END:
  30959. this.setValue(Object(_util_toTime__WEBPACK_IMPORTED_MODULE_15__["goEndMonth"])(value));
  30960. event.preventDefault();
  30961. return 1;
  30962. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].PAGE_DOWN:
  30963. this.goTime(1, 'month');
  30964. event.preventDefault();
  30965. return 1;
  30966. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].PAGE_UP:
  30967. this.goTime(-1, 'month');
  30968. event.preventDefault();
  30969. return 1;
  30970. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].ENTER:
  30971. if (!disabledDate || !disabledDate(value)) {
  30972. this.onSelect(value, {
  30973. source: 'keyboard'
  30974. });
  30975. }
  30976. event.preventDefault();
  30977. return 1;
  30978. default:
  30979. this.__emit('keydown', event);
  30980. return 1;
  30981. }
  30982. },
  30983. onClear: function onClear() {
  30984. this.onSelect(null);
  30985. this.__emit('clear');
  30986. },
  30987. onOk: function onOk() {
  30988. var sSelectedValue = this.sSelectedValue;
  30989. if (this.isAllowedDate(sSelectedValue)) {
  30990. this.__emit('ok', sSelectedValue);
  30991. }
  30992. },
  30993. onDateInputChange: function onDateInputChange(value) {
  30994. this.onSelect(value, {
  30995. source: 'dateInput'
  30996. });
  30997. },
  30998. onDateInputSelect: function onDateInputSelect(value) {
  30999. this.onSelect(value, {
  31000. source: 'dateInputSelect'
  31001. });
  31002. },
  31003. onDateTableSelect: function onDateTableSelect(value) {
  31004. var timePicker = this.timePicker,
  31005. sSelectedValue = this.sSelectedValue;
  31006. if (!sSelectedValue && timePicker) {
  31007. var timePickerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(timePicker);
  31008. var timePickerDefaultValue = timePickerProps.defaultValue;
  31009. if (timePickerDefaultValue) {
  31010. Object(_util__WEBPACK_IMPORTED_MODULE_14__["syncTime"])(timePickerDefaultValue, value);
  31011. }
  31012. }
  31013. this.onSelect(value);
  31014. },
  31015. onToday: function onToday() {
  31016. var sValue = this.sValue;
  31017. var now = Object(_util__WEBPACK_IMPORTED_MODULE_14__["getTodayTime"])(sValue);
  31018. this.onSelect(now, {
  31019. source: 'todayButton'
  31020. });
  31021. },
  31022. onBlur: function onBlur(event) {
  31023. var _this2 = this;
  31024. setTimeout(function () {
  31025. var dateInput = _date_DateInput__WEBPACK_IMPORTED_MODULE_12__["default"].getInstance();
  31026. var rootInstance = _this2.rootInstance;
  31027. if (!rootInstance || rootInstance.contains(document.activeElement) || dateInput && dateInput.contains(document.activeElement)) {
  31028. // focused element is still part of Calendar
  31029. return;
  31030. }
  31031. _this2.$emit('blur', event);
  31032. }, 0);
  31033. },
  31034. getRootDOMNode: function getRootDOMNode() {
  31035. return this.$el;
  31036. },
  31037. openTimePicker: function openTimePicker() {
  31038. this.onPanelChange(null, 'time');
  31039. },
  31040. closeTimePicker: function closeTimePicker() {
  31041. this.onPanelChange(null, 'date');
  31042. },
  31043. goTime: function goTime(direction, unit) {
  31044. this.setValue(Object(_util_toTime__WEBPACK_IMPORTED_MODULE_15__["goTime"])(this.sValue, direction, unit));
  31045. }
  31046. },
  31047. render: function render() {
  31048. var h = arguments[0];
  31049. var locale = this.locale,
  31050. prefixCls = this.prefixCls,
  31051. disabledDate = this.disabledDate,
  31052. dateInputPlaceholder = this.dateInputPlaceholder,
  31053. timePicker = this.timePicker,
  31054. disabledTime = this.disabledTime,
  31055. showDateInput = this.showDateInput,
  31056. sValue = this.sValue,
  31057. sSelectedValue = this.sSelectedValue,
  31058. sMode = this.sMode,
  31059. renderFooter = this.renderFooter,
  31060. inputMode = this.inputMode,
  31061. inputReadOnly = this.inputReadOnly,
  31062. monthCellRender = this.monthCellRender,
  31063. monthCellContentRender = this.monthCellContentRender,
  31064. props = this.$props;
  31065. var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'clearIcon');
  31066. var showTimePicker = sMode === 'time';
  31067. var disabledTimeConfig = showTimePicker && disabledTime && timePicker ? Object(_util__WEBPACK_IMPORTED_MODULE_14__["getTimeConfig"])(sSelectedValue, disabledTime) : null;
  31068. var timePickerEle = null;
  31069. if (timePicker && showTimePicker) {
  31070. var timePickerOriginProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(timePicker);
  31071. var timePickerProps = {
  31072. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  31073. showHour: true,
  31074. showSecond: true,
  31075. showMinute: true
  31076. }, timePickerOriginProps, disabledTimeConfig, {
  31077. value: sSelectedValue,
  31078. disabledTime: disabledTime
  31079. }),
  31080. on: {
  31081. change: this.onDateInputChange
  31082. }
  31083. };
  31084. if (timePickerOriginProps.defaultValue !== undefined) {
  31085. timePickerProps.props.defaultOpenValue = timePickerOriginProps.defaultValue;
  31086. }
  31087. timePickerEle = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(timePicker, timePickerProps);
  31088. }
  31089. var dateInputElement = showDateInput ? h(_date_DateInput__WEBPACK_IMPORTED_MODULE_12__["default"], {
  31090. attrs: {
  31091. format: this.getFormat(),
  31092. value: sValue,
  31093. locale: locale,
  31094. placeholder: dateInputPlaceholder,
  31095. showClear: true,
  31096. disabledTime: disabledTime,
  31097. disabledDate: disabledDate,
  31098. prefixCls: prefixCls,
  31099. selectedValue: sSelectedValue,
  31100. clearIcon: clearIcon,
  31101. inputMode: inputMode,
  31102. inputReadOnly: inputReadOnly
  31103. },
  31104. key: 'date-input', on: {
  31105. 'clear': this.onClear,
  31106. 'change': this.onDateInputChange,
  31107. 'select': this.onDateInputSelect
  31108. }
  31109. }) : null;
  31110. var children = [];
  31111. if (props.renderSidebar) {
  31112. children.push(props.renderSidebar());
  31113. }
  31114. children.push(h(
  31115. 'div',
  31116. { 'class': prefixCls + '-panel', key: 'panel' },
  31117. [dateInputElement, h(
  31118. 'div',
  31119. {
  31120. attrs: { tabIndex: props.focusablePanel ? 0 : undefined },
  31121. 'class': prefixCls + '-date-panel' },
  31122. [h(_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_8__["default"], {
  31123. attrs: {
  31124. locale: locale,
  31125. mode: sMode,
  31126. value: sValue,
  31127. disabledMonth: disabledDate,
  31128. renderFooter: renderFooter,
  31129. showTimePicker: showTimePicker,
  31130. prefixCls: prefixCls,
  31131. monthCellRender: monthCellRender,
  31132. monthCellContentRender: monthCellContentRender
  31133. },
  31134. on: {
  31135. 'valueChange': this.setValue,
  31136. 'panelChange': this.onPanelChange
  31137. }
  31138. }), timePicker && showTimePicker ? h(
  31139. 'div',
  31140. { 'class': prefixCls + '-time-picker' },
  31141. [h(
  31142. 'div',
  31143. { 'class': prefixCls + '-time-picker-panel' },
  31144. [timePickerEle]
  31145. )]
  31146. ) : null, h(
  31147. 'div',
  31148. { 'class': prefixCls + '-body' },
  31149. [h(_date_DateTable__WEBPACK_IMPORTED_MODULE_7__["default"], {
  31150. attrs: {
  31151. locale: locale,
  31152. value: sValue,
  31153. selectedValue: sSelectedValue,
  31154. prefixCls: prefixCls,
  31155. dateRender: props.dateRender,
  31156. disabledDate: disabledDate,
  31157. showWeekNumber: props.showWeekNumber
  31158. },
  31159. on: {
  31160. 'select': this.onDateTableSelect
  31161. }
  31162. })]
  31163. ), h(_calendar_CalendarFooter__WEBPACK_IMPORTED_MODULE_9__["default"], {
  31164. attrs: {
  31165. showOk: props.showOk,
  31166. mode: sMode,
  31167. renderFooter: props.renderFooter,
  31168. locale: locale,
  31169. prefixCls: prefixCls,
  31170. showToday: props.showToday,
  31171. disabledTime: disabledTime,
  31172. showTimePicker: showTimePicker,
  31173. showDateInput: props.showDateInput,
  31174. timePicker: timePicker,
  31175. selectedValue: sSelectedValue,
  31176. timePickerDisabled: !sSelectedValue,
  31177. value: sValue,
  31178. disabledDate: disabledDate,
  31179. okDisabled: props.showOk !== false && (!sSelectedValue || !this.isAllowedDate(sSelectedValue))
  31180. },
  31181. on: {
  31182. 'ok': this.onOk,
  31183. 'select': this.onSelect,
  31184. 'today': this.onToday,
  31185. 'openTimePicker': this.openTimePicker,
  31186. 'closeTimePicker': this.closeTimePicker
  31187. }
  31188. })]
  31189. )]
  31190. ));
  31191. return this.renderRoot({
  31192. children: children,
  31193. 'class': props.showWeekNumber ? prefixCls + '-week-number' : ''
  31194. });
  31195. }
  31196. };
  31197. /* harmony default export */ __webpack_exports__["default"] = (Calendar);
  31198. /***/ }),
  31199. /***/ "./components/vc-calendar/src/FullCalendar.jsx":
  31200. /*!*****************************************************!*\
  31201. !*** ./components/vc-calendar/src/FullCalendar.jsx ***!
  31202. \*****************************************************/
  31203. /*! exports provided: default */
  31204. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31205. "use strict";
  31206. __webpack_require__.r(__webpack_exports__);
  31207. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  31208. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  31209. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
  31210. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
  31211. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  31212. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  31213. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  31214. /* harmony import */ var _date_DateTable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./date/DateTable */ "./components/vc-calendar/src/date/DateTable.jsx");
  31215. /* harmony import */ var _month_MonthTable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./month/MonthTable */ "./components/vc-calendar/src/month/MonthTable.jsx");
  31216. /* harmony import */ var _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./mixin/CalendarMixin */ "./components/vc-calendar/src/mixin/CalendarMixin.js");
  31217. /* harmony import */ var _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./mixin/CommonMixin */ "./components/vc-calendar/src/mixin/CommonMixin.js");
  31218. /* harmony import */ var _full_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./full-calendar/CalendarHeader */ "./components/vc-calendar/src/full-calendar/CalendarHeader.jsx");
  31219. /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
  31220. var FullCalendar = {
  31221. name: 'FullCalendar',
  31222. props: {
  31223. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.def(_locale_en_US__WEBPACK_IMPORTED_MODULE_10__["default"]),
  31224. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
  31225. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(true),
  31226. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc-calendar'),
  31227. defaultType: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('date'),
  31228. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  31229. fullscreen: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
  31230. monthCellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  31231. dateCellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  31232. showTypeSwitch: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(true),
  31233. Select: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired,
  31234. headerComponents: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
  31235. headerComponent: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object, // The whole header component
  31236. headerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  31237. showHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(true),
  31238. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  31239. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  31240. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  31241. selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  31242. defaultSelectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  31243. renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {
  31244. return null;
  31245. }),
  31246. renderSidebar: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {
  31247. return null;
  31248. })
  31249. },
  31250. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"], _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_8__["default"], _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
  31251. data: function data() {
  31252. var type = void 0;
  31253. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'type')) {
  31254. type = this.type;
  31255. } else {
  31256. type = this.defaultType;
  31257. }
  31258. var props = this.$props;
  31259. return {
  31260. sType: type,
  31261. sValue: props.value || props.defaultValue || moment__WEBPACK_IMPORTED_MODULE_1___default()(),
  31262. sSelectedValue: props.selectedValue || props.defaultSelectedValue
  31263. };
  31264. },
  31265. watch: {
  31266. type: function type(val) {
  31267. this.setState({
  31268. sType: val
  31269. });
  31270. },
  31271. value: function value(val) {
  31272. var sValue = val || this.defaultValue || Object(_mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_7__["getNowByCurrentStateValue"])(this.sValue);
  31273. this.setState({
  31274. sValue: sValue
  31275. });
  31276. },
  31277. selectedValue: function selectedValue(val) {
  31278. this.setState({
  31279. sSelectedValue: val
  31280. });
  31281. }
  31282. },
  31283. methods: {
  31284. onMonthSelect: function onMonthSelect(value) {
  31285. this.onSelect(value, {
  31286. target: 'month'
  31287. });
  31288. },
  31289. setType: function setType(type) {
  31290. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'type')) {
  31291. this.setState({
  31292. sType: type
  31293. });
  31294. }
  31295. this.__emit('typeChange', type);
  31296. }
  31297. },
  31298. render: function render() {
  31299. var h = arguments[0];
  31300. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
  31301. var locale = props.locale,
  31302. prefixCls = props.prefixCls,
  31303. fullscreen = props.fullscreen,
  31304. showHeader = props.showHeader,
  31305. headerComponent = props.headerComponent,
  31306. headerRender = props.headerRender,
  31307. disabledDate = props.disabledDate;
  31308. var value = this.sValue,
  31309. type = this.sType;
  31310. var header = null;
  31311. if (showHeader) {
  31312. if (headerRender) {
  31313. header = headerRender(value, type, locale);
  31314. } else {
  31315. var TheHeader = headerComponent || _full_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_9__["default"];
  31316. var headerProps = {
  31317. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
  31318. prefixCls: prefixCls + '-full',
  31319. type: type,
  31320. value: value
  31321. }),
  31322. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this), {
  31323. typeChange: this.setType,
  31324. valueChange: this.setValue
  31325. }),
  31326. key: 'calendar-header'
  31327. };
  31328. header = h(TheHeader, headerProps);
  31329. }
  31330. }
  31331. var table = type === 'date' ? h(_date_DateTable__WEBPACK_IMPORTED_MODULE_5__["default"], {
  31332. attrs: {
  31333. dateRender: props.dateCellRender,
  31334. contentRender: props.dateCellContentRender,
  31335. locale: locale,
  31336. prefixCls: prefixCls,
  31337. value: value,
  31338. disabledDate: disabledDate
  31339. },
  31340. on: {
  31341. 'select': this.onSelect
  31342. }
  31343. }) : h(_month_MonthTable__WEBPACK_IMPORTED_MODULE_6__["default"], {
  31344. attrs: {
  31345. cellRender: props.monthCellRender,
  31346. contentRender: props.monthCellContentRender,
  31347. locale: locale,
  31348. prefixCls: prefixCls + '-month-panel',
  31349. value: value,
  31350. disabledDate: disabledDate
  31351. },
  31352. on: {
  31353. 'select': this.onMonthSelect
  31354. }
  31355. });
  31356. var children = [header, h(
  31357. 'div',
  31358. { key: 'calendar-body', 'class': prefixCls + '-calendar-body' },
  31359. [table]
  31360. )];
  31361. var className = [prefixCls + '-full'];
  31362. if (fullscreen) {
  31363. className.push(prefixCls + '-fullscreen');
  31364. }
  31365. return this.renderRoot({
  31366. children: children,
  31367. 'class': className.join(' ')
  31368. });
  31369. }
  31370. };
  31371. /* harmony default export */ __webpack_exports__["default"] = (FullCalendar);
  31372. /***/ }),
  31373. /***/ "./components/vc-calendar/src/MonthCalendar.jsx":
  31374. /*!******************************************************!*\
  31375. !*** ./components/vc-calendar/src/MonthCalendar.jsx ***!
  31376. \******************************************************/
  31377. /*! exports provided: default */
  31378. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31379. "use strict";
  31380. __webpack_require__.r(__webpack_exports__);
  31381. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "moment");
  31382. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
  31383. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  31384. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  31385. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
  31386. /* harmony import */ var _calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./calendar/CalendarHeader */ "./components/vc-calendar/src/calendar/CalendarHeader.jsx");
  31387. /* harmony import */ var _calendar_CalendarFooter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./calendar/CalendarFooter */ "./components/vc-calendar/src/calendar/CalendarFooter.jsx");
  31388. /* harmony import */ var _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./mixin/CalendarMixin */ "./components/vc-calendar/src/mixin/CalendarMixin.js");
  31389. /* harmony import */ var _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./mixin/CommonMixin */ "./components/vc-calendar/src/mixin/CommonMixin.js");
  31390. /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
  31391. var MonthCalendar = {
  31392. name: 'MonthCalendar',
  31393. props: {
  31394. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def(_locale_en_US__WEBPACK_IMPORTED_MODULE_8__["default"]),
  31395. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  31396. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
  31397. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('rc-calendar'),
  31398. monthCellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  31399. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  31400. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  31401. selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  31402. defaultSelectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  31403. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  31404. monthCellContentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  31405. renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(function () {
  31406. return null;
  31407. }),
  31408. renderSidebar: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(function () {
  31409. return null;
  31410. })
  31411. },
  31412. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"], _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_7__["default"], _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
  31413. data: function data() {
  31414. var props = this.$props;
  31415. return {
  31416. mode: 'month',
  31417. sValue: props.value || props.defaultValue || moment__WEBPACK_IMPORTED_MODULE_0___default()(),
  31418. sSelectedValue: props.selectedValue || props.defaultSelectedValue
  31419. };
  31420. },
  31421. methods: {
  31422. onKeyDown: function onKeyDown(event) {
  31423. var keyCode = event.keyCode;
  31424. var ctrlKey = event.ctrlKey || event.metaKey;
  31425. var stateValue = this.sValue;
  31426. var disabledDate = this.disabledDate;
  31427. var value = stateValue;
  31428. switch (keyCode) {
  31429. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].DOWN:
  31430. value = stateValue.clone();
  31431. value.add(3, 'months');
  31432. break;
  31433. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].UP:
  31434. value = stateValue.clone();
  31435. value.add(-3, 'months');
  31436. break;
  31437. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].LEFT:
  31438. value = stateValue.clone();
  31439. if (ctrlKey) {
  31440. value.add(-1, 'years');
  31441. } else {
  31442. value.add(-1, 'months');
  31443. }
  31444. break;
  31445. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].RIGHT:
  31446. value = stateValue.clone();
  31447. if (ctrlKey) {
  31448. value.add(1, 'years');
  31449. } else {
  31450. value.add(1, 'months');
  31451. }
  31452. break;
  31453. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER:
  31454. if (!disabledDate || !disabledDate(stateValue)) {
  31455. this.onSelect(stateValue);
  31456. }
  31457. event.preventDefault();
  31458. return 1;
  31459. default:
  31460. return undefined;
  31461. }
  31462. if (value !== stateValue) {
  31463. this.setValue(value);
  31464. event.preventDefault();
  31465. return 1;
  31466. }
  31467. },
  31468. handlePanelChange: function handlePanelChange(_, mode) {
  31469. if (mode !== 'date') {
  31470. this.setState({ mode: mode });
  31471. }
  31472. }
  31473. },
  31474. render: function render() {
  31475. var h = arguments[0];
  31476. var mode = this.mode,
  31477. value = this.sValue,
  31478. props = this.$props,
  31479. $scopedSlots = this.$scopedSlots;
  31480. var prefixCls = props.prefixCls,
  31481. locale = props.locale,
  31482. disabledDate = props.disabledDate;
  31483. var monthCellRender = this.monthCellRender || $scopedSlots.monthCellRender;
  31484. var monthCellContentRender = this.monthCellContentRender || $scopedSlots.monthCellContentRender;
  31485. var renderFooter = this.renderFooter || $scopedSlots.renderFooter;
  31486. var children = h(
  31487. 'div',
  31488. { 'class': prefixCls + '-month-calendar-content' },
  31489. [h(
  31490. 'div',
  31491. { 'class': prefixCls + '-month-header-wrap' },
  31492. [h(_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_4__["default"], {
  31493. attrs: {
  31494. prefixCls: prefixCls,
  31495. mode: mode,
  31496. value: value,
  31497. locale: locale,
  31498. disabledMonth: disabledDate,
  31499. monthCellRender: monthCellRender,
  31500. monthCellContentRender: monthCellContentRender
  31501. },
  31502. on: {
  31503. 'monthSelect': this.onSelect,
  31504. 'valueChange': this.setValue,
  31505. 'panelChange': this.handlePanelChange
  31506. }
  31507. })]
  31508. ), h(_calendar_CalendarFooter__WEBPACK_IMPORTED_MODULE_5__["default"], {
  31509. attrs: { prefixCls: prefixCls, renderFooter: renderFooter }
  31510. })]
  31511. );
  31512. return this.renderRoot({
  31513. 'class': props.prefixCls + '-month-calendar',
  31514. children: children
  31515. });
  31516. }
  31517. };
  31518. /* harmony default export */ __webpack_exports__["default"] = (MonthCalendar);
  31519. /***/ }),
  31520. /***/ "./components/vc-calendar/src/Picker.jsx":
  31521. /*!***********************************************!*\
  31522. !*** ./components/vc-calendar/src/Picker.jsx ***!
  31523. \***********************************************/
  31524. /*! exports provided: default */
  31525. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31526. "use strict";
  31527. __webpack_require__.r(__webpack_exports__);
  31528. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  31529. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  31530. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  31531. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  31532. /* harmony import */ var _util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/createChainedFunction */ "./components/_util/createChainedFunction.js");
  31533. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
  31534. /* harmony import */ var _picker_placements__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./picker/placements */ "./components/vc-calendar/src/picker/placements.js");
  31535. /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../vc-trigger */ "./components/vc-trigger/index.js");
  31536. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! moment */ "moment");
  31537. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_8__);
  31538. /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js");
  31539. /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_9__);
  31540. var TimeType = {
  31541. validator: function validator(value) {
  31542. if (Array.isArray(value)) {
  31543. return value.length === 0 || value.findIndex(function (val) {
  31544. return !lodash_isNil__WEBPACK_IMPORTED_MODULE_9___default()(val) && !moment__WEBPACK_IMPORTED_MODULE_8___default.a.isMoment(val);
  31545. }) === -1;
  31546. } else {
  31547. return lodash_isNil__WEBPACK_IMPORTED_MODULE_9___default()(value) || moment__WEBPACK_IMPORTED_MODULE_8___default.a.isMoment(value);
  31548. }
  31549. }
  31550. };
  31551. var Picker = {
  31552. name: 'Picker',
  31553. props: {
  31554. animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string]),
  31555. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  31556. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  31557. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func]),
  31558. // onChange: PropTypes.func,
  31559. // onOpenChange: PropTypes.func,
  31560. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  31561. getCalendarContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  31562. calendar: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  31563. open: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  31564. defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  31565. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('rc-calendar-picker'),
  31566. placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def('bottomLeft'),
  31567. value: TimeType,
  31568. defaultValue: TimeType,
  31569. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
  31570. return {};
  31571. }),
  31572. dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  31573. dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
  31574. },
  31575. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
  31576. data: function data() {
  31577. var props = this.$props;
  31578. var open = void 0;
  31579. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["hasProp"])(this, 'open')) {
  31580. open = props.open;
  31581. } else {
  31582. open = props.defaultOpen;
  31583. }
  31584. var value = props.value || props.defaultValue;
  31585. return {
  31586. sOpen: open,
  31587. sValue: value
  31588. };
  31589. },
  31590. watch: {
  31591. value: function value(val) {
  31592. this.setState({
  31593. sValue: val
  31594. });
  31595. },
  31596. open: function open(val) {
  31597. this.setState({
  31598. sOpen: val
  31599. });
  31600. }
  31601. },
  31602. mounted: function mounted() {
  31603. this.preSOpen = this.sOpen;
  31604. },
  31605. updated: function updated() {
  31606. if (!this.preSOpen && this.sOpen) {
  31607. // setTimeout is for making sure saveCalendarRef happen before focusCalendar
  31608. this.focusTimeout = setTimeout(this.focusCalendar, 0);
  31609. }
  31610. this.preSOpen = this.sOpen;
  31611. },
  31612. beforeDestroy: function beforeDestroy() {
  31613. clearTimeout(this.focusTimeout);
  31614. },
  31615. methods: {
  31616. onCalendarKeyDown: function onCalendarKeyDown(event) {
  31617. if (event.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].ESC) {
  31618. event.stopPropagation();
  31619. this.closeCalendar(this.focus);
  31620. }
  31621. },
  31622. onCalendarSelect: function onCalendarSelect(value) {
  31623. var cause = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  31624. var props = this.$props;
  31625. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["hasProp"])(this, 'value')) {
  31626. this.setState({
  31627. sValue: value
  31628. });
  31629. }
  31630. var calendarProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(props.calendar);
  31631. if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !calendarProps.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {
  31632. this.closeCalendar(this.focus);
  31633. }
  31634. this.__emit('change', value);
  31635. },
  31636. onKeyDown: function onKeyDown(event) {
  31637. if (!this.sOpen && (event.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].DOWN || event.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].ENTER)) {
  31638. this.openCalendar();
  31639. event.preventDefault();
  31640. }
  31641. },
  31642. onCalendarOk: function onCalendarOk() {
  31643. this.closeCalendar(this.focus);
  31644. },
  31645. onCalendarClear: function onCalendarClear() {
  31646. this.closeCalendar(this.focus);
  31647. },
  31648. onCalendarBlur: function onCalendarBlur() {
  31649. this.setOpen(false);
  31650. },
  31651. onVisibleChange: function onVisibleChange(open) {
  31652. this.setOpen(open);
  31653. },
  31654. getCalendarElement: function getCalendarElement() {
  31655. var props = this.$props;
  31656. var calendarProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(props.calendar);
  31657. var calendarEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getEvents"])(props.calendar);
  31658. var value = this.sValue;
  31659. var defaultValue = value;
  31660. var extraProps = {
  31661. ref: 'calendarInstance',
  31662. props: {
  31663. defaultValue: defaultValue || calendarProps.defaultValue,
  31664. selectedValue: value
  31665. },
  31666. on: {
  31667. keydown: this.onCalendarKeyDown,
  31668. ok: Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__["default"])(calendarEvents.ok, this.onCalendarOk),
  31669. select: Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__["default"])(calendarEvents.select, this.onCalendarSelect),
  31670. clear: Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__["default"])(calendarEvents.clear, this.onCalendarClear),
  31671. blur: Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__["default"])(calendarEvents.blur, this.onCalendarBlur)
  31672. }
  31673. };
  31674. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(props.calendar, extraProps);
  31675. },
  31676. setOpen: function setOpen(open, callback) {
  31677. if (this.sOpen !== open) {
  31678. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["hasProp"])(this, 'open')) {
  31679. this.setState({
  31680. sOpen: open
  31681. }, callback);
  31682. }
  31683. this.__emit('openChange', open);
  31684. }
  31685. },
  31686. openCalendar: function openCalendar(callback) {
  31687. this.setOpen(true, callback);
  31688. },
  31689. closeCalendar: function closeCalendar(callback) {
  31690. this.setOpen(false, callback);
  31691. },
  31692. focus: function focus() {
  31693. if (!this.sOpen) {
  31694. this.$el.focus();
  31695. }
  31696. },
  31697. focusCalendar: function focusCalendar() {
  31698. if (this.sOpen && this.calendarInstance && this.calendarInstance.componentInstance) {
  31699. this.calendarInstance.componentInstance.focus();
  31700. }
  31701. }
  31702. },
  31703. render: function render() {
  31704. var h = arguments[0];
  31705. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
  31706. var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getStyle"])(this);
  31707. var prefixCls = props.prefixCls,
  31708. placement = props.placement,
  31709. getCalendarContainer = props.getCalendarContainer,
  31710. align = props.align,
  31711. animation = props.animation,
  31712. disabled = props.disabled,
  31713. dropdownClassName = props.dropdownClassName,
  31714. transitionName = props.transitionName;
  31715. var sValue = this.sValue,
  31716. sOpen = this.sOpen;
  31717. var children = this.$scopedSlots['default'];
  31718. var childrenState = {
  31719. value: sValue,
  31720. open: sOpen
  31721. };
  31722. if (this.sOpen || !this.calendarInstance) {
  31723. this.calendarInstance = this.getCalendarElement();
  31724. }
  31725. return h(
  31726. _vc_trigger__WEBPACK_IMPORTED_MODULE_7__["default"],
  31727. {
  31728. attrs: {
  31729. popupAlign: align,
  31730. builtinPlacements: _picker_placements__WEBPACK_IMPORTED_MODULE_6__["default"],
  31731. popupPlacement: placement,
  31732. action: disabled && !sOpen ? [] : ['click'],
  31733. destroyPopupOnHide: true,
  31734. getPopupContainer: getCalendarContainer,
  31735. popupStyle: style,
  31736. popupAnimation: animation,
  31737. popupTransitionName: transitionName,
  31738. popupVisible: sOpen,
  31739. prefixCls: prefixCls,
  31740. popupClassName: dropdownClassName
  31741. },
  31742. on: {
  31743. 'popupVisibleChange': this.onVisibleChange
  31744. }
  31745. },
  31746. [h(
  31747. 'template',
  31748. { slot: 'popup' },
  31749. [this.calendarInstance]
  31750. ), Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(children(childrenState, props), { on: { keydown: this.onKeyDown } })]
  31751. );
  31752. }
  31753. };
  31754. /* harmony default export */ __webpack_exports__["default"] = (Picker);
  31755. /***/ }),
  31756. /***/ "./components/vc-calendar/src/RangeCalendar.jsx":
  31757. /*!******************************************************!*\
  31758. !*** ./components/vc-calendar/src/RangeCalendar.jsx ***!
  31759. \******************************************************/
  31760. /*! exports provided: default */
  31761. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31762. "use strict";
  31763. __webpack_require__.r(__webpack_exports__);
  31764. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  31765. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  31766. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  31767. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  31768. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  31769. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
  31770. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
  31771. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__);
  31772. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  31773. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  31774. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  31775. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! moment */ "moment");
  31776. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_7__);
  31777. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
  31778. /* harmony import */ var _range_calendar_CalendarPart__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./range-calendar/CalendarPart */ "./components/vc-calendar/src/range-calendar/CalendarPart.jsx");
  31779. /* harmony import */ var _calendar_TodayButton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./calendar/TodayButton */ "./components/vc-calendar/src/calendar/TodayButton.jsx");
  31780. /* harmony import */ var _calendar_OkButton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./calendar/OkButton */ "./components/vc-calendar/src/calendar/OkButton.jsx");
  31781. /* harmony import */ var _calendar_TimePickerButton__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./calendar/TimePickerButton */ "./components/vc-calendar/src/calendar/TimePickerButton.jsx");
  31782. /* harmony import */ var _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./mixin/CommonMixin */ "./components/vc-calendar/src/mixin/CommonMixin.js");
  31783. /* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
  31784. /* harmony import */ var _util___WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./util/ */ "./components/vc-calendar/src/util/index.js");
  31785. /* harmony import */ var _util_toTime__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./util/toTime */ "./components/vc-calendar/src/util/toTime.js");
  31786. function noop() {}
  31787. function isEmptyArray(arr) {
  31788. return Array.isArray(arr) && (arr.length === 0 || arr.every(function (i) {
  31789. return !i;
  31790. }));
  31791. }
  31792. function isArraysEqual(a, b) {
  31793. if (a === b) return true;
  31794. if (a === null || typeof a === 'undefined' || b === null || typeof b === 'undefined') {
  31795. return false;
  31796. }
  31797. if (a.length !== b.length) return false;
  31798. for (var i = 0; i < a.length; ++i) {
  31799. if (a[i] !== b[i]) return false;
  31800. }
  31801. return true;
  31802. }
  31803. function getValueFromSelectedValue(selectedValue) {
  31804. var _selectedValue = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(selectedValue, 2),
  31805. start = _selectedValue[0],
  31806. end = _selectedValue[1];
  31807. if (end && (start === undefined || start === null)) {
  31808. start = end.clone().subtract(1, 'month');
  31809. }
  31810. if (start && (end === undefined || end === null)) {
  31811. end = start.clone().add(1, 'month');
  31812. }
  31813. return [start, end];
  31814. }
  31815. function normalizeAnchor(props, init) {
  31816. var selectedValue = props.selectedValue || init && props.defaultSelectedValue;
  31817. var value = props.value || init && props.defaultValue;
  31818. var normalizedValue = value ? getValueFromSelectedValue(value) : getValueFromSelectedValue(selectedValue);
  31819. return !isEmptyArray(normalizedValue) ? normalizedValue : init && [moment__WEBPACK_IMPORTED_MODULE_7___default()(), moment__WEBPACK_IMPORTED_MODULE_7___default()().add(1, 'months')];
  31820. }
  31821. function generateOptions(length, extraOptionGen) {
  31822. var arr = extraOptionGen ? extraOptionGen().concat() : [];
  31823. for (var value = 0; value < length; value++) {
  31824. if (arr.indexOf(value) === -1) {
  31825. arr.push(value);
  31826. }
  31827. }
  31828. return arr;
  31829. }
  31830. function onInputSelect(direction, value, cause) {
  31831. if (!value) {
  31832. return;
  31833. }
  31834. var originalValue = this.sSelectedValue;
  31835. var selectedValue = originalValue.concat();
  31836. var index = direction === 'left' ? 0 : 1;
  31837. selectedValue[index] = value;
  31838. if (selectedValue[0] && this.compare(selectedValue[0], selectedValue[1]) > 0) {
  31839. selectedValue[1 - index] = this.sShowTimePicker ? selectedValue[index] : undefined;
  31840. }
  31841. this.__emit('inputSelect', selectedValue);
  31842. this.fireSelectValueChange(selectedValue, null, cause || { source: 'dateInput' });
  31843. }
  31844. var RangeCalendar = {
  31845. props: {
  31846. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(_locale_en_US__WEBPACK_IMPORTED_MODULE_14__["default"]),
  31847. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
  31848. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('rc-calendar'),
  31849. dateInputPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  31850. seperator: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('~'),
  31851. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  31852. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  31853. hoverValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  31854. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['time', 'date', 'month', 'year', 'decade'])),
  31855. showDateInput: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
  31856. timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  31857. showOk: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  31858. showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
  31859. defaultSelectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array.def([]),
  31860. selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
  31861. showClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  31862. showWeekNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  31863. // locale: PropTypes.object,
  31864. // onChange: PropTypes.func,
  31865. // onSelect: PropTypes.func,
  31866. // onValueChange: PropTypes.func,
  31867. // onHoverChange: PropTypes.func,
  31868. // onPanelChange: PropTypes.func,
  31869. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string), _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func]),
  31870. // onClear: PropTypes.func,
  31871. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def('both'),
  31872. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
  31873. disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
  31874. renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(function () {
  31875. return null;
  31876. }),
  31877. renderSidebar: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(function () {
  31878. return null;
  31879. }),
  31880. dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
  31881. clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  31882. inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
  31883. },
  31884. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"], _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_13__["default"]],
  31885. data: function data() {
  31886. var props = this.$props;
  31887. var selectedValue = props.selectedValue || props.defaultSelectedValue;
  31888. var value = normalizeAnchor(props, 1);
  31889. return {
  31890. sSelectedValue: selectedValue,
  31891. prevSelectedValue: selectedValue,
  31892. firstSelectedValue: null,
  31893. sHoverValue: props.hoverValue || [],
  31894. sValue: value,
  31895. sShowTimePicker: false,
  31896. sMode: props.mode || ['date', 'date'],
  31897. sPanelTriggerSource: '' // Trigger by which picker panel: 'start' & 'end'
  31898. };
  31899. },
  31900. watch: {
  31901. value: function value() {
  31902. var newState = {};
  31903. newState.sValue = normalizeAnchor(this.$props, 0);
  31904. this.setState(newState);
  31905. },
  31906. hoverValue: function hoverValue(val) {
  31907. if (!isArraysEqual(this.sHoverValue, val)) {
  31908. this.setState({ sHoverValue: val });
  31909. }
  31910. },
  31911. selectedValue: function selectedValue(val) {
  31912. var newState = {};
  31913. newState.sSelectedValue = val;
  31914. newState.prevSelectedValue = val;
  31915. this.setState(newState);
  31916. },
  31917. mode: function mode(val) {
  31918. if (!isArraysEqual(this.sMode, val)) {
  31919. this.setState({ sMode: val });
  31920. }
  31921. }
  31922. },
  31923. methods: {
  31924. onDatePanelEnter: function onDatePanelEnter() {
  31925. if (this.hasSelectedValue()) {
  31926. this.fireHoverValueChange(this.sSelectedValue.concat());
  31927. }
  31928. },
  31929. onDatePanelLeave: function onDatePanelLeave() {
  31930. if (this.hasSelectedValue()) {
  31931. this.fireHoverValueChange([]);
  31932. }
  31933. },
  31934. onSelect: function onSelect(value) {
  31935. var type = this.type,
  31936. sSelectedValue = this.sSelectedValue,
  31937. prevSelectedValue = this.prevSelectedValue,
  31938. firstSelectedValue = this.firstSelectedValue;
  31939. var nextSelectedValue = void 0;
  31940. if (type === 'both') {
  31941. if (!firstSelectedValue) {
  31942. Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[0], value);
  31943. nextSelectedValue = [value];
  31944. } else if (this.compare(firstSelectedValue, value) < 0) {
  31945. Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[1], value);
  31946. nextSelectedValue = [firstSelectedValue, value];
  31947. } else {
  31948. Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[0], value);
  31949. Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[1], firstSelectedValue);
  31950. nextSelectedValue = [value, firstSelectedValue];
  31951. }
  31952. } else if (type === 'start') {
  31953. Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[0], value);
  31954. var endValue = sSelectedValue[1];
  31955. nextSelectedValue = endValue && this.compare(endValue, value) > 0 ? [value, endValue] : [value];
  31956. } else {
  31957. // type === 'end'
  31958. var startValue = sSelectedValue[0];
  31959. if (startValue && this.compare(startValue, value) <= 0) {
  31960. Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[1], value);
  31961. nextSelectedValue = [startValue, value];
  31962. } else {
  31963. Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[0], value);
  31964. nextSelectedValue = [value];
  31965. }
  31966. }
  31967. this.fireSelectValueChange(nextSelectedValue);
  31968. },
  31969. onKeyDown: function onKeyDown(event) {
  31970. var _this = this;
  31971. if (event.target.nodeName.toLowerCase() === 'input') {
  31972. return;
  31973. }
  31974. var keyCode = event.keyCode;
  31975. var ctrlKey = event.ctrlKey || event.metaKey;
  31976. var _$data = this.$data,
  31977. selectedValue = _$data.sSelectedValue,
  31978. hoverValue = _$data.sHoverValue,
  31979. firstSelectedValue = _$data.firstSelectedValue,
  31980. value = _$data.sValue;
  31981. var disabledDate = this.$props.disabledDate;
  31982. // Update last time of the picker
  31983. var updateHoverPoint = function updateHoverPoint(func) {
  31984. // Change hover to make focus in UI
  31985. var currentHoverTime = void 0;
  31986. var nextHoverTime = void 0;
  31987. var nextHoverValue = void 0;
  31988. if (!firstSelectedValue) {
  31989. currentHoverTime = hoverValue[0] || selectedValue[0] || value[0] || moment__WEBPACK_IMPORTED_MODULE_7___default()();
  31990. nextHoverTime = func(currentHoverTime);
  31991. nextHoverValue = [nextHoverTime];
  31992. _this.fireHoverValueChange(nextHoverValue);
  31993. } else {
  31994. if (hoverValue.length === 1) {
  31995. currentHoverTime = hoverValue[0].clone();
  31996. nextHoverTime = func(currentHoverTime);
  31997. nextHoverValue = _this.onDayHover(nextHoverTime);
  31998. } else {
  31999. currentHoverTime = hoverValue[0].isSame(firstSelectedValue, 'day') ? hoverValue[1] : hoverValue[0];
  32000. nextHoverTime = func(currentHoverTime);
  32001. nextHoverValue = _this.onDayHover(nextHoverTime);
  32002. }
  32003. }
  32004. // Find origin hover time on value index
  32005. if (nextHoverValue.length >= 2) {
  32006. var miss = nextHoverValue.some(function (ht) {
  32007. return !Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["includesTime"])(value, ht, 'month');
  32008. });
  32009. if (miss) {
  32010. var newValue = nextHoverValue.slice().sort(function (t1, t2) {
  32011. return t1.valueOf() - t2.valueOf();
  32012. });
  32013. if (newValue[0].isSame(newValue[1], 'month')) {
  32014. newValue[1] = newValue[0].clone().add(1, 'month');
  32015. }
  32016. _this.fireValueChange(newValue);
  32017. }
  32018. } else if (nextHoverValue.length === 1) {
  32019. // If only one value, let's keep the origin panel
  32020. var oriValueIndex = value.findIndex(function (time) {
  32021. return time.isSame(currentHoverTime, 'month');
  32022. });
  32023. if (oriValueIndex === -1) oriValueIndex = 0;
  32024. if (value.every(function (time) {
  32025. return !time.isSame(nextHoverTime, 'month');
  32026. })) {
  32027. var _newValue = value.slice();
  32028. _newValue[oriValueIndex] = nextHoverTime.clone();
  32029. _this.fireValueChange(_newValue);
  32030. }
  32031. }
  32032. event.preventDefault();
  32033. return nextHoverTime;
  32034. };
  32035. switch (keyCode) {
  32036. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].DOWN:
  32037. updateHoverPoint(function (time) {
  32038. return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, 1, 'weeks');
  32039. });
  32040. return;
  32041. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].UP:
  32042. updateHoverPoint(function (time) {
  32043. return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, -1, 'weeks');
  32044. });
  32045. return;
  32046. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].LEFT:
  32047. if (ctrlKey) {
  32048. updateHoverPoint(function (time) {
  32049. return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, -1, 'years');
  32050. });
  32051. } else {
  32052. updateHoverPoint(function (time) {
  32053. return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, -1, 'days');
  32054. });
  32055. }
  32056. return;
  32057. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].RIGHT:
  32058. if (ctrlKey) {
  32059. updateHoverPoint(function (time) {
  32060. return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, 1, 'years');
  32061. });
  32062. } else {
  32063. updateHoverPoint(function (time) {
  32064. return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, 1, 'days');
  32065. });
  32066. }
  32067. return;
  32068. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].HOME:
  32069. updateHoverPoint(function (time) {
  32070. return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goStartMonth"])(time);
  32071. });
  32072. return;
  32073. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].END:
  32074. updateHoverPoint(function (time) {
  32075. return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goEndMonth"])(time);
  32076. });
  32077. return;
  32078. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].PAGE_DOWN:
  32079. updateHoverPoint(function (time) {
  32080. return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, 1, 'month');
  32081. });
  32082. return;
  32083. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].PAGE_UP:
  32084. updateHoverPoint(function (time) {
  32085. return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, -1, 'month');
  32086. });
  32087. return;
  32088. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].ENTER:
  32089. {
  32090. var lastValue = void 0;
  32091. if (hoverValue.length === 0) {
  32092. lastValue = updateHoverPoint(function (time) {
  32093. return time;
  32094. });
  32095. } else if (hoverValue.length === 1) {
  32096. lastValue = hoverValue[0];
  32097. } else {
  32098. lastValue = hoverValue[0].isSame(firstSelectedValue, 'day') ? hoverValue[1] : hoverValue[0];
  32099. }
  32100. if (lastValue && (!disabledDate || !disabledDate(lastValue))) {
  32101. this.onSelect(lastValue);
  32102. }
  32103. event.preventDefault();
  32104. return;
  32105. }
  32106. default:
  32107. this.__emit('keydown', event);
  32108. }
  32109. },
  32110. onDayHover: function onDayHover(value) {
  32111. var hoverValue = [];
  32112. var sSelectedValue = this.sSelectedValue,
  32113. firstSelectedValue = this.firstSelectedValue,
  32114. type = this.type;
  32115. if (type === 'start' && sSelectedValue[1]) {
  32116. hoverValue = this.compare(value, sSelectedValue[1]) < 0 ? [value, sSelectedValue[1]] : [value];
  32117. } else if (type === 'end' && sSelectedValue[0]) {
  32118. hoverValue = this.compare(value, sSelectedValue[0]) > 0 ? [sSelectedValue[0], value] : [];
  32119. } else {
  32120. if (!firstSelectedValue) {
  32121. if (this.sHoverValue.length) {
  32122. this.setState({ sHoverValue: [] });
  32123. }
  32124. return hoverValue;
  32125. }
  32126. hoverValue = this.compare(value, firstSelectedValue) < 0 ? [value, firstSelectedValue] : [firstSelectedValue, value];
  32127. }
  32128. this.fireHoverValueChange(hoverValue);
  32129. return hoverValue;
  32130. },
  32131. onToday: function onToday() {
  32132. var startValue = Object(_util___WEBPACK_IMPORTED_MODULE_15__["getTodayTime"])(this.sValue[0]);
  32133. var endValue = startValue.clone().add(1, 'months');
  32134. this.setState({ sValue: [startValue, endValue] });
  32135. },
  32136. onOpenTimePicker: function onOpenTimePicker() {
  32137. this.setState({
  32138. sShowTimePicker: true
  32139. });
  32140. },
  32141. onCloseTimePicker: function onCloseTimePicker() {
  32142. this.setState({
  32143. sShowTimePicker: false
  32144. });
  32145. },
  32146. onOk: function onOk() {
  32147. var sSelectedValue = this.sSelectedValue;
  32148. if (this.isAllowedDateAndTime(sSelectedValue)) {
  32149. this.__emit('ok', sSelectedValue);
  32150. }
  32151. },
  32152. onStartInputChange: function onStartInputChange() {
  32153. for (var _len = arguments.length, oargs = Array(_len), _key = 0; _key < _len; _key++) {
  32154. oargs[_key] = arguments[_key];
  32155. }
  32156. var args = ['left'].concat(oargs);
  32157. return onInputSelect.apply(this, args);
  32158. },
  32159. onEndInputChange: function onEndInputChange() {
  32160. for (var _len2 = arguments.length, oargs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  32161. oargs[_key2] = arguments[_key2];
  32162. }
  32163. var args = ['right'].concat(oargs);
  32164. return onInputSelect.apply(this, args);
  32165. },
  32166. onStartInputSelect: function onStartInputSelect(value) {
  32167. var args = ['left', value, { source: 'dateInputSelect' }];
  32168. return onInputSelect.apply(this, args);
  32169. },
  32170. onEndInputSelect: function onEndInputSelect(value) {
  32171. var args = ['right', value, { source: 'dateInputSelect' }];
  32172. return onInputSelect.apply(this, args);
  32173. },
  32174. onStartValueChange: function onStartValueChange(leftValue) {
  32175. var value = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.sValue));
  32176. value[0] = leftValue;
  32177. return this.fireValueChange(value);
  32178. },
  32179. onEndValueChange: function onEndValueChange(rightValue) {
  32180. var value = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.sValue));
  32181. value[1] = rightValue;
  32182. return this.fireValueChange(value);
  32183. },
  32184. onStartPanelChange: function onStartPanelChange(value, mode) {
  32185. var sMode = this.sMode,
  32186. sValue = this.sValue;
  32187. var newMode = [mode, sMode[1]];
  32188. var newValue = [value || sValue[0], sValue[1]];
  32189. this.__emit('panelChange', newValue, newMode);
  32190. var newState = {
  32191. sPanelTriggerSource: 'start'
  32192. };
  32193. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'mode')) {
  32194. newState.sMode = newMode;
  32195. }
  32196. this.setState(newState);
  32197. },
  32198. onEndPanelChange: function onEndPanelChange(value, mode) {
  32199. var sMode = this.sMode,
  32200. sValue = this.sValue;
  32201. var newMode = [sMode[0], mode];
  32202. var newValue = [sValue[0], value || sValue[1]];
  32203. this.__emit('panelChange', newValue, newMode);
  32204. var newState = {
  32205. sPanelTriggerSource: 'end'
  32206. };
  32207. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'mode')) {
  32208. newState.sMode = newMode;
  32209. }
  32210. this.setState(newState);
  32211. },
  32212. getStartValue: function getStartValue() {
  32213. var _$data2 = this.$data,
  32214. selectedValue = _$data2.sSelectedValue,
  32215. showTimePicker = _$data2.sShowTimePicker,
  32216. value = _$data2.sValue,
  32217. mode = _$data2.sMode,
  32218. panelTriggerSource = _$data2.sPanelTriggerSource;
  32219. var startValue = value[0];
  32220. // keep selectedTime when select date
  32221. if (selectedValue[0] && this.$props.timePicker) {
  32222. startValue = startValue.clone();
  32223. Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(selectedValue[0], startValue);
  32224. }
  32225. if (showTimePicker && selectedValue[0]) {
  32226. startValue = selectedValue[0];
  32227. }
  32228. // Adjust month if date not align
  32229. if (panelTriggerSource === 'end' && mode[0] === 'date' && mode[1] === 'date' && startValue.isSame(value[1], 'month')) {
  32230. startValue = startValue.clone().subtract(1, 'month');
  32231. }
  32232. return startValue;
  32233. },
  32234. getEndValue: function getEndValue() {
  32235. var _$data3 = this.$data,
  32236. selectedValue = _$data3.sSelectedValue,
  32237. showTimePicker = _$data3.sShowTimePicker,
  32238. value = _$data3.sValue,
  32239. mode = _$data3.sMode,
  32240. panelTriggerSource = _$data3.sPanelTriggerSource;
  32241. var endValue = value[1] ? value[1].clone() : value[0].clone().add(1, 'month');
  32242. // keep selectedTime when select date
  32243. if (selectedValue[1] && this.$props.timePicker) {
  32244. Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(selectedValue[1], endValue);
  32245. }
  32246. if (showTimePicker) {
  32247. endValue = selectedValue[1] ? selectedValue[1] : this.getStartValue();
  32248. }
  32249. // Adjust month if date not align
  32250. if (!showTimePicker && panelTriggerSource !== 'end' && mode[0] === 'date' && mode[1] === 'date' && endValue.isSame(value[0], 'month')) {
  32251. endValue = endValue.clone().add(1, 'month');
  32252. }
  32253. return endValue;
  32254. },
  32255. // get disabled hours for second picker
  32256. getEndDisableTime: function getEndDisableTime() {
  32257. var sSelectedValue = this.sSelectedValue,
  32258. sValue = this.sValue,
  32259. disabledTime = this.disabledTime;
  32260. var userSettingDisabledTime = disabledTime(sSelectedValue, 'end') || {};
  32261. var startValue = sSelectedValue && sSelectedValue[0] || sValue[0].clone();
  32262. // if startTime and endTime is same day..
  32263. // the second time picker will not able to pick time before first time picker
  32264. if (!sSelectedValue[1] || startValue.isSame(sSelectedValue[1], 'day')) {
  32265. var hours = startValue.hour();
  32266. var minutes = startValue.minute();
  32267. var second = startValue.second();
  32268. var _disabledHours = userSettingDisabledTime.disabledHours,
  32269. _disabledMinutes = userSettingDisabledTime.disabledMinutes,
  32270. _disabledSeconds = userSettingDisabledTime.disabledSeconds;
  32271. var oldDisabledMinutes = _disabledMinutes ? _disabledMinutes() : [];
  32272. var olddisabledSeconds = _disabledSeconds ? _disabledSeconds() : [];
  32273. _disabledHours = generateOptions(hours, _disabledHours);
  32274. _disabledMinutes = generateOptions(minutes, _disabledMinutes);
  32275. _disabledSeconds = generateOptions(second, _disabledSeconds);
  32276. return {
  32277. disabledHours: function disabledHours() {
  32278. return _disabledHours;
  32279. },
  32280. disabledMinutes: function disabledMinutes(hour) {
  32281. if (hour === hours) {
  32282. return _disabledMinutes;
  32283. }
  32284. return oldDisabledMinutes;
  32285. },
  32286. disabledSeconds: function disabledSeconds(hour, minute) {
  32287. if (hour === hours && minute === minutes) {
  32288. return _disabledSeconds;
  32289. }
  32290. return olddisabledSeconds;
  32291. }
  32292. };
  32293. }
  32294. return userSettingDisabledTime;
  32295. },
  32296. isAllowedDateAndTime: function isAllowedDateAndTime(selectedValue) {
  32297. return Object(_util___WEBPACK_IMPORTED_MODULE_15__["isAllowedDate"])(selectedValue[0], this.disabledDate, this.disabledStartTime) && Object(_util___WEBPACK_IMPORTED_MODULE_15__["isAllowedDate"])(selectedValue[1], this.disabledDate, this.disabledEndTime);
  32298. },
  32299. isMonthYearPanelShow: function isMonthYearPanelShow(mode) {
  32300. return ['month', 'year', 'decade'].indexOf(mode) > -1;
  32301. },
  32302. hasSelectedValue: function hasSelectedValue() {
  32303. var sSelectedValue = this.sSelectedValue;
  32304. return !!sSelectedValue[1] && !!sSelectedValue[0];
  32305. },
  32306. compare: function compare(v1, v2) {
  32307. if (this.timePicker) {
  32308. return v1.diff(v2);
  32309. }
  32310. return v1.diff(v2, 'days');
  32311. },
  32312. fireSelectValueChange: function fireSelectValueChange(selectedValue, direct, cause) {
  32313. var timePicker = this.timePicker,
  32314. prevSelectedValue = this.prevSelectedValue;
  32315. if (timePicker) {
  32316. var timePickerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(timePicker);
  32317. if (timePickerProps.defaultValue) {
  32318. var timePickerDefaultValue = timePickerProps.defaultValue;
  32319. if (!prevSelectedValue[0] && selectedValue[0]) {
  32320. Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(timePickerDefaultValue[0], selectedValue[0]);
  32321. }
  32322. if (!prevSelectedValue[1] && selectedValue[1]) {
  32323. Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(timePickerDefaultValue[1], selectedValue[1]);
  32324. }
  32325. }
  32326. }
  32327. // 尚未选择过时间,直接输入的话
  32328. if (!this.sSelectedValue[0] || !this.sSelectedValue[1]) {
  32329. var startValue = selectedValue[0] || moment__WEBPACK_IMPORTED_MODULE_7___default()();
  32330. var endValue = selectedValue[1] || startValue.clone().add(1, 'months');
  32331. this.setState({
  32332. sSelectedValue: selectedValue,
  32333. sValue: selectedValue && selectedValue.length === 2 ? getValueFromSelectedValue([startValue, endValue]) : this.sValue
  32334. });
  32335. }
  32336. if (selectedValue[0] && !selectedValue[1]) {
  32337. this.setState({ firstSelectedValue: selectedValue[0] });
  32338. this.fireHoverValueChange(selectedValue.concat());
  32339. }
  32340. this.__emit('change', selectedValue);
  32341. if (direct || selectedValue[0] && selectedValue[1]) {
  32342. this.setState({
  32343. prevSelectedValue: selectedValue,
  32344. firstSelectedValue: null
  32345. });
  32346. this.fireHoverValueChange([]);
  32347. this.__emit('select', selectedValue, cause);
  32348. }
  32349. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'selectedValue')) {
  32350. this.setState({
  32351. sSelectedValue: selectedValue
  32352. });
  32353. }
  32354. },
  32355. fireValueChange: function fireValueChange(value) {
  32356. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'value')) {
  32357. this.setState({
  32358. sValue: value
  32359. });
  32360. }
  32361. this.__emit('valueChange', value);
  32362. },
  32363. fireHoverValueChange: function fireHoverValueChange(hoverValue) {
  32364. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'hoverValue')) {
  32365. this.setState({ sHoverValue: hoverValue });
  32366. }
  32367. this.__emit('hoverChange', hoverValue);
  32368. },
  32369. clear: function clear() {
  32370. this.fireSelectValueChange([], true);
  32371. this.__emit('clear');
  32372. },
  32373. disabledStartTime: function disabledStartTime(time) {
  32374. return this.disabledTime(time, 'start');
  32375. },
  32376. disabledEndTime: function disabledEndTime(time) {
  32377. return this.disabledTime(time, 'end');
  32378. },
  32379. disabledStartMonth: function disabledStartMonth(month) {
  32380. var sValue = this.sValue;
  32381. return month.isAfter(sValue[1], 'month');
  32382. },
  32383. disabledEndMonth: function disabledEndMonth(month) {
  32384. var sValue = this.sValue;
  32385. return month.isBefore(sValue[0], 'month');
  32386. }
  32387. },
  32388. render: function render() {
  32389. var _className, _cls;
  32390. var h = arguments[0];
  32391. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
  32392. var prefixCls = props.prefixCls,
  32393. dateInputPlaceholder = props.dateInputPlaceholder,
  32394. timePicker = props.timePicker,
  32395. showOk = props.showOk,
  32396. locale = props.locale,
  32397. showClear = props.showClear,
  32398. showToday = props.showToday,
  32399. type = props.type,
  32400. seperator = props.seperator;
  32401. var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'clearIcon');
  32402. var sHoverValue = this.sHoverValue,
  32403. sSelectedValue = this.sSelectedValue,
  32404. mode = this.sMode,
  32405. sShowTimePicker = this.sShowTimePicker,
  32406. sValue = this.sValue;
  32407. var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls + '-hidden', !props.visible), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls + '-range', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls + '-show-time-picker', sShowTimePicker), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls + '-week-number', props.showWeekNumber), _className);
  32408. var baseProps = {
  32409. props: props,
  32410. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this)
  32411. };
  32412. var newProps = {
  32413. props: {
  32414. selectedValue: sSelectedValue
  32415. },
  32416. on: {
  32417. select: this.onSelect,
  32418. dayHover: type === 'start' && sSelectedValue[1] || type === 'end' && sSelectedValue[0] || !!sHoverValue.length ? this.onDayHover : noop
  32419. }
  32420. };
  32421. var placeholder1 = void 0;
  32422. var placeholder2 = void 0;
  32423. if (dateInputPlaceholder) {
  32424. if (Array.isArray(dateInputPlaceholder)) {
  32425. var _dateInputPlaceholder = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(dateInputPlaceholder, 2);
  32426. placeholder1 = _dateInputPlaceholder[0];
  32427. placeholder2 = _dateInputPlaceholder[1];
  32428. } else {
  32429. placeholder1 = placeholder2 = dateInputPlaceholder;
  32430. }
  32431. }
  32432. var showOkButton = showOk === true || showOk !== false && !!timePicker;
  32433. var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-footer', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-range-bottom', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-footer-show-ok', showOkButton), _cls);
  32434. var startValue = this.getStartValue();
  32435. var endValue = this.getEndValue();
  32436. var todayTime = Object(_util___WEBPACK_IMPORTED_MODULE_15__["getTodayTime"])(startValue);
  32437. var thisMonth = todayTime.month();
  32438. var thisYear = todayTime.year();
  32439. var isTodayInView = startValue.year() === thisYear && startValue.month() === thisMonth || endValue.year() === thisYear && endValue.month() === thisMonth;
  32440. var nextMonthOfStart = startValue.clone().add(1, 'months');
  32441. var isClosestMonths = nextMonthOfStart.year() === endValue.year() && nextMonthOfStart.month() === endValue.month();
  32442. var leftPartProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, newProps, {
  32443. props: {
  32444. hoverValue: sHoverValue,
  32445. direction: 'left',
  32446. disabledTime: this.disabledStartTime,
  32447. disabledMonth: this.disabledStartMonth,
  32448. format: this.getFormat(),
  32449. value: startValue,
  32450. mode: mode[0],
  32451. placeholder: placeholder1,
  32452. showDateInput: this.showDateInput,
  32453. timePicker: timePicker,
  32454. showTimePicker: sShowTimePicker || mode[0] === 'time',
  32455. enablePrev: true,
  32456. enableNext: !isClosestMonths || this.isMonthYearPanelShow(mode[1]),
  32457. clearIcon: clearIcon
  32458. },
  32459. on: {
  32460. inputChange: this.onStartInputChange,
  32461. inputSelect: this.onStartInputSelect,
  32462. valueChange: this.onStartValueChange,
  32463. panelChange: this.onStartPanelChange
  32464. }
  32465. });
  32466. var rightPartProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, newProps, {
  32467. props: {
  32468. hoverValue: sHoverValue,
  32469. direction: 'right',
  32470. format: this.getFormat(),
  32471. timePickerDisabledTime: this.getEndDisableTime(),
  32472. placeholder: placeholder2,
  32473. value: endValue,
  32474. mode: mode[1],
  32475. showDateInput: this.showDateInput,
  32476. timePicker: timePicker,
  32477. showTimePicker: sShowTimePicker || mode[1] === 'time',
  32478. disabledTime: this.disabledEndTime,
  32479. disabledMonth: this.disabledEndMonth,
  32480. enablePrev: !isClosestMonths || this.isMonthYearPanelShow(mode[0]),
  32481. enableNext: true,
  32482. clearIcon: clearIcon
  32483. },
  32484. on: {
  32485. inputChange: this.onEndInputChange,
  32486. inputSelect: this.onEndInputSelect,
  32487. valueChange: this.onEndValueChange,
  32488. panelChange: this.onEndPanelChange
  32489. }
  32490. });
  32491. var TodayButtonNode = null;
  32492. if (showToday) {
  32493. var todayButtonProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, {
  32494. props: {
  32495. disabled: isTodayInView,
  32496. value: sValue[0],
  32497. text: locale.backToToday
  32498. },
  32499. on: {
  32500. today: this.onToday
  32501. }
  32502. });
  32503. TodayButtonNode = h(_calendar_TodayButton__WEBPACK_IMPORTED_MODULE_10__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'todayButton' }, todayButtonProps]));
  32504. }
  32505. var TimePickerButtonNode = null;
  32506. if (props.timePicker) {
  32507. var timePickerButtonProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, {
  32508. props: {
  32509. showTimePicker: sShowTimePicker || mode[0] === 'time' && mode[1] === 'time',
  32510. timePickerDisabled: !this.hasSelectedValue() || sHoverValue.length
  32511. },
  32512. on: {
  32513. openTimePicker: this.onOpenTimePicker,
  32514. closeTimePicker: this.onCloseTimePicker
  32515. }
  32516. });
  32517. TimePickerButtonNode = h(_calendar_TimePickerButton__WEBPACK_IMPORTED_MODULE_12__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'timePickerButton' }, timePickerButtonProps]));
  32518. }
  32519. var OkButtonNode = null;
  32520. if (showOkButton) {
  32521. var okButtonProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, {
  32522. props: {
  32523. okDisabled: !this.isAllowedDateAndTime(sSelectedValue) || !this.hasSelectedValue() || sHoverValue.length
  32524. },
  32525. on: {
  32526. ok: this.onOk
  32527. }
  32528. });
  32529. OkButtonNode = h(_calendar_OkButton__WEBPACK_IMPORTED_MODULE_11__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'okButtonNode' }, okButtonProps]));
  32530. }
  32531. var extraFooter = this.renderFooter(mode);
  32532. return h(
  32533. 'div',
  32534. { ref: 'rootInstance', 'class': className, attrs: { tabIndex: '0' },
  32535. on: {
  32536. 'keydown': this.onKeyDown
  32537. }
  32538. },
  32539. [props.renderSidebar(), h(
  32540. 'div',
  32541. { 'class': prefixCls + '-panel' },
  32542. [showClear && sSelectedValue[0] && sSelectedValue[1] ? h(
  32543. 'a',
  32544. {
  32545. attrs: { role: 'button', title: locale.clear },
  32546. on: {
  32547. 'click': this.clear
  32548. }
  32549. },
  32550. [clearIcon || h('span', { 'class': prefixCls + '-clear-btn' })]
  32551. ) : null, h(
  32552. 'div',
  32553. {
  32554. 'class': prefixCls + '-date-panel',
  32555. on: {
  32556. 'mouseleave': type !== 'both' ? this.onDatePanelLeave : noop,
  32557. 'mouseenter': type !== 'both' ? this.onDatePanelEnter : noop
  32558. }
  32559. },
  32560. [h(_range_calendar_CalendarPart__WEBPACK_IMPORTED_MODULE_9__["default"], leftPartProps), h(
  32561. 'span',
  32562. { 'class': prefixCls + '-range-middle' },
  32563. [seperator]
  32564. ), h(_range_calendar_CalendarPart__WEBPACK_IMPORTED_MODULE_9__["default"], rightPartProps)]
  32565. ), h(
  32566. 'div',
  32567. { 'class': cls },
  32568. [showToday || props.timePicker || showOkButton || extraFooter ? h(
  32569. 'div',
  32570. { 'class': prefixCls + '-footer-btn' },
  32571. [extraFooter, TodayButtonNode, TimePickerButtonNode, OkButtonNode]
  32572. ) : null]
  32573. )]
  32574. )]
  32575. );
  32576. }
  32577. };
  32578. /* harmony default export */ __webpack_exports__["default"] = (RangeCalendar);
  32579. /***/ }),
  32580. /***/ "./components/vc-calendar/src/calendar/CalendarFooter.jsx":
  32581. /*!****************************************************************!*\
  32582. !*** ./components/vc-calendar/src/calendar/CalendarFooter.jsx ***!
  32583. \****************************************************************/
  32584. /*! exports provided: default */
  32585. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  32586. "use strict";
  32587. __webpack_require__.r(__webpack_exports__);
  32588. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  32589. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  32590. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  32591. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__);
  32592. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  32593. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  32594. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  32595. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  32596. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
  32597. /* harmony import */ var _TodayButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TodayButton */ "./components/vc-calendar/src/calendar/TodayButton.jsx");
  32598. /* harmony import */ var _OkButton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./OkButton */ "./components/vc-calendar/src/calendar/OkButton.jsx");
  32599. /* harmony import */ var _TimePickerButton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TimePickerButton */ "./components/vc-calendar/src/calendar/TimePickerButton.jsx");
  32600. var CalendarFooter = {
  32601. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  32602. props: {
  32603. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  32604. showDateInput: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  32605. disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  32606. timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  32607. selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  32608. showOk: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  32609. // onSelect: PropTypes.func,
  32610. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  32611. renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  32612. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  32613. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  32614. showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  32615. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  32616. showTimePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  32617. okDisabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  32618. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
  32619. },
  32620. methods: {
  32621. onSelect: function onSelect(value) {
  32622. this.__emit('select', value);
  32623. },
  32624. getRootDOMNode: function getRootDOMNode() {
  32625. return this.$el;
  32626. }
  32627. },
  32628. render: function render() {
  32629. var h = arguments[0];
  32630. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  32631. var value = props.value,
  32632. prefixCls = props.prefixCls,
  32633. showOk = props.showOk,
  32634. timePicker = props.timePicker,
  32635. renderFooter = props.renderFooter,
  32636. showToday = props.showToday,
  32637. mode = props.mode;
  32638. var footerEl = null;
  32639. var extraFooter = renderFooter && renderFooter(mode);
  32640. if (showToday || timePicker || extraFooter) {
  32641. var _cls;
  32642. var btnProps = {
  32643. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
  32644. value: value
  32645. }),
  32646. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
  32647. };
  32648. var nowEl = null;
  32649. if (showToday) {
  32650. nowEl = h(_TodayButton__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ key: 'todayButton' }, btnProps]));
  32651. }
  32652. delete btnProps.props.value;
  32653. var okBtn = null;
  32654. if (showOk === true || showOk !== false && !!timePicker) {
  32655. okBtn = h(_OkButton__WEBPACK_IMPORTED_MODULE_7__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ key: 'okButton' }, btnProps]));
  32656. }
  32657. var timePickerBtn = null;
  32658. if (timePicker) {
  32659. timePickerBtn = h(_TimePickerButton__WEBPACK_IMPORTED_MODULE_8__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ key: 'timePickerButton' }, btnProps]));
  32660. }
  32661. var footerBtn = void 0;
  32662. if (nowEl || timePickerBtn || okBtn || extraFooter) {
  32663. footerBtn = h(
  32664. 'span',
  32665. { 'class': prefixCls + '-footer-btn' },
  32666. [extraFooter, nowEl, timePickerBtn, okBtn]
  32667. );
  32668. }
  32669. var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-footer', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-footer-show-ok', !!okBtn), _cls);
  32670. footerEl = h(
  32671. 'div',
  32672. { 'class': cls },
  32673. [footerBtn]
  32674. );
  32675. }
  32676. return footerEl;
  32677. }
  32678. };
  32679. /* harmony default export */ __webpack_exports__["default"] = (CalendarFooter);
  32680. /***/ }),
  32681. /***/ "./components/vc-calendar/src/calendar/CalendarHeader.jsx":
  32682. /*!****************************************************************!*\
  32683. !*** ./components/vc-calendar/src/calendar/CalendarHeader.jsx ***!
  32684. \****************************************************************/
  32685. /*! exports provided: default */
  32686. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  32687. "use strict";
  32688. __webpack_require__.r(__webpack_exports__);
  32689. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  32690. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  32691. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
  32692. /* harmony import */ var _month_MonthPanel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../month/MonthPanel */ "./components/vc-calendar/src/month/MonthPanel.jsx");
  32693. /* harmony import */ var _year_YearPanel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../year/YearPanel */ "./components/vc-calendar/src/year/YearPanel.jsx");
  32694. /* harmony import */ var _decade_DecadePanel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../decade/DecadePanel */ "./components/vc-calendar/src/decade/DecadePanel.jsx");
  32695. function noop() {}
  32696. function goMonth(direction) {
  32697. var next = this.value.clone();
  32698. next.add(direction, 'months');
  32699. this.__emit('valueChange', next);
  32700. }
  32701. function goYear(direction) {
  32702. var next = this.value.clone();
  32703. next.add(direction, 'years');
  32704. this.__emit('valueChange', next);
  32705. }
  32706. function showIf(condition, el) {
  32707. return condition ? el : null;
  32708. }
  32709. var CalendarHeader = {
  32710. name: 'CalendarHeader',
  32711. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
  32712. props: {
  32713. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  32714. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  32715. // onValueChange: PropTypes.func,
  32716. showTimePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  32717. // onPanelChange: PropTypes.func,
  32718. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  32719. enablePrev: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(1),
  32720. enableNext: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(1),
  32721. disabledMonth: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  32722. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  32723. monthCellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  32724. monthCellContentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  32725. renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
  32726. },
  32727. data: function data() {
  32728. this.nextMonth = goMonth.bind(this, 1);
  32729. this.previousMonth = goMonth.bind(this, -1);
  32730. this.nextYear = goYear.bind(this, 1);
  32731. this.previousYear = goYear.bind(this, -1);
  32732. return {
  32733. yearPanelReferer: null
  32734. };
  32735. },
  32736. methods: {
  32737. onMonthSelect: function onMonthSelect(value) {
  32738. this.__emit('panelChange', value, 'date');
  32739. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this).monthSelect) {
  32740. this.__emit('monthSelect', value);
  32741. } else {
  32742. this.__emit('valueChange', value);
  32743. }
  32744. },
  32745. onYearSelect: function onYearSelect(value) {
  32746. var referer = this.yearPanelReferer;
  32747. this.setState({ yearPanelReferer: null });
  32748. this.__emit('panelChange', value, referer);
  32749. this.__emit('valueChange', value);
  32750. },
  32751. onDecadeSelect: function onDecadeSelect(value) {
  32752. this.__emit('panelChange', value, 'year');
  32753. this.__emit('valueChange', value);
  32754. },
  32755. changeYear: function changeYear(direction) {
  32756. if (direction > 0) {
  32757. this.nextYear();
  32758. } else {
  32759. this.previousYear();
  32760. }
  32761. },
  32762. monthYearElement: function monthYearElement(showTimePicker) {
  32763. var _this = this;
  32764. var h = this.$createElement;
  32765. var props = this.$props;
  32766. var prefixCls = props.prefixCls;
  32767. var locale = props.locale;
  32768. var value = props.value;
  32769. var localeData = value.localeData();
  32770. var monthBeforeYear = locale.monthBeforeYear;
  32771. var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select');
  32772. var timeClassName = showTimePicker ? ' ' + prefixCls + '-time-status' : '';
  32773. var year = h(
  32774. 'a',
  32775. {
  32776. 'class': prefixCls + '-year-select' + timeClassName,
  32777. attrs: { role: 'button',
  32778. title: showTimePicker ? null : locale.yearSelect
  32779. },
  32780. on: {
  32781. 'click': showTimePicker ? noop : function () {
  32782. return _this.showYearPanel('date');
  32783. }
  32784. }
  32785. },
  32786. [value.format(locale.yearFormat)]
  32787. );
  32788. var month = h(
  32789. 'a',
  32790. {
  32791. 'class': prefixCls + '-month-select' + timeClassName,
  32792. attrs: { role: 'button',
  32793. title: showTimePicker ? null : locale.monthSelect
  32794. },
  32795. on: {
  32796. 'click': showTimePicker ? noop : this.showMonthPanel
  32797. }
  32798. },
  32799. [locale.monthFormat ? value.format(locale.monthFormat) : localeData.monthsShort(value)]
  32800. );
  32801. var day = void 0;
  32802. if (showTimePicker) {
  32803. day = h(
  32804. 'a',
  32805. { 'class': prefixCls + '-day-select' + timeClassName, attrs: { role: 'button' }
  32806. },
  32807. [value.format(locale.dayFormat)]
  32808. );
  32809. }
  32810. var my = [];
  32811. if (monthBeforeYear) {
  32812. my = [month, day, year];
  32813. } else {
  32814. my = [year, month, day];
  32815. }
  32816. return h(
  32817. 'span',
  32818. { 'class': selectClassName },
  32819. [my]
  32820. );
  32821. },
  32822. showMonthPanel: function showMonthPanel() {
  32823. // null means that users' interaction doesn't change value
  32824. this.__emit('panelChange', null, 'month');
  32825. },
  32826. showYearPanel: function showYearPanel(referer) {
  32827. this.setState({ yearPanelReferer: referer });
  32828. this.__emit('panelChange', null, 'year');
  32829. },
  32830. showDecadePanel: function showDecadePanel() {
  32831. this.__emit('panelChange', null, 'decade');
  32832. }
  32833. },
  32834. render: function render() {
  32835. var _this2 = this;
  32836. var h = arguments[0];
  32837. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
  32838. var prefixCls = props.prefixCls,
  32839. locale = props.locale,
  32840. mode = props.mode,
  32841. value = props.value,
  32842. showTimePicker = props.showTimePicker,
  32843. enableNext = props.enableNext,
  32844. enablePrev = props.enablePrev,
  32845. disabledMonth = props.disabledMonth,
  32846. renderFooter = props.renderFooter;
  32847. var panel = null;
  32848. if (mode === 'month') {
  32849. panel = h(_month_MonthPanel__WEBPACK_IMPORTED_MODULE_3__["default"], {
  32850. attrs: {
  32851. locale: locale,
  32852. value: value,
  32853. rootPrefixCls: prefixCls,
  32854. disabledDate: disabledMonth,
  32855. cellRender: props.monthCellRender,
  32856. contentRender: props.monthCellContentRender,
  32857. renderFooter: renderFooter,
  32858. changeYear: this.changeYear
  32859. },
  32860. on: {
  32861. 'select': this.onMonthSelect,
  32862. 'yearPanelShow': function yearPanelShow() {
  32863. return _this2.showYearPanel('month');
  32864. }
  32865. }
  32866. });
  32867. }
  32868. if (mode === 'year') {
  32869. panel = h(_year_YearPanel__WEBPACK_IMPORTED_MODULE_4__["default"], {
  32870. attrs: {
  32871. locale: locale,
  32872. value: value,
  32873. rootPrefixCls: prefixCls,
  32874. renderFooter: renderFooter,
  32875. disabledDate: disabledMonth
  32876. },
  32877. on: {
  32878. 'select': this.onYearSelect,
  32879. 'decadePanelShow': this.showDecadePanel
  32880. }
  32881. });
  32882. }
  32883. if (mode === 'decade') {
  32884. panel = h(_decade_DecadePanel__WEBPACK_IMPORTED_MODULE_5__["default"], {
  32885. attrs: {
  32886. locale: locale,
  32887. value: value,
  32888. rootPrefixCls: prefixCls,
  32889. renderFooter: renderFooter
  32890. },
  32891. on: {
  32892. 'select': this.onDecadeSelect
  32893. }
  32894. });
  32895. }
  32896. return h(
  32897. 'div',
  32898. { 'class': prefixCls + '-header' },
  32899. [h(
  32900. 'div',
  32901. { style: { position: 'relative' } },
  32902. [showIf(enablePrev && !showTimePicker, h('a', {
  32903. 'class': prefixCls + '-prev-year-btn',
  32904. attrs: { role: 'button',
  32905. title: locale.previousYear
  32906. },
  32907. on: {
  32908. 'click': this.previousYear
  32909. }
  32910. })), showIf(enablePrev && !showTimePicker, h('a', {
  32911. 'class': prefixCls + '-prev-month-btn',
  32912. attrs: { role: 'button',
  32913. title: locale.previousMonth
  32914. },
  32915. on: {
  32916. 'click': this.previousMonth
  32917. }
  32918. })), this.monthYearElement(showTimePicker), showIf(enableNext && !showTimePicker, h('a', {
  32919. 'class': prefixCls + '-next-month-btn',
  32920. on: {
  32921. 'click': this.nextMonth
  32922. },
  32923. attrs: {
  32924. title: locale.nextMonth
  32925. }
  32926. })), showIf(enableNext && !showTimePicker, h('a', {
  32927. 'class': prefixCls + '-next-year-btn',
  32928. on: {
  32929. 'click': this.nextYear
  32930. },
  32931. attrs: {
  32932. title: locale.nextYear
  32933. }
  32934. }))]
  32935. ), panel]
  32936. );
  32937. }
  32938. };
  32939. /* harmony default export */ __webpack_exports__["default"] = (CalendarHeader);
  32940. /***/ }),
  32941. /***/ "./components/vc-calendar/src/calendar/OkButton.jsx":
  32942. /*!**********************************************************!*\
  32943. !*** ./components/vc-calendar/src/calendar/OkButton.jsx ***!
  32944. \**********************************************************/
  32945. /*! exports provided: default */
  32946. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  32947. "use strict";
  32948. __webpack_require__.r(__webpack_exports__);
  32949. function noop() {}
  32950. /* harmony default export */ __webpack_exports__["default"] = ({
  32951. functional: true,
  32952. render: function render(createElement, context) {
  32953. var h = arguments[0];
  32954. var props = context.props,
  32955. _context$listeners = context.listeners,
  32956. listeners = _context$listeners === undefined ? {} : _context$listeners;
  32957. var prefixCls = props.prefixCls,
  32958. locale = props.locale,
  32959. okDisabled = props.okDisabled;
  32960. var _listeners$ok = listeners.ok,
  32961. ok = _listeners$ok === undefined ? noop : _listeners$ok;
  32962. var className = prefixCls + "-ok-btn";
  32963. if (okDisabled) {
  32964. className += " " + prefixCls + "-ok-btn-disabled";
  32965. }
  32966. return h(
  32967. "a",
  32968. { "class": className, attrs: { role: "button" },
  32969. on: {
  32970. "click": okDisabled ? noop : ok
  32971. }
  32972. },
  32973. [locale.ok]
  32974. );
  32975. }
  32976. });
  32977. /***/ }),
  32978. /***/ "./components/vc-calendar/src/calendar/TimePickerButton.jsx":
  32979. /*!******************************************************************!*\
  32980. !*** ./components/vc-calendar/src/calendar/TimePickerButton.jsx ***!
  32981. \******************************************************************/
  32982. /*! exports provided: default */
  32983. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  32984. "use strict";
  32985. __webpack_require__.r(__webpack_exports__);
  32986. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  32987. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  32988. function noop() {}
  32989. /* harmony default export */ __webpack_exports__["default"] = ({
  32990. functional: true,
  32991. render: function render(h, context) {
  32992. var _className;
  32993. var props = context.props,
  32994. _context$listeners = context.listeners,
  32995. listeners = _context$listeners === undefined ? {} : _context$listeners;
  32996. var prefixCls = props.prefixCls,
  32997. locale = props.locale,
  32998. showTimePicker = props.showTimePicker,
  32999. timePickerDisabled = props.timePickerDisabled;
  33000. var _listeners$closeTimeP = listeners.closeTimePicker,
  33001. closeTimePicker = _listeners$closeTimeP === undefined ? noop : _listeners$closeTimeP,
  33002. _listeners$openTimePi = listeners.openTimePicker,
  33003. openTimePicker = _listeners$openTimePi === undefined ? noop : _listeners$openTimePi;
  33004. var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, prefixCls + "-time-picker-btn", true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, prefixCls + "-time-picker-btn-disabled", timePickerDisabled), _className);
  33005. var onClick = noop;
  33006. if (!timePickerDisabled) {
  33007. onClick = showTimePicker ? closeTimePicker : openTimePicker;
  33008. }
  33009. return h(
  33010. "a",
  33011. { "class": className, attrs: { role: "button" },
  33012. on: {
  33013. "click": onClick
  33014. }
  33015. },
  33016. [showTimePicker ? locale.dateSelect : locale.timeSelect]
  33017. );
  33018. }
  33019. });
  33020. /***/ }),
  33021. /***/ "./components/vc-calendar/src/calendar/TodayButton.jsx":
  33022. /*!*************************************************************!*\
  33023. !*** ./components/vc-calendar/src/calendar/TodayButton.jsx ***!
  33024. \*************************************************************/
  33025. /*! exports provided: default */
  33026. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33027. "use strict";
  33028. __webpack_require__.r(__webpack_exports__);
  33029. /* harmony import */ var _util___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/ */ "./components/vc-calendar/src/util/index.js");
  33030. function noop() {}
  33031. /* harmony default export */ __webpack_exports__["default"] = ({
  33032. functional: true,
  33033. render: function render(createElement, context) {
  33034. var h = arguments[0];
  33035. var props = context.props,
  33036. _context$listeners = context.listeners,
  33037. listeners = _context$listeners === undefined ? {} : _context$listeners;
  33038. var prefixCls = props.prefixCls,
  33039. locale = props.locale,
  33040. value = props.value,
  33041. timePicker = props.timePicker,
  33042. disabled = props.disabled,
  33043. disabledDate = props.disabledDate,
  33044. text = props.text;
  33045. var _listeners$today = listeners.today,
  33046. today = _listeners$today === undefined ? noop : _listeners$today;
  33047. var localeNow = (!text && timePicker ? locale.now : text) || locale.today;
  33048. var disabledToday = disabledDate && !Object(_util___WEBPACK_IMPORTED_MODULE_0__["isAllowedDate"])(Object(_util___WEBPACK_IMPORTED_MODULE_0__["getTodayTime"])(value), disabledDate);
  33049. var isDisabled = disabledToday || disabled;
  33050. var disabledTodayClass = isDisabled ? prefixCls + '-today-btn-disabled' : '';
  33051. return h(
  33052. 'a',
  33053. {
  33054. 'class': prefixCls + '-today-btn ' + disabledTodayClass,
  33055. attrs: { role: 'button',
  33056. title: Object(_util___WEBPACK_IMPORTED_MODULE_0__["getTodayTimeStr"])(value)
  33057. },
  33058. on: {
  33059. 'click': isDisabled ? noop : today
  33060. }
  33061. },
  33062. [localeNow]
  33063. );
  33064. }
  33065. });
  33066. /***/ }),
  33067. /***/ "./components/vc-calendar/src/date/DateConstants.js":
  33068. /*!**********************************************************!*\
  33069. !*** ./components/vc-calendar/src/date/DateConstants.js ***!
  33070. \**********************************************************/
  33071. /*! exports provided: default */
  33072. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33073. "use strict";
  33074. __webpack_require__.r(__webpack_exports__);
  33075. /* harmony default export */ __webpack_exports__["default"] = ({
  33076. DATE_ROW_COUNT: 6,
  33077. DATE_COL_COUNT: 7
  33078. });
  33079. /***/ }),
  33080. /***/ "./components/vc-calendar/src/date/DateInput.jsx":
  33081. /*!*******************************************************!*\
  33082. !*** ./components/vc-calendar/src/date/DateInput.jsx ***!
  33083. \*******************************************************/
  33084. /*! exports provided: default */
  33085. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33086. "use strict";
  33087. __webpack_require__.r(__webpack_exports__);
  33088. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  33089. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  33090. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  33091. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  33092. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
  33093. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! moment */ "moment");
  33094. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__);
  33095. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./components/vc-calendar/src/util/index.js");
  33096. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_util/KeyCode */ "./components/_util/KeyCode.js");
  33097. var cachedSelectionStart = void 0;
  33098. var cachedSelectionEnd = void 0;
  33099. var dateInputInstance = void 0;
  33100. var DateInput = {
  33101. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
  33102. props: {
  33103. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  33104. timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  33105. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  33106. disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  33107. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string), _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
  33108. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  33109. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  33110. // onChange: PropTypes.func,
  33111. // onClear: PropTypes.func,
  33112. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  33113. // onSelect: PropTypes.func,
  33114. selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  33115. clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  33116. inputMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  33117. inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
  33118. },
  33119. data: function data() {
  33120. var selectedValue = this.selectedValue;
  33121. return {
  33122. str: Object(_util__WEBPACK_IMPORTED_MODULE_5__["formatDate"])(selectedValue, this.format),
  33123. invalid: false,
  33124. hasFocus: false
  33125. };
  33126. },
  33127. watch: {
  33128. selectedValue: function selectedValue() {
  33129. this.setState();
  33130. },
  33131. format: function format() {
  33132. this.setState();
  33133. }
  33134. },
  33135. updated: function updated() {
  33136. var _this = this;
  33137. this.$nextTick(function () {
  33138. if (dateInputInstance && _this.$data.hasFocus && !_this.invalid && !(cachedSelectionStart === 0 && cachedSelectionEnd === 0)) {
  33139. dateInputInstance.setSelectionRange(cachedSelectionStart, cachedSelectionEnd);
  33140. }
  33141. });
  33142. },
  33143. getInstance: function getInstance() {
  33144. return dateInputInstance;
  33145. },
  33146. methods: {
  33147. getDerivedStateFromProps: function getDerivedStateFromProps(nextProps, state) {
  33148. var newState = {};
  33149. if (dateInputInstance) {
  33150. cachedSelectionStart = dateInputInstance.selectionStart;
  33151. cachedSelectionEnd = dateInputInstance.selectionEnd;
  33152. }
  33153. // when popup show, click body will call this, bug!
  33154. var selectedValue = nextProps.selectedValue;
  33155. if (!state.hasFocus) {
  33156. newState = {
  33157. str: Object(_util__WEBPACK_IMPORTED_MODULE_5__["formatDate"])(selectedValue, this.format),
  33158. invalid: false
  33159. };
  33160. }
  33161. return newState;
  33162. },
  33163. onClear: function onClear() {
  33164. this.setState({
  33165. str: ''
  33166. });
  33167. this.__emit('clear', null);
  33168. },
  33169. onInputChange: function onInputChange(e) {
  33170. var _e$target = e.target,
  33171. str = _e$target.value,
  33172. composing = _e$target.composing;
  33173. var _str = this.str,
  33174. oldStr = _str === undefined ? '' : _str;
  33175. if (e.isComposing || composing || oldStr === str) return;
  33176. var _$props = this.$props,
  33177. disabledDate = _$props.disabledDate,
  33178. format = _$props.format,
  33179. selectedValue = _$props.selectedValue;
  33180. // 没有内容,合法并直接退出
  33181. if (!str) {
  33182. this.__emit('change', null);
  33183. this.setState({
  33184. invalid: false,
  33185. str: str
  33186. });
  33187. return;
  33188. }
  33189. // 不合法直接退出
  33190. var parsed = moment__WEBPACK_IMPORTED_MODULE_4___default()(str, format, true);
  33191. if (!parsed.isValid()) {
  33192. this.setState({
  33193. invalid: true,
  33194. str: str
  33195. });
  33196. return;
  33197. }
  33198. var value = this.value.clone();
  33199. value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
  33200. if (!value || disabledDate && disabledDate(value)) {
  33201. this.setState({
  33202. invalid: true,
  33203. str: str
  33204. });
  33205. return;
  33206. }
  33207. if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
  33208. this.setState({
  33209. invalid: false,
  33210. str: str
  33211. });
  33212. this.__emit('change', value);
  33213. }
  33214. },
  33215. onFocus: function onFocus() {
  33216. this.setState({ hasFocus: true });
  33217. },
  33218. onBlur: function onBlur() {
  33219. this.setState(function (prevState, prevProps) {
  33220. return {
  33221. hasFocus: false,
  33222. str: Object(_util__WEBPACK_IMPORTED_MODULE_5__["formatDate"])(prevProps.value, prevProps.format)
  33223. };
  33224. });
  33225. },
  33226. onKeyDown: function onKeyDown(event) {
  33227. var keyCode = event.keyCode;
  33228. var _$props2 = this.$props,
  33229. value = _$props2.value,
  33230. disabledDate = _$props2.disabledDate;
  33231. if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].ENTER) {
  33232. var validateDate = !disabledDate || !disabledDate(value);
  33233. if (validateDate) {
  33234. this.__emit('select', value.clone());
  33235. }
  33236. event.preventDefault();
  33237. }
  33238. },
  33239. getRootDOMNode: function getRootDOMNode() {
  33240. return this.$el;
  33241. },
  33242. focus: function focus() {
  33243. if (dateInputInstance) {
  33244. dateInputInstance.focus();
  33245. }
  33246. },
  33247. saveDateInput: function saveDateInput(dateInput) {
  33248. dateInputInstance = dateInput;
  33249. }
  33250. },
  33251. render: function render() {
  33252. var h = arguments[0];
  33253. var invalid = this.invalid,
  33254. str = this.str,
  33255. locale = this.locale,
  33256. prefixCls = this.prefixCls,
  33257. placeholder = this.placeholder,
  33258. disabled = this.disabled,
  33259. showClear = this.showClear,
  33260. inputMode = this.inputMode,
  33261. inputReadOnly = this.inputReadOnly;
  33262. var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'clearIcon');
  33263. var invalidClass = invalid ? prefixCls + '-input-invalid' : '';
  33264. return h(
  33265. 'div',
  33266. { 'class': prefixCls + '-input-wrap' },
  33267. [h(
  33268. 'div',
  33269. { 'class': prefixCls + '-date-input-wrap' },
  33270. [h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  33271. directives: [{
  33272. name: 'ant-ref',
  33273. value: this.saveDateInput
  33274. }, {
  33275. name: 'ant-input'
  33276. }]
  33277. }, {
  33278. 'class': prefixCls + '-input ' + invalidClass,
  33279. domProps: {
  33280. 'value': str
  33281. },
  33282. attrs: {
  33283. disabled: disabled,
  33284. placeholder: placeholder,
  33285. inputMode: inputMode,
  33286. readOnly: inputReadOnly
  33287. },
  33288. on: {
  33289. 'input': this.onInputChange,
  33290. 'keydown': this.onKeyDown,
  33291. 'focus': this.onFocus,
  33292. 'blur': this.onBlur
  33293. }
  33294. }]))]
  33295. ), showClear ? h(
  33296. 'a',
  33297. {
  33298. attrs: { role: 'button', title: locale.clear },
  33299. on: {
  33300. 'click': this.onClear
  33301. }
  33302. },
  33303. [clearIcon || h('span', { 'class': prefixCls + '-clear-btn' })]
  33304. ) : null]
  33305. );
  33306. }
  33307. };
  33308. /* harmony default export */ __webpack_exports__["default"] = (DateInput);
  33309. /***/ }),
  33310. /***/ "./components/vc-calendar/src/date/DateTBody.jsx":
  33311. /*!*******************************************************!*\
  33312. !*** ./components/vc-calendar/src/date/DateTBody.jsx ***!
  33313. \*******************************************************/
  33314. /*! exports provided: default */
  33315. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33316. "use strict";
  33317. __webpack_require__.r(__webpack_exports__);
  33318. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  33319. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  33320. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  33321. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
  33322. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  33323. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  33324. /* harmony import */ var _DateConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DateConstants */ "./components/vc-calendar/src/date/DateConstants.js");
  33325. /* harmony import */ var _util___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/ */ "./components/vc-calendar/src/util/index.js");
  33326. function noop() {}
  33327. function isSameDay(one, two) {
  33328. return one && two && one.isSame(two, 'day');
  33329. }
  33330. function beforeCurrentMonthYear(current, today) {
  33331. if (current.year() < today.year()) {
  33332. return 1;
  33333. }
  33334. return current.year() === today.year() && current.month() < today.month();
  33335. }
  33336. function afterCurrentMonthYear(current, today) {
  33337. if (current.year() > today.year()) {
  33338. return 1;
  33339. }
  33340. return current.year() === today.year() && current.month() > today.month();
  33341. }
  33342. function getIdFromDate(date) {
  33343. return 'rc-calendar-' + date.year() + '-' + date.month() + '-' + date.date();
  33344. }
  33345. var DateTBody = {
  33346. props: {
  33347. contentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  33348. dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  33349. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  33350. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  33351. selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any)]),
  33352. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  33353. hoverValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any.def([]),
  33354. showWeekNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
  33355. },
  33356. render: function render() {
  33357. var h = arguments[0];
  33358. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
  33359. var contentRender = props.contentRender,
  33360. prefixCls = props.prefixCls,
  33361. selectedValue = props.selectedValue,
  33362. value = props.value,
  33363. showWeekNumber = props.showWeekNumber,
  33364. dateRender = props.dateRender,
  33365. disabledDate = props.disabledDate,
  33366. hoverValue = props.hoverValue;
  33367. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this),
  33368. _getListeners$select = _getListeners.select,
  33369. select = _getListeners$select === undefined ? noop : _getListeners$select,
  33370. _getListeners$dayHove = _getListeners.dayHover,
  33371. dayHover = _getListeners$dayHove === undefined ? noop : _getListeners$dayHove;
  33372. var iIndex = void 0;
  33373. var jIndex = void 0;
  33374. var current = void 0;
  33375. var dateTable = [];
  33376. var today = Object(_util___WEBPACK_IMPORTED_MODULE_5__["getTodayTime"])(value);
  33377. var cellClass = prefixCls + '-cell';
  33378. var weekNumberCellClass = prefixCls + '-week-number-cell';
  33379. var dateClass = prefixCls + '-date';
  33380. var todayClass = prefixCls + '-today';
  33381. var selectedClass = prefixCls + '-selected-day';
  33382. var selectedDateClass = prefixCls + '-selected-date'; // do not move with mouse operation
  33383. var selectedStartDateClass = prefixCls + '-selected-start-date';
  33384. var selectedEndDateClass = prefixCls + '-selected-end-date';
  33385. var inRangeClass = prefixCls + '-in-range-cell';
  33386. var lastMonthDayClass = prefixCls + '-last-month-cell';
  33387. var nextMonthDayClass = prefixCls + '-next-month-btn-day';
  33388. var disabledClass = prefixCls + '-disabled-cell';
  33389. var firstDisableClass = prefixCls + '-disabled-cell-first-of-row';
  33390. var lastDisableClass = prefixCls + '-disabled-cell-last-of-row';
  33391. var lastDayOfMonthClass = prefixCls + '-last-day-of-month';
  33392. var month1 = value.clone();
  33393. month1.date(1);
  33394. var day = month1.day();
  33395. var lastMonthDiffDay = (day + 7 - value.localeData().firstDayOfWeek()) % 7;
  33396. // calculate last month
  33397. var lastMonth1 = month1.clone();
  33398. lastMonth1.add(0 - lastMonthDiffDay, 'days');
  33399. var passed = 0;
  33400. for (iIndex = 0; iIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_ROW_COUNT; iIndex++) {
  33401. for (jIndex = 0; jIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_COL_COUNT; jIndex++) {
  33402. current = lastMonth1;
  33403. if (passed) {
  33404. current = current.clone();
  33405. current.add(passed, 'days');
  33406. }
  33407. dateTable.push(current);
  33408. passed++;
  33409. }
  33410. }
  33411. var tableHtml = [];
  33412. passed = 0;
  33413. for (iIndex = 0; iIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_ROW_COUNT; iIndex++) {
  33414. var _cx;
  33415. var isCurrentWeek = void 0;
  33416. var weekNumberCell = void 0;
  33417. var isActiveWeek = false;
  33418. var dateCells = [];
  33419. if (showWeekNumber) {
  33420. weekNumberCell = h(
  33421. 'td',
  33422. { key: 'week-' + dateTable[passed].week(), attrs: { role: 'gridcell' },
  33423. 'class': weekNumberCellClass },
  33424. [dateTable[passed].week()]
  33425. );
  33426. }
  33427. for (jIndex = 0; jIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_COL_COUNT; jIndex++) {
  33428. var next = null;
  33429. var last = null;
  33430. current = dateTable[passed];
  33431. if (jIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_COL_COUNT - 1) {
  33432. next = dateTable[passed + 1];
  33433. }
  33434. if (jIndex > 0) {
  33435. last = dateTable[passed - 1];
  33436. }
  33437. var cls = cellClass;
  33438. var disabled = false;
  33439. var selected = false;
  33440. if (isSameDay(current, today)) {
  33441. cls += ' ' + todayClass;
  33442. isCurrentWeek = true;
  33443. }
  33444. var isBeforeCurrentMonthYear = beforeCurrentMonthYear(current, value);
  33445. var isAfterCurrentMonthYear = afterCurrentMonthYear(current, value);
  33446. if (selectedValue && Array.isArray(selectedValue)) {
  33447. var rangeValue = hoverValue.length ? hoverValue : selectedValue;
  33448. if (!isBeforeCurrentMonthYear && !isAfterCurrentMonthYear) {
  33449. var startValue = rangeValue[0];
  33450. var endValue = rangeValue[1];
  33451. if (startValue) {
  33452. if (isSameDay(current, startValue)) {
  33453. selected = true;
  33454. isActiveWeek = true;
  33455. cls += ' ' + selectedStartDateClass;
  33456. }
  33457. }
  33458. if (startValue || endValue) {
  33459. if (isSameDay(current, endValue)) {
  33460. selected = true;
  33461. isActiveWeek = true;
  33462. cls += ' ' + selectedEndDateClass;
  33463. } else if ((startValue === null || startValue === undefined) && current.isBefore(endValue, 'day')) {
  33464. cls += ' ' + inRangeClass;
  33465. } else if ((endValue === null || endValue === undefined) && current.isAfter(startValue, 'day')) {
  33466. cls += ' ' + inRangeClass;
  33467. } else if (current.isAfter(startValue, 'day') && current.isBefore(endValue, 'day')) {
  33468. cls += ' ' + inRangeClass;
  33469. }
  33470. }
  33471. }
  33472. } else if (isSameDay(current, value)) {
  33473. // keyboard change value, highlight works
  33474. selected = true;
  33475. isActiveWeek = true;
  33476. }
  33477. if (isSameDay(current, selectedValue)) {
  33478. cls += ' ' + selectedDateClass;
  33479. }
  33480. if (isBeforeCurrentMonthYear) {
  33481. cls += ' ' + lastMonthDayClass;
  33482. }
  33483. if (isAfterCurrentMonthYear) {
  33484. cls += ' ' + nextMonthDayClass;
  33485. }
  33486. if (current.clone().endOf('month').date() === current.date()) {
  33487. cls += ' ' + lastDayOfMonthClass;
  33488. }
  33489. if (disabledDate) {
  33490. if (disabledDate(current, value)) {
  33491. disabled = true;
  33492. if (!last || !disabledDate(last, value)) {
  33493. cls += ' ' + firstDisableClass;
  33494. }
  33495. if (!next || !disabledDate(next, value)) {
  33496. cls += ' ' + lastDisableClass;
  33497. }
  33498. }
  33499. }
  33500. if (selected) {
  33501. cls += ' ' + selectedClass;
  33502. }
  33503. if (disabled) {
  33504. cls += ' ' + disabledClass;
  33505. }
  33506. var dateHtml = void 0;
  33507. if (dateRender) {
  33508. dateHtml = dateRender(current, value);
  33509. } else {
  33510. var content = contentRender ? contentRender(current, value) : current.date();
  33511. dateHtml = h(
  33512. 'div',
  33513. {
  33514. key: getIdFromDate(current),
  33515. 'class': dateClass,
  33516. attrs: { 'aria-selected': selected,
  33517. 'aria-disabled': disabled
  33518. }
  33519. },
  33520. [content]
  33521. );
  33522. }
  33523. dateCells.push(h(
  33524. 'td',
  33525. {
  33526. key: passed,
  33527. on: {
  33528. 'click': disabled ? noop : select.bind(null, current),
  33529. 'mouseenter': disabled ? noop : dayHover.bind(null, current)
  33530. },
  33531. attrs: {
  33532. role: 'gridcell',
  33533. title: Object(_util___WEBPACK_IMPORTED_MODULE_5__["getTitleString"])(current)
  33534. },
  33535. 'class': cls
  33536. },
  33537. [dateHtml]
  33538. ));
  33539. passed++;
  33540. }
  33541. tableHtml.push(h(
  33542. 'tr',
  33543. {
  33544. key: iIndex,
  33545. attrs: { role: 'row'
  33546. },
  33547. 'class': classnames__WEBPACK_IMPORTED_MODULE_3___default()((_cx = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx, prefixCls + '-current-week', isCurrentWeek), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx, prefixCls + '-active-week', isActiveWeek), _cx))
  33548. },
  33549. [weekNumberCell, dateCells]
  33550. ));
  33551. }
  33552. return h(
  33553. 'tbody',
  33554. { 'class': prefixCls + '-tbody' },
  33555. [tableHtml]
  33556. );
  33557. }
  33558. };
  33559. /* harmony default export */ __webpack_exports__["default"] = (DateTBody);
  33560. /***/ }),
  33561. /***/ "./components/vc-calendar/src/date/DateTHead.jsx":
  33562. /*!*******************************************************!*\
  33563. !*** ./components/vc-calendar/src/date/DateTHead.jsx ***!
  33564. \*******************************************************/
  33565. /*! exports provided: default */
  33566. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33567. "use strict";
  33568. __webpack_require__.r(__webpack_exports__);
  33569. /* harmony import */ var _DateConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DateConstants */ "./components/vc-calendar/src/date/DateConstants.js");
  33570. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
  33571. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
  33572. /* harmony default export */ __webpack_exports__["default"] = ({
  33573. functional: true,
  33574. render: function render(createElement, context) {
  33575. var h = arguments[0];
  33576. var props = context.props;
  33577. var value = props.value;
  33578. var localeData = value.localeData();
  33579. var prefixCls = props.prefixCls;
  33580. var veryShortWeekdays = [];
  33581. var weekDays = [];
  33582. var firstDayOfWeek = localeData.firstDayOfWeek();
  33583. var showWeekNumberEl = void 0;
  33584. var now = moment__WEBPACK_IMPORTED_MODULE_1___default()();
  33585. for (var dateColIndex = 0; dateColIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_0__["default"].DATE_COL_COUNT; dateColIndex++) {
  33586. var index = (firstDayOfWeek + dateColIndex) % _DateConstants__WEBPACK_IMPORTED_MODULE_0__["default"].DATE_COL_COUNT;
  33587. now.day(index);
  33588. veryShortWeekdays[dateColIndex] = localeData.weekdaysMin(now);
  33589. weekDays[dateColIndex] = localeData.weekdaysShort(now);
  33590. }
  33591. if (props.showWeekNumber) {
  33592. showWeekNumberEl = h(
  33593. 'th',
  33594. {
  33595. attrs: {
  33596. role: 'columnheader'
  33597. },
  33598. 'class': prefixCls + '-column-header ' + prefixCls + '-week-number-header'
  33599. },
  33600. [h(
  33601. 'span',
  33602. { 'class': prefixCls + '-column-header-inner' },
  33603. ['x']
  33604. )]
  33605. );
  33606. }
  33607. var weekDaysEls = weekDays.map(function (day, xindex) {
  33608. return h(
  33609. 'th',
  33610. { key: xindex, attrs: { role: 'columnheader', title: day },
  33611. 'class': prefixCls + '-column-header' },
  33612. [h(
  33613. 'span',
  33614. { 'class': prefixCls + '-column-header-inner' },
  33615. [veryShortWeekdays[xindex]]
  33616. )]
  33617. );
  33618. });
  33619. return h('thead', [h(
  33620. 'tr',
  33621. {
  33622. attrs: { role: 'row' }
  33623. },
  33624. [showWeekNumberEl, weekDaysEls]
  33625. )]);
  33626. }
  33627. });
  33628. /***/ }),
  33629. /***/ "./components/vc-calendar/src/date/DateTable.jsx":
  33630. /*!*******************************************************!*\
  33631. !*** ./components/vc-calendar/src/date/DateTable.jsx ***!
  33632. \*******************************************************/
  33633. /*! exports provided: default */
  33634. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33635. "use strict";
  33636. __webpack_require__.r(__webpack_exports__);
  33637. /* harmony import */ var _DateTHead__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DateTHead */ "./components/vc-calendar/src/date/DateTHead.jsx");
  33638. /* harmony import */ var _DateTBody__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DateTBody */ "./components/vc-calendar/src/date/DateTBody.jsx");
  33639. /* harmony default export */ __webpack_exports__["default"] = ({
  33640. functional: true,
  33641. render: function render(createElement, context) {
  33642. var h = arguments[0];
  33643. var props = context.props,
  33644. _context$listeners = context.listeners,
  33645. listeners = _context$listeners === undefined ? {} : _context$listeners;
  33646. var prefixCls = props.prefixCls;
  33647. var bodyProps = {
  33648. props: props,
  33649. on: listeners
  33650. };
  33651. return h(
  33652. 'table',
  33653. { 'class': prefixCls + '-table', attrs: { cellSpacing: '0', role: 'grid' }
  33654. },
  33655. [h(_DateTHead__WEBPACK_IMPORTED_MODULE_0__["default"], bodyProps), h(_DateTBody__WEBPACK_IMPORTED_MODULE_1__["default"], bodyProps)]
  33656. );
  33657. }
  33658. });
  33659. /***/ }),
  33660. /***/ "./components/vc-calendar/src/decade/DecadePanel.jsx":
  33661. /*!***********************************************************!*\
  33662. !*** ./components/vc-calendar/src/decade/DecadePanel.jsx ***!
  33663. \***********************************************************/
  33664. /*! exports provided: default */
  33665. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33666. "use strict";
  33667. __webpack_require__.r(__webpack_exports__);
  33668. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  33669. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  33670. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  33671. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  33672. var ROW = 4;
  33673. var COL = 3;
  33674. function noop() {}
  33675. function goYear(direction) {
  33676. var next = this.sValue.clone();
  33677. next.add(direction, 'years');
  33678. this.setState({
  33679. sValue: next
  33680. });
  33681. }
  33682. function chooseDecade(year, event) {
  33683. var next = this.sValue.clone();
  33684. next.year(year);
  33685. next.month(this.sValue.month());
  33686. this.__emit('select', next);
  33687. event.preventDefault();
  33688. }
  33689. /* harmony default export */ __webpack_exports__["default"] = ({
  33690. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
  33691. props: {
  33692. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  33693. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  33694. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  33695. rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  33696. renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  33697. },
  33698. data: function data() {
  33699. this.nextCentury = goYear.bind(this, 100);
  33700. this.previousCentury = goYear.bind(this, -100);
  33701. return {
  33702. sValue: this.value || this.defaultValue
  33703. };
  33704. },
  33705. watch: {
  33706. value: function value(val) {
  33707. this.sValue = val;
  33708. }
  33709. },
  33710. render: function render() {
  33711. var _this = this;
  33712. var h = arguments[0];
  33713. var value = this.sValue;
  33714. var _$props = this.$props,
  33715. locale = _$props.locale,
  33716. renderFooter = _$props.renderFooter;
  33717. var currentYear = value.year();
  33718. var startYear = parseInt(currentYear / 100, 10) * 100;
  33719. var preYear = startYear - 10;
  33720. var endYear = startYear + 99;
  33721. var decades = [];
  33722. var index = 0;
  33723. var prefixCls = this.rootPrefixCls + '-decade-panel';
  33724. for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {
  33725. decades[rowIndex] = [];
  33726. for (var colIndex = 0; colIndex < COL; colIndex++) {
  33727. var startDecade = preYear + index * 10;
  33728. var endDecade = preYear + index * 10 + 9;
  33729. decades[rowIndex][colIndex] = {
  33730. startDecade: startDecade,
  33731. endDecade: endDecade
  33732. };
  33733. index++;
  33734. }
  33735. }
  33736. var footer = renderFooter && renderFooter('decade');
  33737. var decadesEls = decades.map(function (row, decadeIndex) {
  33738. var tds = row.map(function (decadeData) {
  33739. var _classNameMap;
  33740. var dStartDecade = decadeData.startDecade;
  33741. var dEndDecade = decadeData.endDecade;
  33742. var isLast = dStartDecade < startYear;
  33743. var isNext = dEndDecade > endYear;
  33744. var classNameMap = (_classNameMap = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-selected-cell', dStartDecade <= currentYear && currentYear <= dEndDecade), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-last-century-cell', isLast), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-next-century-cell', isNext), _classNameMap);
  33745. var content = dStartDecade + '-' + dEndDecade;
  33746. var clickHandler = noop;
  33747. if (isLast) {
  33748. clickHandler = _this.previousCentury;
  33749. } else if (isNext) {
  33750. clickHandler = _this.nextCentury;
  33751. } else {
  33752. clickHandler = chooseDecade.bind(_this, dStartDecade);
  33753. }
  33754. return h(
  33755. 'td',
  33756. { key: dStartDecade, on: {
  33757. 'click': clickHandler
  33758. },
  33759. attrs: { role: 'gridcell' },
  33760. 'class': classNameMap },
  33761. [h(
  33762. 'a',
  33763. { 'class': prefixCls + '-decade' },
  33764. [content]
  33765. )]
  33766. );
  33767. });
  33768. return h(
  33769. 'tr',
  33770. { key: decadeIndex, attrs: { role: 'row' }
  33771. },
  33772. [tds]
  33773. );
  33774. });
  33775. return h(
  33776. 'div',
  33777. { 'class': prefixCls },
  33778. [h(
  33779. 'div',
  33780. { 'class': prefixCls + '-header' },
  33781. [h('a', {
  33782. 'class': prefixCls + '-prev-century-btn',
  33783. attrs: { role: 'button',
  33784. title: locale.previousCentury
  33785. },
  33786. on: {
  33787. 'click': this.previousCentury
  33788. }
  33789. }), h(
  33790. 'div',
  33791. { 'class': prefixCls + '-century' },
  33792. [startYear, '-', endYear]
  33793. ), h('a', {
  33794. 'class': prefixCls + '-next-century-btn',
  33795. attrs: { role: 'button',
  33796. title: locale.nextCentury
  33797. },
  33798. on: {
  33799. 'click': this.nextCentury
  33800. }
  33801. })]
  33802. ), h(
  33803. 'div',
  33804. { 'class': prefixCls + '-body' },
  33805. [h(
  33806. 'table',
  33807. { 'class': prefixCls + '-table', attrs: { cellSpacing: '0', role: 'grid' }
  33808. },
  33809. [h(
  33810. 'tbody',
  33811. { 'class': prefixCls + '-tbody' },
  33812. [decadesEls]
  33813. )]
  33814. )]
  33815. ), footer && h(
  33816. 'div',
  33817. { 'class': prefixCls + '-footer' },
  33818. [footer]
  33819. )]
  33820. );
  33821. }
  33822. });
  33823. /***/ }),
  33824. /***/ "./components/vc-calendar/src/full-calendar/CalendarHeader.jsx":
  33825. /*!*********************************************************************!*\
  33826. !*** ./components/vc-calendar/src/full-calendar/CalendarHeader.jsx ***!
  33827. \*********************************************************************/
  33828. /*! exports provided: default */
  33829. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33830. "use strict";
  33831. __webpack_require__.r(__webpack_exports__);
  33832. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  33833. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  33834. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./components/vc-calendar/src/util/index.js");
  33835. var CalendarHeader = {
  33836. name: 'CalendarHeader',
  33837. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
  33838. props: {
  33839. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  33840. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  33841. yearSelectOffset: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(10),
  33842. yearSelectTotal: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(20),
  33843. // onValueChange: PropTypes.func,
  33844. // onTypeChange: PropTypes.func,
  33845. Select: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  33846. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  33847. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  33848. showTypeSwitch: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  33849. headerComponents: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array
  33850. },
  33851. methods: {
  33852. onYearChange: function onYearChange(year) {
  33853. var newValue = this.value.clone();
  33854. newValue.year(parseInt(year, 10));
  33855. this.__emit('valueChange', newValue);
  33856. },
  33857. onMonthChange: function onMonthChange(month) {
  33858. var newValue = this.value.clone();
  33859. newValue.month(parseInt(month, 10));
  33860. this.__emit('valueChange', newValue);
  33861. },
  33862. yearSelectElement: function yearSelectElement(year) {
  33863. var h = this.$createElement;
  33864. var yearSelectOffset = this.yearSelectOffset,
  33865. yearSelectTotal = this.yearSelectTotal,
  33866. prefixCls = this.prefixCls,
  33867. Select = this.Select;
  33868. var start = year - yearSelectOffset;
  33869. var end = start + yearSelectTotal;
  33870. var options = [];
  33871. for (var index = start; index < end; index++) {
  33872. options.push(h(
  33873. Select.Option,
  33874. { key: '' + index },
  33875. [index]
  33876. ));
  33877. }
  33878. return h(
  33879. Select,
  33880. {
  33881. 'class': prefixCls + '-header-year-select',
  33882. on: {
  33883. 'change': this.onYearChange
  33884. },
  33885. attrs: {
  33886. dropdownStyle: { zIndex: 2000 },
  33887. dropdownMenuStyle: { maxHeight: '250px', overflow: 'auto', fontSize: '12px' },
  33888. optionLabelProp: 'children',
  33889. value: String(year),
  33890. showSearch: false
  33891. }
  33892. },
  33893. [options]
  33894. );
  33895. },
  33896. monthSelectElement: function monthSelectElement(month) {
  33897. var h = this.$createElement;
  33898. var value = this.value,
  33899. Select = this.Select,
  33900. prefixCls = this.prefixCls;
  33901. var t = value.clone();
  33902. var options = [];
  33903. for (var index = 0; index < 12; index++) {
  33904. t.month(index);
  33905. options.push(h(
  33906. Select.Option,
  33907. { key: '' + index },
  33908. [Object(_util__WEBPACK_IMPORTED_MODULE_2__["getMonthName"])(t)]
  33909. ));
  33910. }
  33911. return h(
  33912. Select,
  33913. {
  33914. 'class': prefixCls + '-header-month-select',
  33915. attrs: { dropdownStyle: { zIndex: 2000 },
  33916. dropdownMenuStyle: {
  33917. maxHeight: '250px',
  33918. overflow: 'auto',
  33919. overflowX: 'hidden',
  33920. fontSize: '12px'
  33921. },
  33922. optionLabelProp: 'children',
  33923. value: String(month),
  33924. showSearch: false
  33925. },
  33926. on: {
  33927. 'change': this.onMonthChange
  33928. }
  33929. },
  33930. [options]
  33931. );
  33932. },
  33933. changeTypeToDate: function changeTypeToDate() {
  33934. this.__emit('typeChange', 'date');
  33935. },
  33936. changeTypeToMonth: function changeTypeToMonth() {
  33937. this.__emit('typeChange', 'month');
  33938. }
  33939. },
  33940. render: function render() {
  33941. var h = arguments[0];
  33942. var value = this.value,
  33943. locale = this.locale,
  33944. prefixCls = this.prefixCls,
  33945. type = this.type,
  33946. showTypeSwitch = this.showTypeSwitch,
  33947. headerComponents = this.headerComponents;
  33948. var year = value.year();
  33949. var month = value.month();
  33950. var yearSelect = this.yearSelectElement(year);
  33951. var monthSelect = type === 'month' ? null : this.monthSelectElement(month);
  33952. var switchCls = prefixCls + '-header-switcher';
  33953. var typeSwitcher = showTypeSwitch ? h(
  33954. 'span',
  33955. { 'class': switchCls },
  33956. [type === 'date' ? h(
  33957. 'span',
  33958. { 'class': switchCls + '-focus' },
  33959. [locale.month]
  33960. ) : h(
  33961. 'span',
  33962. {
  33963. on: {
  33964. 'click': this.changeTypeToDate
  33965. },
  33966. 'class': switchCls + '-normal' },
  33967. [locale.month]
  33968. ), type === 'month' ? h(
  33969. 'span',
  33970. { 'class': switchCls + '-focus' },
  33971. [locale.year]
  33972. ) : h(
  33973. 'span',
  33974. {
  33975. on: {
  33976. 'click': this.changeTypeToMonth
  33977. },
  33978. 'class': switchCls + '-normal' },
  33979. [locale.year]
  33980. )]
  33981. ) : null;
  33982. return h(
  33983. 'div',
  33984. { 'class': prefixCls + '-header' },
  33985. [typeSwitcher, monthSelect, yearSelect, headerComponents]
  33986. );
  33987. }
  33988. };
  33989. /* harmony default export */ __webpack_exports__["default"] = (CalendarHeader);
  33990. /***/ }),
  33991. /***/ "./components/vc-calendar/src/index.js":
  33992. /*!*********************************************!*\
  33993. !*** ./components/vc-calendar/src/index.js ***!
  33994. \*********************************************/
  33995. /*! exports provided: default */
  33996. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33997. "use strict";
  33998. __webpack_require__.r(__webpack_exports__);
  33999. /* harmony import */ var _Calendar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Calendar */ "./components/vc-calendar/src/Calendar.jsx");
  34000. /* harmony default export */ __webpack_exports__["default"] = (_Calendar__WEBPACK_IMPORTED_MODULE_0__["default"]);
  34001. /***/ }),
  34002. /***/ "./components/vc-calendar/src/locale/en_US.js":
  34003. /*!****************************************************!*\
  34004. !*** ./components/vc-calendar/src/locale/en_US.js ***!
  34005. \****************************************************/
  34006. /*! exports provided: default */
  34007. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  34008. "use strict";
  34009. __webpack_require__.r(__webpack_exports__);
  34010. /* harmony default export */ __webpack_exports__["default"] = ({
  34011. today: 'Today',
  34012. now: 'Now',
  34013. backToToday: 'Back to today',
  34014. ok: 'Ok',
  34015. clear: 'Clear',
  34016. month: 'Month',
  34017. year: 'Year',
  34018. timeSelect: 'select time',
  34019. dateSelect: 'select date',
  34020. weekSelect: 'Choose a week',
  34021. monthSelect: 'Choose a month',
  34022. yearSelect: 'Choose a year',
  34023. decadeSelect: 'Choose a decade',
  34024. yearFormat: 'YYYY',
  34025. dateFormat: 'M/D/YYYY',
  34026. dayFormat: 'D',
  34027. dateTimeFormat: 'M/D/YYYY HH:mm:ss',
  34028. monthBeforeYear: true,
  34029. previousMonth: 'Previous month (PageUp)',
  34030. nextMonth: 'Next month (PageDown)',
  34031. previousYear: 'Last year (Control + left)',
  34032. nextYear: 'Next year (Control + right)',
  34033. previousDecade: 'Last decade',
  34034. nextDecade: 'Next decade',
  34035. previousCentury: 'Last century',
  34036. nextCentury: 'Next century'
  34037. });
  34038. /***/ }),
  34039. /***/ "./components/vc-calendar/src/mixin/CalendarMixin.js":
  34040. /*!***********************************************************!*\
  34041. !*** ./components/vc-calendar/src/mixin/CalendarMixin.js ***!
  34042. \***********************************************************/
  34043. /*! exports provided: getNowByCurrentStateValue, default */
  34044. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  34045. "use strict";
  34046. __webpack_require__.r(__webpack_exports__);
  34047. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNowByCurrentStateValue", function() { return getNowByCurrentStateValue; });
  34048. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  34049. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  34050. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  34051. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  34052. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
  34053. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! moment */ "moment");
  34054. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__);
  34055. /* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/index */ "./components/vc-calendar/src/util/index.js");
  34056. function noop() {}
  34057. function getNowByCurrentStateValue(value) {
  34058. var ret = void 0;
  34059. if (value) {
  34060. ret = Object(_util_index__WEBPACK_IMPORTED_MODULE_5__["getTodayTime"])(value);
  34061. } else {
  34062. ret = moment__WEBPACK_IMPORTED_MODULE_4___default()();
  34063. }
  34064. return ret;
  34065. }
  34066. function isMoment(value) {
  34067. if (Array.isArray(value)) {
  34068. return value.length === 0 || value.findIndex(function (val) {
  34069. return val === undefined || moment__WEBPACK_IMPORTED_MODULE_4___default.a.isMoment(val);
  34070. }) !== -1;
  34071. } else {
  34072. return value === undefined || moment__WEBPACK_IMPORTED_MODULE_4___default.a.isMoment(value);
  34073. }
  34074. }
  34075. var MomentType = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(isMoment);
  34076. var CalendarMixin = {
  34077. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
  34078. name: 'CalendarMixinWrapper',
  34079. props: {
  34080. value: MomentType,
  34081. defaultValue: MomentType
  34082. },
  34083. data: function data() {
  34084. var props = this.$props;
  34085. var sValue = props.value || props.defaultValue || getNowByCurrentStateValue();
  34086. return {
  34087. sValue: sValue,
  34088. sSelectedValue: props.selectedValue || props.defaultSelectedValue
  34089. };
  34090. },
  34091. watch: {
  34092. value: function value(val) {
  34093. var sValue = val || this.defaultValue || getNowByCurrentStateValue(this.sValue);
  34094. this.setState({
  34095. sValue: sValue
  34096. });
  34097. },
  34098. selectedValue: function selectedValue(val) {
  34099. this.setState({
  34100. sSelectedValue: val
  34101. });
  34102. }
  34103. },
  34104. methods: {
  34105. onSelect: function onSelect(value, cause) {
  34106. if (value) {
  34107. this.setValue(value);
  34108. }
  34109. this.setSelectedValue(value, cause);
  34110. },
  34111. renderRoot: function renderRoot(newProps) {
  34112. var _className;
  34113. var h = this.$createElement;
  34114. var props = this.$props;
  34115. var prefixCls = props.prefixCls;
  34116. var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, prefixCls, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, prefixCls + '-hidden', !props.visible), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, newProps['class'], !!newProps['class']), _className);
  34117. return h(
  34118. 'div',
  34119. {
  34120. ref: 'rootInstance',
  34121. 'class': className,
  34122. attrs: { tabIndex: '0'
  34123. },
  34124. on: {
  34125. 'keydown': this.onKeyDown || noop,
  34126. 'blur': this.onBlur || noop
  34127. }
  34128. },
  34129. [newProps.children]
  34130. );
  34131. },
  34132. setSelectedValue: function setSelectedValue(selectedValue, cause) {
  34133. // if (this.isAllowedDate(selectedValue)) {
  34134. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'selectedValue')) {
  34135. this.setState({
  34136. sSelectedValue: selectedValue
  34137. });
  34138. }
  34139. this.__emit('select', selectedValue, cause);
  34140. // }
  34141. },
  34142. setValue: function setValue(value) {
  34143. var originalValue = this.sValue;
  34144. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value')) {
  34145. this.setState({
  34146. sValue: value
  34147. });
  34148. }
  34149. if (originalValue && value && !originalValue.isSame(value) || !originalValue && value || originalValue && !value) {
  34150. this.__emit('change', value);
  34151. }
  34152. },
  34153. isAllowedDate: function isAllowedDate(value) {
  34154. var disabledDate = this.disabledDate;
  34155. var disabledTime = this.disabledTime;
  34156. return Object(_util_index__WEBPACK_IMPORTED_MODULE_5__["isAllowedDate"])(value, disabledDate, disabledTime);
  34157. }
  34158. }
  34159. };
  34160. /* harmony default export */ __webpack_exports__["default"] = (CalendarMixin);
  34161. /***/ }),
  34162. /***/ "./components/vc-calendar/src/mixin/CommonMixin.js":
  34163. /*!*********************************************************!*\
  34164. !*** ./components/vc-calendar/src/mixin/CommonMixin.js ***!
  34165. \*********************************************************/
  34166. /*! exports provided: default */
  34167. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  34168. "use strict";
  34169. __webpack_require__.r(__webpack_exports__);
  34170. /* harmony default export */ __webpack_exports__["default"] = ({
  34171. methods: {
  34172. getFormat: function getFormat() {
  34173. var format = this.format;
  34174. var locale = this.locale,
  34175. timePicker = this.timePicker;
  34176. if (!format) {
  34177. if (timePicker) {
  34178. format = locale.dateTimeFormat;
  34179. } else {
  34180. format = locale.dateFormat;
  34181. }
  34182. }
  34183. return format;
  34184. },
  34185. focus: function focus() {
  34186. if (this.focusElement) {
  34187. this.focusElement.focus();
  34188. } else if (this.$refs.rootInstance) {
  34189. this.$refs.rootInstance.focus();
  34190. }
  34191. },
  34192. saveFocusElement: function saveFocusElement(focusElement) {
  34193. this.focusElement = focusElement;
  34194. }
  34195. }
  34196. });
  34197. /***/ }),
  34198. /***/ "./components/vc-calendar/src/month/MonthPanel.jsx":
  34199. /*!*********************************************************!*\
  34200. !*** ./components/vc-calendar/src/month/MonthPanel.jsx ***!
  34201. \*********************************************************/
  34202. /*! exports provided: default */
  34203. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  34204. "use strict";
  34205. __webpack_require__.r(__webpack_exports__);
  34206. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  34207. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  34208. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
  34209. /* harmony import */ var _MonthTable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MonthTable */ "./components/vc-calendar/src/month/MonthTable.jsx");
  34210. function goYear(direction) {
  34211. this.changeYear(direction);
  34212. }
  34213. function noop() {}
  34214. var MonthPanel = {
  34215. name: 'MonthPanel',
  34216. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
  34217. props: {
  34218. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  34219. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  34220. cellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  34221. contentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  34222. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  34223. rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  34224. // onChange: PropTypes.func,
  34225. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  34226. // onSelect: PropTypes.func,
  34227. renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  34228. changeYear: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.def(noop)
  34229. },
  34230. data: function data() {
  34231. var value = this.value,
  34232. defaultValue = this.defaultValue;
  34233. // bind methods
  34234. this.nextYear = goYear.bind(this, 1);
  34235. this.previousYear = goYear.bind(this, -1);
  34236. return {
  34237. sValue: value || defaultValue
  34238. };
  34239. },
  34240. watch: {
  34241. value: function value(val) {
  34242. this.setState({
  34243. sValue: val
  34244. });
  34245. }
  34246. },
  34247. methods: {
  34248. setAndSelectValue: function setAndSelectValue(value) {
  34249. this.setValue(value);
  34250. this.__emit('select', value);
  34251. },
  34252. setValue: function setValue(value) {
  34253. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["hasProp"])(this, 'value')) {
  34254. this.setState({
  34255. sValue: value
  34256. });
  34257. }
  34258. }
  34259. },
  34260. render: function render() {
  34261. var h = arguments[0];
  34262. var sValue = this.sValue,
  34263. cellRender = this.cellRender,
  34264. contentRender = this.contentRender,
  34265. locale = this.locale,
  34266. rootPrefixCls = this.rootPrefixCls,
  34267. disabledDate = this.disabledDate,
  34268. renderFooter = this.renderFooter;
  34269. var year = sValue.year();
  34270. var prefixCls = rootPrefixCls + '-month-panel';
  34271. var footer = renderFooter && renderFooter('month');
  34272. return h(
  34273. 'div',
  34274. { 'class': prefixCls },
  34275. [h('div', [h(
  34276. 'div',
  34277. { 'class': prefixCls + '-header' },
  34278. [h('a', {
  34279. 'class': prefixCls + '-prev-year-btn',
  34280. attrs: { role: 'button',
  34281. title: locale.previousYear
  34282. },
  34283. on: {
  34284. 'click': this.previousYear
  34285. }
  34286. }), h(
  34287. 'a',
  34288. {
  34289. 'class': prefixCls + '-year-select',
  34290. attrs: { role: 'button',
  34291. title: locale.yearSelect
  34292. },
  34293. on: {
  34294. 'click': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this).yearPanelShow || noop
  34295. }
  34296. },
  34297. [h(
  34298. 'span',
  34299. { 'class': prefixCls + '-year-select-content' },
  34300. [year]
  34301. ), h(
  34302. 'span',
  34303. { 'class': prefixCls + '-year-select-arrow' },
  34304. ['x']
  34305. )]
  34306. ), h('a', {
  34307. 'class': prefixCls + '-next-year-btn',
  34308. attrs: { role: 'button',
  34309. title: locale.nextYear
  34310. },
  34311. on: {
  34312. 'click': this.nextYear
  34313. }
  34314. })]
  34315. ), h(
  34316. 'div',
  34317. { 'class': prefixCls + '-body' },
  34318. [h(_MonthTable__WEBPACK_IMPORTED_MODULE_3__["default"], {
  34319. attrs: {
  34320. disabledDate: disabledDate,
  34321. locale: locale,
  34322. value: sValue,
  34323. cellRender: cellRender,
  34324. contentRender: contentRender,
  34325. prefixCls: prefixCls
  34326. },
  34327. on: {
  34328. 'select': this.setAndSelectValue
  34329. }
  34330. })]
  34331. ), footer && h(
  34332. 'div',
  34333. { 'class': prefixCls + '-footer' },
  34334. [footer]
  34335. )])]
  34336. );
  34337. }
  34338. };
  34339. /* harmony default export */ __webpack_exports__["default"] = (MonthPanel);
  34340. /***/ }),
  34341. /***/ "./components/vc-calendar/src/month/MonthTable.jsx":
  34342. /*!*********************************************************!*\
  34343. !*** ./components/vc-calendar/src/month/MonthTable.jsx ***!
  34344. \*********************************************************/
  34345. /*! exports provided: default */
  34346. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  34347. "use strict";
  34348. __webpack_require__.r(__webpack_exports__);
  34349. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  34350. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  34351. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  34352. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  34353. /* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/index */ "./components/vc-calendar/src/util/index.js");
  34354. var ROW = 4;
  34355. var COL = 3;
  34356. function noop() {}
  34357. var MonthTable = {
  34358. name: 'MonthTable',
  34359. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
  34360. props: {
  34361. cellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  34362. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  34363. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  34364. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34365. contentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34366. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  34367. },
  34368. data: function data() {
  34369. return {
  34370. sValue: this.value
  34371. };
  34372. },
  34373. watch: {
  34374. value: function value(val) {
  34375. this.setState({
  34376. sValue: val
  34377. });
  34378. }
  34379. },
  34380. methods: {
  34381. setAndSelectValue: function setAndSelectValue(value) {
  34382. this.setState({
  34383. sValue: value
  34384. });
  34385. this.__emit('select', value);
  34386. },
  34387. chooseMonth: function chooseMonth(month) {
  34388. var next = this.sValue.clone();
  34389. next.month(month);
  34390. this.setAndSelectValue(next);
  34391. },
  34392. months: function months() {
  34393. var value = this.sValue;
  34394. var current = value.clone();
  34395. var months = [];
  34396. var index = 0;
  34397. for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {
  34398. months[rowIndex] = [];
  34399. for (var colIndex = 0; colIndex < COL; colIndex++) {
  34400. current.month(index);
  34401. var content = Object(_util_index__WEBPACK_IMPORTED_MODULE_3__["getMonthName"])(current);
  34402. months[rowIndex][colIndex] = {
  34403. value: index,
  34404. content: content,
  34405. title: content
  34406. };
  34407. index++;
  34408. }
  34409. }
  34410. return months;
  34411. }
  34412. },
  34413. render: function render() {
  34414. var _this = this;
  34415. var h = arguments[0];
  34416. var props = this.$props;
  34417. var value = this.sValue;
  34418. var today = Object(_util_index__WEBPACK_IMPORTED_MODULE_3__["getTodayTime"])(value);
  34419. var months = this.months();
  34420. var currentMonth = value.month();
  34421. var prefixCls = props.prefixCls,
  34422. locale = props.locale,
  34423. contentRender = props.contentRender,
  34424. cellRender = props.cellRender,
  34425. disabledDate = props.disabledDate;
  34426. var monthsEls = months.map(function (month, index) {
  34427. var tds = month.map(function (monthData) {
  34428. var _classNameMap;
  34429. var disabled = false;
  34430. if (disabledDate) {
  34431. var testValue = value.clone();
  34432. testValue.month(monthData.value);
  34433. disabled = disabledDate(testValue);
  34434. }
  34435. var classNameMap = (_classNameMap = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-selected-cell', monthData.value === currentMonth), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-current-cell', today.year() === value.year() && monthData.value === today.month()), _classNameMap);
  34436. var cellEl = void 0;
  34437. if (cellRender) {
  34438. var currentValue = value.clone();
  34439. currentValue.month(monthData.value);
  34440. cellEl = cellRender(currentValue, locale);
  34441. } else {
  34442. var content = void 0;
  34443. if (contentRender) {
  34444. var _currentValue = value.clone();
  34445. _currentValue.month(monthData.value);
  34446. content = contentRender(_currentValue, locale);
  34447. } else {
  34448. content = monthData.content;
  34449. }
  34450. cellEl = h(
  34451. 'a',
  34452. { 'class': prefixCls + '-month' },
  34453. [content]
  34454. );
  34455. }
  34456. return h(
  34457. 'td',
  34458. {
  34459. attrs: {
  34460. role: 'gridcell',
  34461. title: monthData.title
  34462. },
  34463. key: monthData.value,
  34464. on: {
  34465. 'click': disabled ? noop : function () {
  34466. return _this.chooseMonth(monthData.value);
  34467. }
  34468. },
  34469. 'class': classNameMap
  34470. },
  34471. [cellEl]
  34472. );
  34473. });
  34474. return h(
  34475. 'tr',
  34476. { key: index, attrs: { role: 'row' }
  34477. },
  34478. [tds]
  34479. );
  34480. });
  34481. return h(
  34482. 'table',
  34483. { 'class': prefixCls + '-table', attrs: { cellSpacing: '0', role: 'grid' }
  34484. },
  34485. [h(
  34486. 'tbody',
  34487. { 'class': prefixCls + '-tbody' },
  34488. [monthsEls]
  34489. )]
  34490. );
  34491. }
  34492. };
  34493. /* harmony default export */ __webpack_exports__["default"] = (MonthTable);
  34494. /***/ }),
  34495. /***/ "./components/vc-calendar/src/picker/placements.js":
  34496. /*!*********************************************************!*\
  34497. !*** ./components/vc-calendar/src/picker/placements.js ***!
  34498. \*********************************************************/
  34499. /*! exports provided: default */
  34500. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  34501. "use strict";
  34502. __webpack_require__.r(__webpack_exports__);
  34503. var autoAdjustOverflow = {
  34504. adjustX: 1,
  34505. adjustY: 1
  34506. };
  34507. var targetOffset = [0, 0];
  34508. var placements = {
  34509. bottomLeft: {
  34510. points: ['tl', 'tl'],
  34511. overflow: autoAdjustOverflow,
  34512. offset: [0, -3],
  34513. targetOffset: targetOffset
  34514. },
  34515. bottomRight: {
  34516. points: ['tr', 'tr'],
  34517. overflow: autoAdjustOverflow,
  34518. offset: [0, -3],
  34519. targetOffset: targetOffset
  34520. },
  34521. topRight: {
  34522. points: ['br', 'br'],
  34523. overflow: autoAdjustOverflow,
  34524. offset: [0, 3],
  34525. targetOffset: targetOffset
  34526. },
  34527. topLeft: {
  34528. points: ['bl', 'bl'],
  34529. overflow: autoAdjustOverflow,
  34530. offset: [0, 3],
  34531. targetOffset: targetOffset
  34532. }
  34533. };
  34534. /* harmony default export */ __webpack_exports__["default"] = (placements);
  34535. /***/ }),
  34536. /***/ "./components/vc-calendar/src/range-calendar/CalendarPart.jsx":
  34537. /*!********************************************************************!*\
  34538. !*** ./components/vc-calendar/src/range-calendar/CalendarPart.jsx ***!
  34539. \********************************************************************/
  34540. /*! exports provided: default */
  34541. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  34542. "use strict";
  34543. __webpack_require__.r(__webpack_exports__);
  34544. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  34545. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  34546. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  34547. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  34548. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
  34549. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/vnode */ "./components/_util/vnode.js");
  34550. /* harmony import */ var _calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../calendar/CalendarHeader */ "./components/vc-calendar/src/calendar/CalendarHeader.jsx");
  34551. /* harmony import */ var _date_DateTable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../date/DateTable */ "./components/vc-calendar/src/date/DateTable.jsx");
  34552. /* harmony import */ var _date_DateInput__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../date/DateInput */ "./components/vc-calendar/src/date/DateInput.jsx");
  34553. /* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util/index */ "./components/vc-calendar/src/util/index.js");
  34554. function noop() {}
  34555. var CalendarPart = {
  34556. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
  34557. props: {
  34558. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  34559. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34560. hoverValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34561. selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34562. direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34563. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34564. showDateInput: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  34565. showTimePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  34566. showWeekNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  34567. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34568. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34569. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34570. timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34571. disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34572. disabledMonth: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34573. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34574. // onInputSelect: PropTypes.func,
  34575. timePickerDisabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  34576. enableNext: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34577. enablePrev: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34578. clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  34579. dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  34580. inputMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  34581. inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
  34582. },
  34583. render: function render() {
  34584. var h = arguments[0];
  34585. var props = this.$props;
  34586. var prefixCls = props.prefixCls,
  34587. value = props.value,
  34588. hoverValue = props.hoverValue,
  34589. selectedValue = props.selectedValue,
  34590. mode = props.mode,
  34591. direction = props.direction,
  34592. locale = props.locale,
  34593. format = props.format,
  34594. placeholder = props.placeholder,
  34595. disabledDate = props.disabledDate,
  34596. timePicker = props.timePicker,
  34597. disabledTime = props.disabledTime,
  34598. timePickerDisabledTime = props.timePickerDisabledTime,
  34599. showTimePicker = props.showTimePicker,
  34600. enablePrev = props.enablePrev,
  34601. enableNext = props.enableNext,
  34602. disabledMonth = props.disabledMonth,
  34603. showDateInput = props.showDateInput,
  34604. dateRender = props.dateRender,
  34605. showWeekNumber = props.showWeekNumber,
  34606. showClear = props.showClear,
  34607. inputMode = props.inputMode,
  34608. inputReadOnly = props.inputReadOnly;
  34609. var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'clearIcon');
  34610. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this),
  34611. _getListeners$inputCh = _getListeners.inputChange,
  34612. inputChange = _getListeners$inputCh === undefined ? noop : _getListeners$inputCh,
  34613. _getListeners$inputSe = _getListeners.inputSelect,
  34614. inputSelect = _getListeners$inputSe === undefined ? noop : _getListeners$inputSe,
  34615. _getListeners$valueCh = _getListeners.valueChange,
  34616. valueChange = _getListeners$valueCh === undefined ? noop : _getListeners$valueCh,
  34617. _getListeners$panelCh = _getListeners.panelChange,
  34618. panelChange = _getListeners$panelCh === undefined ? noop : _getListeners$panelCh,
  34619. _getListeners$select = _getListeners.select,
  34620. select = _getListeners$select === undefined ? noop : _getListeners$select,
  34621. _getListeners$dayHove = _getListeners.dayHover,
  34622. dayHover = _getListeners$dayHove === undefined ? noop : _getListeners$dayHove;
  34623. var shouldShowTimePicker = showTimePicker && timePicker;
  34624. var disabledTimeConfig = shouldShowTimePicker && disabledTime ? Object(_util_index__WEBPACK_IMPORTED_MODULE_8__["getTimeConfig"])(selectedValue, disabledTime) : null;
  34625. var rangeClassName = prefixCls + '-range';
  34626. var newProps = {
  34627. locale: locale,
  34628. value: value,
  34629. prefixCls: prefixCls,
  34630. showTimePicker: showTimePicker
  34631. };
  34632. var index = direction === 'left' ? 0 : 1;
  34633. var timePickerEle = null;
  34634. if (shouldShowTimePicker) {
  34635. var timePickerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(timePicker);
  34636. timePickerEle = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(timePicker, {
  34637. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  34638. showHour: true,
  34639. showMinute: true,
  34640. showSecond: true
  34641. }, timePickerProps, disabledTimeConfig, timePickerDisabledTime, {
  34642. defaultOpenValue: value,
  34643. value: selectedValue[index]
  34644. }),
  34645. on: {
  34646. change: inputChange
  34647. }
  34648. });
  34649. }
  34650. var dateInputElement = showDateInput && h(_date_DateInput__WEBPACK_IMPORTED_MODULE_7__["default"], {
  34651. attrs: {
  34652. format: format,
  34653. locale: locale,
  34654. prefixCls: prefixCls,
  34655. timePicker: timePicker,
  34656. disabledDate: disabledDate,
  34657. placeholder: placeholder,
  34658. disabledTime: disabledTime,
  34659. value: value,
  34660. showClear: showClear || false,
  34661. selectedValue: selectedValue[index],
  34662. clearIcon: clearIcon,
  34663. inputMode: inputMode,
  34664. inputReadOnly: inputReadOnly
  34665. },
  34666. on: {
  34667. 'change': inputChange,
  34668. 'select': inputSelect
  34669. }
  34670. });
  34671. var headerProps = {
  34672. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, newProps, {
  34673. mode: mode,
  34674. enableNext: enableNext,
  34675. enablePrev: enablePrev,
  34676. disabledMonth: disabledMonth
  34677. }),
  34678. on: {
  34679. valueChange: valueChange,
  34680. panelChange: panelChange
  34681. }
  34682. };
  34683. var tableProps = {
  34684. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, newProps, {
  34685. hoverValue: hoverValue,
  34686. selectedValue: selectedValue,
  34687. dateRender: dateRender,
  34688. disabledDate: disabledDate,
  34689. showWeekNumber: showWeekNumber
  34690. }),
  34691. on: {
  34692. select: select,
  34693. dayHover: dayHover
  34694. }
  34695. };
  34696. return h(
  34697. 'div',
  34698. { 'class': rangeClassName + '-part ' + rangeClassName + '-' + direction },
  34699. [dateInputElement, h(
  34700. 'div',
  34701. { style: { outline: 'none' } },
  34702. [h(_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_5__["default"], headerProps), showTimePicker ? h(
  34703. 'div',
  34704. { 'class': prefixCls + '-time-picker' },
  34705. [h(
  34706. 'div',
  34707. { 'class': prefixCls + '-time-picker-panel' },
  34708. [timePickerEle]
  34709. )]
  34710. ) : null, h(
  34711. 'div',
  34712. { 'class': prefixCls + '-body' },
  34713. [h(_date_DateTable__WEBPACK_IMPORTED_MODULE_6__["default"], tableProps)]
  34714. )]
  34715. )]
  34716. );
  34717. }
  34718. };
  34719. /* harmony default export */ __webpack_exports__["default"] = (CalendarPart);
  34720. /***/ }),
  34721. /***/ "./components/vc-calendar/src/util/index.js":
  34722. /*!**************************************************!*\
  34723. !*** ./components/vc-calendar/src/util/index.js ***!
  34724. \**************************************************/
  34725. /*! exports provided: getTodayTime, getTitleString, getTodayTimeStr, getMonthName, syncTime, getTimeConfig, isTimeValidByConfig, isTimeValid, isAllowedDate, formatDate */
  34726. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  34727. "use strict";
  34728. __webpack_require__.r(__webpack_exports__);
  34729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTodayTime", function() { return getTodayTime; });
  34730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTitleString", function() { return getTitleString; });
  34731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTodayTimeStr", function() { return getTodayTimeStr; });
  34732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMonthName", function() { return getMonthName; });
  34733. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "syncTime", function() { return syncTime; });
  34734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTimeConfig", function() { return getTimeConfig; });
  34735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTimeValidByConfig", function() { return isTimeValidByConfig; });
  34736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTimeValid", function() { return isTimeValid; });
  34737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAllowedDate", function() { return isAllowedDate; });
  34738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatDate", function() { return formatDate; });
  34739. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  34740. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  34741. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
  34742. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
  34743. var defaultDisabledTime = {
  34744. disabledHours: function disabledHours() {
  34745. return [];
  34746. },
  34747. disabledMinutes: function disabledMinutes() {
  34748. return [];
  34749. },
  34750. disabledSeconds: function disabledSeconds() {
  34751. return [];
  34752. }
  34753. };
  34754. function getTodayTime(value) {
  34755. var today = moment__WEBPACK_IMPORTED_MODULE_1___default()();
  34756. today.locale(value.locale()).utcOffset(value.utcOffset());
  34757. return today;
  34758. }
  34759. function getTitleString(value) {
  34760. return value.format('LL');
  34761. }
  34762. function getTodayTimeStr(value) {
  34763. var today = getTodayTime(value);
  34764. return getTitleString(today);
  34765. }
  34766. function getMonthName(month) {
  34767. var locale = month.locale();
  34768. var localeData = month.localeData();
  34769. return localeData[locale === 'zh-cn' ? 'months' : 'monthsShort'](month);
  34770. }
  34771. function syncTime(from, to) {
  34772. if (!moment__WEBPACK_IMPORTED_MODULE_1___default.a.isMoment(from) || !moment__WEBPACK_IMPORTED_MODULE_1___default.a.isMoment(to)) return;
  34773. to.hour(from.hour());
  34774. to.minute(from.minute());
  34775. to.second(from.second());
  34776. to.millisecond(from.millisecond());
  34777. }
  34778. function getTimeConfig(value, disabledTime) {
  34779. var disabledTimeConfig = disabledTime ? disabledTime(value) : {};
  34780. disabledTimeConfig = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, defaultDisabledTime, disabledTimeConfig);
  34781. return disabledTimeConfig;
  34782. }
  34783. function isTimeValidByConfig(value, disabledTimeConfig) {
  34784. var invalidTime = false;
  34785. if (value) {
  34786. var hour = value.hour();
  34787. var minutes = value.minute();
  34788. var seconds = value.second();
  34789. var disabledHours = disabledTimeConfig.disabledHours();
  34790. if (disabledHours.indexOf(hour) === -1) {
  34791. var disabledMinutes = disabledTimeConfig.disabledMinutes(hour);
  34792. if (disabledMinutes.indexOf(minutes) === -1) {
  34793. var disabledSeconds = disabledTimeConfig.disabledSeconds(hour, minutes);
  34794. invalidTime = disabledSeconds.indexOf(seconds) !== -1;
  34795. } else {
  34796. invalidTime = true;
  34797. }
  34798. } else {
  34799. invalidTime = true;
  34800. }
  34801. }
  34802. return !invalidTime;
  34803. }
  34804. function isTimeValid(value, disabledTime) {
  34805. var disabledTimeConfig = getTimeConfig(value, disabledTime);
  34806. return isTimeValidByConfig(value, disabledTimeConfig);
  34807. }
  34808. function isAllowedDate(value, disabledDate, disabledTime) {
  34809. if (disabledDate) {
  34810. if (disabledDate(value)) {
  34811. return false;
  34812. }
  34813. }
  34814. if (disabledTime) {
  34815. if (!isTimeValid(value, disabledTime)) {
  34816. return false;
  34817. }
  34818. }
  34819. return true;
  34820. }
  34821. function formatDate(value, format) {
  34822. if (!value) {
  34823. return '';
  34824. }
  34825. if (Array.isArray(format)) {
  34826. format = format[0];
  34827. }
  34828. if (typeof format === 'function') {
  34829. var result = format(value);
  34830. if (typeof result === 'string') {
  34831. return result;
  34832. } else {
  34833. throw new Error('The function of format does not return a string');
  34834. }
  34835. }
  34836. return value.format(format);
  34837. }
  34838. /***/ }),
  34839. /***/ "./components/vc-calendar/src/util/toTime.js":
  34840. /*!***************************************************!*\
  34841. !*** ./components/vc-calendar/src/util/toTime.js ***!
  34842. \***************************************************/
  34843. /*! exports provided: goStartMonth, goEndMonth, goTime, includesTime */
  34844. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  34845. "use strict";
  34846. __webpack_require__.r(__webpack_exports__);
  34847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "goStartMonth", function() { return goStartMonth; });
  34848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "goEndMonth", function() { return goEndMonth; });
  34849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "goTime", function() { return goTime; });
  34850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "includesTime", function() { return includesTime; });
  34851. function goStartMonth(time) {
  34852. return time.clone().startOf('month');
  34853. }
  34854. function goEndMonth(time) {
  34855. return time.clone().endOf('month');
  34856. }
  34857. function goTime(time, direction, unit) {
  34858. return time.clone().add(direction, unit);
  34859. }
  34860. function includesTime() {
  34861. var timeList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  34862. var time = arguments[1];
  34863. var unit = arguments[2];
  34864. return timeList.some(function (t) {
  34865. return t.isSame(time, unit);
  34866. });
  34867. }
  34868. /***/ }),
  34869. /***/ "./components/vc-calendar/src/year/YearPanel.jsx":
  34870. /*!*******************************************************!*\
  34871. !*** ./components/vc-calendar/src/year/YearPanel.jsx ***!
  34872. \*******************************************************/
  34873. /*! exports provided: default */
  34874. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  34875. "use strict";
  34876. __webpack_require__.r(__webpack_exports__);
  34877. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  34878. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  34879. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  34880. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  34881. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
  34882. var ROW = 4;
  34883. var COL = 3;
  34884. function noop() {}
  34885. function goYear(direction) {
  34886. var value = this.sValue.clone();
  34887. value.add(direction, 'year');
  34888. this.setState({
  34889. sValue: value
  34890. });
  34891. }
  34892. function chooseYear(year) {
  34893. var value = this.sValue.clone();
  34894. value.year(year);
  34895. value.month(this.sValue.month());
  34896. this.sValue = value;
  34897. this.__emit('select', value);
  34898. }
  34899. /* harmony default export */ __webpack_exports__["default"] = ({
  34900. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
  34901. props: {
  34902. rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  34903. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  34904. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  34905. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  34906. renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  34907. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  34908. },
  34909. data: function data() {
  34910. this.nextDecade = goYear.bind(this, 10);
  34911. this.previousDecade = goYear.bind(this, -10);
  34912. return {
  34913. sValue: this.value || this.defaultValue
  34914. };
  34915. },
  34916. watch: {
  34917. value: function value(val) {
  34918. this.sValue = val;
  34919. }
  34920. },
  34921. methods: {
  34922. years: function years() {
  34923. var value = this.sValue;
  34924. var currentYear = value.year();
  34925. var startYear = parseInt(currentYear / 10, 10) * 10;
  34926. var previousYear = startYear - 1;
  34927. var years = [];
  34928. var index = 0;
  34929. for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {
  34930. years[rowIndex] = [];
  34931. for (var colIndex = 0; colIndex < COL; colIndex++) {
  34932. var year = previousYear + index;
  34933. var content = String(year);
  34934. years[rowIndex][colIndex] = {
  34935. content: content,
  34936. year: year,
  34937. title: content
  34938. };
  34939. index++;
  34940. }
  34941. }
  34942. return years;
  34943. }
  34944. },
  34945. render: function render() {
  34946. var _this = this;
  34947. var h = arguments[0];
  34948. var value = this.sValue,
  34949. locale = this.locale,
  34950. renderFooter = this.renderFooter,
  34951. $props = this.$props;
  34952. var decadePanelShow = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this).decadePanelShow || noop;
  34953. var years = this.years();
  34954. var currentYear = value.year();
  34955. var startYear = parseInt(currentYear / 10, 10) * 10;
  34956. var endYear = startYear + 9;
  34957. var prefixCls = this.rootPrefixCls + '-year-panel';
  34958. var disabledDate = $props.disabledDate;
  34959. var yeasEls = years.map(function (row, index) {
  34960. var tds = row.map(function (yearData) {
  34961. var _classNameMap;
  34962. var disabled = false;
  34963. if (disabledDate) {
  34964. var testValue = value.clone();
  34965. testValue.year(yearData.year);
  34966. disabled = disabledDate(testValue);
  34967. }
  34968. var classNameMap = (_classNameMap = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-selected-cell', yearData.year === currentYear), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-last-decade-cell', yearData.year < startYear), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-next-decade-cell', yearData.year > endYear), _classNameMap);
  34969. var clickHandler = noop;
  34970. if (yearData.year < startYear) {
  34971. clickHandler = _this.previousDecade;
  34972. } else if (yearData.year > endYear) {
  34973. clickHandler = _this.nextDecade;
  34974. } else {
  34975. clickHandler = chooseYear.bind(_this, yearData.year);
  34976. }
  34977. return h(
  34978. 'td',
  34979. {
  34980. attrs: {
  34981. role: 'gridcell',
  34982. title: yearData.title
  34983. },
  34984. key: yearData.content,
  34985. on: {
  34986. 'click': disabled ? noop : clickHandler
  34987. },
  34988. 'class': classNameMap
  34989. },
  34990. [h(
  34991. 'a',
  34992. { 'class': prefixCls + '-year' },
  34993. [yearData.content]
  34994. )]
  34995. );
  34996. });
  34997. return h(
  34998. 'tr',
  34999. { key: index, attrs: { role: 'row' }
  35000. },
  35001. [tds]
  35002. );
  35003. });
  35004. var footer = renderFooter && renderFooter('year');
  35005. return h(
  35006. 'div',
  35007. { 'class': prefixCls },
  35008. [h('div', [h(
  35009. 'div',
  35010. { 'class': prefixCls + '-header' },
  35011. [h('a', {
  35012. 'class': prefixCls + '-prev-decade-btn',
  35013. attrs: { role: 'button',
  35014. title: locale.previousDecade
  35015. },
  35016. on: {
  35017. 'click': this.previousDecade
  35018. }
  35019. }), h(
  35020. 'a',
  35021. {
  35022. 'class': prefixCls + '-decade-select',
  35023. attrs: { role: 'button',
  35024. title: locale.decadeSelect
  35025. },
  35026. on: {
  35027. 'click': decadePanelShow
  35028. }
  35029. },
  35030. [h(
  35031. 'span',
  35032. { 'class': prefixCls + '-decade-select-content' },
  35033. [startYear, '-', endYear]
  35034. ), h(
  35035. 'span',
  35036. { 'class': prefixCls + '-decade-select-arrow' },
  35037. ['x']
  35038. )]
  35039. ), h('a', {
  35040. 'class': prefixCls + '-next-decade-btn',
  35041. attrs: { role: 'button',
  35042. title: locale.nextDecade
  35043. },
  35044. on: {
  35045. 'click': this.nextDecade
  35046. }
  35047. })]
  35048. ), h(
  35049. 'div',
  35050. { 'class': prefixCls + '-body' },
  35051. [h(
  35052. 'table',
  35053. { 'class': prefixCls + '-table', attrs: { cellSpacing: '0', role: 'grid' }
  35054. },
  35055. [h(
  35056. 'tbody',
  35057. { 'class': prefixCls + '-tbody' },
  35058. [yeasEls]
  35059. )]
  35060. )]
  35061. ), footer && h(
  35062. 'div',
  35063. { 'class': prefixCls + '-footer' },
  35064. [footer]
  35065. )])]
  35066. );
  35067. }
  35068. });
  35069. /***/ }),
  35070. /***/ "./components/vc-cascader/Cascader.jsx":
  35071. /*!*********************************************!*\
  35072. !*** ./components/vc-cascader/Cascader.jsx ***!
  35073. \*********************************************/
  35074. /*! exports provided: default */
  35075. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35076. "use strict";
  35077. __webpack_require__.r(__webpack_exports__);
  35078. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  35079. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  35080. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  35081. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  35082. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  35083. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
  35084. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  35085. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  35086. /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
  35087. /* harmony import */ var _Menus__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Menus */ "./components/vc-cascader/Menus.jsx");
  35088. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
  35089. /* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! array-tree-filter */ "./node_modules/array-tree-filter/lib/index.js");
  35090. /* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(array_tree_filter__WEBPACK_IMPORTED_MODULE_8__);
  35091. /* harmony import */ var shallow_equal_arrays__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! shallow-equal/arrays */ "./node_modules/shallow-equal/arrays/index.js");
  35092. /* harmony import */ var shallow_equal_arrays__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(shallow_equal_arrays__WEBPACK_IMPORTED_MODULE_9__);
  35093. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  35094. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  35095. var BUILT_IN_PLACEMENTS = {
  35096. bottomLeft: {
  35097. points: ['tl', 'bl'],
  35098. offset: [0, 4],
  35099. overflow: {
  35100. adjustX: 1,
  35101. adjustY: 1
  35102. }
  35103. },
  35104. topLeft: {
  35105. points: ['bl', 'tl'],
  35106. offset: [0, -4],
  35107. overflow: {
  35108. adjustX: 1,
  35109. adjustY: 1
  35110. }
  35111. },
  35112. bottomRight: {
  35113. points: ['tr', 'br'],
  35114. offset: [0, 4],
  35115. overflow: {
  35116. adjustX: 1,
  35117. adjustY: 1
  35118. }
  35119. },
  35120. topRight: {
  35121. points: ['br', 'tr'],
  35122. offset: [0, -4],
  35123. overflow: {
  35124. adjustX: 1,
  35125. adjustY: 1
  35126. }
  35127. }
  35128. };
  35129. /* harmony default export */ __webpack_exports__["default"] = ({
  35130. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__["default"]],
  35131. model: {
  35132. prop: 'value',
  35133. event: 'change'
  35134. },
  35135. props: {
  35136. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
  35137. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
  35138. options: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
  35139. // onChange: PropTypes.func,
  35140. // onPopupVisibleChange: PropTypes.func,
  35141. popupVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  35142. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
  35143. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def(''),
  35144. popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def(''),
  35145. popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
  35146. return {};
  35147. }),
  35148. popupPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('bottomLeft'),
  35149. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('rc-cascader'),
  35150. dropdownMenuColumnStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  35151. builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(BUILT_IN_PLACEMENTS),
  35152. loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
  35153. changeOnSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  35154. // onKeyDown: PropTypes.func,
  35155. expandTrigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('click'),
  35156. fieldNames: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
  35157. return {
  35158. label: 'label',
  35159. value: 'value',
  35160. children: 'children'
  35161. };
  35162. }),
  35163. expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  35164. loadingIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  35165. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func
  35166. },
  35167. data: function data() {
  35168. var initialValue = [];
  35169. var value = this.value,
  35170. defaultValue = this.defaultValue,
  35171. popupVisible = this.popupVisible;
  35172. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value')) {
  35173. initialValue = value || [];
  35174. } else if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'defaultValue')) {
  35175. initialValue = defaultValue || [];
  35176. }
  35177. // warning(!('filedNames' in props),
  35178. // '`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead.');
  35179. return {
  35180. sPopupVisible: popupVisible,
  35181. sActiveValue: initialValue,
  35182. sValue: initialValue
  35183. };
  35184. },
  35185. watch: {
  35186. value: function value(val, oldValue) {
  35187. if (!shallow_equal_arrays__WEBPACK_IMPORTED_MODULE_9___default()(val, oldValue)) {
  35188. var newValues = {
  35189. sValue: val || []
  35190. };
  35191. // allow activeValue diff from value
  35192. // https://github.com/ant-design/ant-design/issues/2767
  35193. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'loadData')) {
  35194. newValues.sActiveValue = val || [];
  35195. }
  35196. this.setState(newValues);
  35197. }
  35198. },
  35199. popupVisible: function popupVisible(val) {
  35200. this.setState({
  35201. sPopupVisible: val
  35202. });
  35203. }
  35204. },
  35205. methods: {
  35206. getPopupDOMNode: function getPopupDOMNode() {
  35207. return this.$refs.trigger.getPopupDomNode();
  35208. },
  35209. getFieldName: function getFieldName(name) {
  35210. var defaultFieldNames = this.defaultFieldNames,
  35211. fieldNames = this.fieldNames;
  35212. return fieldNames[name] || defaultFieldNames[name];
  35213. },
  35214. getFieldNames: function getFieldNames() {
  35215. return this.fieldNames;
  35216. },
  35217. getCurrentLevelOptions: function getCurrentLevelOptions() {
  35218. var _this = this;
  35219. var _options = this.options,
  35220. options = _options === undefined ? [] : _options,
  35221. _sActiveValue = this.sActiveValue,
  35222. sActiveValue = _sActiveValue === undefined ? [] : _sActiveValue;
  35223. var result = array_tree_filter__WEBPACK_IMPORTED_MODULE_8___default()(options, function (o, level) {
  35224. return o[_this.getFieldName('value')] === sActiveValue[level];
  35225. }, { childrenKeyName: this.getFieldName('children') });
  35226. if (result[result.length - 2]) {
  35227. return result[result.length - 2][this.getFieldName('children')];
  35228. }
  35229. return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(options)).filter(function (o) {
  35230. return !o.disabled;
  35231. });
  35232. },
  35233. getActiveOptions: function getActiveOptions(activeValue) {
  35234. var _this2 = this;
  35235. return array_tree_filter__WEBPACK_IMPORTED_MODULE_8___default()(this.options || [], function (o, level) {
  35236. return o[_this2.getFieldName('value')] === activeValue[level];
  35237. }, { childrenKeyName: this.getFieldName('children') });
  35238. },
  35239. setPopupVisible: function setPopupVisible(popupVisible) {
  35240. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'popupVisible')) {
  35241. this.setState({ sPopupVisible: popupVisible });
  35242. }
  35243. // sync activeValue with value when panel open
  35244. if (popupVisible && !this.sPopupVisible) {
  35245. this.setState({
  35246. sActiveValue: this.sValue
  35247. });
  35248. }
  35249. this.__emit('popupVisibleChange', popupVisible);
  35250. },
  35251. handleChange: function handleChange(options, setProps, e) {
  35252. var _this3 = this;
  35253. if (e.type !== 'keydown' || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER) {
  35254. this.__emit('change', options.map(function (o) {
  35255. return o[_this3.getFieldName('value')];
  35256. }), options);
  35257. this.setPopupVisible(setProps.visible);
  35258. }
  35259. },
  35260. handlePopupVisibleChange: function handlePopupVisibleChange(popupVisible) {
  35261. this.setPopupVisible(popupVisible);
  35262. },
  35263. handleMenuSelect: function handleMenuSelect(targetOption, menuIndex, e) {
  35264. // Keep focused state for keyboard support
  35265. var triggerNode = this.$refs.trigger.getRootDomNode();
  35266. if (triggerNode && triggerNode.focus) {
  35267. triggerNode.focus();
  35268. }
  35269. var changeOnSelect = this.changeOnSelect,
  35270. loadData = this.loadData,
  35271. expandTrigger = this.expandTrigger;
  35272. if (!targetOption || targetOption.disabled) {
  35273. return;
  35274. }
  35275. var sActiveValue = this.sActiveValue;
  35276. sActiveValue = sActiveValue.slice(0, menuIndex + 1);
  35277. sActiveValue[menuIndex] = targetOption[this.getFieldName('value')];
  35278. var activeOptions = this.getActiveOptions(sActiveValue);
  35279. if (targetOption.isLeaf === false && !targetOption[this.getFieldName('children')] && loadData) {
  35280. if (changeOnSelect) {
  35281. this.handleChange(activeOptions, { visible: true }, e);
  35282. }
  35283. this.setState({ sActiveValue: sActiveValue });
  35284. loadData(activeOptions);
  35285. return;
  35286. }
  35287. var newState = {};
  35288. if (!targetOption[this.getFieldName('children')] || !targetOption[this.getFieldName('children')].length) {
  35289. this.handleChange(activeOptions, { visible: false }, e);
  35290. // set value to activeValue when select leaf option
  35291. newState.sValue = sActiveValue;
  35292. // add e.type judgement to prevent `onChange` being triggered by mouseEnter
  35293. } else if (changeOnSelect && (e.type === 'click' || e.type === 'keydown')) {
  35294. if (expandTrigger === 'hover') {
  35295. this.handleChange(activeOptions, { visible: false }, e);
  35296. } else {
  35297. this.handleChange(activeOptions, { visible: true }, e);
  35298. }
  35299. // set value to activeValue on every select
  35300. newState.sValue = sActiveValue;
  35301. }
  35302. newState.sActiveValue = sActiveValue;
  35303. // not change the value by keyboard
  35304. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value') || e.type === 'keydown' && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER) {
  35305. delete newState.sValue;
  35306. }
  35307. this.setState(newState);
  35308. },
  35309. handleItemDoubleClick: function handleItemDoubleClick() {
  35310. var changeOnSelect = this.$props.changeOnSelect;
  35311. if (changeOnSelect) {
  35312. this.setPopupVisible(false);
  35313. }
  35314. },
  35315. handleKeyDown: function handleKeyDown(e) {
  35316. var _this4 = this;
  35317. var $slots = this.$slots;
  35318. var children = $slots['default'] && $slots['default'][0];
  35319. // https://github.com/ant-design/ant-design/issues/6717
  35320. // Don't bind keyboard support when children specify the onKeyDown
  35321. if (children) {
  35322. var keydown = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getEvents"])(children).keydown;
  35323. if (keydown) {
  35324. keydown(e);
  35325. return;
  35326. }
  35327. }
  35328. var activeValue = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.sActiveValue));
  35329. var currentLevel = activeValue.length - 1 < 0 ? 0 : activeValue.length - 1;
  35330. var currentOptions = this.getCurrentLevelOptions();
  35331. var currentIndex = currentOptions.map(function (o) {
  35332. return o[_this4.getFieldName('value')];
  35333. }).indexOf(activeValue[currentLevel]);
  35334. if (e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].LEFT && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].RIGHT && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].SPACE && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ESC && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].TAB) {
  35335. return;
  35336. }
  35337. // Press any keys above to reopen menu
  35338. if (!this.sPopupVisible && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].LEFT && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].RIGHT && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ESC && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].TAB) {
  35339. this.setPopupVisible(true);
  35340. return;
  35341. }
  35342. if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP) {
  35343. e.preventDefault();
  35344. var nextIndex = currentIndex;
  35345. if (nextIndex !== -1) {
  35346. if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN) {
  35347. nextIndex += 1;
  35348. nextIndex = nextIndex >= currentOptions.length ? 0 : nextIndex;
  35349. } else {
  35350. nextIndex -= 1;
  35351. nextIndex = nextIndex < 0 ? currentOptions.length - 1 : nextIndex;
  35352. }
  35353. } else {
  35354. nextIndex = 0;
  35355. }
  35356. activeValue[currentLevel] = currentOptions[nextIndex][this.getFieldName('value')];
  35357. } else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].LEFT || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE) {
  35358. e.preventDefault();
  35359. activeValue.splice(activeValue.length - 1, 1);
  35360. } else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].RIGHT) {
  35361. e.preventDefault();
  35362. if (currentOptions[currentIndex] && currentOptions[currentIndex][this.getFieldName('children')]) {
  35363. activeValue.push(currentOptions[currentIndex][this.getFieldName('children')][0][this.getFieldName('value')]);
  35364. }
  35365. } else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ESC || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].TAB) {
  35366. this.setPopupVisible(false);
  35367. return;
  35368. }
  35369. if (!activeValue || activeValue.length === 0) {
  35370. this.setPopupVisible(false);
  35371. }
  35372. var activeOptions = this.getActiveOptions(activeValue);
  35373. var targetOption = activeOptions[activeOptions.length - 1];
  35374. this.handleMenuSelect(targetOption, activeOptions.length - 1, e);
  35375. this.__emit('keydown', e);
  35376. }
  35377. },
  35378. render: function render() {
  35379. var h = arguments[0];
  35380. var $props = this.$props,
  35381. sActiveValue = this.sActiveValue,
  35382. handleMenuSelect = this.handleMenuSelect,
  35383. sPopupVisible = this.sPopupVisible,
  35384. handlePopupVisibleChange = this.handlePopupVisibleChange,
  35385. handleKeyDown = this.handleKeyDown;
  35386. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this);
  35387. var prefixCls = $props.prefixCls,
  35388. transitionName = $props.transitionName,
  35389. popupClassName = $props.popupClassName,
  35390. _$props$options = $props.options,
  35391. options = _$props$options === undefined ? [] : _$props$options,
  35392. disabled = $props.disabled,
  35393. builtinPlacements = $props.builtinPlacements,
  35394. popupPlacement = $props.popupPlacement,
  35395. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()($props, ['prefixCls', 'transitionName', 'popupClassName', 'options', 'disabled', 'builtinPlacements', 'popupPlacement']);
  35396. // Did not show popup when there is no options
  35397. var menus = h('div');
  35398. var emptyMenuClassName = '';
  35399. if (options && options.length > 0) {
  35400. var loadingIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'loadingIcon');
  35401. var expandIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'expandIcon') || '>';
  35402. var menusProps = {
  35403. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, $props, {
  35404. fieldNames: this.getFieldNames(),
  35405. defaultFieldNames: this.defaultFieldNames,
  35406. activeValue: sActiveValue,
  35407. visible: sPopupVisible,
  35408. loadingIcon: loadingIcon,
  35409. expandIcon: expandIcon
  35410. }),
  35411. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, {
  35412. select: handleMenuSelect,
  35413. itemDoubleClick: this.handleItemDoubleClick
  35414. })
  35415. };
  35416. menus = h(_Menus__WEBPACK_IMPORTED_MODULE_6__["default"], menusProps);
  35417. } else {
  35418. emptyMenuClassName = ' ' + prefixCls + '-menus-empty';
  35419. }
  35420. var triggerProps = {
  35421. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps, {
  35422. disabled: disabled,
  35423. popupPlacement: popupPlacement,
  35424. builtinPlacements: builtinPlacements,
  35425. popupTransitionName: transitionName,
  35426. action: disabled ? [] : ['click'],
  35427. popupVisible: disabled ? false : sPopupVisible,
  35428. prefixCls: prefixCls + '-menus',
  35429. popupClassName: popupClassName + emptyMenuClassName
  35430. }),
  35431. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, {
  35432. popupVisibleChange: handlePopupVisibleChange
  35433. }),
  35434. ref: 'trigger'
  35435. };
  35436. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getSlot"])(this, 'default')[0];
  35437. return h(
  35438. _vc_trigger__WEBPACK_IMPORTED_MODULE_5__["default"],
  35439. triggerProps,
  35440. [children && Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(children, {
  35441. on: {
  35442. keydown: handleKeyDown
  35443. },
  35444. attrs: {
  35445. tabIndex: disabled ? undefined : 0
  35446. }
  35447. }), h(
  35448. 'template',
  35449. { slot: 'popup' },
  35450. [menus]
  35451. )]
  35452. );
  35453. }
  35454. });
  35455. /***/ }),
  35456. /***/ "./components/vc-cascader/Menus.jsx":
  35457. /*!******************************************!*\
  35458. !*** ./components/vc-cascader/Menus.jsx ***!
  35459. \******************************************/
  35460. /*! exports provided: default */
  35461. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35462. "use strict";
  35463. __webpack_require__.r(__webpack_exports__);
  35464. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  35465. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  35466. /* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! array-tree-filter */ "./node_modules/array-tree-filter/lib/index.js");
  35467. /* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(array_tree_filter__WEBPACK_IMPORTED_MODULE_2__);
  35468. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  35469. /* harmony default export */ __webpack_exports__["default"] = ({
  35470. name: 'CascaderMenus',
  35471. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  35472. props: {
  35473. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array.def([]),
  35474. activeValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array.def([]),
  35475. options: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  35476. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('rc-cascader-menus'),
  35477. expandTrigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('click'),
  35478. // onSelect: PropTypes.func,
  35479. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(false),
  35480. dropdownMenuColumnStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  35481. defaultFieldNames: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  35482. fieldNames: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  35483. expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  35484. loadingIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  35485. },
  35486. data: function data() {
  35487. this.menuItems = {};
  35488. return {};
  35489. },
  35490. watch: {
  35491. visible: function visible(val) {
  35492. var _this = this;
  35493. if (val) {
  35494. this.$nextTick(function () {
  35495. _this.scrollActiveItemToView();
  35496. });
  35497. }
  35498. }
  35499. },
  35500. mounted: function mounted() {
  35501. var _this2 = this;
  35502. this.$nextTick(function () {
  35503. _this2.scrollActiveItemToView();
  35504. });
  35505. },
  35506. methods: {
  35507. getFieldName: function getFieldName(name) {
  35508. var _$props = this.$props,
  35509. fieldNames = _$props.fieldNames,
  35510. defaultFieldNames = _$props.defaultFieldNames;
  35511. // 防止只设置单个属性的名字
  35512. return fieldNames[name] || defaultFieldNames[name];
  35513. },
  35514. getOption: function getOption(option, menuIndex) {
  35515. var _this3 = this;
  35516. var h = this.$createElement;
  35517. var prefixCls = this.prefixCls,
  35518. expandTrigger = this.expandTrigger;
  35519. var loadingIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_0__["getComponentFromProp"])(this, 'loadingIcon');
  35520. var expandIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_0__["getComponentFromProp"])(this, 'expandIcon');
  35521. var onSelect = function onSelect(e) {
  35522. _this3.__emit('select', option, menuIndex, e);
  35523. };
  35524. var onItemDoubleClick = function onItemDoubleClick(e) {
  35525. _this3.__emit('itemDoubleClick', option, menuIndex, e);
  35526. };
  35527. var key = option[this.getFieldName('value')];
  35528. var expandProps = {
  35529. attrs: {
  35530. role: 'menuitem'
  35531. },
  35532. on: {
  35533. click: onSelect,
  35534. dblclick: onItemDoubleClick,
  35535. mousedown: function mousedown(e) {
  35536. return e.preventDefault();
  35537. }
  35538. },
  35539. key: Array.isArray(key) ? key.join('__ant__') : key
  35540. };
  35541. var menuItemCls = prefixCls + '-menu-item';
  35542. var expandIconNode = null;
  35543. var hasChildren = option[this.getFieldName('children')] && option[this.getFieldName('children')].length > 0;
  35544. if (hasChildren || option.isLeaf === false) {
  35545. menuItemCls += ' ' + prefixCls + '-menu-item-expand';
  35546. if (!option.loading) {
  35547. expandIconNode = h(
  35548. 'span',
  35549. { 'class': prefixCls + '-menu-item-expand-icon' },
  35550. [expandIcon]
  35551. );
  35552. }
  35553. }
  35554. if (expandTrigger === 'hover' && (hasChildren || option.isLeaf === false)) {
  35555. expandProps.on = {
  35556. mouseenter: this.delayOnSelect.bind(this, onSelect),
  35557. mouseleave: this.delayOnSelect.bind(this),
  35558. click: onSelect
  35559. };
  35560. }
  35561. if (this.isActiveOption(option, menuIndex)) {
  35562. menuItemCls += ' ' + prefixCls + '-menu-item-active';
  35563. expandProps.ref = this.getMenuItemRef(menuIndex);
  35564. }
  35565. if (option.disabled) {
  35566. menuItemCls += ' ' + prefixCls + '-menu-item-disabled';
  35567. }
  35568. var loadingIconNode = null;
  35569. if (option.loading) {
  35570. menuItemCls += ' ' + prefixCls + '-menu-item-loading';
  35571. loadingIconNode = loadingIcon || null;
  35572. }
  35573. var title = '';
  35574. if (option.title) {
  35575. title = option.title;
  35576. } else if (typeof option[this.getFieldName('label')] === 'string') {
  35577. title = option[this.getFieldName('label')];
  35578. }
  35579. expandProps.attrs.title = title;
  35580. expandProps['class'] = menuItemCls;
  35581. return h(
  35582. 'li',
  35583. expandProps,
  35584. [option[this.getFieldName('label')], expandIconNode, loadingIconNode]
  35585. );
  35586. },
  35587. getActiveOptions: function getActiveOptions(values) {
  35588. var _this4 = this;
  35589. var activeValue = values || this.activeValue;
  35590. var options = this.options;
  35591. return array_tree_filter__WEBPACK_IMPORTED_MODULE_2___default()(options, function (o, level) {
  35592. return o[_this4.getFieldName('value')] === activeValue[level];
  35593. }, { childrenKeyName: this.getFieldName('children') });
  35594. },
  35595. getShowOptions: function getShowOptions() {
  35596. var _this5 = this;
  35597. var options = this.options;
  35598. var result = this.getActiveOptions().map(function (activeOption) {
  35599. return activeOption[_this5.getFieldName('children')];
  35600. }).filter(function (activeOption) {
  35601. return !!activeOption;
  35602. });
  35603. result.unshift(options);
  35604. return result;
  35605. },
  35606. delayOnSelect: function delayOnSelect(onSelect) {
  35607. var _this6 = this;
  35608. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  35609. args[_key - 1] = arguments[_key];
  35610. }
  35611. if (this.delayTimer) {
  35612. clearTimeout(this.delayTimer);
  35613. this.delayTimer = null;
  35614. }
  35615. if (typeof onSelect === 'function') {
  35616. this.delayTimer = setTimeout(function () {
  35617. onSelect(args);
  35618. _this6.delayTimer = null;
  35619. }, 150);
  35620. }
  35621. },
  35622. scrollActiveItemToView: function scrollActiveItemToView() {
  35623. // scroll into view
  35624. var optionsLength = this.getShowOptions().length;
  35625. for (var i = 0; i < optionsLength; i++) {
  35626. var itemComponent = this.$refs['menuItems_' + i];
  35627. if (itemComponent) {
  35628. var target = itemComponent;
  35629. target.parentNode.scrollTop = target.offsetTop;
  35630. }
  35631. }
  35632. },
  35633. isActiveOption: function isActiveOption(option, menuIndex) {
  35634. var _activeValue = this.activeValue,
  35635. activeValue = _activeValue === undefined ? [] : _activeValue;
  35636. return activeValue[menuIndex] === option[this.getFieldName('value')];
  35637. },
  35638. getMenuItemRef: function getMenuItemRef(index) {
  35639. return 'menuItems_' + index;
  35640. }
  35641. },
  35642. render: function render() {
  35643. var _this7 = this;
  35644. var h = arguments[0];
  35645. var prefixCls = this.prefixCls,
  35646. dropdownMenuColumnStyle = this.dropdownMenuColumnStyle;
  35647. return h('div', [this.getShowOptions().map(function (options, menuIndex) {
  35648. return h(
  35649. 'ul',
  35650. { 'class': prefixCls + '-menu', key: menuIndex, style: dropdownMenuColumnStyle },
  35651. [options.map(function (option) {
  35652. return _this7.getOption(option, menuIndex);
  35653. })]
  35654. );
  35655. })]);
  35656. }
  35657. });
  35658. /***/ }),
  35659. /***/ "./components/vc-cascader/index.js":
  35660. /*!*****************************************!*\
  35661. !*** ./components/vc-cascader/index.js ***!
  35662. \*****************************************/
  35663. /*! exports provided: default */
  35664. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35665. "use strict";
  35666. __webpack_require__.r(__webpack_exports__);
  35667. /* harmony import */ var _Cascader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Cascader */ "./components/vc-cascader/Cascader.jsx");
  35668. // based on rc-cascader 0.17.4
  35669. /* harmony default export */ __webpack_exports__["default"] = (_Cascader__WEBPACK_IMPORTED_MODULE_0__["default"]);
  35670. /***/ }),
  35671. /***/ "./components/vc-checkbox/index.js":
  35672. /*!*****************************************!*\
  35673. !*** ./components/vc-checkbox/index.js ***!
  35674. \*****************************************/
  35675. /*! exports provided: default */
  35676. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35677. "use strict";
  35678. __webpack_require__.r(__webpack_exports__);
  35679. /* harmony import */ var _src___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/ */ "./components/vc-checkbox/src/index.js");
  35680. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _src___WEBPACK_IMPORTED_MODULE_0__["default"]; });
  35681. // based on rc-checkbox 2.1.7
  35682. /***/ }),
  35683. /***/ "./components/vc-checkbox/src/Checkbox.jsx":
  35684. /*!*************************************************!*\
  35685. !*** ./components/vc-checkbox/src/Checkbox.jsx ***!
  35686. \*************************************************/
  35687. /*! exports provided: default */
  35688. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35689. "use strict";
  35690. __webpack_require__.r(__webpack_exports__);
  35691. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  35692. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  35693. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  35694. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  35695. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  35696. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
  35697. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  35698. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
  35699. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  35700. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  35701. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
  35702. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  35703. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  35704. /* harmony default export */ __webpack_exports__["default"] = ({
  35705. name: 'Checkbox',
  35706. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
  35707. inheritAttrs: false,
  35708. model: {
  35709. prop: 'checked',
  35710. event: 'change'
  35711. },
  35712. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])({
  35713. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  35714. name: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  35715. id: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  35716. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  35717. defaultChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool]),
  35718. checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool]),
  35719. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  35720. // onFocus: PropTypes.func,
  35721. // onBlur: PropTypes.func,
  35722. // onChange: PropTypes.func,
  35723. // onClick: PropTypes.func,
  35724. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
  35725. readOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  35726. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  35727. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any
  35728. }, {
  35729. prefixCls: 'rc-checkbox',
  35730. type: 'checkbox',
  35731. defaultChecked: false
  35732. }),
  35733. data: function data() {
  35734. var checked = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'checked') ? this.checked : this.defaultChecked;
  35735. return {
  35736. sChecked: checked
  35737. };
  35738. },
  35739. watch: {
  35740. checked: function checked(val) {
  35741. this.sChecked = val;
  35742. }
  35743. },
  35744. mounted: function mounted() {
  35745. var _this = this;
  35746. this.$nextTick(function () {
  35747. if (_this.autoFocus) {
  35748. _this.$refs.input && _this.$refs.input.focus();
  35749. }
  35750. });
  35751. },
  35752. methods: {
  35753. focus: function focus() {
  35754. this.$refs.input.focus();
  35755. },
  35756. blur: function blur() {
  35757. this.$refs.input.blur();
  35758. },
  35759. handleChange: function handleChange(e) {
  35760. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
  35761. if (props.disabled) {
  35762. return;
  35763. }
  35764. if (!('checked' in props)) {
  35765. this.sChecked = e.target.checked;
  35766. }
  35767. this.$forceUpdate(); // change前,维持现有状态
  35768. e.shiftKey = this.eventShiftKey;
  35769. this.__emit('change', {
  35770. target: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, props, {
  35771. checked: e.target.checked
  35772. }),
  35773. stopPropagation: function stopPropagation() {
  35774. e.stopPropagation();
  35775. },
  35776. preventDefault: function preventDefault() {
  35777. e.preventDefault();
  35778. },
  35779. nativeEvent: e
  35780. });
  35781. this.eventShiftKey = false;
  35782. // fix https://github.com/vueComponent/ant-design-vue/issues/3047
  35783. if ('checked' in props) {
  35784. this.$refs.input.checked = props.checked;
  35785. }
  35786. },
  35787. onClick: function onClick(e) {
  35788. this.__emit('click', e);
  35789. // onChange没能获取到shiftKey,使用onClick hack
  35790. this.eventShiftKey = e.shiftKey;
  35791. }
  35792. },
  35793. render: function render() {
  35794. var _classNames;
  35795. var h = arguments[0];
  35796. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
  35797. prefixCls = _getOptionProps.prefixCls,
  35798. name = _getOptionProps.name,
  35799. id = _getOptionProps.id,
  35800. type = _getOptionProps.type,
  35801. disabled = _getOptionProps.disabled,
  35802. readOnly = _getOptionProps.readOnly,
  35803. tabIndex = _getOptionProps.tabIndex,
  35804. autoFocus = _getOptionProps.autoFocus,
  35805. value = _getOptionProps.value,
  35806. others = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getOptionProps, ['prefixCls', 'name', 'id', 'type', 'disabled', 'readOnly', 'tabIndex', 'autoFocus', 'value']);
  35807. var attrs = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getAttrs"])(this);
  35808. var globalProps = Object.keys(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, others, attrs)).reduce(function (prev, key) {
  35809. if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
  35810. prev[key] = others[key];
  35811. }
  35812. return prev;
  35813. }, {});
  35814. var sChecked = this.sChecked;
  35815. var classString = classnames__WEBPACK_IMPORTED_MODULE_5___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-checked', sChecked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
  35816. return h(
  35817. 'span',
  35818. { 'class': classString },
  35819. [h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  35820. attrs: {
  35821. name: name,
  35822. id: id,
  35823. type: type,
  35824. readOnly: readOnly,
  35825. disabled: disabled,
  35826. tabIndex: tabIndex,
  35827. autoFocus: autoFocus
  35828. },
  35829. 'class': prefixCls + '-input',
  35830. domProps: {
  35831. 'checked': !!sChecked,
  35832. 'value': value
  35833. },
  35834. ref: 'input'
  35835. }, {
  35836. attrs: globalProps,
  35837. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this), {
  35838. change: this.handleChange,
  35839. click: this.onClick
  35840. })
  35841. }])), h('span', { 'class': prefixCls + '-inner' })]
  35842. );
  35843. }
  35844. });
  35845. /***/ }),
  35846. /***/ "./components/vc-checkbox/src/index.js":
  35847. /*!*********************************************!*\
  35848. !*** ./components/vc-checkbox/src/index.js ***!
  35849. \*********************************************/
  35850. /*! exports provided: default */
  35851. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35852. "use strict";
  35853. __webpack_require__.r(__webpack_exports__);
  35854. /* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Checkbox */ "./components/vc-checkbox/src/Checkbox.jsx");
  35855. /* harmony default export */ __webpack_exports__["default"] = (_Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]);
  35856. /***/ }),
  35857. /***/ "./components/vc-collapse/index.js":
  35858. /*!*****************************************!*\
  35859. !*** ./components/vc-collapse/index.js ***!
  35860. \*****************************************/
  35861. /*! exports provided: collapseProps, panelProps, default */
  35862. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35863. "use strict";
  35864. __webpack_require__.r(__webpack_exports__);
  35865. /* harmony import */ var _src_Panel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/Panel */ "./components/vc-collapse/src/Panel.jsx");
  35866. /* harmony import */ var _src_Collapse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Collapse */ "./components/vc-collapse/src/Collapse.jsx");
  35867. /* harmony import */ var _src_commonProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/commonProps */ "./components/vc-collapse/src/commonProps.js");
  35868. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "collapseProps", function() { return _src_commonProps__WEBPACK_IMPORTED_MODULE_2__["collapseProps"]; });
  35869. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "panelProps", function() { return _src_commonProps__WEBPACK_IMPORTED_MODULE_2__["panelProps"]; });
  35870. // based on rc-collapse 1.11.8
  35871. _src_Collapse__WEBPACK_IMPORTED_MODULE_1__["default"].Panel = _src_Panel__WEBPACK_IMPORTED_MODULE_0__["default"];
  35872. /* harmony default export */ __webpack_exports__["default"] = (_src_Collapse__WEBPACK_IMPORTED_MODULE_1__["default"]);
  35873. /***/ }),
  35874. /***/ "./components/vc-collapse/src/Collapse.jsx":
  35875. /*!*************************************************!*\
  35876. !*** ./components/vc-collapse/src/Collapse.jsx ***!
  35877. \*************************************************/
  35878. /*! exports provided: default */
  35879. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  35880. "use strict";
  35881. __webpack_require__.r(__webpack_exports__);
  35882. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  35883. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  35884. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  35885. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
  35886. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  35887. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  35888. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  35889. /* harmony import */ var _openAnimationFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./openAnimationFactory */ "./components/vc-collapse/src/openAnimationFactory.js");
  35890. /* harmony import */ var _commonProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonProps */ "./components/vc-collapse/src/commonProps.js");
  35891. function _toArray(activeKey) {
  35892. var currentActiveKey = activeKey;
  35893. if (!Array.isArray(currentActiveKey)) {
  35894. currentActiveKey = currentActiveKey ? [currentActiveKey] : [];
  35895. }
  35896. return currentActiveKey.map(function (key) {
  35897. return String(key);
  35898. });
  35899. }
  35900. /* harmony default export */ __webpack_exports__["default"] = ({
  35901. name: 'Collapse',
  35902. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
  35903. model: {
  35904. prop: 'activeKey',
  35905. event: 'change'
  35906. },
  35907. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(Object(_commonProps__WEBPACK_IMPORTED_MODULE_6__["collapseProps"])(), {
  35908. prefixCls: 'rc-collapse',
  35909. accordion: false,
  35910. destroyInactivePanel: false
  35911. }),
  35912. data: function data() {
  35913. var _$props = this.$props,
  35914. activeKey = _$props.activeKey,
  35915. defaultActiveKey = _$props.defaultActiveKey,
  35916. openAnimation = _$props.openAnimation,
  35917. prefixCls = _$props.prefixCls;
  35918. var currentActiveKey = defaultActiveKey;
  35919. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'activeKey')) {
  35920. currentActiveKey = activeKey;
  35921. }
  35922. var currentOpenAnimations = openAnimation || Object(_openAnimationFactory__WEBPACK_IMPORTED_MODULE_5__["default"])(prefixCls);
  35923. return {
  35924. currentOpenAnimations: currentOpenAnimations,
  35925. stateActiveKey: _toArray(currentActiveKey)
  35926. };
  35927. },
  35928. watch: {
  35929. activeKey: function activeKey(val) {
  35930. this.setState({
  35931. stateActiveKey: _toArray(val)
  35932. });
  35933. },
  35934. openAnimation: function openAnimation(val) {
  35935. this.setState({
  35936. currentOpenAnimations: val
  35937. });
  35938. }
  35939. },
  35940. methods: {
  35941. onClickItem: function onClickItem(key) {
  35942. var activeKey = this.stateActiveKey;
  35943. if (this.accordion) {
  35944. activeKey = activeKey[0] === key ? [] : [key];
  35945. } else {
  35946. activeKey = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(activeKey));
  35947. var index = activeKey.indexOf(key);
  35948. var isActive = index > -1;
  35949. if (isActive) {
  35950. // remove active state
  35951. activeKey.splice(index, 1);
  35952. } else {
  35953. activeKey.push(key);
  35954. }
  35955. }
  35956. this.setActiveKey(activeKey);
  35957. },
  35958. getNewChild: function getNewChild(child, index) {
  35959. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["isEmptyElement"])(child)) return;
  35960. var activeKey = this.stateActiveKey;
  35961. var _$props2 = this.$props,
  35962. prefixCls = _$props2.prefixCls,
  35963. accordion = _$props2.accordion,
  35964. destroyInactivePanel = _$props2.destroyInactivePanel,
  35965. expandIcon = _$props2.expandIcon;
  35966. // If there is no key provide, use the panel order as default key
  35967. var key = child.key || String(index);
  35968. var _getPropsData = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getPropsData"])(child),
  35969. header = _getPropsData.header,
  35970. headerClass = _getPropsData.headerClass,
  35971. disabled = _getPropsData.disabled;
  35972. var isActive = false;
  35973. if (accordion) {
  35974. isActive = activeKey[0] === key;
  35975. } else {
  35976. isActive = activeKey.indexOf(key) > -1;
  35977. }
  35978. var panelEvents = {};
  35979. if (!disabled && disabled !== '') {
  35980. panelEvents = {
  35981. itemClick: this.onClickItem
  35982. };
  35983. }
  35984. var props = {
  35985. key: key,
  35986. props: {
  35987. panelKey: key,
  35988. header: header,
  35989. headerClass: headerClass,
  35990. isActive: isActive,
  35991. prefixCls: prefixCls,
  35992. destroyInactivePanel: destroyInactivePanel,
  35993. openAnimation: this.currentOpenAnimations,
  35994. accordion: accordion,
  35995. expandIcon: expandIcon
  35996. },
  35997. on: panelEvents
  35998. };
  35999. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(child, props);
  36000. },
  36001. getItems: function getItems() {
  36002. var _this = this;
  36003. var newChildren = [];
  36004. this.$slots['default'] && this.$slots['default'].forEach(function (child, index) {
  36005. newChildren.push(_this.getNewChild(child, index));
  36006. });
  36007. return newChildren;
  36008. },
  36009. setActiveKey: function setActiveKey(activeKey) {
  36010. this.setState({ stateActiveKey: activeKey });
  36011. this.$emit('change', this.accordion ? activeKey[0] : activeKey);
  36012. }
  36013. },
  36014. render: function render() {
  36015. var h = arguments[0];
  36016. var _$props3 = this.$props,
  36017. prefixCls = _$props3.prefixCls,
  36018. accordion = _$props3.accordion;
  36019. var collapseClassName = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls, true);
  36020. return h(
  36021. 'div',
  36022. { 'class': collapseClassName, attrs: { role: accordion ? 'tablist' : null }
  36023. },
  36024. [this.getItems()]
  36025. );
  36026. }
  36027. });
  36028. /***/ }),
  36029. /***/ "./components/vc-collapse/src/Panel.jsx":
  36030. /*!**********************************************!*\
  36031. !*** ./components/vc-collapse/src/Panel.jsx ***!
  36032. \**********************************************/
  36033. /*! exports provided: default */
  36034. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36035. "use strict";
  36036. __webpack_require__.r(__webpack_exports__);
  36037. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  36038. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  36039. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  36040. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  36041. /* harmony import */ var _PanelContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PanelContent */ "./components/vc-collapse/src/PanelContent.jsx");
  36042. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  36043. /* harmony import */ var _commonProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commonProps */ "./components/vc-collapse/src/commonProps.js");
  36044. /* harmony default export */ __webpack_exports__["default"] = ({
  36045. name: 'Panel',
  36046. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(Object(_commonProps__WEBPACK_IMPORTED_MODULE_4__["panelProps"])(), {
  36047. showArrow: true,
  36048. isActive: false,
  36049. destroyInactivePanel: false,
  36050. headerClass: '',
  36051. forceRender: false
  36052. }),
  36053. methods: {
  36054. handleItemClick: function handleItemClick() {
  36055. this.$emit('itemClick', this.panelKey);
  36056. },
  36057. handleKeyPress: function handleKeyPress(e) {
  36058. if (e.key === 'Enter' || e.keyCode === 13 || e.which === 13) {
  36059. this.handleItemClick();
  36060. }
  36061. }
  36062. },
  36063. render: function render() {
  36064. var _headerCls, _itemCls;
  36065. var h = arguments[0];
  36066. var _$props = this.$props,
  36067. prefixCls = _$props.prefixCls,
  36068. headerClass = _$props.headerClass,
  36069. isActive = _$props.isActive,
  36070. showArrow = _$props.showArrow,
  36071. destroyInactivePanel = _$props.destroyInactivePanel,
  36072. disabled = _$props.disabled,
  36073. openAnimation = _$props.openAnimation,
  36074. accordion = _$props.accordion,
  36075. forceRender = _$props.forceRender,
  36076. expandIcon = _$props.expandIcon,
  36077. extra = _$props.extra;
  36078. var $slots = this.$slots;
  36079. var transitionProps = {
  36080. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
  36081. appear: true,
  36082. css: false
  36083. }),
  36084. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, openAnimation)
  36085. };
  36086. var headerCls = (_headerCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_headerCls, prefixCls + '-header', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_headerCls, headerClass, headerClass), _headerCls);
  36087. var header = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'header');
  36088. var itemCls = (_itemCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_itemCls, prefixCls + '-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_itemCls, prefixCls + '-item-active', isActive), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_itemCls, prefixCls + '-item-disabled', disabled), _itemCls);
  36089. var icon = h('i', { 'class': 'arrow' });
  36090. if (showArrow && typeof expandIcon === 'function') {
  36091. icon = expandIcon(this.$props);
  36092. }
  36093. return h(
  36094. 'div',
  36095. { 'class': itemCls, attrs: { role: 'tablist' }
  36096. },
  36097. [h(
  36098. 'div',
  36099. {
  36100. 'class': headerCls,
  36101. on: {
  36102. 'click': this.handleItemClick.bind(this),
  36103. 'keypress': this.handleKeyPress
  36104. },
  36105. attrs: {
  36106. role: accordion ? 'tab' : 'button',
  36107. tabIndex: disabled ? -1 : 0,
  36108. 'aria-expanded': isActive
  36109. }
  36110. },
  36111. [showArrow && icon, header, extra && h(
  36112. 'div',
  36113. { 'class': prefixCls + '-extra' },
  36114. [extra]
  36115. )]
  36116. ), h(
  36117. 'transition',
  36118. transitionProps,
  36119. [h(
  36120. _PanelContent__WEBPACK_IMPORTED_MODULE_2__["default"],
  36121. {
  36122. directives: [{
  36123. name: 'show',
  36124. value: isActive
  36125. }],
  36126. attrs: {
  36127. prefixCls: prefixCls,
  36128. isActive: isActive,
  36129. destroyInactivePanel: destroyInactivePanel,
  36130. forceRender: forceRender,
  36131. role: accordion ? 'tabpanel' : null
  36132. }
  36133. },
  36134. [$slots['default']]
  36135. )]
  36136. )]
  36137. );
  36138. }
  36139. });
  36140. /***/ }),
  36141. /***/ "./components/vc-collapse/src/PanelContent.jsx":
  36142. /*!*****************************************************!*\
  36143. !*** ./components/vc-collapse/src/PanelContent.jsx ***!
  36144. \*****************************************************/
  36145. /*! exports provided: default */
  36146. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36147. "use strict";
  36148. __webpack_require__.r(__webpack_exports__);
  36149. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  36150. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  36151. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  36152. /* harmony default export */ __webpack_exports__["default"] = ({
  36153. name: 'PanelContent',
  36154. props: {
  36155. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  36156. isActive: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  36157. destroyInactivePanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  36158. forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  36159. role: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  36160. },
  36161. data: function data() {
  36162. return {
  36163. _isActive: undefined
  36164. };
  36165. },
  36166. render: function render() {
  36167. var _contentCls;
  36168. var h = arguments[0];
  36169. this._isActive = this.forceRender || this._isActive || this.isActive;
  36170. if (!this._isActive) {
  36171. return null;
  36172. }
  36173. var _$props = this.$props,
  36174. prefixCls = _$props.prefixCls,
  36175. isActive = _$props.isActive,
  36176. destroyInactivePanel = _$props.destroyInactivePanel,
  36177. forceRender = _$props.forceRender,
  36178. role = _$props.role;
  36179. var $slots = this.$slots;
  36180. var contentCls = (_contentCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_contentCls, prefixCls + '-content', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_contentCls, prefixCls + '-content-active', isActive), _contentCls);
  36181. var child = !forceRender && !isActive && destroyInactivePanel ? null : h(
  36182. 'div',
  36183. { 'class': prefixCls + '-content-box' },
  36184. [$slots['default']]
  36185. );
  36186. return h(
  36187. 'div',
  36188. { 'class': contentCls, attrs: { role: role }
  36189. },
  36190. [child]
  36191. );
  36192. }
  36193. });
  36194. /***/ }),
  36195. /***/ "./components/vc-collapse/src/commonProps.js":
  36196. /*!***************************************************!*\
  36197. !*** ./components/vc-collapse/src/commonProps.js ***!
  36198. \***************************************************/
  36199. /*! exports provided: collapseProps, panelProps */
  36200. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36201. "use strict";
  36202. __webpack_require__.r(__webpack_exports__);
  36203. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "collapseProps", function() { return collapseProps; });
  36204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "panelProps", function() { return panelProps; });
  36205. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  36206. var collapseProps = function collapseProps() {
  36207. return {
  36208. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  36209. activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]))]),
  36210. defaultActiveKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]))]),
  36211. accordion: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36212. destroyInactivePanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36213. bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36214. expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  36215. openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  36216. expandIconPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['left', 'right'])
  36217. };
  36218. };
  36219. var panelProps = function panelProps() {
  36220. return {
  36221. openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  36222. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  36223. header: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].node]),
  36224. headerClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  36225. showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36226. isActive: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36227. destroyInactivePanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36228. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36229. accordion: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36230. forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36231. expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  36232. extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  36233. panelKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
  36234. };
  36235. };
  36236. /***/ }),
  36237. /***/ "./components/vc-collapse/src/openAnimationFactory.js":
  36238. /*!************************************************************!*\
  36239. !*** ./components/vc-collapse/src/openAnimationFactory.js ***!
  36240. \************************************************************/
  36241. /*! exports provided: default */
  36242. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36243. "use strict";
  36244. __webpack_require__.r(__webpack_exports__);
  36245. /* harmony import */ var _util_css_animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/css-animation */ "./components/_util/css-animation/index.js");
  36246. function animate(node, show, transitionName, done) {
  36247. var height = void 0;
  36248. return Object(_util_css_animation__WEBPACK_IMPORTED_MODULE_0__["default"])(node, transitionName, {
  36249. start: function start() {
  36250. if (!show) {
  36251. node.style.height = node.offsetHeight + 'px';
  36252. } else {
  36253. height = node.offsetHeight;
  36254. node.style.height = 0;
  36255. }
  36256. },
  36257. active: function active() {
  36258. node.style.height = (show ? height : 0) + 'px';
  36259. },
  36260. end: function end() {
  36261. node.style.height = '';
  36262. done();
  36263. }
  36264. });
  36265. }
  36266. function animation(prefixCls) {
  36267. return {
  36268. enter: function enter(node, done) {
  36269. return animate(node, true, prefixCls + '-anim', done);
  36270. },
  36271. leave: function leave(node, done) {
  36272. return animate(node, false, prefixCls + '-anim', done);
  36273. }
  36274. };
  36275. }
  36276. /* harmony default export */ __webpack_exports__["default"] = (animation);
  36277. /***/ }),
  36278. /***/ "./components/vc-dialog/Dialog.jsx":
  36279. /*!*****************************************!*\
  36280. !*** ./components/vc-dialog/Dialog.jsx ***!
  36281. \*****************************************/
  36282. /*! exports provided: default */
  36283. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36284. "use strict";
  36285. __webpack_require__.r(__webpack_exports__);
  36286. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  36287. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  36288. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  36289. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  36290. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  36291. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  36292. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  36293. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
  36294. /* harmony import */ var _vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-util/Dom/contains */ "./components/vc-util/Dom/contains.js");
  36295. /* harmony import */ var _LazyRenderBox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./LazyRenderBox */ "./components/vc-dialog/LazyRenderBox.jsx");
  36296. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  36297. /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
  36298. /* harmony import */ var _util_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/switchScrollingEffect */ "./components/_util/switchScrollingEffect.js");
  36299. /* harmony import */ var _IDialogPropTypes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./IDialogPropTypes */ "./components/vc-dialog/IDialogPropTypes.js");
  36300. var IDialogPropTypes = Object(_IDialogPropTypes__WEBPACK_IMPORTED_MODULE_10__["default"])();
  36301. var uuid = 0;
  36302. function noop() {}
  36303. function getScroll(w, top) {
  36304. var ret = w['page' + (top ? 'Y' : 'X') + 'Offset'];
  36305. var method = 'scroll' + (top ? 'Top' : 'Left');
  36306. if (typeof ret !== 'number') {
  36307. var d = w.document;
  36308. ret = d.documentElement[method];
  36309. if (typeof ret !== 'number') {
  36310. ret = d.body[method];
  36311. }
  36312. }
  36313. return ret;
  36314. }
  36315. function setTransformOrigin(node, value) {
  36316. var style = node.style;
  36317. ['Webkit', 'Moz', 'Ms', 'ms'].forEach(function (prefix) {
  36318. style[prefix + 'TransformOrigin'] = value;
  36319. });
  36320. style['transformOrigin'] = value;
  36321. }
  36322. function offset(el) {
  36323. var rect = el.getBoundingClientRect();
  36324. var pos = {
  36325. left: rect.left,
  36326. top: rect.top
  36327. };
  36328. var doc = el.ownerDocument;
  36329. var w = doc.defaultView || doc.parentWindow;
  36330. pos.left += getScroll(w);
  36331. pos.top += getScroll(w, true);
  36332. return pos;
  36333. }
  36334. var cacheOverflow = {};
  36335. /* harmony default export */ __webpack_exports__["default"] = ({
  36336. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
  36337. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(IDialogPropTypes, {
  36338. mask: true,
  36339. visible: false,
  36340. keyboard: true,
  36341. closable: true,
  36342. maskClosable: true,
  36343. destroyOnClose: false,
  36344. prefixCls: 'rc-dialog',
  36345. getOpenCount: function getOpenCount() {
  36346. return null;
  36347. },
  36348. focusTriggerAfterClose: true
  36349. }),
  36350. data: function data() {
  36351. return {
  36352. destroyPopup: false
  36353. };
  36354. },
  36355. provide: function provide() {
  36356. return {
  36357. dialogContext: this
  36358. };
  36359. },
  36360. watch: {
  36361. visible: function visible(val) {
  36362. var _this = this;
  36363. if (val) {
  36364. this.destroyPopup = false;
  36365. }
  36366. this.$nextTick(function () {
  36367. _this.updatedCallback(!val);
  36368. });
  36369. }
  36370. },
  36371. beforeMount: function beforeMount() {
  36372. this.inTransition = false;
  36373. this.titleId = 'rcDialogTitle' + uuid++;
  36374. },
  36375. mounted: function mounted() {
  36376. var _this2 = this;
  36377. this.$nextTick(function () {
  36378. _this2.updatedCallback(false);
  36379. // if forceRender is true, set element style display to be none;
  36380. if ((_this2.forceRender || _this2.getContainer === false && !_this2.visible) && _this2.$refs.wrap) {
  36381. _this2.$refs.wrap.style.display = 'none';
  36382. }
  36383. });
  36384. },
  36385. beforeDestroy: function beforeDestroy() {
  36386. var visible = this.visible,
  36387. getOpenCount = this.getOpenCount;
  36388. if ((visible || this.inTransition) && !getOpenCount()) {
  36389. this.switchScrollingEffect();
  36390. }
  36391. clearTimeout(this.timeoutId);
  36392. },
  36393. methods: {
  36394. // 对外暴露的 api 不要更改名称或删除
  36395. getDialogWrap: function getDialogWrap() {
  36396. return this.$refs.wrap;
  36397. },
  36398. updatedCallback: function updatedCallback(visible) {
  36399. var mousePosition = this.mousePosition;
  36400. var mask = this.mask,
  36401. focusTriggerAfterClose = this.focusTriggerAfterClose;
  36402. if (this.visible) {
  36403. // first show
  36404. if (!visible) {
  36405. this.openTime = Date.now();
  36406. // this.lastOutSideFocusNode = document.activeElement
  36407. this.switchScrollingEffect();
  36408. // this.$refs.wrap.focus()
  36409. this.tryFocus();
  36410. var dialogNode = this.$refs.dialog.$el;
  36411. if (mousePosition) {
  36412. var elOffset = offset(dialogNode);
  36413. setTransformOrigin(dialogNode, mousePosition.x - elOffset.left + 'px ' + (mousePosition.y - elOffset.top) + 'px');
  36414. } else {
  36415. setTransformOrigin(dialogNode, '');
  36416. }
  36417. }
  36418. } else if (visible) {
  36419. this.inTransition = true;
  36420. if (mask && this.lastOutSideFocusNode && focusTriggerAfterClose) {
  36421. try {
  36422. this.lastOutSideFocusNode.focus();
  36423. } catch (e) {
  36424. this.lastOutSideFocusNode = null;
  36425. }
  36426. this.lastOutSideFocusNode = null;
  36427. }
  36428. }
  36429. },
  36430. tryFocus: function tryFocus() {
  36431. if (!Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_5__["default"])(this.$refs.wrap, document.activeElement)) {
  36432. this.lastOutSideFocusNode = document.activeElement;
  36433. this.$refs.sentinelStart.focus();
  36434. }
  36435. },
  36436. onAnimateLeave: function onAnimateLeave() {
  36437. var afterClose = this.afterClose,
  36438. destroyOnClose = this.destroyOnClose;
  36439. // need demo?
  36440. // https://github.com/react-component/dialog/pull/28
  36441. if (this.$refs.wrap) {
  36442. this.$refs.wrap.style.display = 'none';
  36443. }
  36444. if (destroyOnClose) {
  36445. this.destroyPopup = true;
  36446. }
  36447. this.inTransition = false;
  36448. this.switchScrollingEffect();
  36449. if (afterClose) {
  36450. afterClose();
  36451. }
  36452. },
  36453. onDialogMouseDown: function onDialogMouseDown() {
  36454. this.dialogMouseDown = true;
  36455. },
  36456. onMaskMouseUp: function onMaskMouseUp() {
  36457. var _this3 = this;
  36458. if (this.dialogMouseDown) {
  36459. this.timeoutId = setTimeout(function () {
  36460. _this3.dialogMouseDown = false;
  36461. }, 0);
  36462. }
  36463. },
  36464. onMaskClick: function onMaskClick(e) {
  36465. // android trigger click on open (fastclick??)
  36466. if (Date.now() - this.openTime < 300) {
  36467. return;
  36468. }
  36469. if (e.target === e.currentTarget && !this.dialogMouseDown) {
  36470. this.close(e);
  36471. }
  36472. },
  36473. onKeydown: function onKeydown(e) {
  36474. var props = this.$props;
  36475. if (props.keyboard && e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ESC) {
  36476. e.stopPropagation();
  36477. this.close(e);
  36478. return;
  36479. }
  36480. // keep focus inside dialog
  36481. if (props.visible) {
  36482. if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].TAB) {
  36483. var activeElement = document.activeElement;
  36484. var sentinelStart = this.$refs.sentinelStart;
  36485. if (e.shiftKey) {
  36486. if (activeElement === sentinelStart) {
  36487. this.$refs.sentinelEnd.focus();
  36488. }
  36489. } else if (activeElement === this.$refs.sentinelEnd) {
  36490. sentinelStart.focus();
  36491. }
  36492. }
  36493. }
  36494. },
  36495. getDialogElement: function getDialogElement() {
  36496. var h = this.$createElement;
  36497. var closable = this.closable,
  36498. prefixCls = this.prefixCls,
  36499. width = this.width,
  36500. height = this.height,
  36501. title = this.title,
  36502. tempFooter = this.footer,
  36503. bodyStyle = this.bodyStyle,
  36504. visible = this.visible,
  36505. bodyProps = this.bodyProps,
  36506. forceRender = this.forceRender,
  36507. dialogStyle = this.dialogStyle,
  36508. dialogClass = this.dialogClass;
  36509. var dest = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, dialogStyle);
  36510. if (width !== undefined) {
  36511. dest.width = typeof width === 'number' ? width + 'px' : width;
  36512. }
  36513. if (height !== undefined) {
  36514. dest.height = typeof height === 'number' ? height + 'px' : height;
  36515. }
  36516. var footer = void 0;
  36517. if (tempFooter) {
  36518. footer = h(
  36519. 'div',
  36520. { key: 'footer', 'class': prefixCls + '-footer', ref: 'footer' },
  36521. [tempFooter]
  36522. );
  36523. }
  36524. var header = void 0;
  36525. if (title) {
  36526. header = h(
  36527. 'div',
  36528. { key: 'header', 'class': prefixCls + '-header', ref: 'header' },
  36529. [h(
  36530. 'div',
  36531. { 'class': prefixCls + '-title', attrs: { id: this.titleId }
  36532. },
  36533. [title]
  36534. )]
  36535. );
  36536. }
  36537. var closer = void 0;
  36538. if (closable) {
  36539. var closeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'closeIcon');
  36540. closer = h(
  36541. 'button',
  36542. {
  36543. attrs: {
  36544. type: 'button',
  36545. 'aria-label': 'Close'
  36546. },
  36547. key: 'close',
  36548. on: {
  36549. 'click': this.close || noop
  36550. },
  36551. 'class': prefixCls + '-close'
  36552. },
  36553. [closeIcon || h('span', { 'class': prefixCls + '-close-x' })]
  36554. );
  36555. }
  36556. var style = dest;
  36557. var sentinelStyle = { width: 0, height: 0, overflow: 'hidden' };
  36558. var cls = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls, true);
  36559. var transitionName = this.getTransitionName();
  36560. var dialogElement = h(
  36561. _LazyRenderBox__WEBPACK_IMPORTED_MODULE_6__["default"],
  36562. {
  36563. directives: [{
  36564. name: 'show',
  36565. value: visible
  36566. }],
  36567. key: 'dialog-element',
  36568. attrs: { role: 'document',
  36569. forceRender: forceRender
  36570. },
  36571. ref: 'dialog',
  36572. style: style,
  36573. 'class': [cls, dialogClass], on: {
  36574. 'mousedown': this.onDialogMouseDown
  36575. }
  36576. },
  36577. [h('div', {
  36578. attrs: { tabIndex: 0, 'aria-hidden': 'true' },
  36579. ref: 'sentinelStart', style: sentinelStyle }), h(
  36580. 'div',
  36581. { 'class': prefixCls + '-content' },
  36582. [closer, header, h(
  36583. 'div',
  36584. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'body', 'class': prefixCls + '-body', style: bodyStyle, ref: 'body' }, bodyProps]),
  36585. [this.$slots['default']]
  36586. ), footer]
  36587. ), h('div', {
  36588. attrs: { tabIndex: 0, 'aria-hidden': 'true' },
  36589. ref: 'sentinelEnd', style: sentinelStyle })]
  36590. );
  36591. var dialogTransitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__["default"])(transitionName, {
  36592. afterLeave: this.onAnimateLeave
  36593. });
  36594. return h(
  36595. 'transition',
  36596. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'dialog' }, dialogTransitionProps]),
  36597. [visible || !this.destroyPopup ? dialogElement : null]
  36598. );
  36599. },
  36600. getZIndexStyle: function getZIndexStyle() {
  36601. var style = {};
  36602. var props = this.$props;
  36603. if (props.zIndex !== undefined) {
  36604. style.zIndex = props.zIndex;
  36605. }
  36606. return style;
  36607. },
  36608. getWrapStyle: function getWrapStyle() {
  36609. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getZIndexStyle(), this.wrapStyle);
  36610. },
  36611. getMaskStyle: function getMaskStyle() {
  36612. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getZIndexStyle(), this.maskStyle);
  36613. },
  36614. getMaskElement: function getMaskElement() {
  36615. var h = this.$createElement;
  36616. var props = this.$props;
  36617. var maskElement = void 0;
  36618. if (props.mask) {
  36619. var maskTransition = this.getMaskTransitionName();
  36620. maskElement = h(_LazyRenderBox__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  36621. directives: [{
  36622. name: 'show',
  36623. value: props.visible
  36624. }],
  36625. style: this.getMaskStyle(),
  36626. key: 'mask',
  36627. 'class': props.prefixCls + '-mask'
  36628. }, props.maskProps]));
  36629. if (maskTransition) {
  36630. var maskTransitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__["default"])(maskTransition);
  36631. maskElement = h(
  36632. 'transition',
  36633. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'mask' }, maskTransitionProps]),
  36634. [maskElement]
  36635. );
  36636. }
  36637. }
  36638. return maskElement;
  36639. },
  36640. getMaskTransitionName: function getMaskTransitionName() {
  36641. var props = this.$props;
  36642. var transitionName = props.maskTransitionName;
  36643. var animation = props.maskAnimation;
  36644. if (!transitionName && animation) {
  36645. transitionName = props.prefixCls + '-' + animation;
  36646. }
  36647. return transitionName;
  36648. },
  36649. getTransitionName: function getTransitionName() {
  36650. var props = this.$props;
  36651. var transitionName = props.transitionName;
  36652. var animation = props.animation;
  36653. if (!transitionName && animation) {
  36654. transitionName = props.prefixCls + '-' + animation;
  36655. }
  36656. return transitionName;
  36657. },
  36658. // setScrollbar() {
  36659. // if (this.bodyIsOverflowing && this.scrollbarWidth !== undefined) {
  36660. // document.body.style.paddingRight = `${this.scrollbarWidth}px`;
  36661. // }
  36662. // },
  36663. switchScrollingEffect: function switchScrollingEffect() {
  36664. var getOpenCount = this.getOpenCount;
  36665. var openCount = getOpenCount();
  36666. if (openCount === 1) {
  36667. if (cacheOverflow.hasOwnProperty('overflowX')) {
  36668. return;
  36669. }
  36670. cacheOverflow = {
  36671. overflowX: document.body.style.overflowX,
  36672. overflowY: document.body.style.overflowY,
  36673. overflow: document.body.style.overflow
  36674. };
  36675. Object(_util_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_9__["default"])();
  36676. // Must be set after switchScrollingEffect
  36677. document.body.style.overflow = 'hidden';
  36678. } else if (!openCount) {
  36679. // IE browser doesn't merge overflow style, need to set it separately
  36680. // https://github.com/ant-design/ant-design/issues/19393
  36681. if (cacheOverflow.overflow !== undefined) {
  36682. document.body.style.overflow = cacheOverflow.overflow;
  36683. }
  36684. if (cacheOverflow.overflowX !== undefined) {
  36685. document.body.style.overflowX = cacheOverflow.overflowX;
  36686. }
  36687. if (cacheOverflow.overflowY !== undefined) {
  36688. document.body.style.overflowY = cacheOverflow.overflowY;
  36689. }
  36690. cacheOverflow = {};
  36691. Object(_util_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_9__["default"])(true);
  36692. }
  36693. },
  36694. // removeScrollingEffect() {
  36695. // const { getOpenCount } = this;
  36696. // const openCount = getOpenCount();
  36697. // if (openCount !== 0) {
  36698. // return;
  36699. // }
  36700. // document.body.style.overflow = '';
  36701. // switchScrollingEffect(true);
  36702. // // this.resetAdjustments();
  36703. // },
  36704. close: function close(e) {
  36705. this.__emit('close', e);
  36706. }
  36707. },
  36708. render: function render() {
  36709. var h = arguments[0];
  36710. var prefixCls = this.prefixCls,
  36711. maskClosable = this.maskClosable,
  36712. visible = this.visible,
  36713. wrapClassName = this.wrapClassName,
  36714. title = this.title,
  36715. wrapProps = this.wrapProps;
  36716. var style = this.getWrapStyle();
  36717. // clear hide display
  36718. // and only set display after async anim, not here for hide
  36719. if (visible) {
  36720. style.display = null;
  36721. }
  36722. return h(
  36723. 'div',
  36724. { 'class': prefixCls + '-root' },
  36725. [this.getMaskElement(), h(
  36726. 'div',
  36727. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  36728. attrs: {
  36729. tabIndex: -1,
  36730. role: 'dialog',
  36731. 'aria-labelledby': title ? this.titleId : null
  36732. },
  36733. on: {
  36734. 'keydown': this.onKeydown,
  36735. 'click': maskClosable ? this.onMaskClick : noop,
  36736. 'mouseup': maskClosable ? this.onMaskMouseUp : noop
  36737. },
  36738. 'class': prefixCls + '-wrap ' + (wrapClassName || ''),
  36739. ref: 'wrap',
  36740. style: style
  36741. }, wrapProps]),
  36742. [this.getDialogElement()]
  36743. )]
  36744. );
  36745. }
  36746. });
  36747. /***/ }),
  36748. /***/ "./components/vc-dialog/DialogWrap.jsx":
  36749. /*!*********************************************!*\
  36750. !*** ./components/vc-dialog/DialogWrap.jsx ***!
  36751. \*********************************************/
  36752. /*! exports provided: default */
  36753. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36754. "use strict";
  36755. __webpack_require__.r(__webpack_exports__);
  36756. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  36757. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  36758. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  36759. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  36760. /* harmony import */ var _Dialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Dialog */ "./components/vc-dialog/Dialog.jsx");
  36761. /* harmony import */ var _IDialogPropTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./IDialogPropTypes */ "./components/vc-dialog/IDialogPropTypes.js");
  36762. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  36763. /* harmony import */ var _util_PortalWrapper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/PortalWrapper */ "./components/_util/PortalWrapper.js");
  36764. var IDialogPropTypes = Object(_IDialogPropTypes__WEBPACK_IMPORTED_MODULE_3__["default"])();
  36765. var DialogWrap = {
  36766. inheritAttrs: false,
  36767. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, IDialogPropTypes, {
  36768. visible: IDialogPropTypes.visible.def(false)
  36769. }),
  36770. render: function render() {
  36771. var _this = this;
  36772. var h = arguments[0];
  36773. var _$props = this.$props,
  36774. visible = _$props.visible,
  36775. getContainer = _$props.getContainer,
  36776. forceRender = _$props.forceRender;
  36777. var dialogProps = {
  36778. props: this.$props,
  36779. attrs: this.$attrs,
  36780. ref: '_component',
  36781. key: 'dialog',
  36782. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
  36783. };
  36784. // 渲染在当前 dom 里;
  36785. if (getContainer === false) {
  36786. return h(
  36787. _Dialog__WEBPACK_IMPORTED_MODULE_2__["default"],
  36788. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([dialogProps, {
  36789. attrs: {
  36790. getOpenCount: function getOpenCount() {
  36791. return 2;
  36792. } // 不对 body 做任何操作。。
  36793. }
  36794. }]),
  36795. [this.$slots['default']]
  36796. );
  36797. }
  36798. return h(_util_PortalWrapper__WEBPACK_IMPORTED_MODULE_5__["default"], {
  36799. attrs: {
  36800. visible: visible,
  36801. forceRender: forceRender,
  36802. getContainer: getContainer,
  36803. children: function children(childProps) {
  36804. dialogProps.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, dialogProps.props, childProps);
  36805. return h(
  36806. _Dialog__WEBPACK_IMPORTED_MODULE_2__["default"],
  36807. dialogProps,
  36808. [_this.$slots['default']]
  36809. );
  36810. }
  36811. }
  36812. });
  36813. }
  36814. };
  36815. /* harmony default export */ __webpack_exports__["default"] = (DialogWrap);
  36816. /***/ }),
  36817. /***/ "./components/vc-dialog/IDialogPropTypes.js":
  36818. /*!**************************************************!*\
  36819. !*** ./components/vc-dialog/IDialogPropTypes.js ***!
  36820. \**************************************************/
  36821. /*! exports provided: default */
  36822. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36823. "use strict";
  36824. __webpack_require__.r(__webpack_exports__);
  36825. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  36826. function IDialogPropTypes() {
  36827. return {
  36828. keyboard: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36829. mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36830. afterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  36831. // onClose: PropTypes. (e: SyntheticEvent<HTMLDivElement>) =>any,
  36832. closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36833. maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36834. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36835. destroyOnClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36836. mousePosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].shape({
  36837. x: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  36838. y: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number
  36839. }).loose,
  36840. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  36841. footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  36842. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  36843. maskTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  36844. animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  36845. maskAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  36846. wrapStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  36847. bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  36848. maskStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  36849. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  36850. wrapClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  36851. width: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
  36852. height: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
  36853. zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  36854. bodyProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  36855. maskProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  36856. wrapProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  36857. getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  36858. dialogStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
  36859. return {};
  36860. }),
  36861. dialogClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def(''),
  36862. closeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  36863. forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36864. getOpenCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  36865. // https://github.com/ant-design/ant-design/issues/19771
  36866. // https://github.com/react-component/dialog/issues/95
  36867. focusTriggerAfterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
  36868. };
  36869. }
  36870. /* harmony default export */ __webpack_exports__["default"] = (IDialogPropTypes);
  36871. /***/ }),
  36872. /***/ "./components/vc-dialog/LazyRenderBox.jsx":
  36873. /*!************************************************!*\
  36874. !*** ./components/vc-dialog/LazyRenderBox.jsx ***!
  36875. \************************************************/
  36876. /*! exports provided: default */
  36877. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36878. "use strict";
  36879. __webpack_require__.r(__webpack_exports__);
  36880. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  36881. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  36882. var ILazyRenderBoxPropTypes = {
  36883. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  36884. hiddenClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  36885. forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
  36886. };
  36887. /* harmony default export */ __webpack_exports__["default"] = ({
  36888. props: ILazyRenderBoxPropTypes,
  36889. render: function render() {
  36890. var h = arguments[0];
  36891. return h(
  36892. 'div',
  36893. { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getListeners"])(this) },
  36894. [this.$slots['default']]
  36895. );
  36896. }
  36897. });
  36898. /***/ }),
  36899. /***/ "./components/vc-dialog/index.js":
  36900. /*!***************************************!*\
  36901. !*** ./components/vc-dialog/index.js ***!
  36902. \***************************************/
  36903. /*! exports provided: default */
  36904. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36905. "use strict";
  36906. __webpack_require__.r(__webpack_exports__);
  36907. /* harmony import */ var _DialogWrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DialogWrap */ "./components/vc-dialog/DialogWrap.jsx");
  36908. // based on vc-dialog 7.5.14
  36909. /* harmony default export */ __webpack_exports__["default"] = (_DialogWrap__WEBPACK_IMPORTED_MODULE_0__["default"]);
  36910. /***/ }),
  36911. /***/ "./components/vc-drawer/src/Drawer.js":
  36912. /*!********************************************!*\
  36913. !*** ./components/vc-drawer/src/Drawer.js ***!
  36914. \********************************************/
  36915. /*! exports provided: default */
  36916. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  36917. "use strict";
  36918. __webpack_require__.r(__webpack_exports__);
  36919. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  36920. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  36921. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  36922. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  36923. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  36924. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
  36925. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  36926. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
  36927. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  36928. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
  36929. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "vue");
  36930. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_5__);
  36931. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  36932. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_6__);
  36933. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  36934. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  36935. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  36936. /* harmony import */ var _util_getScrollBarSize__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../_util/getScrollBarSize */ "./components/_util/getScrollBarSize.js");
  36937. /* harmony import */ var _IDrawerPropTypes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./IDrawerPropTypes */ "./components/vc-drawer/src/IDrawerPropTypes.js");
  36938. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
  36939. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ "./components/vc-drawer/src/utils.js");
  36940. /* harmony import */ var _util_Portal__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../_util/Portal */ "./components/_util/Portal.js");
  36941. function noop() {}
  36942. var currentDrawer = {};
  36943. var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
  36944. vue__WEBPACK_IMPORTED_MODULE_5___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_6___default.a, { name: 'ant-ref' });
  36945. var Drawer = {
  36946. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
  36947. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["initDefaultProps"])(_IDrawerPropTypes__WEBPACK_IMPORTED_MODULE_11__["IDrawerProps"], {
  36948. prefixCls: 'drawer',
  36949. placement: 'left',
  36950. getContainer: 'body',
  36951. level: 'all',
  36952. duration: '.3s',
  36953. ease: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',
  36954. firstEnter: false, // 记录首次进入.
  36955. showMask: true,
  36956. handler: true,
  36957. maskStyle: {},
  36958. wrapperClassName: '',
  36959. className: ''
  36960. }),
  36961. data: function data() {
  36962. this.levelDom = [];
  36963. this.contentDom = null;
  36964. this.maskDom = null;
  36965. this.handlerdom = null;
  36966. this.mousePos = null;
  36967. this.sFirstEnter = this.firstEnter;
  36968. this.timeout = null;
  36969. this.children = null;
  36970. this.drawerId = Number((Date.now() + Math.random()).toString().replace('.', Math.round(Math.random() * 9))).toString(16);
  36971. var open = this.open !== undefined ? this.open : !!this.defaultOpen;
  36972. currentDrawer[this.drawerId] = open;
  36973. this.orignalOpen = this.open;
  36974. this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, this.$props);
  36975. return {
  36976. sOpen: open
  36977. };
  36978. },
  36979. mounted: function mounted() {
  36980. var _this = this;
  36981. this.$nextTick(function () {
  36982. if (!windowIsUndefined) {
  36983. var passiveSupported = false;
  36984. window.addEventListener('test', null, Object.defineProperty({}, 'passive', {
  36985. get: function get() {
  36986. passiveSupported = true;
  36987. return null;
  36988. }
  36989. }));
  36990. _this.passive = passiveSupported ? { passive: false } : false;
  36991. }
  36992. var open = _this.getOpen();
  36993. if (_this.handler || open || _this.sFirstEnter) {
  36994. _this.getDefault(_this.$props);
  36995. if (open) {
  36996. _this.isOpenChange = true;
  36997. _this.$nextTick(function () {
  36998. _this.domFocus();
  36999. });
  37000. }
  37001. _this.$forceUpdate();
  37002. }
  37003. });
  37004. },
  37005. watch: {
  37006. open: function (_open) {
  37007. function open(_x) {
  37008. return _open.apply(this, arguments);
  37009. }
  37010. open.toString = function () {
  37011. return _open.toString();
  37012. };
  37013. return open;
  37014. }(function (val) {
  37015. var _this2 = this;
  37016. if (val !== undefined && val !== this.preProps.open) {
  37017. this.isOpenChange = true;
  37018. // 没渲染 dom 时,获取默认数据;
  37019. if (!this.container) {
  37020. this.getDefault(this.$props);
  37021. }
  37022. this.setState({
  37023. sOpen: open
  37024. });
  37025. }
  37026. this.preProps.open = val;
  37027. if (val) {
  37028. this.$nextTick(function () {
  37029. _this2.domFocus();
  37030. });
  37031. }
  37032. }),
  37033. placement: function placement(val) {
  37034. if (val !== this.preProps.placement) {
  37035. // test 的 bug, 有动画过场,删除 dom
  37036. this.contentDom = null;
  37037. }
  37038. this.preProps.placement = val;
  37039. },
  37040. level: function level(val) {
  37041. if (this.preProps.level !== val) {
  37042. this.getParentAndLevelDom(this.$props);
  37043. }
  37044. this.preProps.level = val;
  37045. }
  37046. },
  37047. updated: function updated() {
  37048. var _this3 = this;
  37049. this.$nextTick(function () {
  37050. // dom 没渲染时,重走一遍。
  37051. if (!_this3.sFirstEnter && _this3.container) {
  37052. _this3.$forceUpdate();
  37053. _this3.sFirstEnter = true;
  37054. }
  37055. });
  37056. },
  37057. beforeDestroy: function beforeDestroy() {
  37058. delete currentDrawer[this.drawerId];
  37059. delete this.isOpenChange;
  37060. if (this.container) {
  37061. if (this.sOpen) {
  37062. this.setLevelDomTransform(false, true);
  37063. }
  37064. document.body.style.overflow = '';
  37065. }
  37066. this.sFirstEnter = false;
  37067. clearTimeout(this.timeout);
  37068. },
  37069. methods: {
  37070. domFocus: function domFocus() {
  37071. if (this.dom) {
  37072. this.dom.focus();
  37073. }
  37074. },
  37075. onKeyDown: function onKeyDown(e) {
  37076. if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_12__["default"].ESC) {
  37077. e.stopPropagation();
  37078. this.$emit('close', e);
  37079. }
  37080. },
  37081. onMaskTouchEnd: function onMaskTouchEnd(e) {
  37082. this.$emit('close', e);
  37083. this.onTouchEnd(e, true);
  37084. },
  37085. onIconTouchEnd: function onIconTouchEnd(e) {
  37086. this.$emit('handleClick', e);
  37087. this.onTouchEnd(e);
  37088. },
  37089. onTouchEnd: function onTouchEnd(e, close) {
  37090. if (this.open !== undefined) {
  37091. return;
  37092. }
  37093. var open = close || this.sOpen;
  37094. this.isOpenChange = true;
  37095. this.setState({
  37096. sOpen: !open
  37097. });
  37098. },
  37099. onWrapperTransitionEnd: function onWrapperTransitionEnd(e) {
  37100. if (e.target === this.contentWrapper && e.propertyName.match(/transform$/)) {
  37101. var _open2 = this.getOpen();
  37102. this.dom.style.transition = '';
  37103. if (!_open2 && this.getCurrentDrawerSome()) {
  37104. document.body.style.overflowX = '';
  37105. if (this.maskDom) {
  37106. this.maskDom.style.left = '';
  37107. this.maskDom.style.width = '';
  37108. }
  37109. }
  37110. if (this.afterVisibleChange) {
  37111. this.afterVisibleChange(!!_open2);
  37112. }
  37113. }
  37114. },
  37115. getDefault: function getDefault(props) {
  37116. this.getParentAndLevelDom(props);
  37117. if (props.getContainer || props.parent) {
  37118. this.container = this.defaultGetContainer();
  37119. }
  37120. },
  37121. getCurrentDrawerSome: function getCurrentDrawerSome() {
  37122. return !Object.keys(currentDrawer).some(function (key) {
  37123. return currentDrawer[key];
  37124. });
  37125. },
  37126. getSelfContainer: function getSelfContainer() {
  37127. return this.container;
  37128. },
  37129. getParentAndLevelDom: function getParentAndLevelDom(props) {
  37130. var _this4 = this;
  37131. if (windowIsUndefined) {
  37132. return;
  37133. }
  37134. var level = props.level,
  37135. getContainer = props.getContainer;
  37136. this.levelDom = [];
  37137. if (getContainer) {
  37138. if (typeof getContainer === 'string') {
  37139. var dom = document.querySelectorAll(getContainer)[0];
  37140. this.parent = dom;
  37141. }
  37142. if (typeof getContainer === 'function') {
  37143. this.parent = getContainer();
  37144. }
  37145. if ((typeof getContainer === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(getContainer)) === 'object' && getContainer instanceof window.HTMLElement) {
  37146. this.parent = getContainer;
  37147. }
  37148. }
  37149. if (!getContainer && this.container) {
  37150. this.parent = this.container.parentNode;
  37151. }
  37152. if (level === 'all') {
  37153. var children = Array.prototype.slice.call(this.parent.children);
  37154. children.forEach(function (child) {
  37155. if (child.nodeName !== 'SCRIPT' && child.nodeName !== 'STYLE' && child.nodeName !== 'LINK' && child !== _this4.container) {
  37156. _this4.levelDom.push(child);
  37157. }
  37158. });
  37159. } else if (level) {
  37160. Object(_utils__WEBPACK_IMPORTED_MODULE_13__["dataToArray"])(level).forEach(function (key) {
  37161. document.querySelectorAll(key).forEach(function (item) {
  37162. _this4.levelDom.push(item);
  37163. });
  37164. });
  37165. }
  37166. },
  37167. setLevelDomTransform: function setLevelDomTransform(open, openTransition, placementName, value) {
  37168. var _this5 = this;
  37169. var _$props = this.$props,
  37170. placement = _$props.placement,
  37171. levelMove = _$props.levelMove,
  37172. duration = _$props.duration,
  37173. ease = _$props.ease,
  37174. getContainer = _$props.getContainer;
  37175. if (!windowIsUndefined) {
  37176. this.levelDom.forEach(function (dom) {
  37177. if (_this5.isOpenChange || openTransition) {
  37178. /* eslint no-param-reassign: "error" */
  37179. dom.style.transition = 'transform ' + duration + ' ' + ease;
  37180. Object(_utils__WEBPACK_IMPORTED_MODULE_13__["addEventListener"])(dom, _utils__WEBPACK_IMPORTED_MODULE_13__["transitionEnd"], _this5.trnasitionEnd);
  37181. var levelValue = open ? value : 0;
  37182. if (levelMove) {
  37183. var $levelMove = Object(_utils__WEBPACK_IMPORTED_MODULE_13__["transformArguments"])(levelMove, { target: dom, open: open });
  37184. levelValue = open ? $levelMove[0] : $levelMove[1] || 0;
  37185. }
  37186. var $value = typeof levelValue === 'number' ? levelValue + 'px' : levelValue;
  37187. var placementPos = placement === 'left' || placement === 'top' ? $value : '-' + $value;
  37188. dom.style.transform = levelValue ? placementName + '(' + placementPos + ')' : '';
  37189. dom.style.msTransform = levelValue ? placementName + '(' + placementPos + ')' : '';
  37190. }
  37191. });
  37192. // 处理 body 滚动
  37193. if (getContainer === 'body') {
  37194. var eventArray = ['touchstart'];
  37195. var domArray = [document.body, this.maskDom, this.handlerdom, this.contentDom];
  37196. var right = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? Object(_util_getScrollBarSize__WEBPACK_IMPORTED_MODULE_10__["default"])(1) : 0;
  37197. var widthTransition = 'width ' + duration + ' ' + ease;
  37198. var trannsformTransition = 'transform ' + duration + ' ' + ease;
  37199. if (open && document.body.style.overflow !== 'hidden') {
  37200. document.body.style.overflow = 'hidden';
  37201. if (right) {
  37202. document.body.style.position = 'relative';
  37203. document.body.style.width = 'calc(100% - ' + right + 'px)';
  37204. this.dom.style.transition = 'none';
  37205. switch (placement) {
  37206. case 'right':
  37207. this.dom.style.transform = 'translateX(-' + right + 'px)';
  37208. this.dom.style.msTransform = 'translateX(-' + right + 'px)';
  37209. break;
  37210. case 'top':
  37211. case 'bottom':
  37212. this.dom.style.width = 'calc(100% - ' + right + 'px)';
  37213. this.dom.style.transform = 'translateZ(0)';
  37214. break;
  37215. default:
  37216. break;
  37217. }
  37218. clearTimeout(this.timeout);
  37219. this.timeout = setTimeout(function () {
  37220. _this5.dom.style.transition = trannsformTransition + ',' + widthTransition;
  37221. _this5.dom.style.width = '';
  37222. _this5.dom.style.transform = '';
  37223. _this5.dom.style.msTransform = '';
  37224. });
  37225. }
  37226. // 手机禁滚
  37227. domArray.forEach(function (item, i) {
  37228. if (!item) {
  37229. return;
  37230. }
  37231. Object(_utils__WEBPACK_IMPORTED_MODULE_13__["addEventListener"])(item, eventArray[i] || 'touchmove', i ? _this5.removeMoveHandler : _this5.removeStartHandler, _this5.passive);
  37232. });
  37233. } else if (this.getCurrentDrawerSome()) {
  37234. document.body.style.overflow = '';
  37235. if ((this.isOpenChange || openTransition) && right) {
  37236. document.body.style.position = '';
  37237. document.body.style.width = '';
  37238. if (_utils__WEBPACK_IMPORTED_MODULE_13__["transitionStr"]) {
  37239. document.body.style.overflowX = 'hidden';
  37240. }
  37241. this.dom.style.transition = 'none';
  37242. var heightTransition = void 0;
  37243. switch (placement) {
  37244. case 'right':
  37245. {
  37246. this.dom.style.transform = 'translateX(' + right + 'px)';
  37247. this.dom.style.msTransform = 'translateX(' + right + 'px)';
  37248. this.dom.style.width = '100%';
  37249. widthTransition = 'width 0s ' + ease + ' ' + duration;
  37250. if (this.maskDom) {
  37251. this.maskDom.style.left = '-' + right + 'px';
  37252. this.maskDom.style.width = 'calc(100% + ' + right + 'px)';
  37253. }
  37254. break;
  37255. }
  37256. case 'top':
  37257. case 'bottom':
  37258. {
  37259. this.dom.style.width = 'calc(100% + ' + right + 'px)';
  37260. this.dom.style.height = '100%';
  37261. this.dom.style.transform = 'translateZ(0)';
  37262. heightTransition = 'height 0s ' + ease + ' ' + duration;
  37263. break;
  37264. }
  37265. default:
  37266. break;
  37267. }
  37268. clearTimeout(this.timeout);
  37269. this.timeout = setTimeout(function () {
  37270. _this5.dom.style.transition = trannsformTransition + ',' + (heightTransition ? heightTransition + ',' : '') + widthTransition;
  37271. _this5.dom.style.transform = '';
  37272. _this5.dom.style.msTransform = '';
  37273. _this5.dom.style.width = '';
  37274. _this5.dom.style.height = '';
  37275. });
  37276. }
  37277. domArray.forEach(function (item, i) {
  37278. if (!item) {
  37279. return;
  37280. }
  37281. Object(_utils__WEBPACK_IMPORTED_MODULE_13__["removeEventListener"])(item, eventArray[i] || 'touchmove', i ? _this5.removeMoveHandler : _this5.removeStartHandler, _this5.passive);
  37282. });
  37283. }
  37284. }
  37285. }
  37286. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this),
  37287. change = _getListeners.change;
  37288. if (change && this.isOpenChange && this.sFirstEnter) {
  37289. change(open);
  37290. this.isOpenChange = false;
  37291. }
  37292. },
  37293. getChildToRender: function getChildToRender(open) {
  37294. var _classnames,
  37295. _this6 = this;
  37296. var h = this.$createElement;
  37297. var _$props2 = this.$props,
  37298. className = _$props2.className,
  37299. prefixCls = _$props2.prefixCls,
  37300. placement = _$props2.placement,
  37301. handler = _$props2.handler,
  37302. showMask = _$props2.showMask,
  37303. maskStyle = _$props2.maskStyle,
  37304. width = _$props2.width,
  37305. height = _$props2.height,
  37306. wrapStyle = _$props2.wrapStyle,
  37307. keyboard = _$props2.keyboard,
  37308. maskClosable = _$props2.maskClosable;
  37309. var children = this.$slots['default'];
  37310. var wrapperClassname = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, (_classnames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, prefixCls + '-' + placement, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, prefixCls + '-open', open), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, className, !!className), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, 'no-mask', !showMask), _classnames));
  37311. var isOpenChange = this.isOpenChange;
  37312. var isHorizontal = placement === 'left' || placement === 'right';
  37313. var placementName = 'translate' + (isHorizontal ? 'X' : 'Y');
  37314. // 百分比与像素动画不同步,第一次打用后全用像素动画。
  37315. // const defaultValue = !this.contentDom || !level ? '100%' : `${value}px`;
  37316. var placementPos = placement === 'left' || placement === 'top' ? '-100%' : '100%';
  37317. var transform = open ? '' : placementName + '(' + placementPos + ')';
  37318. if (isOpenChange === undefined || isOpenChange) {
  37319. var contentValue = this.contentDom ? this.contentDom.getBoundingClientRect()[isHorizontal ? 'width' : 'height'] : 0;
  37320. var value = (isHorizontal ? width : height) || contentValue;
  37321. this.setLevelDomTransform(open, false, placementName, value);
  37322. }
  37323. var handlerChildren = void 0;
  37324. if (handler !== false) {
  37325. var handlerDefalut = h(
  37326. 'div',
  37327. { 'class': 'drawer-handle' },
  37328. [h('i', { 'class': 'drawer-handle-icon' })]
  37329. );
  37330. var handlerSlot = this.handler;
  37331. var handlerSlotVnode = handlerSlot && handlerSlot[0] || handlerDefalut;
  37332. var _getEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getEvents"])(handlerSlotVnode),
  37333. handleIconClick = _getEvents.click;
  37334. handlerChildren = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_9__["cloneElement"])(handlerSlotVnode, {
  37335. on: {
  37336. click: function click(e) {
  37337. handleIconClick && handleIconClick();
  37338. _this6.onIconTouchEnd(e);
  37339. }
  37340. },
  37341. directives: [{
  37342. name: 'ant-ref',
  37343. value: function value(c) {
  37344. _this6.handlerdom = c;
  37345. }
  37346. }]
  37347. });
  37348. }
  37349. var domContProps = {
  37350. 'class': wrapperClassname,
  37351. directives: [{
  37352. name: 'ant-ref',
  37353. value: function value(c) {
  37354. _this6.dom = c;
  37355. }
  37356. }],
  37357. on: {
  37358. transitionend: this.onWrapperTransitionEnd,
  37359. keydown: open && keyboard ? this.onKeyDown : noop
  37360. },
  37361. style: wrapStyle
  37362. };
  37363. var directivesMaskDom = [{
  37364. name: 'ant-ref',
  37365. value: function value(c) {
  37366. _this6.maskDom = c;
  37367. }
  37368. }];
  37369. var directivesContentWrapper = [{
  37370. name: 'ant-ref',
  37371. value: function value(c) {
  37372. _this6.contentWrapper = c;
  37373. }
  37374. }];
  37375. var directivesContentDom = [{
  37376. name: 'ant-ref',
  37377. value: function value(c) {
  37378. _this6.contentDom = c;
  37379. }
  37380. }];
  37381. return h(
  37382. 'div',
  37383. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([domContProps, {
  37384. attrs: { tabIndex: -1 }
  37385. }]),
  37386. [showMask && h('div', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  37387. key: open // 第二次渲染时虚拟DOM没有改变,没有出发dom更新,使用key强制更新 https://github.com/vueComponent/ant-design-vue/issues/2407
  37388. , 'class': prefixCls + '-mask',
  37389. on: {
  37390. 'click': maskClosable ? this.onMaskTouchEnd : noop
  37391. },
  37392. style: maskStyle
  37393. }, { directives: directivesMaskDom }])), h(
  37394. 'div',
  37395. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  37396. 'class': prefixCls + '-content-wrapper',
  37397. style: {
  37398. transform: transform,
  37399. msTransform: transform,
  37400. width: Object(_utils__WEBPACK_IMPORTED_MODULE_13__["isNumeric"])(width) ? width + 'px' : width,
  37401. height: Object(_utils__WEBPACK_IMPORTED_MODULE_13__["isNumeric"])(height) ? height + 'px' : height
  37402. }
  37403. }, { directives: directivesContentWrapper }]),
  37404. [h(
  37405. 'div',
  37406. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  37407. 'class': prefixCls + '-content'
  37408. }, { directives: directivesContentDom }, {
  37409. on: {
  37410. 'touchstart': open ? this.removeStartHandler : noop,
  37411. 'touchmove': open ? this.removeMoveHandler : noop
  37412. }
  37413. }]),
  37414. [children]
  37415. ), handlerChildren]
  37416. )]
  37417. );
  37418. },
  37419. getOpen: function getOpen() {
  37420. return this.open !== undefined ? this.open : this.sOpen;
  37421. },
  37422. getTouchParentScroll: function getTouchParentScroll(root, currentTarget, differX, differY) {
  37423. if (!currentTarget || currentTarget === document) {
  37424. return false;
  37425. }
  37426. // root 为 drawer-content 设定了 overflow, 判断为 root 的 parent 时结束滚动;
  37427. if (currentTarget === root.parentNode) {
  37428. return true;
  37429. }
  37430. var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY);
  37431. var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX);
  37432. var scrollY = currentTarget.scrollHeight - currentTarget.clientHeight;
  37433. var scrollX = currentTarget.scrollWidth - currentTarget.clientWidth;
  37434. /**
  37435. * <div style="height: 300px">
  37436. * <div style="height: 900px"></div>
  37437. * </div>
  37438. * 在没设定 overflow: auto 或 scroll 时,currentTarget 里获取不到 scrollTop 或 scrollLeft,
  37439. * 预先用 scrollTo 来滚动,如果取出的值跟滚动前取出不同,则 currnetTarget 被设定了 overflow; 否则就是上面这种。
  37440. */
  37441. var t = currentTarget.scrollTop;
  37442. var l = currentTarget.scrollLeft;
  37443. if (currentTarget.scrollTo) {
  37444. currentTarget.scrollTo(currentTarget.scrollLeft + 1, currentTarget.scrollTop + 1);
  37445. }
  37446. var currentT = currentTarget.scrollTop;
  37447. var currentL = currentTarget.scrollLeft;
  37448. if (currentTarget.scrollTo) {
  37449. currentTarget.scrollTo(currentTarget.scrollLeft - 1, currentTarget.scrollTop - 1);
  37450. }
  37451. if (isY && (!scrollY || !(currentT - t) || scrollY && (currentTarget.scrollTop >= scrollY && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0)) || isX && (!scrollX || !(currentL - l) || scrollX && (currentTarget.scrollLeft >= scrollX && differX < 0 || currentTarget.scrollLeft <= 0 && differX > 0))) {
  37452. return this.getTouchParentScroll(root, currentTarget.parentNode, differX, differY);
  37453. }
  37454. return false;
  37455. },
  37456. removeStartHandler: function removeStartHandler(e) {
  37457. if (e.touches.length > 1) {
  37458. return;
  37459. }
  37460. this.startPos = {
  37461. x: e.touches[0].clientX,
  37462. y: e.touches[0].clientY
  37463. };
  37464. },
  37465. removeMoveHandler: function removeMoveHandler(e) {
  37466. if (e.changedTouches.length > 1) {
  37467. return;
  37468. }
  37469. var currentTarget = e.currentTarget;
  37470. var differX = e.changedTouches[0].clientX - this.startPos.x;
  37471. var differY = e.changedTouches[0].clientY - this.startPos.y;
  37472. if (currentTarget === this.maskDom || currentTarget === this.handlerdom || currentTarget === this.contentDom && this.getTouchParentScroll(currentTarget, e.target, differX, differY)) {
  37473. e.preventDefault();
  37474. }
  37475. },
  37476. trnasitionEnd: function trnasitionEnd(e) {
  37477. Object(_utils__WEBPACK_IMPORTED_MODULE_13__["removeEventListener"])(e.target, _utils__WEBPACK_IMPORTED_MODULE_13__["transitionEnd"], this.trnasitionEnd);
  37478. e.target.style.transition = '';
  37479. },
  37480. defaultGetContainer: function defaultGetContainer() {
  37481. if (windowIsUndefined) {
  37482. return null;
  37483. }
  37484. var container = document.createElement('div');
  37485. this.parent.appendChild(container);
  37486. if (this.wrapperClassName) {
  37487. container.className = this.wrapperClassName;
  37488. }
  37489. return container;
  37490. }
  37491. },
  37492. render: function render() {
  37493. var _this7 = this;
  37494. var h = arguments[0];
  37495. var _$props3 = this.$props,
  37496. getContainer = _$props3.getContainer,
  37497. wrapperClassName = _$props3.wrapperClassName,
  37498. handler = _$props3.handler,
  37499. forceRender = _$props3.forceRender;
  37500. var open = this.getOpen();
  37501. var portal = null;
  37502. currentDrawer[this.drawerId] = open ? this.container : open;
  37503. var children = this.getChildToRender(this.sFirstEnter ? open : false);
  37504. if (!getContainer) {
  37505. var directives = [{
  37506. name: 'ant-ref',
  37507. value: function value(c) {
  37508. _this7.container = c;
  37509. }
  37510. }];
  37511. return h(
  37512. 'div',
  37513. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': wrapperClassName }, { directives: directives }]),
  37514. [children]
  37515. );
  37516. }
  37517. if (!this.container || !open && !this.sFirstEnter) {
  37518. return null;
  37519. }
  37520. // 如果有 handler 为内置强制渲染;
  37521. var $forceRender = !!handler || forceRender;
  37522. if ($forceRender || open || this.dom) {
  37523. portal = h(_util_Portal__WEBPACK_IMPORTED_MODULE_14__["default"], {
  37524. attrs: { getContainer: this.getSelfContainer, children: children }
  37525. });
  37526. }
  37527. return portal;
  37528. }
  37529. };
  37530. /* harmony default export */ __webpack_exports__["default"] = (Drawer);
  37531. /***/ }),
  37532. /***/ "./components/vc-drawer/src/IDrawerPropTypes.js":
  37533. /*!******************************************************!*\
  37534. !*** ./components/vc-drawer/src/IDrawerPropTypes.js ***!
  37535. \******************************************************/
  37536. /*! exports provided: IDrawerProps, IDrawerChildProps */
  37537. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37538. "use strict";
  37539. __webpack_require__.r(__webpack_exports__);
  37540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IDrawerProps", function() { return IDrawerProps; });
  37541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IDrawerChildProps", function() { return IDrawerChildProps; });
  37542. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  37543. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  37544. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  37545. var IProps = {
  37546. width: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  37547. height: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  37548. defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  37549. firstEnter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  37550. open: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  37551. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  37552. placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  37553. level: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array]),
  37554. levelMove: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array]),
  37555. ease: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  37556. duration: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  37557. handler: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  37558. showMask: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  37559. maskStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  37560. className: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  37561. wrapStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  37562. maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  37563. afterVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  37564. keyboard: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
  37565. };
  37566. var IDrawerProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, IProps, {
  37567. wrapperClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  37568. forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  37569. getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool])
  37570. });
  37571. var IDrawerChildProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, IProps, {
  37572. getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  37573. getOpenCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  37574. switchScrollingEffect: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  37575. });
  37576. /***/ }),
  37577. /***/ "./components/vc-drawer/src/index.js":
  37578. /*!*******************************************!*\
  37579. !*** ./components/vc-drawer/src/index.js ***!
  37580. \*******************************************/
  37581. /*! exports provided: default */
  37582. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37583. "use strict";
  37584. __webpack_require__.r(__webpack_exports__);
  37585. /* harmony import */ var _Drawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Drawer */ "./components/vc-drawer/src/Drawer.js");
  37586. // base in 1.7.7
  37587. // export this package's api
  37588. /* harmony default export */ __webpack_exports__["default"] = (_Drawer__WEBPACK_IMPORTED_MODULE_0__["default"]);
  37589. /***/ }),
  37590. /***/ "./components/vc-drawer/src/utils.js":
  37591. /*!*******************************************!*\
  37592. !*** ./components/vc-drawer/src/utils.js ***!
  37593. \*******************************************/
  37594. /*! exports provided: dataToArray, transitionStr, transitionEnd, addEventListener, removeEventListener, transformArguments, isNumeric, windowIsUndefined, getTouchParentScroll */
  37595. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37596. "use strict";
  37597. __webpack_require__.r(__webpack_exports__);
  37598. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataToArray", function() { return dataToArray; });
  37599. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transitionStr", function() { return transitionStr; });
  37600. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transitionEnd", function() { return transitionEnd; });
  37601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addEventListener", function() { return addEventListener; });
  37602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeEventListener", function() { return removeEventListener; });
  37603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transformArguments", function() { return transformArguments; });
  37604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNumeric", function() { return isNumeric; });
  37605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "windowIsUndefined", function() { return windowIsUndefined; });
  37606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTouchParentScroll", function() { return getTouchParentScroll; });
  37607. function dataToArray(vars) {
  37608. if (Array.isArray(vars)) {
  37609. return vars;
  37610. }
  37611. return [vars];
  37612. }
  37613. var transitionEndObject = {
  37614. transition: 'transitionend',
  37615. WebkitTransition: 'webkitTransitionEnd',
  37616. MozTransition: 'transitionend',
  37617. OTransition: 'oTransitionEnd otransitionend'
  37618. };
  37619. var transitionStr = Object.keys(transitionEndObject).filter(function (key) {
  37620. if (typeof document === 'undefined') {
  37621. return false;
  37622. }
  37623. var html = document.getElementsByTagName('html')[0];
  37624. return key in (html ? html.style : {});
  37625. })[0];
  37626. var transitionEnd = transitionEndObject[transitionStr];
  37627. function addEventListener(target, eventType, callback, options) {
  37628. if (target.addEventListener) {
  37629. target.addEventListener(eventType, callback, options);
  37630. } else if (target.attachEvent) {
  37631. target.attachEvent('on' + eventType, callback);
  37632. }
  37633. }
  37634. function removeEventListener(target, eventType, callback, options) {
  37635. if (target.removeEventListener) {
  37636. target.removeEventListener(eventType, callback, options);
  37637. } else if (target.attachEvent) {
  37638. target.detachEvent('on' + eventType, callback);
  37639. }
  37640. }
  37641. function transformArguments(arg, cb) {
  37642. var result = void 0;
  37643. if (typeof arg === 'function') {
  37644. result = arg(cb);
  37645. } else {
  37646. result = arg;
  37647. }
  37648. if (Array.isArray(result)) {
  37649. if (result.length === 2) {
  37650. return result;
  37651. }
  37652. return [result[0], result[1]];
  37653. }
  37654. return [result];
  37655. }
  37656. var isNumeric = function isNumeric(value) {
  37657. return !isNaN(parseFloat(value)) && isFinite(value); // eslint-disable-line
  37658. };
  37659. var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
  37660. var getTouchParentScroll = function getTouchParentScroll(root, currentTarget, differX, differY) {
  37661. if (!currentTarget || currentTarget === document || currentTarget instanceof Document) {
  37662. return false;
  37663. }
  37664. // root 为 drawer-content 设定了 overflow, 判断为 root 的 parent 时结束滚动;
  37665. if (currentTarget === root.parentNode) {
  37666. return true;
  37667. }
  37668. var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY);
  37669. var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX);
  37670. var scrollY = currentTarget.scrollHeight - currentTarget.clientHeight;
  37671. var scrollX = currentTarget.scrollWidth - currentTarget.clientWidth;
  37672. var style = document.defaultView.getComputedStyle(currentTarget);
  37673. var overflowY = style.overflowY === 'auto' || style.overflowY === 'scroll';
  37674. var overflowX = style.overflowX === 'auto' || style.overflowX === 'scroll';
  37675. var y = scrollY && overflowY;
  37676. var x = scrollX && overflowX;
  37677. if (isY && (!y || y && (currentTarget.scrollTop >= scrollY && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0)) || isX && (!x || x && (currentTarget.scrollLeft >= scrollX && scrollX < 0 || currentTarget.scrollLeft <= 0 && scrollX > 0))) {
  37678. return getTouchParentScroll(root, currentTarget.parentNode, differX, differY);
  37679. }
  37680. return false;
  37681. };
  37682. /***/ }),
  37683. /***/ "./components/vc-dropdown/src/Dropdown.jsx":
  37684. /*!*************************************************!*\
  37685. !*** ./components/vc-dropdown/src/Dropdown.jsx ***!
  37686. \*************************************************/
  37687. /*! exports provided: default */
  37688. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37689. "use strict";
  37690. __webpack_require__.r(__webpack_exports__);
  37691. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  37692. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  37693. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  37694. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  37695. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  37696. /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../vc-trigger */ "./components/vc-trigger/index.js");
  37697. /* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placements */ "./components/vc-dropdown/src/placements.js");
  37698. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  37699. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  37700. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  37701. /* harmony default export */ __webpack_exports__["default"] = ({
  37702. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
  37703. props: {
  37704. minOverlayWidthMatchTrigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  37705. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc-dropdown'),
  37706. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  37707. overlayClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def(''),
  37708. openClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  37709. animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  37710. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  37711. overlayStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.def(function () {
  37712. return {};
  37713. }),
  37714. placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('bottomLeft'),
  37715. overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  37716. trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def(['hover']),
  37717. alignPoint: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  37718. showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def([]),
  37719. hideAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def([]),
  37720. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  37721. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  37722. defaultVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
  37723. mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0.15),
  37724. mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0.1)
  37725. },
  37726. data: function data() {
  37727. var sVisible = this.defaultVisible;
  37728. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'visible')) {
  37729. sVisible = this.visible;
  37730. }
  37731. return {
  37732. sVisible: sVisible
  37733. };
  37734. },
  37735. watch: {
  37736. visible: function visible(val) {
  37737. if (val !== undefined) {
  37738. this.setState({
  37739. sVisible: val
  37740. });
  37741. }
  37742. }
  37743. },
  37744. methods: {
  37745. onClick: function onClick(e) {
  37746. // do no call onVisibleChange, if you need click to hide, use onClick and control visible
  37747. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'visible')) {
  37748. this.setState({
  37749. sVisible: false
  37750. });
  37751. }
  37752. this.$emit('overlayClick', e);
  37753. if (this.childOriginEvents.click) {
  37754. this.childOriginEvents.click(e);
  37755. }
  37756. },
  37757. onVisibleChange: function onVisibleChange(visible) {
  37758. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'visible')) {
  37759. this.setState({
  37760. sVisible: visible
  37761. });
  37762. }
  37763. this.__emit('visibleChange', visible);
  37764. },
  37765. getMinOverlayWidthMatchTrigger: function getMinOverlayWidthMatchTrigger() {
  37766. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  37767. var minOverlayWidthMatchTrigger = props.minOverlayWidthMatchTrigger,
  37768. alignPoint = props.alignPoint;
  37769. if ('minOverlayWidthMatchTrigger' in props) {
  37770. return minOverlayWidthMatchTrigger;
  37771. }
  37772. return !alignPoint;
  37773. },
  37774. getOverlayElement: function getOverlayElement() {
  37775. var overlay = this.overlay || this.$slots.overlay || this.$scopedSlots.overlay;
  37776. var overlayElement = void 0;
  37777. if (typeof overlay === 'function') {
  37778. overlayElement = overlay();
  37779. } else {
  37780. overlayElement = overlay;
  37781. }
  37782. return overlayElement;
  37783. },
  37784. getMenuElement: function getMenuElement() {
  37785. var _this = this;
  37786. var onClick = this.onClick,
  37787. prefixCls = this.prefixCls,
  37788. $slots = this.$slots;
  37789. this.childOriginEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getEvents"])($slots.overlay[0]);
  37790. var overlayElement = this.getOverlayElement();
  37791. var extraOverlayProps = {
  37792. props: {
  37793. prefixCls: prefixCls + '-menu',
  37794. getPopupContainer: function getPopupContainer() {
  37795. return _this.getPopupDomNode();
  37796. }
  37797. },
  37798. on: {
  37799. click: onClick
  37800. }
  37801. };
  37802. if (typeof overlayElement.type === 'string') {
  37803. delete extraOverlayProps.props.prefixCls;
  37804. }
  37805. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])($slots.overlay[0], extraOverlayProps);
  37806. },
  37807. getMenuElementOrLambda: function getMenuElementOrLambda() {
  37808. var overlay = this.overlay || this.$slots.overlay || this.$scopedSlots.overlay;
  37809. if (typeof overlay === 'function') {
  37810. return this.getMenuElement;
  37811. }
  37812. return this.getMenuElement();
  37813. },
  37814. getPopupDomNode: function getPopupDomNode() {
  37815. return this.$refs.trigger.getPopupDomNode();
  37816. },
  37817. getOpenClassName: function getOpenClassName() {
  37818. var _$props = this.$props,
  37819. openClassName = _$props.openClassName,
  37820. prefixCls = _$props.prefixCls;
  37821. if (openClassName !== undefined) {
  37822. return openClassName;
  37823. }
  37824. return prefixCls + '-open';
  37825. },
  37826. afterVisibleChange: function afterVisibleChange(visible) {
  37827. if (visible && this.getMinOverlayWidthMatchTrigger()) {
  37828. var overlayNode = this.getPopupDomNode();
  37829. var rootNode = this.$el;
  37830. if (rootNode && overlayNode && rootNode.offsetWidth > overlayNode.offsetWidth) {
  37831. overlayNode.style.minWidth = rootNode.offsetWidth + 'px';
  37832. if (this.$refs.trigger && this.$refs.trigger._component && this.$refs.trigger._component.$refs && this.$refs.trigger._component.$refs.alignInstance) {
  37833. this.$refs.trigger._component.$refs.alignInstance.forceAlign();
  37834. }
  37835. }
  37836. }
  37837. },
  37838. renderChildren: function renderChildren() {
  37839. var children = this.$slots['default'] && this.$slots['default'][0];
  37840. var sVisible = this.sVisible;
  37841. return sVisible && children ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(children, { 'class': this.getOpenClassName() }) : children;
  37842. }
  37843. },
  37844. render: function render() {
  37845. var h = arguments[0];
  37846. var _$props2 = this.$props,
  37847. prefixCls = _$props2.prefixCls,
  37848. transitionName = _$props2.transitionName,
  37849. animation = _$props2.animation,
  37850. align = _$props2.align,
  37851. placement = _$props2.placement,
  37852. getPopupContainer = _$props2.getPopupContainer,
  37853. showAction = _$props2.showAction,
  37854. hideAction = _$props2.hideAction,
  37855. overlayClassName = _$props2.overlayClassName,
  37856. overlayStyle = _$props2.overlayStyle,
  37857. trigger = _$props2.trigger,
  37858. otherProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_$props2, ['prefixCls', 'transitionName', 'animation', 'align', 'placement', 'getPopupContainer', 'showAction', 'hideAction', 'overlayClassName', 'overlayStyle', 'trigger']);
  37859. var triggerHideAction = hideAction;
  37860. if (!triggerHideAction && trigger.indexOf('contextmenu') !== -1) {
  37861. triggerHideAction = ['click'];
  37862. }
  37863. var triggerProps = {
  37864. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, otherProps, {
  37865. prefixCls: prefixCls,
  37866. popupClassName: overlayClassName,
  37867. popupStyle: overlayStyle,
  37868. builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_4__["default"],
  37869. action: trigger,
  37870. showAction: showAction,
  37871. hideAction: triggerHideAction || [],
  37872. popupPlacement: placement,
  37873. popupAlign: align,
  37874. popupTransitionName: transitionName,
  37875. popupAnimation: animation,
  37876. popupVisible: this.sVisible,
  37877. afterPopupVisibleChange: this.afterVisibleChange,
  37878. getPopupContainer: getPopupContainer
  37879. }),
  37880. on: {
  37881. popupVisibleChange: this.onVisibleChange
  37882. },
  37883. ref: 'trigger'
  37884. };
  37885. return h(
  37886. _vc_trigger__WEBPACK_IMPORTED_MODULE_3__["default"],
  37887. triggerProps,
  37888. [this.renderChildren(), h(
  37889. 'template',
  37890. { slot: 'popup' },
  37891. [this.$slots.overlay && this.getMenuElement()]
  37892. )]
  37893. );
  37894. }
  37895. });
  37896. /***/ }),
  37897. /***/ "./components/vc-dropdown/src/index.js":
  37898. /*!*********************************************!*\
  37899. !*** ./components/vc-dropdown/src/index.js ***!
  37900. \*********************************************/
  37901. /*! exports provided: default */
  37902. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37903. "use strict";
  37904. __webpack_require__.r(__webpack_exports__);
  37905. /* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Dropdown */ "./components/vc-dropdown/src/Dropdown.jsx");
  37906. // base in 2.4.1
  37907. /* harmony default export */ __webpack_exports__["default"] = (_Dropdown__WEBPACK_IMPORTED_MODULE_0__["default"]);
  37908. /***/ }),
  37909. /***/ "./components/vc-dropdown/src/placements.js":
  37910. /*!**************************************************!*\
  37911. !*** ./components/vc-dropdown/src/placements.js ***!
  37912. \**************************************************/
  37913. /*! exports provided: placements, default */
  37914. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37915. "use strict";
  37916. __webpack_require__.r(__webpack_exports__);
  37917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return placements; });
  37918. var autoAdjustOverflow = {
  37919. adjustX: 1,
  37920. adjustY: 1
  37921. };
  37922. var targetOffset = [0, 0];
  37923. var placements = {
  37924. topLeft: {
  37925. points: ['bl', 'tl'],
  37926. overflow: autoAdjustOverflow,
  37927. offset: [0, -4],
  37928. targetOffset: targetOffset
  37929. },
  37930. topCenter: {
  37931. points: ['bc', 'tc'],
  37932. overflow: autoAdjustOverflow,
  37933. offset: [0, -4],
  37934. targetOffset: targetOffset
  37935. },
  37936. topRight: {
  37937. points: ['br', 'tr'],
  37938. overflow: autoAdjustOverflow,
  37939. offset: [0, -4],
  37940. targetOffset: targetOffset
  37941. },
  37942. bottomLeft: {
  37943. points: ['tl', 'bl'],
  37944. overflow: autoAdjustOverflow,
  37945. offset: [0, 4],
  37946. targetOffset: targetOffset
  37947. },
  37948. bottomCenter: {
  37949. points: ['tc', 'bc'],
  37950. overflow: autoAdjustOverflow,
  37951. offset: [0, 4],
  37952. targetOffset: targetOffset
  37953. },
  37954. bottomRight: {
  37955. points: ['tr', 'br'],
  37956. overflow: autoAdjustOverflow,
  37957. offset: [0, 4],
  37958. targetOffset: targetOffset
  37959. }
  37960. };
  37961. /* harmony default export */ __webpack_exports__["default"] = (placements);
  37962. /***/ }),
  37963. /***/ "./components/vc-form/src/createBaseForm.jsx":
  37964. /*!***************************************************!*\
  37965. !*** ./components/vc-form/src/createBaseForm.jsx ***!
  37966. \***************************************************/
  37967. /*! exports provided: default */
  37968. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37969. "use strict";
  37970. __webpack_require__.r(__webpack_exports__);
  37971. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  37972. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  37973. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  37974. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  37975. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  37976. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  37977. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  37978. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
  37979. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  37980. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__);
  37981. /* harmony import */ var async_validator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/dist-web/index.js");
  37982. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
  37983. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_6__);
  37984. /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");
  37985. /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_7__);
  37986. /* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/set */ "./node_modules/lodash/set.js");
  37987. /* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_set__WEBPACK_IMPORTED_MODULE_8__);
  37988. /* harmony import */ var lodash_eq__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/eq */ "./node_modules/lodash/eq.js");
  37989. /* harmony import */ var lodash_eq__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_eq__WEBPACK_IMPORTED_MODULE_9__);
  37990. /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
  37991. /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_10__);
  37992. /* harmony import */ var _createFieldsStore__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./createFieldsStore */ "./components/vc-form/src/createFieldsStore.jsx");
  37993. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  37994. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  37995. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  37996. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  37997. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./utils */ "./components/vc-form/src/utils.js");
  37998. var DEFAULT_TRIGGER = 'change';
  37999. function createBaseForm() {
  38000. var option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  38001. var mixins = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  38002. var validateMessages = option.validateMessages,
  38003. onFieldsChange = option.onFieldsChange,
  38004. onValuesChange = option.onValuesChange,
  38005. _option$mapProps = option.mapProps,
  38006. mapProps = _option$mapProps === undefined ? _utils__WEBPACK_IMPORTED_MODULE_16__["identity"] : _option$mapProps,
  38007. mapPropsToFields = option.mapPropsToFields,
  38008. fieldNameProp = option.fieldNameProp,
  38009. fieldMetaProp = option.fieldMetaProp,
  38010. fieldDataProp = option.fieldDataProp,
  38011. _option$formPropName = option.formPropName,
  38012. formPropName = _option$formPropName === undefined ? 'form' : _option$formPropName,
  38013. formName = option.name,
  38014. _option$props = option.props,
  38015. props = _option$props === undefined ? {} : _option$props,
  38016. templateContext = option.templateContext;
  38017. return function decorate(WrappedComponent) {
  38018. var formProps = {};
  38019. if (Array.isArray(props)) {
  38020. props.forEach(function (prop) {
  38021. formProps[prop] = _util_vue_types__WEBPACK_IMPORTED_MODULE_15__["default"].any;
  38022. });
  38023. } else {
  38024. formProps = props;
  38025. }
  38026. var Form = {
  38027. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_13__["default"]].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(mixins)),
  38028. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, formProps, {
  38029. wrappedComponentRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_15__["default"].func.def(function () {})
  38030. }),
  38031. data: function data() {
  38032. var _this = this;
  38033. var fields = mapPropsToFields && mapPropsToFields(this.$props);
  38034. this.fieldsStore = Object(_createFieldsStore__WEBPACK_IMPORTED_MODULE_11__["default"])(fields || {});
  38035. this.templateContext = templateContext;
  38036. this.instances = {};
  38037. this.cachedBind = {};
  38038. this.clearedFieldMetaCache = {};
  38039. this.formItems = {};
  38040. this.renderFields = {};
  38041. this.domFields = {};
  38042. // HACK: https://github.com/ant-design/ant-design/issues/6406
  38043. ['getFieldsValue', 'getFieldValue', 'setFieldsInitialValue', 'getFieldsError', 'getFieldError', 'isFieldValidating', 'isFieldsValidating', 'isFieldsTouched', 'isFieldTouched'].forEach(function (key) {
  38044. _this[key] = function () {
  38045. var _fieldsStore;
  38046. return (_fieldsStore = _this.fieldsStore)[key].apply(_fieldsStore, arguments);
  38047. };
  38048. });
  38049. return {
  38050. submitting: false
  38051. };
  38052. },
  38053. watch: templateContext ? {} : {
  38054. $props: {
  38055. handler: function handler(nextProps) {
  38056. if (mapPropsToFields) {
  38057. this.fieldsStore.updateFields(mapPropsToFields(nextProps));
  38058. }
  38059. },
  38060. deep: true
  38061. }
  38062. },
  38063. mounted: function mounted() {
  38064. this.cleanUpUselessFields();
  38065. },
  38066. updated: function updated() {
  38067. // form updated add for template v-decorator
  38068. this.cleanUpUselessFields();
  38069. },
  38070. methods: {
  38071. updateFields: function updateFields() {
  38072. var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  38073. this.fieldsStore.updateFields(mapPropsToFields(fields));
  38074. if (templateContext) {
  38075. templateContext.$forceUpdate();
  38076. }
  38077. },
  38078. onCollectCommon: function onCollectCommon(name, action, args) {
  38079. var fieldMeta = this.fieldsStore.getFieldMeta(name);
  38080. if (fieldMeta[action]) {
  38081. fieldMeta[action].apply(fieldMeta, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(args));
  38082. } else if (fieldMeta.originalProps && fieldMeta.originalProps[action]) {
  38083. var _fieldMeta$originalPr;
  38084. (_fieldMeta$originalPr = fieldMeta.originalProps)[action].apply(_fieldMeta$originalPr, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(args));
  38085. }
  38086. var value = fieldMeta.getValueFromEvent ? fieldMeta.getValueFromEvent.apply(fieldMeta, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(args)) : _utils__WEBPACK_IMPORTED_MODULE_16__["getValueFromEvent"].apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(args));
  38087. if (onValuesChange && value !== this.fieldsStore.getFieldValue(name)) {
  38088. var valuesAll = this.fieldsStore.getAllValues();
  38089. var valuesAllSet = {};
  38090. valuesAll[name] = value;
  38091. Object.keys(valuesAll).forEach(function (key) {
  38092. return lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(valuesAllSet, key, valuesAll[key]);
  38093. });
  38094. onValuesChange(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, formPropName, this.getForm()), this.$props), lodash_set__WEBPACK_IMPORTED_MODULE_8___default()({}, name, value), valuesAllSet);
  38095. }
  38096. var field = this.fieldsStore.getField(name);
  38097. return { name: name, field: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, field, { value: value, touched: true }), fieldMeta: fieldMeta };
  38098. },
  38099. onCollect: function onCollect(name_, action) {
  38100. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  38101. args[_key - 2] = arguments[_key];
  38102. }
  38103. var _onCollectCommon = this.onCollectCommon(name_, action, args),
  38104. name = _onCollectCommon.name,
  38105. field = _onCollectCommon.field,
  38106. fieldMeta = _onCollectCommon.fieldMeta;
  38107. var validate = fieldMeta.validate;
  38108. this.fieldsStore.setFieldsAsDirty();
  38109. var newField = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, field, {
  38110. dirty: Object(_utils__WEBPACK_IMPORTED_MODULE_16__["hasRules"])(validate)
  38111. });
  38112. this.setFields(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, name, newField));
  38113. },
  38114. onCollectValidate: function onCollectValidate(name_, action) {
  38115. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  38116. args[_key2 - 2] = arguments[_key2];
  38117. }
  38118. var _onCollectCommon2 = this.onCollectCommon(name_, action, args),
  38119. field = _onCollectCommon2.field,
  38120. fieldMeta = _onCollectCommon2.fieldMeta;
  38121. var newField = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, field, {
  38122. dirty: true
  38123. });
  38124. this.fieldsStore.setFieldsAsDirty();
  38125. this.validateFieldsInternal([newField], {
  38126. action: action,
  38127. options: {
  38128. firstFields: !!fieldMeta.validateFirst
  38129. }
  38130. });
  38131. },
  38132. getCacheBind: function getCacheBind(name, action, fn) {
  38133. if (!this.cachedBind[name]) {
  38134. this.cachedBind[name] = {};
  38135. }
  38136. var cache = this.cachedBind[name];
  38137. if (!cache[action] || cache[action].oriFn !== fn) {
  38138. cache[action] = {
  38139. fn: fn.bind(this, name, action),
  38140. oriFn: fn
  38141. };
  38142. }
  38143. return cache[action].fn;
  38144. },
  38145. getFieldDecorator: function getFieldDecorator(name, fieldOption, formItem) {
  38146. var _this2 = this;
  38147. var _getFieldProps = this.getFieldProps(name, fieldOption),
  38148. props = _getFieldProps.props,
  38149. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getFieldProps, ['props']);
  38150. this.formItems[name] = formItem;
  38151. return function (fieldElem) {
  38152. // We should put field in record if it is rendered
  38153. _this2.renderFields[name] = true;
  38154. var fieldMeta = _this2.fieldsStore.getFieldMeta(name);
  38155. var originalProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getOptionProps"])(fieldElem);
  38156. var originalEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getEvents"])(fieldElem);
  38157. if (true) {
  38158. var valuePropName = fieldMeta.valuePropName;
  38159. warning__WEBPACK_IMPORTED_MODULE_6___default()(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["slotHasProp"])(fieldElem, valuePropName), '`getFieldDecorator` will override `' + valuePropName + '`, ' + ('so please don\'t set `' + valuePropName + ' and v-model` directly ') + 'and use `setFieldsValue` to set it.');
  38160. warning__WEBPACK_IMPORTED_MODULE_6___default()(!(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["slotHasProp"])(fieldElem, valuePropName) && valuePropName in originalProps && !(fieldOption && 'initialValue' in fieldOption)), Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentName"])(fieldElem.componentOptions) + ' `default value` can not collect, ' + ' please use `option.initialValue` to set default value.');
  38161. var defaultValuePropName = 'default' + valuePropName[0].toUpperCase() + valuePropName.slice(1);
  38162. warning__WEBPACK_IMPORTED_MODULE_6___default()(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["slotHasProp"])(fieldElem, defaultValuePropName), '`' + defaultValuePropName + '` is invalid ' + ('for `getFieldDecorator` will set `' + valuePropName + '`,') + ' please use `option.initialValue` instead.');
  38163. }
  38164. fieldMeta.originalProps = originalProps;
  38165. // fieldMeta.ref = fieldElem.data && fieldElem.data.ref
  38166. var newProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
  38167. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, props, _this2.fieldsStore.getFieldValuePropValue(fieldMeta))
  38168. }, restProps);
  38169. newProps.domProps.value = newProps.props.value;
  38170. var newEvents = {};
  38171. Object.keys(newProps.on).forEach(function (key) {
  38172. if (originalEvents[key]) {
  38173. var triggerEvents = newProps.on[key];
  38174. newEvents[key] = function () {
  38175. originalEvents[key].apply(originalEvents, arguments);
  38176. triggerEvents.apply(undefined, arguments);
  38177. };
  38178. } else {
  38179. newEvents[key] = newProps.on[key];
  38180. }
  38181. });
  38182. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_12__["cloneElement"])(fieldElem, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, newProps, { on: newEvents }));
  38183. };
  38184. },
  38185. getFieldProps: function getFieldProps(name) {
  38186. var _this3 = this;
  38187. var usersFieldOption = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  38188. if (!name) {
  38189. throw new Error('Must call `getFieldProps` with valid name string!');
  38190. }
  38191. if (true) {
  38192. warning__WEBPACK_IMPORTED_MODULE_6___default()(this.fieldsStore.isValidNestedFieldName(name), 'One field name cannot be part of another, e.g. `a` and `a.b`. Check field: ' + name);
  38193. warning__WEBPACK_IMPORTED_MODULE_6___default()(!('exclusive' in usersFieldOption), '`option.exclusive` of `getFieldProps`|`getFieldDecorator` had been remove.');
  38194. }
  38195. delete this.clearedFieldMetaCache[name];
  38196. var fieldOption = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
  38197. name: name,
  38198. trigger: DEFAULT_TRIGGER,
  38199. valuePropName: 'value',
  38200. validate: []
  38201. }, usersFieldOption);
  38202. var rules = fieldOption.rules,
  38203. trigger = fieldOption.trigger,
  38204. _fieldOption$validate = fieldOption.validateTrigger,
  38205. validateTrigger = _fieldOption$validate === undefined ? trigger : _fieldOption$validate,
  38206. validate = fieldOption.validate;
  38207. var fieldMeta = this.fieldsStore.getFieldMeta(name);
  38208. if ('initialValue' in fieldOption) {
  38209. fieldMeta.initialValue = fieldOption.initialValue;
  38210. }
  38211. var inputProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, this.fieldsStore.getFieldValuePropValue(fieldOption));
  38212. var inputListeners = {};
  38213. var inputAttrs = {};
  38214. if (fieldNameProp) {
  38215. inputProps[fieldNameProp] = formName ? formName + '_' + name : name;
  38216. }
  38217. var validateRules = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["normalizeValidateRules"])(validate, rules, validateTrigger);
  38218. var validateTriggers = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getValidateTriggers"])(validateRules);
  38219. validateTriggers.forEach(function (action) {
  38220. if (inputListeners[action]) return;
  38221. inputListeners[action] = _this3.getCacheBind(name, action, _this3.onCollectValidate);
  38222. });
  38223. // make sure that the value will be collect
  38224. if (trigger && validateTriggers.indexOf(trigger) === -1) {
  38225. inputListeners[trigger] = this.getCacheBind(name, trigger, this.onCollect);
  38226. }
  38227. var meta = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, fieldMeta, fieldOption, {
  38228. validate: validateRules
  38229. });
  38230. this.fieldsStore.setFieldMeta(name, meta);
  38231. if (fieldMetaProp) {
  38232. inputAttrs[fieldMetaProp] = meta;
  38233. }
  38234. if (fieldDataProp) {
  38235. inputAttrs[fieldDataProp] = this.fieldsStore.getField(name);
  38236. }
  38237. // This field is rendered, record it
  38238. this.renderFields[name] = true;
  38239. return {
  38240. props: lodash_omit__WEBPACK_IMPORTED_MODULE_10___default()(inputProps, ['id']),
  38241. // id: inputProps.id,
  38242. domProps: {
  38243. value: inputProps.value
  38244. },
  38245. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, inputAttrs, {
  38246. id: inputProps.id
  38247. }),
  38248. directives: [{
  38249. name: 'ant-ref',
  38250. value: this.getCacheBind(name, name + '__ref', this.saveRef)
  38251. }],
  38252. on: inputListeners
  38253. };
  38254. },
  38255. getFieldInstance: function getFieldInstance(name) {
  38256. return this.instances[name];
  38257. },
  38258. getRules: function getRules(fieldMeta, action) {
  38259. var actionRules = fieldMeta.validate.filter(function (item) {
  38260. return !action || item.trigger.indexOf(action) >= 0;
  38261. }).map(function (item) {
  38262. return item.rules;
  38263. });
  38264. return Object(_utils__WEBPACK_IMPORTED_MODULE_16__["flattenArray"])(actionRules);
  38265. },
  38266. setFields: function setFields(maybeNestedFields, callback) {
  38267. var _this4 = this;
  38268. var fields = this.fieldsStore.flattenRegisteredFields(maybeNestedFields);
  38269. this.fieldsStore.setFields(fields);
  38270. var changedFields = Object.keys(fields).reduce(function (acc, name) {
  38271. return lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(acc, name, _this4.fieldsStore.getField(name));
  38272. }, {});
  38273. if (onFieldsChange) {
  38274. var _changedFields = Object.keys(fields).reduce(function (acc, name) {
  38275. return lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(acc, name, _this4.fieldsStore.getField(name));
  38276. }, {});
  38277. onFieldsChange(this, _changedFields, this.fieldsStore.getNestedAllFields());
  38278. }
  38279. var formContext = templateContext || this;
  38280. var allUpdate = false;
  38281. Object.keys(changedFields).forEach(function (key) {
  38282. var formItem = _this4.formItems[key];
  38283. formItem = typeof formItem === 'function' ? formItem() : formItem;
  38284. if (formItem && formItem.itemSelfUpdate) {
  38285. formItem.$forceUpdate();
  38286. } else {
  38287. allUpdate = true;
  38288. }
  38289. });
  38290. if (allUpdate) {
  38291. formContext.$forceUpdate();
  38292. }
  38293. this.$nextTick(function () {
  38294. callback && callback();
  38295. });
  38296. },
  38297. setFieldsValue: function setFieldsValue(changedValues, callback) {
  38298. var fieldsMeta = this.fieldsStore.fieldsMeta;
  38299. var values = this.fieldsStore.flattenRegisteredFields(changedValues);
  38300. var newFields = Object.keys(values).reduce(function (acc, name) {
  38301. var isRegistered = fieldsMeta[name];
  38302. if (true) {
  38303. warning__WEBPACK_IMPORTED_MODULE_6___default()(isRegistered, 'Cannot use `setFieldsValue` until ' + 'you use `getFieldDecorator` or `getFieldProps` to register it.');
  38304. }
  38305. if (isRegistered) {
  38306. var value = values[name];
  38307. acc[name] = {
  38308. value: value
  38309. };
  38310. }
  38311. return acc;
  38312. }, {});
  38313. this.setFields(newFields, callback);
  38314. if (onValuesChange) {
  38315. var allValues = this.fieldsStore.getAllValues();
  38316. onValuesChange(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, formPropName, this.getForm()), this.$props), changedValues, allValues);
  38317. }
  38318. },
  38319. saveRef: function saveRef(name, _, component) {
  38320. if (!component) {
  38321. var fieldMeta = this.fieldsStore.getFieldMeta(name);
  38322. if (!fieldMeta.preserve) {
  38323. // after destroy, delete data
  38324. this.clearedFieldMetaCache[name] = {
  38325. field: this.fieldsStore.getField(name),
  38326. meta: fieldMeta
  38327. };
  38328. this.clearField(name);
  38329. }
  38330. delete this.domFields[name];
  38331. return;
  38332. }
  38333. this.domFields[name] = true;
  38334. this.recoverClearedField(name);
  38335. // const fieldMeta = this.fieldsStore.getFieldMeta(name)
  38336. // if (fieldMeta) {
  38337. // const ref = fieldMeta.ref
  38338. // if (ref) {
  38339. // if (typeof ref === 'string') {
  38340. // throw new Error(`can not set ref string for ${name}`)
  38341. // }
  38342. // ref(component)
  38343. // }
  38344. // }
  38345. this.instances[name] = component;
  38346. },
  38347. cleanUpUselessFields: function cleanUpUselessFields() {
  38348. var _this5 = this;
  38349. var fieldList = this.fieldsStore.getAllFieldsName();
  38350. var removedList = fieldList.filter(function (field) {
  38351. var fieldMeta = _this5.fieldsStore.getFieldMeta(field);
  38352. return !_this5.renderFields[field] && !_this5.domFields[field] && !fieldMeta.preserve;
  38353. });
  38354. if (removedList.length) {
  38355. removedList.forEach(this.clearField);
  38356. }
  38357. this.renderFields = {};
  38358. },
  38359. clearField: function clearField(name) {
  38360. this.fieldsStore.clearField(name);
  38361. delete this.instances[name];
  38362. delete this.cachedBind[name];
  38363. },
  38364. resetFields: function resetFields(ns) {
  38365. var _this6 = this;
  38366. var newFields = this.fieldsStore.resetFields(ns);
  38367. if (Object.keys(newFields).length > 0) {
  38368. this.setFields(newFields);
  38369. }
  38370. if (ns) {
  38371. var names = Array.isArray(ns) ? ns : [ns];
  38372. names.forEach(function (name) {
  38373. return delete _this6.clearedFieldMetaCache[name];
  38374. });
  38375. } else {
  38376. this.clearedFieldMetaCache = {};
  38377. }
  38378. },
  38379. recoverClearedField: function recoverClearedField(name) {
  38380. if (this.clearedFieldMetaCache[name]) {
  38381. this.fieldsStore.setFields(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, name, this.clearedFieldMetaCache[name].field));
  38382. this.fieldsStore.setFieldMeta(name, this.clearedFieldMetaCache[name].meta);
  38383. delete this.clearedFieldMetaCache[name];
  38384. }
  38385. },
  38386. validateFieldsInternal: function validateFieldsInternal(fields, _ref, callback) {
  38387. var _this7 = this;
  38388. var fieldNames = _ref.fieldNames,
  38389. action = _ref.action,
  38390. _ref$options = _ref.options,
  38391. options = _ref$options === undefined ? {} : _ref$options;
  38392. var allRules = {};
  38393. var allValues = {};
  38394. var allFields = {};
  38395. var alreadyErrors = {};
  38396. fields.forEach(function (field) {
  38397. var name = field.name;
  38398. if (options.force !== true && field.dirty === false) {
  38399. if (field.errors) {
  38400. lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(alreadyErrors, name, { errors: field.errors });
  38401. }
  38402. return;
  38403. }
  38404. var fieldMeta = _this7.fieldsStore.getFieldMeta(name);
  38405. var newField = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, field);
  38406. newField.errors = undefined;
  38407. newField.validating = true;
  38408. newField.dirty = true;
  38409. allRules[name] = _this7.getRules(fieldMeta, action);
  38410. allValues[name] = newField.value;
  38411. allFields[name] = newField;
  38412. });
  38413. this.setFields(allFields);
  38414. // in case normalize
  38415. Object.keys(allValues).forEach(function (f) {
  38416. allValues[f] = _this7.fieldsStore.getFieldValue(f);
  38417. });
  38418. if (callback && Object(_utils__WEBPACK_IMPORTED_MODULE_16__["isEmptyObject"])(allFields)) {
  38419. callback(Object(_utils__WEBPACK_IMPORTED_MODULE_16__["isEmptyObject"])(alreadyErrors) ? null : alreadyErrors, this.fieldsStore.getFieldsValue(fieldNames));
  38420. return;
  38421. }
  38422. var validator = new async_validator__WEBPACK_IMPORTED_MODULE_5__["default"](allRules);
  38423. if (validateMessages) {
  38424. validator.messages(validateMessages);
  38425. }
  38426. validator.validate(allValues, options, function (errors) {
  38427. var errorsGroup = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, alreadyErrors);
  38428. if (errors && errors.length) {
  38429. errors.forEach(function (e) {
  38430. var errorFieldName = e.field;
  38431. var fieldName = errorFieldName;
  38432. // Handle using array validation rule.
  38433. // ref: https://github.com/ant-design/ant-design/issues/14275
  38434. Object.keys(allRules).some(function (ruleFieldName) {
  38435. var rules = allRules[ruleFieldName] || [];
  38436. // Exist if match rule
  38437. if (ruleFieldName === errorFieldName) {
  38438. fieldName = ruleFieldName;
  38439. return true;
  38440. }
  38441. // Skip if not match array type
  38442. if (rules.every(function (_ref2) {
  38443. var type = _ref2.type;
  38444. return type !== 'array';
  38445. }) && errorFieldName.indexOf(ruleFieldName) !== 0) {
  38446. return false;
  38447. }
  38448. // Exist if match the field name
  38449. var restPath = errorFieldName.slice(ruleFieldName.length + 1);
  38450. if (/^\d+$/.test(restPath)) {
  38451. fieldName = ruleFieldName;
  38452. return true;
  38453. }
  38454. return false;
  38455. });
  38456. var field = lodash_get__WEBPACK_IMPORTED_MODULE_7___default()(errorsGroup, fieldName);
  38457. if ((typeof field === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(field)) !== 'object' || Array.isArray(field)) {
  38458. lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(errorsGroup, fieldName, { errors: [] });
  38459. }
  38460. var fieldErrors = lodash_get__WEBPACK_IMPORTED_MODULE_7___default()(errorsGroup, fieldName.concat('.errors'));
  38461. fieldErrors.push(e);
  38462. });
  38463. }
  38464. var expired = [];
  38465. var nowAllFields = {};
  38466. Object.keys(allRules).forEach(function (name) {
  38467. var fieldErrors = lodash_get__WEBPACK_IMPORTED_MODULE_7___default()(errorsGroup, name);
  38468. var nowField = _this7.fieldsStore.getField(name);
  38469. // avoid concurrency problems
  38470. if (!lodash_eq__WEBPACK_IMPORTED_MODULE_9___default()(nowField.value, allValues[name])) {
  38471. expired.push({
  38472. name: name
  38473. });
  38474. } else {
  38475. nowField.errors = fieldErrors && fieldErrors.errors;
  38476. nowField.value = allValues[name];
  38477. nowField.validating = false;
  38478. nowField.dirty = false;
  38479. nowAllFields[name] = nowField;
  38480. }
  38481. });
  38482. _this7.setFields(nowAllFields);
  38483. if (callback) {
  38484. if (expired.length) {
  38485. expired.forEach(function (_ref3) {
  38486. var name = _ref3.name;
  38487. var fieldErrors = [{
  38488. message: name + ' need to revalidate',
  38489. field: name
  38490. }];
  38491. lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(errorsGroup, name, {
  38492. expired: true,
  38493. errors: fieldErrors
  38494. });
  38495. });
  38496. }
  38497. callback(Object(_utils__WEBPACK_IMPORTED_MODULE_16__["isEmptyObject"])(errorsGroup) ? null : errorsGroup, _this7.fieldsStore.getFieldsValue(fieldNames));
  38498. }
  38499. });
  38500. },
  38501. validateFields: function validateFields(ns, opt, cb) {
  38502. var _this8 = this;
  38503. var pending = new Promise(function (resolve, reject) {
  38504. var _getParams = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getParams"])(ns, opt, cb),
  38505. names = _getParams.names,
  38506. options = _getParams.options;
  38507. var _getParams2 = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getParams"])(ns, opt, cb),
  38508. callback = _getParams2.callback;
  38509. if (!callback || typeof callback === 'function') {
  38510. var oldCb = callback;
  38511. callback = function callback(errors, values) {
  38512. if (oldCb) {
  38513. oldCb(errors, values);
  38514. } else if (errors) {
  38515. reject({ errors: errors, values: values });
  38516. } else {
  38517. resolve(values);
  38518. }
  38519. };
  38520. }
  38521. var fieldNames = names ? _this8.fieldsStore.getValidFieldsFullName(names) : _this8.fieldsStore.getValidFieldsName();
  38522. var fields = fieldNames.filter(function (name) {
  38523. var fieldMeta = _this8.fieldsStore.getFieldMeta(name);
  38524. return Object(_utils__WEBPACK_IMPORTED_MODULE_16__["hasRules"])(fieldMeta.validate);
  38525. }).map(function (name) {
  38526. var field = _this8.fieldsStore.getField(name);
  38527. field.value = _this8.fieldsStore.getFieldValue(name);
  38528. return field;
  38529. });
  38530. if (!fields.length) {
  38531. callback(null, _this8.fieldsStore.getFieldsValue(fieldNames));
  38532. return;
  38533. }
  38534. if (!('firstFields' in options)) {
  38535. options.firstFields = fieldNames.filter(function (name) {
  38536. var fieldMeta = _this8.fieldsStore.getFieldMeta(name);
  38537. return !!fieldMeta.validateFirst;
  38538. });
  38539. }
  38540. _this8.validateFieldsInternal(fields, {
  38541. fieldNames: fieldNames,
  38542. options: options
  38543. }, callback);
  38544. });
  38545. pending['catch'](function (e) {
  38546. if (console.error && "development" !== 'production') {
  38547. console.error(e);
  38548. }
  38549. return e;
  38550. });
  38551. return pending;
  38552. },
  38553. isSubmitting: function isSubmitting() {
  38554. if (true) {
  38555. warning__WEBPACK_IMPORTED_MODULE_6___default()(false, '`isSubmitting` is deprecated. ' + "Actually, it's more convenient to handle submitting status by yourself.");
  38556. }
  38557. return this.submitting;
  38558. },
  38559. submit: function submit(callback) {
  38560. var _this9 = this;
  38561. if (true) {
  38562. warning__WEBPACK_IMPORTED_MODULE_6___default()(false, '`submit` is deprecated. ' + "Actually, it's more convenient to handle submitting status by yourself.");
  38563. }
  38564. var fn = function fn() {
  38565. _this9.setState({
  38566. submitting: false
  38567. });
  38568. };
  38569. this.setState({
  38570. submitting: true
  38571. });
  38572. callback(fn);
  38573. }
  38574. },
  38575. render: function render() {
  38576. var h = arguments[0];
  38577. var $slots = this.$slots,
  38578. $scopedSlots = this.$scopedSlots;
  38579. var formProps = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, formPropName, this.getForm());
  38580. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getOptionProps"])(this),
  38581. wrappedComponentRef = _getOptionProps.wrappedComponentRef,
  38582. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['wrappedComponentRef']);
  38583. var wrappedComponentProps = {
  38584. props: mapProps.call(this, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, formProps, restProps)),
  38585. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getListeners"])(this),
  38586. ref: 'WrappedComponent',
  38587. directives: [{
  38588. name: 'ant-ref',
  38589. value: wrappedComponentRef
  38590. }]
  38591. };
  38592. if (Object.keys($scopedSlots).length) {
  38593. wrappedComponentProps.scopedSlots = $scopedSlots;
  38594. }
  38595. var slotsKey = Object.keys($slots);
  38596. return WrappedComponent ? h(
  38597. WrappedComponent,
  38598. wrappedComponentProps,
  38599. [slotsKey.length ? slotsKey.map(function (name) {
  38600. return h(
  38601. 'template',
  38602. { slot: name },
  38603. [$slots[name]]
  38604. );
  38605. }) : null]
  38606. ) : null;
  38607. }
  38608. };
  38609. if (!WrappedComponent) return Form;
  38610. if (Array.isArray(WrappedComponent.props)) {
  38611. var newProps = {};
  38612. WrappedComponent.props.forEach(function (prop) {
  38613. newProps[prop] = _util_vue_types__WEBPACK_IMPORTED_MODULE_15__["default"].any;
  38614. });
  38615. newProps[formPropName] = Object;
  38616. WrappedComponent.props = newProps;
  38617. } else {
  38618. WrappedComponent.props = WrappedComponent.props || {};
  38619. if (!(formPropName in WrappedComponent.props)) {
  38620. WrappedComponent.props[formPropName] = Object;
  38621. }
  38622. }
  38623. return Object(_utils__WEBPACK_IMPORTED_MODULE_16__["argumentContainer"])(Form, WrappedComponent);
  38624. };
  38625. }
  38626. /* harmony default export */ __webpack_exports__["default"] = (createBaseForm);
  38627. /***/ }),
  38628. /***/ "./components/vc-form/src/createDOMForm.jsx":
  38629. /*!**************************************************!*\
  38630. !*** ./components/vc-form/src/createDOMForm.jsx ***!
  38631. \**************************************************/
  38632. /*! exports provided: default */
  38633. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38634. "use strict";
  38635. __webpack_require__.r(__webpack_exports__);
  38636. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  38637. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  38638. /* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-scroll-into-view */ "./node_modules/dom-scroll-into-view/dist-web/index.js");
  38639. /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js");
  38640. /* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_2__);
  38641. /* harmony import */ var _createBaseForm__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createBaseForm */ "./components/vc-form/src/createBaseForm.jsx");
  38642. /* harmony import */ var _createForm__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./createForm */ "./components/vc-form/src/createForm.jsx");
  38643. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./components/vc-form/src/utils.js");
  38644. function computedStyle(el, prop) {
  38645. var getComputedStyle = window.getComputedStyle;
  38646. var style =
  38647. // If we have getComputedStyle
  38648. getComputedStyle ? // Query it
  38649. // TODO: From CSS-Query notes, we might need (node, null) for FF
  38650. getComputedStyle(el) : // Otherwise, we are in IE and use currentStyle
  38651. el.currentStyle;
  38652. if (style) {
  38653. return style[
  38654. // Switch to camelCase for CSSOM
  38655. // DEV: Grabbed from jQuery
  38656. // https://github.com/jquery/jquery/blob/1.9-stable/src/css.js#L191-L194
  38657. // https://github.com/jquery/jquery/blob/1.9-stable/src/core.js#L593-L597
  38658. prop.replace(/-(\w)/gi, function (word, letter) {
  38659. return letter.toUpperCase();
  38660. })];
  38661. }
  38662. return undefined;
  38663. }
  38664. function getScrollableContainer(n) {
  38665. var node = n;
  38666. var nodeName = void 0;
  38667. /* eslint no-cond-assign:0 */
  38668. while ((nodeName = node.nodeName.toLowerCase()) !== 'body') {
  38669. var overflowY = computedStyle(node, 'overflowY');
  38670. // https://stackoverflow.com/a/36900407/3040605
  38671. if (node !== n && (overflowY === 'auto' || overflowY === 'scroll') && node.scrollHeight > node.clientHeight) {
  38672. return node;
  38673. }
  38674. node = node.parentNode;
  38675. }
  38676. return nodeName === 'body' ? node.ownerDocument : node;
  38677. }
  38678. var mixin = {
  38679. methods: {
  38680. getForm: function getForm() {
  38681. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _createForm__WEBPACK_IMPORTED_MODULE_4__["mixin"].methods.getForm.call(this), {
  38682. validateFieldsAndScroll: this.validateFieldsAndScroll
  38683. });
  38684. },
  38685. validateFieldsAndScroll: function validateFieldsAndScroll(ns, opt, cb) {
  38686. var _this = this;
  38687. var _getParams = Object(_utils__WEBPACK_IMPORTED_MODULE_5__["getParams"])(ns, opt, cb),
  38688. names = _getParams.names,
  38689. callback = _getParams.callback,
  38690. options = _getParams.options;
  38691. var newCb = function newCb(error, values) {
  38692. if (error) {
  38693. var validNames = _this.fieldsStore.getValidFieldsName();
  38694. var firstNode = void 0;
  38695. var firstTop = void 0;
  38696. validNames.forEach(function (name) {
  38697. if (lodash_has__WEBPACK_IMPORTED_MODULE_2___default()(error, name)) {
  38698. var instance = _this.getFieldInstance(name);
  38699. if (instance) {
  38700. var node = instance.$el || instance.elm;
  38701. var top = node.getBoundingClientRect().top;
  38702. if (node.type !== 'hidden' && (firstTop === undefined || firstTop > top)) {
  38703. firstTop = top;
  38704. firstNode = node;
  38705. }
  38706. }
  38707. }
  38708. });
  38709. if (firstNode) {
  38710. var c = options.container || getScrollableContainer(firstNode);
  38711. Object(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_1__["default"])(firstNode, c, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  38712. onlyScrollIfNeeded: true
  38713. }, options.scroll));
  38714. }
  38715. }
  38716. if (typeof callback === 'function') {
  38717. callback(error, values);
  38718. }
  38719. };
  38720. return this.validateFields(names, options, newCb);
  38721. }
  38722. }
  38723. };
  38724. function createDOMForm(option) {
  38725. return Object(_createBaseForm__WEBPACK_IMPORTED_MODULE_3__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, option), [mixin]);
  38726. }
  38727. /* harmony default export */ __webpack_exports__["default"] = (createDOMForm);
  38728. /***/ }),
  38729. /***/ "./components/vc-form/src/createFieldsStore.jsx":
  38730. /*!******************************************************!*\
  38731. !*** ./components/vc-form/src/createFieldsStore.jsx ***!
  38732. \******************************************************/
  38733. /*! exports provided: default */
  38734. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38735. "use strict";
  38736. __webpack_require__.r(__webpack_exports__);
  38737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createFieldsStore; });
  38738. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  38739. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  38740. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  38741. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  38742. /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");
  38743. /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
  38744. /* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/createClass */ "./node_modules/babel-runtime/helpers/createClass.js");
  38745. /* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
  38746. /* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/set */ "./node_modules/lodash/set.js");
  38747. /* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_set__WEBPACK_IMPORTED_MODULE_4__);
  38748. /* harmony import */ var _createFormField__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createFormField */ "./components/vc-form/src/createFormField.jsx");
  38749. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./components/vc-form/src/utils.js");
  38750. function partOf(a, b) {
  38751. return b.indexOf(a) === 0 && ['.', '['].indexOf(b[a.length]) !== -1;
  38752. }
  38753. function internalFlattenFields(fields) {
  38754. return Object(_utils__WEBPACK_IMPORTED_MODULE_6__["flattenFields"])(fields, function (_, node) {
  38755. return Object(_createFormField__WEBPACK_IMPORTED_MODULE_5__["isFormField"])(node);
  38756. }, 'You must wrap field data with `createFormField`.');
  38757. }
  38758. var FieldsStore = function () {
  38759. function FieldsStore(fields) {
  38760. babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, FieldsStore);
  38761. _initialiseProps.call(this);
  38762. this.fields = internalFlattenFields(fields);
  38763. this.fieldsMeta = {};
  38764. }
  38765. babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(FieldsStore, [{
  38766. key: 'updateFields',
  38767. value: function updateFields(fields) {
  38768. this.fields = internalFlattenFields(fields);
  38769. }
  38770. }, {
  38771. key: 'flattenRegisteredFields',
  38772. value: function flattenRegisteredFields(fields) {
  38773. var validFieldsName = this.getAllFieldsName();
  38774. return Object(_utils__WEBPACK_IMPORTED_MODULE_6__["flattenFields"])(fields, function (path) {
  38775. return validFieldsName.indexOf(path) >= 0;
  38776. }, 'You cannot set a form field before rendering a field associated with the value. You can use `getFieldDecorator(id, options)` instead `v-decorator="[id, options]"` to register it before render.');
  38777. }
  38778. }, {
  38779. key: 'setFields',
  38780. value: function setFields(fields) {
  38781. var _this = this;
  38782. var fieldsMeta = this.fieldsMeta;
  38783. var nowFields = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.fields, fields);
  38784. var nowValues = {};
  38785. Object.keys(fieldsMeta).forEach(function (f) {
  38786. nowValues[f] = _this.getValueFromFields(f, nowFields);
  38787. });
  38788. Object.keys(nowValues).forEach(function (f) {
  38789. var value = nowValues[f];
  38790. var fieldMeta = _this.getFieldMeta(f);
  38791. if (fieldMeta && fieldMeta.normalize) {
  38792. var nowValue = fieldMeta.normalize(value, _this.getValueFromFields(f, _this.fields), nowValues);
  38793. if (nowValue !== value) {
  38794. nowFields[f] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, nowFields[f], {
  38795. value: nowValue
  38796. });
  38797. }
  38798. }
  38799. });
  38800. this.fields = nowFields;
  38801. }
  38802. }, {
  38803. key: 'resetFields',
  38804. value: function resetFields(ns) {
  38805. var fields = this.fields;
  38806. var names = ns ? this.getValidFieldsFullName(ns) : this.getAllFieldsName();
  38807. return names.reduce(function (acc, name) {
  38808. var field = fields[name];
  38809. if (field && 'value' in field) {
  38810. acc[name] = {};
  38811. }
  38812. return acc;
  38813. }, {});
  38814. }
  38815. }, {
  38816. key: 'setFieldMeta',
  38817. value: function setFieldMeta(name, meta) {
  38818. this.fieldsMeta[name] = meta;
  38819. }
  38820. }, {
  38821. key: 'setFieldsAsDirty',
  38822. value: function setFieldsAsDirty() {
  38823. var _this2 = this;
  38824. Object.keys(this.fields).forEach(function (name) {
  38825. var field = _this2.fields[name];
  38826. var fieldMeta = _this2.fieldsMeta[name];
  38827. if (field && fieldMeta && Object(_utils__WEBPACK_IMPORTED_MODULE_6__["hasRules"])(fieldMeta.validate)) {
  38828. _this2.fields[name] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, field, {
  38829. dirty: true
  38830. });
  38831. }
  38832. });
  38833. }
  38834. }, {
  38835. key: 'getFieldMeta',
  38836. value: function getFieldMeta(name) {
  38837. this.fieldsMeta[name] = this.fieldsMeta[name] || {};
  38838. return this.fieldsMeta[name];
  38839. }
  38840. }, {
  38841. key: 'getValueFromFields',
  38842. value: function getValueFromFields(name, fields) {
  38843. var field = fields[name];
  38844. if (field && 'value' in field) {
  38845. return field.value;
  38846. }
  38847. var fieldMeta = this.getFieldMeta(name);
  38848. return fieldMeta && fieldMeta.initialValue;
  38849. }
  38850. }, {
  38851. key: 'getValidFieldsName',
  38852. value: function getValidFieldsName() {
  38853. var _this3 = this;
  38854. var fieldsMeta = this.fieldsMeta;
  38855. return fieldsMeta ? Object.keys(fieldsMeta).filter(function (name) {
  38856. return !_this3.getFieldMeta(name).hidden;
  38857. }) : [];
  38858. }
  38859. }, {
  38860. key: 'getAllFieldsName',
  38861. value: function getAllFieldsName() {
  38862. var fieldsMeta = this.fieldsMeta;
  38863. return fieldsMeta ? Object.keys(fieldsMeta) : [];
  38864. }
  38865. }, {
  38866. key: 'getValidFieldsFullName',
  38867. value: function getValidFieldsFullName(maybePartialName) {
  38868. var maybePartialNames = Array.isArray(maybePartialName) ? maybePartialName : [maybePartialName];
  38869. return this.getValidFieldsName().filter(function (fullName) {
  38870. return maybePartialNames.some(function (partialName) {
  38871. return fullName === partialName || Object(_utils__WEBPACK_IMPORTED_MODULE_6__["startsWith"])(fullName, partialName) && ['.', '['].indexOf(fullName[partialName.length]) >= 0;
  38872. });
  38873. });
  38874. }
  38875. }, {
  38876. key: 'getFieldValuePropValue',
  38877. value: function getFieldValuePropValue(fieldMeta) {
  38878. var name = fieldMeta.name,
  38879. getValueProps = fieldMeta.getValueProps,
  38880. valuePropName = fieldMeta.valuePropName;
  38881. var field = this.getField(name);
  38882. var fieldValue = 'value' in field ? field.value : fieldMeta.initialValue;
  38883. if (getValueProps) {
  38884. return getValueProps(fieldValue);
  38885. }
  38886. return babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, valuePropName, fieldValue);
  38887. }
  38888. }, {
  38889. key: 'getField',
  38890. value: function getField(name) {
  38891. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.fields[name], {
  38892. name: name
  38893. });
  38894. }
  38895. }, {
  38896. key: 'getNotCollectedFields',
  38897. value: function getNotCollectedFields() {
  38898. var _this4 = this;
  38899. var fieldsName = this.getValidFieldsName();
  38900. return fieldsName.filter(function (name) {
  38901. return !_this4.fields[name];
  38902. }).map(function (name) {
  38903. return {
  38904. name: name,
  38905. dirty: false,
  38906. value: _this4.getFieldMeta(name).initialValue
  38907. };
  38908. }).reduce(function (acc, field) {
  38909. return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, field.name, Object(_createFormField__WEBPACK_IMPORTED_MODULE_5__["default"])(field));
  38910. }, {});
  38911. }
  38912. }, {
  38913. key: 'getNestedAllFields',
  38914. value: function getNestedAllFields() {
  38915. var _this5 = this;
  38916. return Object.keys(this.fields).reduce(function (acc, name) {
  38917. return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, name, Object(_createFormField__WEBPACK_IMPORTED_MODULE_5__["default"])(_this5.fields[name]));
  38918. }, this.getNotCollectedFields());
  38919. }
  38920. }, {
  38921. key: 'getFieldMember',
  38922. value: function getFieldMember(name, member) {
  38923. return this.getField(name)[member];
  38924. }
  38925. }, {
  38926. key: 'getNestedFields',
  38927. value: function getNestedFields(names, getter) {
  38928. var fields = names || this.getValidFieldsName();
  38929. return fields.reduce(function (acc, f) {
  38930. return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, f, getter(f));
  38931. }, {});
  38932. }
  38933. }, {
  38934. key: 'getNestedField',
  38935. value: function getNestedField(name, getter) {
  38936. var fullNames = this.getValidFieldsFullName(name);
  38937. if (fullNames.length === 0 || // Not registered
  38938. fullNames.length === 1 && fullNames[0] === name // Name already is full name.
  38939. ) {
  38940. return getter(name);
  38941. }
  38942. var isArrayValue = fullNames[0][name.length] === '[';
  38943. var suffixNameStartIndex = isArrayValue ? name.length : name.length + 1;
  38944. return fullNames.reduce(function (acc, fullName) {
  38945. return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, fullName.slice(suffixNameStartIndex), getter(fullName));
  38946. }, isArrayValue ? [] : {});
  38947. }
  38948. }, {
  38949. key: 'isValidNestedFieldName',
  38950. // @private
  38951. // BG: `a` and `a.b` cannot be use in the same form
  38952. value: function isValidNestedFieldName(name) {
  38953. var names = this.getAllFieldsName();
  38954. return names.every(function (n) {
  38955. return !partOf(n, name) && !partOf(name, n);
  38956. });
  38957. }
  38958. }, {
  38959. key: 'clearField',
  38960. value: function clearField(name) {
  38961. delete this.fields[name];
  38962. delete this.fieldsMeta[name];
  38963. }
  38964. }]);
  38965. return FieldsStore;
  38966. }();
  38967. var _initialiseProps = function _initialiseProps() {
  38968. var _this6 = this;
  38969. this.setFieldsInitialValue = function (initialValues) {
  38970. var flattenedInitialValues = _this6.flattenRegisteredFields(initialValues);
  38971. var fieldsMeta = _this6.fieldsMeta;
  38972. Object.keys(flattenedInitialValues).forEach(function (name) {
  38973. if (fieldsMeta[name]) {
  38974. _this6.setFieldMeta(name, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _this6.getFieldMeta(name), {
  38975. initialValue: flattenedInitialValues[name]
  38976. }));
  38977. }
  38978. });
  38979. };
  38980. this.getAllValues = function () {
  38981. var fieldsMeta = _this6.fieldsMeta,
  38982. fields = _this6.fields;
  38983. return Object.keys(fieldsMeta).reduce(function (acc, name) {
  38984. return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, name, _this6.getValueFromFields(name, fields));
  38985. }, {});
  38986. };
  38987. this.getFieldsValue = function (names) {
  38988. return _this6.getNestedFields(names, _this6.getFieldValue);
  38989. };
  38990. this.getFieldValue = function (name) {
  38991. var fields = _this6.fields;
  38992. return _this6.getNestedField(name, function (fullName) {
  38993. return _this6.getValueFromFields(fullName, fields);
  38994. });
  38995. };
  38996. this.getFieldsError = function (names) {
  38997. return _this6.getNestedFields(names, _this6.getFieldError);
  38998. };
  38999. this.getFieldError = function (name) {
  39000. return _this6.getNestedField(name, function (fullName) {
  39001. return Object(_utils__WEBPACK_IMPORTED_MODULE_6__["getErrorStrs"])(_this6.getFieldMember(fullName, 'errors'));
  39002. });
  39003. };
  39004. this.isFieldValidating = function (name) {
  39005. return _this6.getFieldMember(name, 'validating');
  39006. };
  39007. this.isFieldsValidating = function (ns) {
  39008. var names = ns || _this6.getValidFieldsName();
  39009. return names.some(function (n) {
  39010. return _this6.isFieldValidating(n);
  39011. });
  39012. };
  39013. this.isFieldTouched = function (name) {
  39014. return _this6.getFieldMember(name, 'touched');
  39015. };
  39016. this.isFieldsTouched = function (ns) {
  39017. var names = ns || _this6.getValidFieldsName();
  39018. return names.some(function (n) {
  39019. return _this6.isFieldTouched(n);
  39020. });
  39021. };
  39022. };
  39023. function createFieldsStore(fields) {
  39024. return new FieldsStore(fields);
  39025. }
  39026. /***/ }),
  39027. /***/ "./components/vc-form/src/createForm.jsx":
  39028. /*!***********************************************!*\
  39029. !*** ./components/vc-form/src/createForm.jsx ***!
  39030. \***********************************************/
  39031. /*! exports provided: mixin, default */
  39032. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39033. "use strict";
  39034. __webpack_require__.r(__webpack_exports__);
  39035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixin", function() { return mixin; });
  39036. /* harmony import */ var _createBaseForm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createBaseForm */ "./components/vc-form/src/createBaseForm.jsx");
  39037. var mixin = {
  39038. methods: {
  39039. getForm: function getForm() {
  39040. return {
  39041. getFieldsValue: this.fieldsStore.getFieldsValue,
  39042. getFieldValue: this.fieldsStore.getFieldValue,
  39043. getFieldInstance: this.getFieldInstance,
  39044. setFieldsValue: this.setFieldsValue,
  39045. setFields: this.setFields,
  39046. setFieldsInitialValue: this.fieldsStore.setFieldsInitialValue,
  39047. getFieldDecorator: this.getFieldDecorator,
  39048. getFieldProps: this.getFieldProps,
  39049. getFieldsError: this.fieldsStore.getFieldsError,
  39050. getFieldError: this.fieldsStore.getFieldError,
  39051. isFieldValidating: this.fieldsStore.isFieldValidating,
  39052. isFieldsValidating: this.fieldsStore.isFieldsValidating,
  39053. isFieldsTouched: this.fieldsStore.isFieldsTouched,
  39054. isFieldTouched: this.fieldsStore.isFieldTouched,
  39055. isSubmitting: this.isSubmitting,
  39056. submit: this.submit,
  39057. validateFields: this.validateFields,
  39058. resetFields: this.resetFields
  39059. };
  39060. }
  39061. }
  39062. };
  39063. function createForm(options) {
  39064. return Object(_createBaseForm__WEBPACK_IMPORTED_MODULE_0__["default"])(options, [mixin]);
  39065. }
  39066. /* harmony default export */ __webpack_exports__["default"] = (createForm);
  39067. /***/ }),
  39068. /***/ "./components/vc-form/src/createFormField.jsx":
  39069. /*!****************************************************!*\
  39070. !*** ./components/vc-form/src/createFormField.jsx ***!
  39071. \****************************************************/
  39072. /*! exports provided: isFormField, default */
  39073. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39074. "use strict";
  39075. __webpack_require__.r(__webpack_exports__);
  39076. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFormField", function() { return isFormField; });
  39077. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createFormField; });
  39078. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  39079. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  39080. /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");
  39081. /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
  39082. var Field = function Field(fields) {
  39083. babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Field);
  39084. babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()(this, fields);
  39085. };
  39086. function isFormField(obj) {
  39087. return obj instanceof Field;
  39088. }
  39089. function createFormField(field) {
  39090. if (isFormField(field)) {
  39091. return field;
  39092. }
  39093. return new Field(field);
  39094. }
  39095. /***/ }),
  39096. /***/ "./components/vc-form/src/utils.js":
  39097. /*!*****************************************!*\
  39098. !*** ./components/vc-form/src/utils.js ***!
  39099. \*****************************************/
  39100. /*! exports provided: argumentContainer, identity, flattenArray, treeTraverse, flattenFields, normalizeValidateRules, getValidateTriggers, getValueFromEvent, getErrorStrs, getParams, isEmptyObject, hasRules, startsWith */
  39101. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39102. "use strict";
  39103. __webpack_require__.r(__webpack_exports__);
  39104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "argumentContainer", function() { return argumentContainer; });
  39105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return identity; });
  39106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flattenArray", function() { return flattenArray; });
  39107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "treeTraverse", function() { return treeTraverse; });
  39108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flattenFields", function() { return flattenFields; });
  39109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeValidateRules", function() { return normalizeValidateRules; });
  39110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValidateTriggers", function() { return getValidateTriggers; });
  39111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValueFromEvent", function() { return getValueFromEvent; });
  39112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getErrorStrs", function() { return getErrorStrs; });
  39113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getParams", function() { return getParams; });
  39114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmptyObject", function() { return isEmptyObject; });
  39115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasRules", function() { return hasRules; });
  39116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "startsWith", function() { return startsWith; });
  39117. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  39118. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  39119. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  39120. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  39121. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
  39122. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_2__);
  39123. function getDisplayName(WrappedComponent) {
  39124. return WrappedComponent.name || 'WrappedComponent';
  39125. }
  39126. function argumentContainer(Container, WrappedComponent) {
  39127. /* eslint no-param-reassign:0 */
  39128. Container.name = 'Form_' + getDisplayName(WrappedComponent);
  39129. Container.WrappedComponent = WrappedComponent;
  39130. Container.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Container.props, WrappedComponent.props);
  39131. return Container;
  39132. }
  39133. function identity(obj) {
  39134. return obj;
  39135. }
  39136. function flattenArray(arr) {
  39137. return Array.prototype.concat.apply([], arr);
  39138. }
  39139. function treeTraverse() {
  39140. var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  39141. var tree = arguments[1];
  39142. var isLeafNode = arguments[2];
  39143. var errorMessage = arguments[3];
  39144. var callback = arguments[4];
  39145. if (isLeafNode(path, tree)) {
  39146. callback(path, tree);
  39147. } else if (tree === undefined || tree === null) {
  39148. // Do nothing
  39149. } else if (Array.isArray(tree)) {
  39150. tree.forEach(function (subTree, index) {
  39151. return treeTraverse(path + '[' + index + ']', subTree, isLeafNode, errorMessage, callback);
  39152. });
  39153. } else {
  39154. // It's object and not a leaf node
  39155. if ((typeof tree === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(tree)) !== 'object') {
  39156. warning__WEBPACK_IMPORTED_MODULE_2___default()(false, errorMessage);
  39157. return;
  39158. }
  39159. Object.keys(tree).forEach(function (subTreeKey) {
  39160. var subTree = tree[subTreeKey];
  39161. treeTraverse('' + path + (path ? '.' : '') + subTreeKey, subTree, isLeafNode, errorMessage, callback);
  39162. });
  39163. }
  39164. }
  39165. function flattenFields(maybeNestedFields, isLeafNode, errorMessage) {
  39166. var fields = {};
  39167. treeTraverse(undefined, maybeNestedFields, isLeafNode, errorMessage, function (path, node) {
  39168. fields[path] = node;
  39169. });
  39170. return fields;
  39171. }
  39172. function normalizeValidateRules(validate, rules, validateTrigger) {
  39173. var validateRules = validate.map(function (item) {
  39174. var newItem = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, item, {
  39175. trigger: item.trigger || []
  39176. });
  39177. if (typeof newItem.trigger === 'string') {
  39178. newItem.trigger = [newItem.trigger];
  39179. }
  39180. return newItem;
  39181. });
  39182. if (rules) {
  39183. validateRules.push({
  39184. trigger: validateTrigger ? [].concat(validateTrigger) : [],
  39185. rules: rules
  39186. });
  39187. }
  39188. return validateRules;
  39189. }
  39190. function getValidateTriggers(validateRules) {
  39191. return validateRules.filter(function (item) {
  39192. return !!item.rules && item.rules.length;
  39193. }).map(function (item) {
  39194. return item.trigger;
  39195. }).reduce(function (pre, curr) {
  39196. return pre.concat(curr);
  39197. }, []);
  39198. }
  39199. function getValueFromEvent(e) {
  39200. // To support custom element
  39201. if (!e || !e.target) {
  39202. return e;
  39203. }
  39204. var target = e.target;
  39205. return target.type === 'checkbox' ? target.checked : target.value;
  39206. }
  39207. function getErrorStrs(errors) {
  39208. if (errors) {
  39209. return errors.map(function (e) {
  39210. if (e && e.message) {
  39211. return e.message;
  39212. }
  39213. return e;
  39214. });
  39215. }
  39216. return errors;
  39217. }
  39218. function getParams(ns, opt, cb) {
  39219. var names = ns;
  39220. var options = opt;
  39221. var callback = cb;
  39222. if (cb === undefined) {
  39223. if (typeof names === 'function') {
  39224. callback = names;
  39225. options = {};
  39226. names = undefined;
  39227. } else if (Array.isArray(names)) {
  39228. if (typeof options === 'function') {
  39229. callback = options;
  39230. options = {};
  39231. } else {
  39232. options = options || {};
  39233. }
  39234. } else {
  39235. callback = options;
  39236. options = names || {};
  39237. names = undefined;
  39238. }
  39239. }
  39240. return {
  39241. names: names,
  39242. options: options,
  39243. callback: callback
  39244. };
  39245. }
  39246. function isEmptyObject(obj) {
  39247. return Object.keys(obj).length === 0;
  39248. }
  39249. function hasRules(validate) {
  39250. if (validate) {
  39251. return validate.some(function (item) {
  39252. return item.rules && item.rules.length;
  39253. });
  39254. }
  39255. return false;
  39256. }
  39257. function startsWith(str, prefix) {
  39258. return str.lastIndexOf(prefix, 0) === 0;
  39259. }
  39260. /***/ }),
  39261. /***/ "./components/vc-input-number/src/InputHandler.js":
  39262. /*!********************************************************!*\
  39263. !*** ./components/vc-input-number/src/InputHandler.js ***!
  39264. \********************************************************/
  39265. /*! exports provided: default */
  39266. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39267. "use strict";
  39268. __webpack_require__.r(__webpack_exports__);
  39269. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  39270. /* harmony import */ var _vc_m_feedback__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vc-m-feedback */ "./components/vc-m-feedback/index.js");
  39271. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  39272. var InputHandler = {
  39273. name: 'InputHandler',
  39274. props: {
  39275. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  39276. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
  39277. },
  39278. render: function render() {
  39279. var h = arguments[0];
  39280. var _$props = this.$props,
  39281. prefixCls = _$props.prefixCls,
  39282. disabled = _$props.disabled;
  39283. var touchableProps = {
  39284. props: {
  39285. disabled: disabled,
  39286. activeClassName: prefixCls + '-handler-active'
  39287. },
  39288. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this)
  39289. };
  39290. return h(
  39291. _vc_m_feedback__WEBPACK_IMPORTED_MODULE_1__["default"],
  39292. touchableProps,
  39293. [h('span', [this.$slots['default']])]
  39294. );
  39295. }
  39296. };
  39297. /* harmony default export */ __webpack_exports__["default"] = (InputHandler);
  39298. /***/ }),
  39299. /***/ "./components/vc-input-number/src/index.js":
  39300. /*!*************************************************!*\
  39301. !*** ./components/vc-input-number/src/index.js ***!
  39302. \*************************************************/
  39303. /*! exports provided: default */
  39304. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39305. "use strict";
  39306. __webpack_require__.r(__webpack_exports__);
  39307. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  39308. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  39309. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  39310. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
  39311. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  39312. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  39313. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  39314. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  39315. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  39316. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  39317. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
  39318. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
  39319. /* harmony import */ var _InputHandler__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./InputHandler */ "./components/vc-input-number/src/InputHandler.js");
  39320. // based on rc-input-number 4.5.5
  39321. function noop() {}
  39322. function preventDefault(e) {
  39323. e.preventDefault();
  39324. }
  39325. function defaultParser(input) {
  39326. return input.replace(/[^\w\.-]+/g, '');
  39327. }
  39328. /**
  39329. * When click and hold on a button - the speed of auto changin the value.
  39330. */
  39331. var SPEED = 200;
  39332. /**
  39333. * When click and hold on a button - the delay before auto changin the value.
  39334. */
  39335. var DELAY = 600;
  39336. /**
  39337. * Max Safe Integer -- on IE this is not available, so manually set the number in that case.
  39338. * The reason this is used, instead of Infinity is because numbers above the MSI are unstable
  39339. */
  39340. var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1;
  39341. var isValidProps = function isValidProps(value) {
  39342. return value !== undefined && value !== null;
  39343. };
  39344. var isEqual = function isEqual(oldValue, newValue) {
  39345. return newValue === oldValue || typeof newValue === 'number' && typeof oldValue === 'number' && isNaN(newValue) && isNaN(oldValue);
  39346. };
  39347. var inputNumberProps = {
  39348. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
  39349. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
  39350. focusOnUpDown: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  39351. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  39352. // onChange: PropTypes.func,
  39353. // onKeyDown: PropTypes.func,
  39354. // onKeyUp: PropTypes.func,
  39355. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  39356. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
  39357. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  39358. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  39359. // onFocus: PropTypes.func,
  39360. // onBlur: PropTypes.func,
  39361. readonly: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  39362. max: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  39363. min: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  39364. step: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
  39365. upHandler: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  39366. downHandler: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  39367. useTouch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  39368. formatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  39369. parser: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  39370. // onMouseEnter: PropTypes.func,
  39371. // onMouseLeave: PropTypes.func,
  39372. // onMouseOver: PropTypes.func,
  39373. // onMouseOut: PropTypes.func,
  39374. precision: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  39375. required: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  39376. pattern: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  39377. decimalSeparator: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  39378. autoComplete: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  39379. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  39380. name: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  39381. id: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
  39382. };
  39383. /* harmony default export */ __webpack_exports__["default"] = ({
  39384. name: 'VCInputNumber',
  39385. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  39386. model: {
  39387. prop: 'value',
  39388. event: 'change'
  39389. },
  39390. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])(inputNumberProps, {
  39391. focusOnUpDown: true,
  39392. useTouch: false,
  39393. prefixCls: 'rc-input-number',
  39394. min: -MAX_SAFE_INTEGER,
  39395. step: 1,
  39396. parser: defaultParser,
  39397. required: false,
  39398. autoComplete: 'off'
  39399. }),
  39400. data: function data() {
  39401. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  39402. this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props);
  39403. var value = void 0;
  39404. if ('value' in props) {
  39405. value = this.value;
  39406. } else {
  39407. value = this.defaultValue;
  39408. }
  39409. var validValue = this.getValidValue(this.toNumber(value));
  39410. return {
  39411. inputValue: this.toPrecisionAsStep(validValue),
  39412. sValue: validValue,
  39413. focused: this.autoFocus
  39414. };
  39415. },
  39416. mounted: function mounted() {
  39417. var _this = this;
  39418. this.$nextTick(function () {
  39419. if (_this.autoFocus && !_this.disabled) {
  39420. _this.focus();
  39421. }
  39422. _this.updatedFunc();
  39423. });
  39424. },
  39425. updated: function updated() {
  39426. var _this2 = this;
  39427. var _$props = this.$props,
  39428. value = _$props.value,
  39429. max = _$props.max,
  39430. min = _$props.min;
  39431. var focused = this.$data.focused;
  39432. var prevProps = this.prevProps;
  39433. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  39434. // Don't trigger in componentDidMount
  39435. if (prevProps) {
  39436. if (!isEqual(prevProps.value, value) || !isEqual(prevProps.max, max) || !isEqual(prevProps.min, min)) {
  39437. var validValue = focused ? value : this.getValidValue(value);
  39438. var nextInputValue = void 0;
  39439. if (this.pressingUpOrDown) {
  39440. nextInputValue = validValue;
  39441. } else if (this.inputting) {
  39442. nextInputValue = this.rawInput;
  39443. } else {
  39444. nextInputValue = this.toPrecisionAsStep(validValue);
  39445. }
  39446. this.setState({
  39447. // eslint-disable-line
  39448. sValue: validValue,
  39449. inputValue: nextInputValue
  39450. });
  39451. }
  39452. // Trigger onChange when max or min change
  39453. // https://github.com/ant-design/ant-design/issues/11574
  39454. var nextValue = 'value' in props ? value : this.sValue;
  39455. // ref: null < 20 === true
  39456. // https://github.com/ant-design/ant-design/issues/14277
  39457. if ('max' in props && prevProps.max !== max && typeof nextValue === 'number' && nextValue > max) {
  39458. this.$emit('change', max);
  39459. }
  39460. if ('min' in props && prevProps.min !== min && typeof nextValue === 'number' && nextValue < min) {
  39461. this.$emit('change', min);
  39462. }
  39463. }
  39464. this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props);
  39465. this.$nextTick(function () {
  39466. _this2.updatedFunc();
  39467. });
  39468. },
  39469. beforeDestroy: function beforeDestroy() {
  39470. this.stop();
  39471. },
  39472. methods: {
  39473. updatedFunc: function updatedFunc() {
  39474. var inputElem = this.$refs.inputRef;
  39475. // Restore cursor
  39476. try {
  39477. // Firefox set the input cursor after it get focused.
  39478. // This caused that if an input didn't init with the selection,
  39479. // set will cause cursor not correct when first focus.
  39480. // Safari will focus input if set selection. We need skip this.
  39481. if (this.cursorStart !== undefined && this.focused) {
  39482. // In most cases, the string after cursor is stable.
  39483. // We can move the cursor before it
  39484. if (
  39485. // If not match full str, try to match part of str
  39486. !this.partRestoreByAfter(this.cursorAfter) && this.sValue !== this.value) {
  39487. // If not match any of then, let's just keep the position
  39488. // TODO: Logic should not reach here, need check if happens
  39489. var pos = this.cursorStart + 1;
  39490. // If not have last string, just position to the end
  39491. if (!this.cursorAfter) {
  39492. pos = inputElem.value.length;
  39493. } else if (this.lastKeyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE) {
  39494. pos = this.cursorStart - 1;
  39495. } else if (this.lastKeyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DELETE) {
  39496. pos = this.cursorStart;
  39497. }
  39498. this.fixCaret(pos, pos);
  39499. } else if (this.currentValue === inputElem.value) {
  39500. // Handle some special key code
  39501. switch (this.lastKeyCode) {
  39502. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE:
  39503. this.fixCaret(this.cursorStart - 1, this.cursorStart - 1);
  39504. break;
  39505. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DELETE:
  39506. this.fixCaret(this.cursorStart + 1, this.cursorStart + 1);
  39507. break;
  39508. default:
  39509. // Do nothing
  39510. }
  39511. }
  39512. }
  39513. } catch (e) {}
  39514. // Do nothing
  39515. // Reset last key
  39516. this.lastKeyCode = null;
  39517. // pressingUpOrDown is true means that someone just click up or down button
  39518. if (!this.pressingUpOrDown) {
  39519. return;
  39520. }
  39521. if (this.focusOnUpDown && this.focused) {
  39522. if (document.activeElement !== inputElem) {
  39523. this.focus();
  39524. }
  39525. }
  39526. this.pressingUpOrDown = false;
  39527. },
  39528. onKeyDown: function onKeyDown(e) {
  39529. if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP) {
  39530. var ratio = this.getRatio(e);
  39531. this.up(e, ratio);
  39532. this.stop();
  39533. } else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN) {
  39534. var _ratio = this.getRatio(e);
  39535. this.down(e, _ratio);
  39536. this.stop();
  39537. } else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER) {
  39538. this.$emit('pressEnter', e);
  39539. }
  39540. // Trigger user key down
  39541. this.recordCursorPosition();
  39542. this.lastKeyCode = e.keyCode;
  39543. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  39544. args[_key - 1] = arguments[_key];
  39545. }
  39546. this.$emit.apply(this, ['keydown', e].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
  39547. },
  39548. onKeyUp: function onKeyUp(e) {
  39549. this.stop();
  39550. this.recordCursorPosition();
  39551. for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  39552. args[_key2 - 1] = arguments[_key2];
  39553. }
  39554. this.$emit.apply(this, ['keyup', e].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
  39555. },
  39556. onTrigger: function onTrigger(e) {
  39557. if (e.target.composing) return false;
  39558. this.onChange(e);
  39559. },
  39560. onChange: function onChange(e) {
  39561. if (this.focused) {
  39562. this.inputting = true;
  39563. }
  39564. this.rawInput = this.parser(this.getValueFromEvent(e));
  39565. this.setState({ inputValue: this.rawInput });
  39566. this.$emit('change', this.toNumber(this.rawInput)); // valid number or invalid string
  39567. },
  39568. onFocus: function onFocus() {
  39569. this.setState({
  39570. focused: true
  39571. });
  39572. for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  39573. args[_key3] = arguments[_key3];
  39574. }
  39575. this.$emit.apply(this, ['focus'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
  39576. },
  39577. onBlur: function onBlur() {
  39578. this.inputting = false;
  39579. this.setState({
  39580. focused: false
  39581. });
  39582. var value = this.getCurrentValidValue(this.inputValue);
  39583. var newValue = this.setValue(value);
  39584. if (this.$listeners.blur) {
  39585. var originValue = this.$refs.inputRef.value;
  39586. var inputValue = this.getInputDisplayValue({ focused: false, sValue: newValue });
  39587. this.$refs.inputRef.value = inputValue;
  39588. for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  39589. args[_key4] = arguments[_key4];
  39590. }
  39591. this.$emit.apply(this, ['blur'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
  39592. this.$refs.inputRef.value = originValue;
  39593. }
  39594. },
  39595. getCurrentValidValue: function getCurrentValidValue(value) {
  39596. var val = value;
  39597. if (val === '') {
  39598. val = '';
  39599. } else if (!this.isNotCompleteNumber(parseFloat(val, 10))) {
  39600. val = this.getValidValue(val);
  39601. } else {
  39602. val = this.sValue;
  39603. }
  39604. return this.toNumber(val);
  39605. },
  39606. getRatio: function getRatio(e) {
  39607. var ratio = 1;
  39608. if (e.metaKey || e.ctrlKey) {
  39609. ratio = 0.1;
  39610. } else if (e.shiftKey) {
  39611. ratio = 10;
  39612. }
  39613. return ratio;
  39614. },
  39615. getValueFromEvent: function getValueFromEvent(e) {
  39616. // optimize for chinese input expierence
  39617. // https://github.com/ant-design/ant-design/issues/8196
  39618. var value = e.target.value.trim().replace(/。/g, '.');
  39619. if (isValidProps(this.decimalSeparator)) {
  39620. value = value.replace(this.decimalSeparator, '.');
  39621. }
  39622. return value;
  39623. },
  39624. getValidValue: function getValidValue(value) {
  39625. var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.min;
  39626. var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.max;
  39627. var val = parseFloat(value, 10);
  39628. // https://github.com/ant-design/ant-design/issues/7358
  39629. if (isNaN(val)) {
  39630. return value;
  39631. }
  39632. if (val < min) {
  39633. val = min;
  39634. }
  39635. if (val > max) {
  39636. val = max;
  39637. }
  39638. return val;
  39639. },
  39640. setValue: function setValue(v, callback) {
  39641. // trigger onChange
  39642. var precision = this.$props.precision;
  39643. var newValue = this.isNotCompleteNumber(parseFloat(v, 10)) ? null : parseFloat(v, 10);
  39644. var _$data = this.$data,
  39645. _$data$sValue = _$data.sValue,
  39646. value = _$data$sValue === undefined ? null : _$data$sValue,
  39647. _$data$inputValue = _$data.inputValue,
  39648. inputValue = _$data$inputValue === undefined ? null : _$data$inputValue;
  39649. // https://github.com/ant-design/ant-design/issues/7363
  39650. // https://github.com/ant-design/ant-design/issues/16622
  39651. var newValueInString = typeof newValue === 'number' ? newValue.toFixed(precision) : '' + newValue;
  39652. var changed = newValue !== value || newValueInString !== '' + inputValue;
  39653. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'value')) {
  39654. this.setState({
  39655. sValue: newValue,
  39656. inputValue: this.toPrecisionAsStep(v)
  39657. }, callback);
  39658. } else {
  39659. // always set input value same as value
  39660. this.setState({
  39661. inputValue: this.toPrecisionAsStep(this.sValue)
  39662. }, callback);
  39663. }
  39664. if (changed) {
  39665. this.$emit('change', newValue);
  39666. }
  39667. return newValue;
  39668. },
  39669. getPrecision: function getPrecision(value) {
  39670. if (isValidProps(this.precision)) {
  39671. return this.precision;
  39672. }
  39673. var valueString = value.toString();
  39674. if (valueString.indexOf('e-') >= 0) {
  39675. return parseInt(valueString.slice(valueString.indexOf('e-') + 2), 10);
  39676. }
  39677. var precision = 0;
  39678. if (valueString.indexOf('.') >= 0) {
  39679. precision = valueString.length - valueString.indexOf('.') - 1;
  39680. }
  39681. return precision;
  39682. },
  39683. // step={1.0} value={1.51}
  39684. // press +
  39685. // then value should be 2.51, rather than 2.5
  39686. // if this.$props.precision is undefined
  39687. // https://github.com/react-component/input-number/issues/39
  39688. getMaxPrecision: function getMaxPrecision(currentValue) {
  39689. var ratio = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
  39690. if (isValidProps(this.precision)) {
  39691. return this.precision;
  39692. }
  39693. var step = this.step;
  39694. var ratioPrecision = this.getPrecision(ratio);
  39695. var stepPrecision = this.getPrecision(step);
  39696. var currentValuePrecision = this.getPrecision(currentValue);
  39697. if (!currentValue) {
  39698. return ratioPrecision + stepPrecision;
  39699. }
  39700. return Math.max(currentValuePrecision, ratioPrecision + stepPrecision);
  39701. },
  39702. getPrecisionFactor: function getPrecisionFactor(currentValue) {
  39703. var ratio = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
  39704. var precision = this.getMaxPrecision(currentValue, ratio);
  39705. return Math.pow(10, precision);
  39706. },
  39707. getInputDisplayValue: function getInputDisplayValue(state) {
  39708. var _ref = state || this.$data,
  39709. focused = _ref.focused,
  39710. inputValue = _ref.inputValue,
  39711. sValue = _ref.sValue;
  39712. var inputDisplayValue = void 0;
  39713. if (focused) {
  39714. inputDisplayValue = inputValue;
  39715. } else {
  39716. inputDisplayValue = this.toPrecisionAsStep(sValue);
  39717. }
  39718. if (inputDisplayValue === undefined || inputDisplayValue === null) {
  39719. inputDisplayValue = '';
  39720. }
  39721. var inputDisplayValueFormat = this.formatWrapper(inputDisplayValue);
  39722. if (isValidProps(this.$props.decimalSeparator)) {
  39723. inputDisplayValueFormat = inputDisplayValueFormat.toString().replace('.', this.$props.decimalSeparator);
  39724. }
  39725. return inputDisplayValueFormat;
  39726. },
  39727. recordCursorPosition: function recordCursorPosition() {
  39728. // Record position
  39729. try {
  39730. var inputElem = this.$refs.inputRef;
  39731. this.cursorStart = inputElem.selectionStart;
  39732. this.cursorEnd = inputElem.selectionEnd;
  39733. this.currentValue = inputElem.value;
  39734. this.cursorBefore = inputElem.value.substring(0, this.cursorStart);
  39735. this.cursorAfter = inputElem.value.substring(this.cursorEnd);
  39736. } catch (e) {
  39737. // Fix error in Chrome:
  39738. // Failed to read the 'selectionStart' property from 'HTMLInputElement'
  39739. // http://stackoverflow.com/q/21177489/3040605
  39740. }
  39741. },
  39742. fixCaret: function fixCaret(start, end) {
  39743. if (start === undefined || end === undefined || !this.$refs.inputRef || !this.$refs.inputRef.value) {
  39744. return;
  39745. }
  39746. try {
  39747. var inputElem = this.$refs.inputRef;
  39748. var currentStart = inputElem.selectionStart;
  39749. var currentEnd = inputElem.selectionEnd;
  39750. if (start !== currentStart || end !== currentEnd) {
  39751. inputElem.setSelectionRange(start, end);
  39752. }
  39753. } catch (e) {
  39754. // Fix error in Chrome:
  39755. // Failed to read the 'selectionStart' property from 'HTMLInputElement'
  39756. // http://stackoverflow.com/q/21177489/3040605
  39757. }
  39758. },
  39759. restoreByAfter: function restoreByAfter(str) {
  39760. if (str === undefined) return false;
  39761. var fullStr = this.$refs.inputRef.value;
  39762. var index = fullStr.lastIndexOf(str);
  39763. if (index === -1) return false;
  39764. var prevCursorPos = this.cursorBefore.length;
  39765. if (this.lastKeyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DELETE && this.cursorBefore.charAt(prevCursorPos - 1) === str[0]) {
  39766. this.fixCaret(prevCursorPos, prevCursorPos);
  39767. return true;
  39768. }
  39769. if (index + str.length === fullStr.length) {
  39770. this.fixCaret(index, index);
  39771. return true;
  39772. }
  39773. return false;
  39774. },
  39775. partRestoreByAfter: function partRestoreByAfter(str) {
  39776. var _this3 = this;
  39777. if (str === undefined) return false;
  39778. // For loop from full str to the str with last char to map. e.g. 123
  39779. // -> 123
  39780. // -> 23
  39781. // -> 3
  39782. return Array.prototype.some.call(str, function (_, start) {
  39783. var partStr = str.substring(start);
  39784. return _this3.restoreByAfter(partStr);
  39785. });
  39786. },
  39787. focus: function focus() {
  39788. this.$refs.inputRef.focus();
  39789. this.recordCursorPosition();
  39790. },
  39791. blur: function blur() {
  39792. this.$refs.inputRef.blur();
  39793. },
  39794. formatWrapper: function formatWrapper(num) {
  39795. // http://2ality.com/2012/03/signedzero.html
  39796. // https://github.com/ant-design/ant-design/issues/9439
  39797. if (this.formatter) {
  39798. return this.formatter(num);
  39799. }
  39800. return num;
  39801. },
  39802. toPrecisionAsStep: function toPrecisionAsStep(num) {
  39803. if (this.isNotCompleteNumber(num) || num === '') {
  39804. return num;
  39805. }
  39806. var precision = Math.abs(this.getMaxPrecision(num));
  39807. if (!isNaN(precision)) {
  39808. return Number(num).toFixed(precision);
  39809. }
  39810. return num.toString();
  39811. },
  39812. // '1.' '1x' 'xx' '' => are not complete numbers
  39813. isNotCompleteNumber: function isNotCompleteNumber(num) {
  39814. return isNaN(num) || num === '' || num === null || num && num.toString().indexOf('.') === num.toString().length - 1;
  39815. },
  39816. toNumber: function toNumber(num) {
  39817. var _$props2 = this.$props,
  39818. precision = _$props2.precision,
  39819. autoFocus = _$props2.autoFocus;
  39820. var _focused = this.focused,
  39821. focused = _focused === undefined ? autoFocus : _focused;
  39822. // num.length > 16 => This is to prevent input of large numbers
  39823. var numberIsTooLarge = num && num.length > 16 && focused;
  39824. if (this.isNotCompleteNumber(num) || numberIsTooLarge) {
  39825. return num;
  39826. }
  39827. if (isValidProps(precision)) {
  39828. return Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision);
  39829. }
  39830. return Number(num);
  39831. },
  39832. upStep: function upStep(val, rat) {
  39833. var step = this.step;
  39834. var precisionFactor = this.getPrecisionFactor(val, rat);
  39835. var precision = Math.abs(this.getMaxPrecision(val, rat));
  39836. var result = ((precisionFactor * val + precisionFactor * step * rat) / precisionFactor).toFixed(precision);
  39837. return this.toNumber(result);
  39838. },
  39839. downStep: function downStep(val, rat) {
  39840. var step = this.step;
  39841. var precisionFactor = this.getPrecisionFactor(val, rat);
  39842. var precision = Math.abs(this.getMaxPrecision(val, rat));
  39843. var result = ((precisionFactor * val - precisionFactor * step * rat) / precisionFactor).toFixed(precision);
  39844. return this.toNumber(result);
  39845. },
  39846. stepFn: function stepFn(type, e) {
  39847. var _this4 = this;
  39848. var ratio = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
  39849. var recursive = arguments[3];
  39850. this.stop();
  39851. if (e) {
  39852. // e.persist()
  39853. e.preventDefault();
  39854. }
  39855. if (this.disabled) {
  39856. return;
  39857. }
  39858. var max = this.max,
  39859. min = this.min;
  39860. var value = this.getCurrentValidValue(this.inputValue) || 0;
  39861. if (this.isNotCompleteNumber(value)) {
  39862. return;
  39863. }
  39864. var val = this[type + 'Step'](value, ratio);
  39865. var outOfRange = val > max || val < min;
  39866. if (val > max) {
  39867. val = max;
  39868. } else if (val < min) {
  39869. val = min;
  39870. }
  39871. this.setValue(val);
  39872. this.setState({
  39873. focused: true
  39874. });
  39875. if (outOfRange) {
  39876. return;
  39877. }
  39878. this.autoStepTimer = setTimeout(function () {
  39879. _this4[type](e, ratio, true);
  39880. }, recursive ? SPEED : DELAY);
  39881. },
  39882. stop: function stop() {
  39883. if (this.autoStepTimer) {
  39884. clearTimeout(this.autoStepTimer);
  39885. }
  39886. },
  39887. down: function down(e, ratio, recursive) {
  39888. this.pressingUpOrDown = true;
  39889. this.stepFn('down', e, ratio, recursive);
  39890. },
  39891. up: function up(e, ratio, recursive) {
  39892. this.pressingUpOrDown = true;
  39893. this.stepFn('up', e, ratio, recursive);
  39894. },
  39895. handleInputClick: function handleInputClick() {
  39896. this.$emit('click');
  39897. },
  39898. onCompositionstart: function onCompositionstart(e) {
  39899. e.target.composing = true;
  39900. },
  39901. onCompositionend: function onCompositionend(e) {
  39902. this.onChange(e);
  39903. e.target.composing = false;
  39904. }
  39905. },
  39906. render: function render() {
  39907. var _classNames;
  39908. var h = arguments[0];
  39909. var _$props3 = this.$props,
  39910. prefixCls = _$props3.prefixCls,
  39911. disabled = _$props3.disabled,
  39912. readonly = _$props3.readonly,
  39913. useTouch = _$props3.useTouch,
  39914. autoComplete = _$props3.autoComplete,
  39915. upHandler = _$props3.upHandler,
  39916. downHandler = _$props3.downHandler;
  39917. var classes = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-focused', this.focused), _classNames));
  39918. var upDisabledClass = '';
  39919. var downDisabledClass = '';
  39920. var sValue = this.sValue;
  39921. if (sValue || sValue === 0) {
  39922. if (!isNaN(sValue)) {
  39923. var val = Number(sValue);
  39924. if (val >= this.max) {
  39925. upDisabledClass = prefixCls + '-handler-up-disabled';
  39926. }
  39927. if (val <= this.min) {
  39928. downDisabledClass = prefixCls + '-handler-down-disabled';
  39929. }
  39930. } else {
  39931. upDisabledClass = prefixCls + '-handler-up-disabled';
  39932. downDisabledClass = prefixCls + '-handler-down-disabled';
  39933. }
  39934. }
  39935. var editable = !this.readonly && !this.disabled;
  39936. // focus state, show input value
  39937. // unfocus state, show valid value
  39938. var inputDisplayValue = this.getInputDisplayValue();
  39939. var upEvents = void 0;
  39940. var downEvents = void 0;
  39941. if (useTouch) {
  39942. upEvents = {
  39943. touchstart: editable && !upDisabledClass ? this.up : noop,
  39944. touchend: this.stop
  39945. };
  39946. downEvents = {
  39947. touchstart: editable && !downDisabledClass ? this.down : noop,
  39948. touchend: this.stop
  39949. };
  39950. } else {
  39951. upEvents = {
  39952. mousedown: editable && !upDisabledClass ? this.up : noop,
  39953. mouseup: this.stop,
  39954. mouseleave: this.stop
  39955. };
  39956. downEvents = {
  39957. mousedown: editable && !downDisabledClass ? this.down : noop,
  39958. mouseup: this.stop,
  39959. mouseleave: this.stop
  39960. };
  39961. }
  39962. var isUpDisabled = !!upDisabledClass || disabled || readonly;
  39963. var isDownDisabled = !!downDisabledClass || disabled || readonly;
  39964. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
  39965. _getListeners$mouseen = _getListeners.mouseenter,
  39966. mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
  39967. _getListeners$mousele = _getListeners.mouseleave,
  39968. mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele,
  39969. _getListeners$mouseov = _getListeners.mouseover,
  39970. mouseover = _getListeners$mouseov === undefined ? noop : _getListeners$mouseov,
  39971. _getListeners$mouseou = _getListeners.mouseout,
  39972. mouseout = _getListeners$mouseou === undefined ? noop : _getListeners$mouseou;
  39973. var contentProps = {
  39974. on: { mouseenter: mouseenter, mouseleave: mouseleave, mouseover: mouseover, mouseout: mouseout },
  39975. 'class': classes,
  39976. attrs: { title: this.$props.title }
  39977. };
  39978. var upHandlerProps = {
  39979. props: {
  39980. disabled: isUpDisabled,
  39981. prefixCls: prefixCls
  39982. },
  39983. attrs: {
  39984. unselectable: 'unselectable',
  39985. role: 'button',
  39986. 'aria-label': 'Increase Value',
  39987. 'aria-disabled': !!isUpDisabled
  39988. },
  39989. 'class': prefixCls + '-handler ' + prefixCls + '-handler-up ' + upDisabledClass,
  39990. on: upEvents,
  39991. ref: 'up'
  39992. };
  39993. var downHandlerProps = {
  39994. props: {
  39995. disabled: isDownDisabled,
  39996. prefixCls: prefixCls
  39997. },
  39998. attrs: {
  39999. unselectable: 'unselectable',
  40000. role: 'button',
  40001. 'aria-label': 'Decrease Value',
  40002. 'aria-disabled': !!isDownDisabled
  40003. },
  40004. 'class': prefixCls + '-handler ' + prefixCls + '-handler-down ' + downDisabledClass,
  40005. on: downEvents,
  40006. ref: 'down'
  40007. };
  40008. // ref for test
  40009. return h(
  40010. 'div',
  40011. contentProps,
  40012. [h(
  40013. 'div',
  40014. { 'class': prefixCls + '-handler-wrap' },
  40015. [h(
  40016. _InputHandler__WEBPACK_IMPORTED_MODULE_8__["default"],
  40017. upHandlerProps,
  40018. [upHandler || h('span', {
  40019. attrs: {
  40020. unselectable: 'unselectable'
  40021. },
  40022. 'class': prefixCls + '-handler-up-inner',
  40023. on: {
  40024. 'click': preventDefault
  40025. }
  40026. })]
  40027. ), h(
  40028. _InputHandler__WEBPACK_IMPORTED_MODULE_8__["default"],
  40029. downHandlerProps,
  40030. [downHandler || h('span', {
  40031. attrs: {
  40032. unselectable: 'unselectable'
  40033. },
  40034. 'class': prefixCls + '-handler-down-inner',
  40035. on: {
  40036. 'click': preventDefault
  40037. }
  40038. })]
  40039. )]
  40040. ), h(
  40041. 'div',
  40042. { 'class': prefixCls + '-input-wrap' },
  40043. [h('input', {
  40044. attrs: {
  40045. role: 'spinbutton',
  40046. 'aria-valuemin': this.min,
  40047. 'aria-valuemax': this.max,
  40048. 'aria-valuenow': sValue,
  40049. required: this.required,
  40050. type: this.type,
  40051. placeholder: this.placeholder,
  40052. tabIndex: this.tabIndex,
  40053. autoComplete: autoComplete,
  40054. readonly: this.readonly,
  40055. disabled: this.disabled,
  40056. max: this.max,
  40057. min: this.min,
  40058. step: this.step,
  40059. name: this.name,
  40060. title: this.title,
  40061. id: this.id,
  40062. pattern: this.pattern
  40063. },
  40064. on: {
  40065. 'click': this.handleInputClick,
  40066. 'focus': this.onFocus,
  40067. 'blur': this.onBlur,
  40068. 'keydown': editable ? this.onKeyDown : noop,
  40069. 'keyup': editable ? this.onKeyUp : noop,
  40070. 'input': this.onTrigger,
  40071. 'compositionstart': this.onCompositionstart,
  40072. 'compositionend': this.onCompositionend
  40073. },
  40074. 'class': prefixCls + '-input',
  40075. ref: 'inputRef',
  40076. domProps: {
  40077. 'value': inputDisplayValue
  40078. }
  40079. })]
  40080. )]
  40081. );
  40082. }
  40083. });
  40084. /***/ }),
  40085. /***/ "./components/vc-lazy-load/index.js":
  40086. /*!******************************************!*\
  40087. !*** ./components/vc-lazy-load/index.js ***!
  40088. \******************************************/
  40089. /*! exports provided: default */
  40090. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40091. "use strict";
  40092. __webpack_require__.r(__webpack_exports__);
  40093. /* harmony import */ var _src_LazyLoad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/LazyLoad */ "./components/vc-lazy-load/src/LazyLoad.jsx");
  40094. /* harmony default export */ __webpack_exports__["default"] = (_src_LazyLoad__WEBPACK_IMPORTED_MODULE_0__["default"]);
  40095. /***/ }),
  40096. /***/ "./components/vc-lazy-load/src/LazyLoad.jsx":
  40097. /*!**************************************************!*\
  40098. !*** ./components/vc-lazy-load/src/LazyLoad.jsx ***!
  40099. \**************************************************/
  40100. /*! exports provided: default */
  40101. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40102. "use strict";
  40103. __webpack_require__.r(__webpack_exports__);
  40104. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  40105. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  40106. /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
  40107. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  40108. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
  40109. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
  40110. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_5__);
  40111. /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/throttle */ "./node_modules/lodash/throttle.js");
  40112. /* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_6__);
  40113. /* harmony import */ var _utils_parentScroll__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/parentScroll */ "./components/vc-lazy-load/src/utils/parentScroll.js");
  40114. /* harmony import */ var _utils_inViewport__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/inViewport */ "./components/vc-lazy-load/src/utils/inViewport.js");
  40115. var lazyLoadProps = {
  40116. debounce: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  40117. elementType: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  40118. height: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
  40119. offset: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  40120. offsetBottom: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  40121. offsetHorizontal: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  40122. offsetLeft: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  40123. offsetRight: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  40124. offsetTop: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  40125. offsetVertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  40126. threshold: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  40127. throttle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  40128. width: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
  40129. _propsSymbol: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
  40130. };
  40131. /* harmony default export */ __webpack_exports__["default"] = ({
  40132. name: 'LazyLoad',
  40133. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
  40134. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(lazyLoadProps, {
  40135. elementType: 'div',
  40136. debounce: true,
  40137. offset: 0,
  40138. offsetBottom: 0,
  40139. offsetHorizontal: 0,
  40140. offsetLeft: 0,
  40141. offsetRight: 0,
  40142. offsetTop: 0,
  40143. offsetVertical: 0,
  40144. throttle: 250
  40145. }),
  40146. data: function data() {
  40147. if (this.throttle > 0) {
  40148. if (this.debounce) {
  40149. this.lazyLoadHandler = lodash_debounce__WEBPACK_IMPORTED_MODULE_5___default()(this.lazyLoadHandler, this.throttle);
  40150. } else {
  40151. this.lazyLoadHandler = lodash_throttle__WEBPACK_IMPORTED_MODULE_6___default()(this.lazyLoadHandler, this.throttle);
  40152. }
  40153. }
  40154. return {
  40155. visible: false
  40156. };
  40157. },
  40158. watch: {
  40159. _propsSymbol: function _propsSymbol() {
  40160. if (!this.visible) {
  40161. this.lazyLoadHandler();
  40162. }
  40163. }
  40164. },
  40165. mounted: function mounted() {
  40166. var _this = this;
  40167. this.$nextTick(function () {
  40168. _this._mounted = true;
  40169. var eventNode = _this.getEventNode();
  40170. _this.lazyLoadHandler();
  40171. if (_this.lazyLoadHandler.flush) {
  40172. _this.lazyLoadHandler.flush();
  40173. }
  40174. _this.resizeHander = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__["default"])(window, 'resize', _this.lazyLoadHandler);
  40175. _this.scrollHander = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__["default"])(eventNode, 'scroll', _this.lazyLoadHandler);
  40176. });
  40177. },
  40178. beforeDestroy: function beforeDestroy() {
  40179. this._mounted = false;
  40180. if (this.lazyLoadHandler.cancel) {
  40181. this.lazyLoadHandler.cancel();
  40182. }
  40183. this.detachListeners();
  40184. },
  40185. methods: {
  40186. getEventNode: function getEventNode() {
  40187. return Object(_utils_parentScroll__WEBPACK_IMPORTED_MODULE_7__["default"])(this.$el);
  40188. },
  40189. getOffset: function getOffset() {
  40190. var _$props = this.$props,
  40191. offset = _$props.offset,
  40192. offsetVertical = _$props.offsetVertical,
  40193. offsetHorizontal = _$props.offsetHorizontal,
  40194. offsetTop = _$props.offsetTop,
  40195. offsetBottom = _$props.offsetBottom,
  40196. offsetLeft = _$props.offsetLeft,
  40197. offsetRight = _$props.offsetRight,
  40198. threshold = _$props.threshold;
  40199. var _offsetAll = threshold || offset;
  40200. var _offsetVertical = offsetVertical || _offsetAll;
  40201. var _offsetHorizontal = offsetHorizontal || _offsetAll;
  40202. return {
  40203. top: offsetTop || _offsetVertical,
  40204. bottom: offsetBottom || _offsetVertical,
  40205. left: offsetLeft || _offsetHorizontal,
  40206. right: offsetRight || _offsetHorizontal
  40207. };
  40208. },
  40209. lazyLoadHandler: function lazyLoadHandler() {
  40210. var _this2 = this;
  40211. if (!this._mounted) {
  40212. return;
  40213. }
  40214. var offset = this.getOffset();
  40215. var node = this.$el;
  40216. var eventNode = this.getEventNode();
  40217. if (Object(_utils_inViewport__WEBPACK_IMPORTED_MODULE_8__["default"])(node, eventNode, offset)) {
  40218. this.setState({ visible: true }, function () {
  40219. _this2.__emit('contentVisible');
  40220. });
  40221. this.detachListeners();
  40222. }
  40223. },
  40224. detachListeners: function detachListeners() {
  40225. this.resizeHander && this.resizeHander.remove();
  40226. this.scrollHander && this.scrollHander.remove();
  40227. }
  40228. },
  40229. render: function render(createElement) {
  40230. var children = this.$slots['default'];
  40231. if (children.length !== 1) {
  40232. Object(_util_warning__WEBPACK_IMPORTED_MODULE_4__["default"])(false, 'lazyLoad组件只能包含一个子元素');
  40233. return null;
  40234. }
  40235. var _$props2 = this.$props,
  40236. height = _$props2.height,
  40237. width = _$props2.width,
  40238. elementType = _$props2.elementType;
  40239. var visible = this.visible;
  40240. var elStyles = {
  40241. height: typeof height === 'number' ? height + 'px' : height,
  40242. width: typeof width === 'number' ? width + 'px' : width
  40243. };
  40244. var elClasses = {
  40245. LazyLoad: true,
  40246. 'is-visible': visible
  40247. };
  40248. return createElement(elementType, {
  40249. 'class': elClasses,
  40250. style: elStyles
  40251. }, [visible ? children[0] : null]);
  40252. }
  40253. });
  40254. /***/ }),
  40255. /***/ "./components/vc-lazy-load/src/utils/getElementPosition.js":
  40256. /*!*****************************************************************!*\
  40257. !*** ./components/vc-lazy-load/src/utils/getElementPosition.js ***!
  40258. \*****************************************************************/
  40259. /*! exports provided: default */
  40260. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40261. "use strict";
  40262. __webpack_require__.r(__webpack_exports__);
  40263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getElementPosition; });
  40264. /*
  40265. * Finds element's position relative to the whole document,
  40266. * rather than to the viewport as it is the case with .getBoundingClientRect().
  40267. */
  40268. function getElementPosition(element) {
  40269. var rect = element.getBoundingClientRect();
  40270. return {
  40271. top: rect.top + window.pageYOffset,
  40272. left: rect.left + window.pageXOffset
  40273. };
  40274. }
  40275. /***/ }),
  40276. /***/ "./components/vc-lazy-load/src/utils/inViewport.js":
  40277. /*!*********************************************************!*\
  40278. !*** ./components/vc-lazy-load/src/utils/inViewport.js ***!
  40279. \*********************************************************/
  40280. /*! exports provided: default */
  40281. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40282. "use strict";
  40283. __webpack_require__.r(__webpack_exports__);
  40284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return inViewport; });
  40285. /* harmony import */ var _getElementPosition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getElementPosition */ "./components/vc-lazy-load/src/utils/getElementPosition.js");
  40286. var isHidden = function isHidden(element) {
  40287. return element.offsetParent === null;
  40288. };
  40289. function inViewport(element, container, customOffset) {
  40290. if (isHidden(element)) {
  40291. return false;
  40292. }
  40293. var top = void 0;
  40294. var bottom = void 0;
  40295. var left = void 0;
  40296. var right = void 0;
  40297. if (typeof container === 'undefined' || container === window) {
  40298. top = window.pageYOffset;
  40299. left = window.pageXOffset;
  40300. bottom = top + window.innerHeight;
  40301. right = left + window.innerWidth;
  40302. } else {
  40303. var containerPosition = Object(_getElementPosition__WEBPACK_IMPORTED_MODULE_0__["default"])(container);
  40304. top = containerPosition.top;
  40305. left = containerPosition.left;
  40306. bottom = top + container.offsetHeight;
  40307. right = left + container.offsetWidth;
  40308. }
  40309. var elementPosition = Object(_getElementPosition__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
  40310. return top <= elementPosition.top + element.offsetHeight + customOffset.top && bottom >= elementPosition.top - customOffset.bottom && left <= elementPosition.left + element.offsetWidth + customOffset.left && right >= elementPosition.left - customOffset.right;
  40311. }
  40312. /***/ }),
  40313. /***/ "./components/vc-lazy-load/src/utils/parentScroll.js":
  40314. /*!***********************************************************!*\
  40315. !*** ./components/vc-lazy-load/src/utils/parentScroll.js ***!
  40316. \***********************************************************/
  40317. /*! exports provided: default */
  40318. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40319. "use strict";
  40320. __webpack_require__.r(__webpack_exports__);
  40321. var style = function style(element, prop) {
  40322. var styleVal = '';
  40323. if (typeof getComputedStyle !== 'undefined') {
  40324. styleVal = window.getComputedStyle(element, null).getPropertyValue(prop);
  40325. } else {
  40326. styleVal = element.style[prop];
  40327. }
  40328. return styleVal;
  40329. };
  40330. var overflow = function overflow(element) {
  40331. return style(element, 'overflow') + style(element, 'overflow-y') + style(element, 'overflow-x');
  40332. };
  40333. var scrollParent = function scrollParent(element) {
  40334. if (!(element instanceof window.HTMLElement)) {
  40335. return window;
  40336. }
  40337. var parent = element;
  40338. while (parent) {
  40339. if (parent === document.body || parent === document.documentElement) {
  40340. break;
  40341. }
  40342. if (!parent.parentNode) {
  40343. break;
  40344. }
  40345. if (/(scroll|auto)/.test(overflow(parent))) {
  40346. return parent;
  40347. }
  40348. parent = parent.parentNode;
  40349. }
  40350. return window;
  40351. };
  40352. /* harmony default export */ __webpack_exports__["default"] = (scrollParent);
  40353. /***/ }),
  40354. /***/ "./components/vc-m-feedback/index.js":
  40355. /*!*******************************************!*\
  40356. !*** ./components/vc-m-feedback/index.js ***!
  40357. \*******************************************/
  40358. /*! exports provided: default */
  40359. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40360. "use strict";
  40361. __webpack_require__.r(__webpack_exports__);
  40362. /* harmony import */ var _src_TouchFeedback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/TouchFeedback */ "./components/vc-m-feedback/src/TouchFeedback.jsx");
  40363. // based on 2.0.0
  40364. /* harmony default export */ __webpack_exports__["default"] = (_src_TouchFeedback__WEBPACK_IMPORTED_MODULE_0__["default"]);
  40365. /***/ }),
  40366. /***/ "./components/vc-m-feedback/src/PropTypes.jsx":
  40367. /*!****************************************************!*\
  40368. !*** ./components/vc-m-feedback/src/PropTypes.jsx ***!
  40369. \****************************************************/
  40370. /*! exports provided: ITouchProps */
  40371. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40372. "use strict";
  40373. __webpack_require__.r(__webpack_exports__);
  40374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ITouchProps", function() { return ITouchProps; });
  40375. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  40376. var ITouchProps = {
  40377. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  40378. activeClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  40379. activeStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
  40380. // onTouchStart: PropTypes.func,
  40381. // onTouchEnd: PropTypes.func,
  40382. // onTouchCancel: PropTypes.func,
  40383. // onMouseDown: PropTypes.func,
  40384. // onMouseUp: PropTypes.func,
  40385. // onMouseLeave: PropTypes.func,
  40386. };
  40387. /***/ }),
  40388. /***/ "./components/vc-m-feedback/src/TouchFeedback.jsx":
  40389. /*!********************************************************!*\
  40390. !*** ./components/vc-m-feedback/src/TouchFeedback.jsx ***!
  40391. \********************************************************/
  40392. /*! exports provided: default */
  40393. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40394. "use strict";
  40395. __webpack_require__.r(__webpack_exports__);
  40396. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  40397. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  40398. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  40399. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  40400. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
  40401. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  40402. /* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PropTypes */ "./components/vc-m-feedback/src/PropTypes.jsx");
  40403. /* harmony default export */ __webpack_exports__["default"] = ({
  40404. name: 'TouchFeedback',
  40405. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  40406. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["initDefaultProps"])(_PropTypes__WEBPACK_IMPORTED_MODULE_5__["ITouchProps"], {
  40407. disabled: false
  40408. }),
  40409. data: function data() {
  40410. return {
  40411. active: false
  40412. };
  40413. },
  40414. mounted: function mounted() {
  40415. var _this = this;
  40416. this.$nextTick(function () {
  40417. if (_this.disabled && _this.active) {
  40418. _this.setState({
  40419. active: false
  40420. });
  40421. }
  40422. });
  40423. },
  40424. methods: {
  40425. triggerEvent: function triggerEvent(type, isActive, ev) {
  40426. // 暂时仅有input-number用到,事件直接到挂载到Touchable上,不需要像antd那样从子组件触发
  40427. this.$emit(type, ev);
  40428. if (isActive !== this.active) {
  40429. this.setState({
  40430. active: isActive
  40431. });
  40432. }
  40433. },
  40434. onTouchStart: function onTouchStart(e) {
  40435. this.triggerEvent('touchstart', true, e);
  40436. },
  40437. onTouchMove: function onTouchMove(e) {
  40438. this.triggerEvent('touchmove', false, e);
  40439. },
  40440. onTouchEnd: function onTouchEnd(e) {
  40441. this.triggerEvent('touchend', false, e);
  40442. },
  40443. onTouchCancel: function onTouchCancel(e) {
  40444. this.triggerEvent('touchcancel', false, e);
  40445. },
  40446. onMouseDown: function onMouseDown(e) {
  40447. // pc simulate mobile
  40448. this.triggerEvent('mousedown', true, e);
  40449. },
  40450. onMouseUp: function onMouseUp(e) {
  40451. this.triggerEvent('mouseup', false, e);
  40452. },
  40453. onMouseLeave: function onMouseLeave(e) {
  40454. this.triggerEvent('mouseleave', false, e);
  40455. }
  40456. },
  40457. render: function render() {
  40458. var _$props = this.$props,
  40459. disabled = _$props.disabled,
  40460. _$props$activeClassNa = _$props.activeClassName,
  40461. activeClassName = _$props$activeClassNa === undefined ? '' : _$props$activeClassNa,
  40462. _$props$activeStyle = _$props.activeStyle,
  40463. activeStyle = _$props$activeStyle === undefined ? {} : _$props$activeStyle;
  40464. var child = this.$slots['default'];
  40465. if (child.length !== 1) {
  40466. Object(_util_warning__WEBPACK_IMPORTED_MODULE_3__["default"])(false, 'm-feedback组件只能包含一个子元素');
  40467. return null;
  40468. }
  40469. var childProps = {
  40470. on: disabled ? {} : {
  40471. touchstart: this.onTouchStart,
  40472. touchmove: this.onTouchMove,
  40473. touchend: this.onTouchEnd,
  40474. touchcancel: this.onTouchCancel,
  40475. mousedown: this.onMouseDown,
  40476. mouseup: this.onMouseUp,
  40477. mouseleave: this.onMouseLeave
  40478. }
  40479. };
  40480. if (!disabled && this.active) {
  40481. childProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, childProps, {
  40482. style: activeStyle,
  40483. 'class': activeClassName
  40484. });
  40485. }
  40486. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, childProps);
  40487. }
  40488. });
  40489. /***/ }),
  40490. /***/ "./components/vc-mentions/index.js":
  40491. /*!*****************************************!*\
  40492. !*** ./components/vc-mentions/index.js ***!
  40493. \*****************************************/
  40494. /*! exports provided: default */
  40495. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40496. "use strict";
  40497. __webpack_require__.r(__webpack_exports__);
  40498. /* harmony import */ var _src_Mentions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/Mentions */ "./components/vc-mentions/src/Mentions.jsx");
  40499. /* harmony import */ var _src_Option__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Option */ "./components/vc-mentions/src/Option.jsx");
  40500. _src_Mentions__WEBPACK_IMPORTED_MODULE_0__["default"].Option = _src_Option__WEBPACK_IMPORTED_MODULE_1__["default"];
  40501. /* harmony default export */ __webpack_exports__["default"] = (_src_Mentions__WEBPACK_IMPORTED_MODULE_0__["default"]);
  40502. /***/ }),
  40503. /***/ "./components/vc-mentions/src/DropdownMenu.jsx":
  40504. /*!*****************************************************!*\
  40505. !*** ./components/vc-mentions/src/DropdownMenu.jsx ***!
  40506. \*****************************************************/
  40507. /*! exports provided: default */
  40508. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40509. "use strict";
  40510. __webpack_require__.r(__webpack_exports__);
  40511. /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../vc-menu */ "./components/vc-menu/index.js");
  40512. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  40513. /* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Option */ "./components/vc-mentions/src/Option.jsx");
  40514. function noop() {}
  40515. /* harmony default export */ __webpack_exports__["default"] = ({
  40516. name: 'DropdownMenu',
  40517. props: {
  40518. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  40519. options: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_Option__WEBPACK_IMPORTED_MODULE_2__["OptionProps"])
  40520. },
  40521. inject: {
  40522. mentionsContext: { 'default': {} }
  40523. },
  40524. render: function render() {
  40525. var h = arguments[0];
  40526. var _mentionsContext = this.mentionsContext,
  40527. notFoundContent = _mentionsContext.notFoundContent,
  40528. activeIndex = _mentionsContext.activeIndex,
  40529. setActiveIndex = _mentionsContext.setActiveIndex,
  40530. selectOption = _mentionsContext.selectOption,
  40531. _mentionsContext$onFo = _mentionsContext.onFocus,
  40532. onFocus = _mentionsContext$onFo === undefined ? noop : _mentionsContext$onFo,
  40533. _mentionsContext$onBl = _mentionsContext.onBlur,
  40534. onBlur = _mentionsContext$onBl === undefined ? noop : _mentionsContext$onBl;
  40535. var _$props = this.$props,
  40536. prefixCls = _$props.prefixCls,
  40537. options = _$props.options;
  40538. var activeOption = options[activeIndex] || {};
  40539. return h(
  40540. _vc_menu__WEBPACK_IMPORTED_MODULE_0__["default"],
  40541. {
  40542. props: {
  40543. prefixCls: prefixCls + '-menu',
  40544. activeKey: activeOption.value
  40545. },
  40546. on: {
  40547. select: function select(_ref) {
  40548. var key = _ref.key;
  40549. var option = options.find(function (_ref2) {
  40550. var value = _ref2.value;
  40551. return value === key;
  40552. });
  40553. selectOption(option);
  40554. },
  40555. focus: onFocus,
  40556. blur: onBlur
  40557. }
  40558. },
  40559. [options.map(function (option, index) {
  40560. var value = option.value,
  40561. disabled = option.disabled,
  40562. children = option.children;
  40563. return h(
  40564. _vc_menu__WEBPACK_IMPORTED_MODULE_0__["MenuItem"],
  40565. {
  40566. key: value,
  40567. attrs: { disabled: disabled
  40568. },
  40569. on: {
  40570. 'mouseenter': function mouseenter() {
  40571. setActiveIndex(index);
  40572. }
  40573. }
  40574. },
  40575. [children]
  40576. );
  40577. }), !options.length && h(
  40578. _vc_menu__WEBPACK_IMPORTED_MODULE_0__["MenuItem"],
  40579. {
  40580. attrs: { disabled: true }
  40581. },
  40582. [notFoundContent]
  40583. )]
  40584. );
  40585. }
  40586. });
  40587. /***/ }),
  40588. /***/ "./components/vc-mentions/src/KeywordTrigger.jsx":
  40589. /*!*******************************************************!*\
  40590. !*** ./components/vc-mentions/src/KeywordTrigger.jsx ***!
  40591. \*******************************************************/
  40592. /*! exports provided: default */
  40593. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40594. "use strict";
  40595. __webpack_require__.r(__webpack_exports__);
  40596. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  40597. /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vc-trigger */ "./components/vc-trigger/index.js");
  40598. /* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DropdownMenu */ "./components/vc-mentions/src/DropdownMenu.jsx");
  40599. /* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Option */ "./components/vc-mentions/src/Option.jsx");
  40600. /* harmony import */ var _placement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placement */ "./components/vc-mentions/src/placement.js");
  40601. var BUILT_IN_PLACEMENTS = {
  40602. bottomRight: {
  40603. points: ['tl', 'br'],
  40604. offset: [0, 4],
  40605. overflow: {
  40606. adjustX: 0,
  40607. adjustY: 1
  40608. }
  40609. },
  40610. topRight: {
  40611. points: ['bl', 'tr'],
  40612. offset: [0, -4],
  40613. overflow: {
  40614. adjustX: 0,
  40615. adjustY: 1
  40616. }
  40617. }
  40618. };
  40619. /* harmony default export */ __webpack_exports__["default"] = ({
  40620. name: 'KeywordTrigger',
  40621. props: {
  40622. loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  40623. options: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_Option__WEBPACK_IMPORTED_MODULE_3__["OptionProps"]),
  40624. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  40625. placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(_placement__WEBPACK_IMPORTED_MODULE_4__["PlaceMent"]),
  40626. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  40627. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  40628. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
  40629. },
  40630. methods: {
  40631. getDropdownPrefix: function getDropdownPrefix() {
  40632. return this.$props.prefixCls + '-dropdown';
  40633. },
  40634. getDropdownElement: function getDropdownElement() {
  40635. var h = this.$createElement;
  40636. var options = this.$props.options;
  40637. return h(_DropdownMenu__WEBPACK_IMPORTED_MODULE_2__["default"], {
  40638. attrs: { prefixCls: this.getDropdownPrefix(), options: options }
  40639. });
  40640. }
  40641. },
  40642. render: function render() {
  40643. var h = arguments[0];
  40644. var _$props = this.$props,
  40645. visible = _$props.visible,
  40646. placement = _$props.placement,
  40647. transitionName = _$props.transitionName,
  40648. getPopupContainer = _$props.getPopupContainer;
  40649. var $slots = this.$slots;
  40650. var children = $slots['default'];
  40651. var popupElement = this.getDropdownElement();
  40652. return h(
  40653. _vc_trigger__WEBPACK_IMPORTED_MODULE_1__["default"],
  40654. {
  40655. attrs: {
  40656. prefixCls: this.getDropdownPrefix(),
  40657. popupVisible: visible,
  40658. popup: popupElement,
  40659. popupPlacement: placement === 'top' ? 'topRight' : 'bottomRight',
  40660. popupTransitionName: transitionName,
  40661. builtinPlacements: BUILT_IN_PLACEMENTS,
  40662. getPopupContainer: getPopupContainer
  40663. }
  40664. },
  40665. [children]
  40666. );
  40667. }
  40668. });
  40669. /***/ }),
  40670. /***/ "./components/vc-mentions/src/Mentions.jsx":
  40671. /*!*************************************************!*\
  40672. !*** ./components/vc-mentions/src/Mentions.jsx ***!
  40673. \*************************************************/
  40674. /*! exports provided: default */
  40675. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  40676. "use strict";
  40677. __webpack_require__.r(__webpack_exports__);
  40678. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  40679. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  40680. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  40681. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  40682. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  40683. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  40684. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  40685. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
  40686. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  40687. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  40688. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
  40689. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_7__);
  40690. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./util */ "./components/vc-mentions/src/util.js");
  40691. /* harmony import */ var _KeywordTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./KeywordTrigger */ "./components/vc-mentions/src/KeywordTrigger.jsx");
  40692. /* harmony import */ var _mentionsProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./mentionsProps */ "./components/vc-mentions/src/mentionsProps.js");
  40693. function noop() {}
  40694. var Mentions = {
  40695. name: 'Mentions',
  40696. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
  40697. inheritAttrs: false,
  40698. model: {
  40699. prop: 'value',
  40700. event: 'change'
  40701. },
  40702. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(_mentionsProps__WEBPACK_IMPORTED_MODULE_10__["vcMentionsProps"], _mentionsProps__WEBPACK_IMPORTED_MODULE_10__["defaultProps"]),
  40703. provide: function provide() {
  40704. return {
  40705. mentionsContext: this
  40706. };
  40707. },
  40708. data: function data() {
  40709. var _$props = this.$props,
  40710. _$props$value = _$props.value,
  40711. value = _$props$value === undefined ? '' : _$props$value,
  40712. _$props$defaultValue = _$props.defaultValue,
  40713. defaultValue = _$props$defaultValue === undefined ? '' : _$props$defaultValue;
  40714. warning__WEBPACK_IMPORTED_MODULE_7___default()(this.$props.children, 'please children prop replace slots.default');
  40715. return {
  40716. _value: !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'value') ? defaultValue : value,
  40717. measuring: false,
  40718. measureLocation: 0,
  40719. measureText: null,
  40720. measurePrefix: '',
  40721. activeIndex: 0,
  40722. isFocus: false
  40723. };
  40724. },
  40725. watch: {
  40726. value: function value(val) {
  40727. this.$data._value = val;
  40728. }
  40729. },
  40730. updated: function updated() {
  40731. var _this = this;
  40732. this.$nextTick(function () {
  40733. var measuring = _this.$data.measuring;
  40734. // Sync measure div top with textarea for rc-trigger usage
  40735. if (measuring) {
  40736. _this.$refs.measure.scrollTop = _this.$refs.textarea.scrollTop;
  40737. }
  40738. });
  40739. },
  40740. methods: {
  40741. triggerChange: function triggerChange(value) {
  40742. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
  40743. if (!('value' in props)) {
  40744. this.setState({ _value: value });
  40745. } else {
  40746. this.$forceUpdate();
  40747. }
  40748. this.$emit('change', value);
  40749. },
  40750. onChange: function onChange(_ref) {
  40751. var _ref$target = _ref.target,
  40752. value = _ref$target.value,
  40753. composing = _ref$target.composing,
  40754. isComposing = _ref.isComposing;
  40755. if (isComposing || composing) return;
  40756. this.triggerChange(value);
  40757. },
  40758. onKeyDown: function onKeyDown(event) {
  40759. var which = event.which;
  40760. var _$data = this.$data,
  40761. activeIndex = _$data.activeIndex,
  40762. measuring = _$data.measuring;
  40763. // Skip if not measuring
  40764. if (!measuring) {
  40765. return;
  40766. }
  40767. if (which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].UP || which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].DOWN) {
  40768. // Control arrow function
  40769. var optionLen = this.getOptions().length;
  40770. var offset = which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].UP ? -1 : 1;
  40771. var newActiveIndex = (activeIndex + offset + optionLen) % optionLen;
  40772. this.setState({
  40773. activeIndex: newActiveIndex
  40774. });
  40775. event.preventDefault();
  40776. } else if (which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ESC) {
  40777. this.stopMeasure();
  40778. } else if (which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ENTER) {
  40779. // Measure hit
  40780. event.preventDefault();
  40781. var options = this.getOptions();
  40782. if (!options.length) {
  40783. this.stopMeasure();
  40784. return;
  40785. }
  40786. var option = options[activeIndex];
  40787. this.selectOption(option);
  40788. }
  40789. },
  40790. /**
  40791. * When to start measure:
  40792. * 1. When user press `prefix`
  40793. * 2. When measureText !== prevMeasureText
  40794. * - If measure hit
  40795. * - If measuring
  40796. *
  40797. * When to stop measure:
  40798. * 1. Selection is out of range
  40799. * 2. Contains `space`
  40800. * 3. ESC or select one
  40801. */
  40802. onKeyUp: function onKeyUp(event) {
  40803. var key = event.key,
  40804. which = event.which;
  40805. var _$data2 = this.$data,
  40806. prevMeasureText = _$data2.measureText,
  40807. measuring = _$data2.measuring;
  40808. var _$props2 = this.$props,
  40809. _$props2$prefix = _$props2.prefix,
  40810. prefix = _$props2$prefix === undefined ? '' : _$props2$prefix,
  40811. validateSearch = _$props2.validateSearch;
  40812. var target = event.target;
  40813. var selectionStartText = Object(_util__WEBPACK_IMPORTED_MODULE_8__["getBeforeSelectionText"])(target);
  40814. var _getLastMeasureIndex = Object(_util__WEBPACK_IMPORTED_MODULE_8__["getLastMeasureIndex"])(selectionStartText, prefix),
  40815. measureIndex = _getLastMeasureIndex.location,
  40816. measurePrefix = _getLastMeasureIndex.prefix;
  40817. // Skip if match the white key list
  40818. if ([_util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ESC, _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].UP, _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].DOWN, _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ENTER].indexOf(which) !== -1) {
  40819. return;
  40820. }
  40821. if (measureIndex !== -1) {
  40822. var measureText = selectionStartText.slice(measureIndex + measurePrefix.length);
  40823. var validateMeasure = validateSearch(measureText, this.$props);
  40824. var matchOption = !!this.getOptions(measureText).length;
  40825. if (validateMeasure) {
  40826. if (key === measurePrefix || measuring || measureText !== prevMeasureText && matchOption) {
  40827. this.startMeasure(measureText, measurePrefix, measureIndex);
  40828. }
  40829. } else if (measuring) {
  40830. // Stop if measureText is invalidate
  40831. this.stopMeasure();
  40832. }
  40833. /**
  40834. * We will trigger `onSearch` to developer since they may use for async update.
  40835. * If met `space` means user finished searching.
  40836. */
  40837. if (validateMeasure) {
  40838. this.$emit('search', measureText, measurePrefix);
  40839. }
  40840. } else if (measuring) {
  40841. this.stopMeasure();
  40842. }
  40843. },
  40844. onInputFocus: function onInputFocus(event) {
  40845. this.onFocus(event);
  40846. },
  40847. onInputBlur: function onInputBlur(event) {
  40848. this.onBlur(event);
  40849. },
  40850. onDropdownFocus: function onDropdownFocus() {
  40851. this.onFocus();
  40852. },
  40853. onDropdownBlur: function onDropdownBlur() {
  40854. this.onBlur();
  40855. },
  40856. onFocus: function onFocus(event) {
  40857. window.clearTimeout(this.focusId);
  40858. var isFocus = this.$data.isFocus;
  40859. if (!isFocus && event) {
  40860. this.$emit('focus', event);
  40861. }
  40862. this.setState({ isFocus: true });
  40863. },
  40864. onBlur: function onBlur(event) {
  40865. var _this2 = this;
  40866. this.focusId = window.setTimeout(function () {
  40867. _this2.setState({ isFocus: false });
  40868. _this2.stopMeasure();
  40869. _this2.$emit('blur', event);
  40870. }, 0);
  40871. },
  40872. selectOption: function selectOption(option) {
  40873. var _this3 = this;
  40874. var _$data3 = this.$data,
  40875. value = _$data3._value,
  40876. measureLocation = _$data3.measureLocation,
  40877. measurePrefix = _$data3.measurePrefix;
  40878. var split = this.$props.split;
  40879. var _option$value = option.value,
  40880. mentionValue = _option$value === undefined ? '' : _option$value;
  40881. var _replaceWithMeasure = Object(_util__WEBPACK_IMPORTED_MODULE_8__["replaceWithMeasure"])(value, {
  40882. measureLocation: measureLocation,
  40883. targetText: mentionValue,
  40884. prefix: measurePrefix,
  40885. selectionStart: this.$refs.textarea.selectionStart,
  40886. split: split
  40887. }),
  40888. text = _replaceWithMeasure.text,
  40889. selectionLocation = _replaceWithMeasure.selectionLocation;
  40890. this.triggerChange(text);
  40891. this.stopMeasure(function () {
  40892. // We need restore the selection position
  40893. Object(_util__WEBPACK_IMPORTED_MODULE_8__["setInputSelection"])(_this3.$refs.textarea, selectionLocation);
  40894. });
  40895. this.$emit('select', option, measurePrefix);
  40896. },
  40897. setActiveIndex: function setActiveIndex(activeIndex) {
  40898. this.setState({
  40899. activeIndex: activeIndex
  40900. });
  40901. },
  40902. getOptions: function getOptions(measureText) {
  40903. var targetMeasureText = measureText || this.$data.measureText || '';
  40904. var _$props3 = this.$props,
  40905. filterOption = _$props3.filterOption,
  40906. _$props3$children = _$props3.children,
  40907. children = _$props3$children === undefined ? [] : _$props3$children;
  40908. var list = (Array.isArray(children) ? children : [children]).map(function (item) {
  40909. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getSlots"])(item)['default'];
  40910. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(item), { children: children });
  40911. }).filter(function (option) {
  40912. /** Return all result if `filterOption` is false. */
  40913. if (filterOption === false) {
  40914. return true;
  40915. }
  40916. return filterOption(targetMeasureText, option);
  40917. });
  40918. return list;
  40919. },
  40920. startMeasure: function startMeasure(measureText, measurePrefix, measureLocation) {
  40921. this.setState({
  40922. measuring: true,
  40923. measureText: measureText,
  40924. measurePrefix: measurePrefix,
  40925. measureLocation: measureLocation,
  40926. activeIndex: 0
  40927. });
  40928. },
  40929. stopMeasure: function stopMeasure(callback) {
  40930. this.setState({
  40931. measuring: false,
  40932. measureLocation: 0,
  40933. measureText: null
  40934. }, callback);
  40935. },
  40936. focus: function focus() {
  40937. this.$refs.textarea.focus();
  40938. },
  40939. blur: function blur() {
  40940. this.$refs.textarea.blur();
  40941. }
  40942. },
  40943. render: function render() {
  40944. var h = arguments[0];
  40945. var _$data4 = this.$data,
  40946. value = _$data4._value,
  40947. measureLocation = _$data4.measureLocation,
  40948. measurePrefix = _$data4.measurePrefix,
  40949. measuring = _$data4.measuring;
  40950. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
  40951. prefixCls = _getOptionProps.prefixCls,
  40952. placement = _getOptionProps.placement,
  40953. transitionName = _getOptionProps.transitionName,
  40954. autoFocus = _getOptionProps.autoFocus,
  40955. notFoundContent = _getOptionProps.notFoundContent,
  40956. getPopupContainer = _getOptionProps.getPopupContainer,
  40957. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls', 'placement', 'transitionName', 'autoFocus', 'notFoundContent', 'getPopupContainer']);
  40958. var inputProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(restProps, ['value', 'defaultValue', 'prefix', 'split', 'children', 'validateSearch', 'filterOption']);
  40959. var options = measuring ? this.getOptions() : [];
  40960. return h(
  40961. 'div',
  40962. { 'class': prefixCls },
  40963. [h('textarea', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  40964. ref: 'textarea'
  40965. }, {
  40966. directives: [{ name: 'ant-input' }],
  40967. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, inputProps, this.$attrs),
  40968. domProps: {
  40969. value: value
  40970. },
  40971. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this), {
  40972. select: noop,
  40973. change: noop,
  40974. input: this.onChange,
  40975. keydown: this.onKeyDown,
  40976. keyup: this.onKeyUp,
  40977. blur: this.onInputBlur
  40978. })
  40979. }])), measuring && h(
  40980. 'div',
  40981. { ref: 'measure', 'class': prefixCls + '-measure' },
  40982. [value.slice(0, measureLocation), h(
  40983. _KeywordTrigger__WEBPACK_IMPORTED_MODULE_9__["default"],
  40984. {
  40985. attrs: {
  40986. prefixCls: prefixCls,
  40987. transitionName: transitionName,
  40988. placement: placement,
  40989. options: options,
  40990. visible: true,
  40991. getPopupContainer: getPopupContainer
  40992. }
  40993. },
  40994. [h('span', [measurePrefix])]
  40995. ), value.slice(measureLocation + measurePrefix.length)]
  40996. )]
  40997. );
  40998. }
  40999. };
  41000. /* harmony default export */ __webpack_exports__["default"] = (Mentions);
  41001. /***/ }),
  41002. /***/ "./components/vc-mentions/src/Option.jsx":
  41003. /*!***********************************************!*\
  41004. !*** ./components/vc-mentions/src/Option.jsx ***!
  41005. \***********************************************/
  41006. /*! exports provided: OptionProps, default */
  41007. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41008. "use strict";
  41009. __webpack_require__.r(__webpack_exports__);
  41010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionProps", function() { return OptionProps; });
  41011. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  41012. var OptionProps = {
  41013. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  41014. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].boolean,
  41015. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
  41016. };
  41017. /* harmony default export */ __webpack_exports__["default"] = ({
  41018. name: 'Option',
  41019. props: OptionProps,
  41020. render: function render() {
  41021. return null;
  41022. }
  41023. });
  41024. /***/ }),
  41025. /***/ "./components/vc-mentions/src/mentionsProps.js":
  41026. /*!*****************************************************!*\
  41027. !*** ./components/vc-mentions/src/mentionsProps.js ***!
  41028. \*****************************************************/
  41029. /*! exports provided: mentionsProps, vcMentionsProps, defaultProps, default */
  41030. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41031. "use strict";
  41032. __webpack_require__.r(__webpack_exports__);
  41033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mentionsProps", function() { return mentionsProps; });
  41034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vcMentionsProps", function() { return vcMentionsProps; });
  41035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultProps", function() { return defaultProps; });
  41036. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  41037. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  41038. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  41039. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  41040. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./components/vc-mentions/src/util.js");
  41041. /* harmony import */ var _placement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placement */ "./components/vc-mentions/src/placement.js");
  41042. var mentionsProps = {
  41043. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  41044. prefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array]),
  41045. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  41046. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  41047. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  41048. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  41049. notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  41050. split: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  41051. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  41052. placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(_placement__WEBPACK_IMPORTED_MODULE_4__["PlaceMent"]),
  41053. character: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  41054. characterRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  41055. filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  41056. validateSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  41057. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  41058. };
  41059. var vcMentionsProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, mentionsProps, {
  41060. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  41061. });
  41062. var defaultProps = {
  41063. prefix: '@',
  41064. split: ' ',
  41065. validateSearch: _util__WEBPACK_IMPORTED_MODULE_3__["validateSearch"],
  41066. filterOption: _util__WEBPACK_IMPORTED_MODULE_3__["filterOption"]
  41067. };
  41068. /* harmony default export */ __webpack_exports__["default"] = (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(vcMentionsProps, defaultProps));
  41069. /***/ }),
  41070. /***/ "./components/vc-mentions/src/placement.js":
  41071. /*!*************************************************!*\
  41072. !*** ./components/vc-mentions/src/placement.js ***!
  41073. \*************************************************/
  41074. /*! exports provided: PlaceMent */
  41075. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41076. "use strict";
  41077. __webpack_require__.r(__webpack_exports__);
  41078. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlaceMent", function() { return PlaceMent; });
  41079. var PlaceMent = ['top', 'bottom'];
  41080. /***/ }),
  41081. /***/ "./components/vc-mentions/src/util.js":
  41082. /*!********************************************!*\
  41083. !*** ./components/vc-mentions/src/util.js ***!
  41084. \********************************************/
  41085. /*! exports provided: getBeforeSelectionText, getLastMeasureIndex, replaceWithMeasure, setInputSelection, validateSearch, filterOption */
  41086. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41087. "use strict";
  41088. __webpack_require__.r(__webpack_exports__);
  41089. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBeforeSelectionText", function() { return getBeforeSelectionText; });
  41090. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLastMeasureIndex", function() { return getLastMeasureIndex; });
  41091. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "replaceWithMeasure", function() { return replaceWithMeasure; });
  41092. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setInputSelection", function() { return setInputSelection; });
  41093. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateSearch", function() { return validateSearch; });
  41094. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterOption", function() { return filterOption; });
  41095. /**
  41096. * Cut input selection into 2 part and return text before selection start
  41097. */
  41098. function getBeforeSelectionText(input) {
  41099. var selectionStart = input.selectionStart;
  41100. return input.value.slice(0, selectionStart);
  41101. }
  41102. function lower(char) {
  41103. return (char || '').toLowerCase();
  41104. }
  41105. /**
  41106. * Find the last match prefix index
  41107. */
  41108. function getLastMeasureIndex(text) {
  41109. var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  41110. var prefixList = Array.isArray(prefix) ? prefix : [prefix];
  41111. return prefixList.reduce(function (lastMatch, prefixStr) {
  41112. var lastIndex = text.lastIndexOf(prefixStr);
  41113. if (lastIndex > lastMatch.location) {
  41114. return {
  41115. location: lastIndex,
  41116. prefix: prefixStr
  41117. };
  41118. }
  41119. return lastMatch;
  41120. }, { location: -1, prefix: '' });
  41121. }
  41122. function reduceText(text, targetText, split) {
  41123. var firstChar = text[0];
  41124. if (!firstChar || firstChar === split) {
  41125. return text;
  41126. }
  41127. // Reuse rest text as it can
  41128. var restText = text;
  41129. var targetTextLen = targetText.length;
  41130. for (var i = 0; i < targetTextLen; i += 1) {
  41131. if (lower(restText[i]) !== lower(targetText[i])) {
  41132. restText = restText.slice(i);
  41133. break;
  41134. } else if (i === targetTextLen - 1) {
  41135. restText = restText.slice(targetTextLen);
  41136. }
  41137. }
  41138. return restText;
  41139. }
  41140. /**
  41141. * Paint targetText into current text:
  41142. * text: little@litest
  41143. * targetText: light
  41144. * => little @light test
  41145. */
  41146. function replaceWithMeasure(text, measureConfig) {
  41147. var measureLocation = measureConfig.measureLocation,
  41148. prefix = measureConfig.prefix,
  41149. targetText = measureConfig.targetText,
  41150. selectionStart = measureConfig.selectionStart,
  41151. split = measureConfig.split;
  41152. // Before text will append one space if have other text
  41153. var beforeMeasureText = text.slice(0, measureLocation);
  41154. if (beforeMeasureText[beforeMeasureText.length - split.length] === split) {
  41155. beforeMeasureText = beforeMeasureText.slice(0, beforeMeasureText.length - split.length);
  41156. }
  41157. if (beforeMeasureText) {
  41158. beforeMeasureText = '' + beforeMeasureText + split;
  41159. }
  41160. // Cut duplicate string with current targetText
  41161. var restText = reduceText(text.slice(selectionStart), targetText.slice(selectionStart - measureLocation - prefix.length), split);
  41162. if (restText.slice(0, split.length) === split) {
  41163. restText = restText.slice(split.length);
  41164. }
  41165. var connectedStartText = '' + beforeMeasureText + prefix + targetText + split;
  41166. return {
  41167. text: '' + connectedStartText + restText,
  41168. selectionLocation: connectedStartText.length
  41169. };
  41170. }
  41171. function setInputSelection(input, location) {
  41172. input.setSelectionRange(location, location);
  41173. /**
  41174. * Reset caret into view.
  41175. * Since this function always called by user control, it's safe to focus element.
  41176. */
  41177. input.blur();
  41178. input.focus();
  41179. }
  41180. function validateSearch() {
  41181. var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  41182. var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  41183. var split = props.split;
  41184. return !split || text.indexOf(split) === -1;
  41185. }
  41186. function filterOption() {
  41187. var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  41188. var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  41189. _ref$value = _ref.value,
  41190. value = _ref$value === undefined ? '' : _ref$value;
  41191. var lowerCase = input.toLowerCase();
  41192. return value.toLowerCase().indexOf(lowerCase) !== -1;
  41193. }
  41194. /***/ }),
  41195. /***/ "./components/vc-menu/DOMWrap.jsx":
  41196. /*!****************************************!*\
  41197. !*** ./components/vc-menu/DOMWrap.jsx ***!
  41198. \****************************************/
  41199. /*! exports provided: default */
  41200. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41201. "use strict";
  41202. __webpack_require__.r(__webpack_exports__);
  41203. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  41204. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  41205. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  41206. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  41207. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  41208. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
  41209. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  41210. /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
  41211. /* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SubMenu */ "./components/vc-menu/SubMenu.jsx");
  41212. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  41213. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util */ "./components/vc-menu/util.js");
  41214. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  41215. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  41216. var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
  41217. var MENUITEM_OVERFLOWED_CLASSNAME = 'menuitem-overflowed';
  41218. var FLOAT_PRECISION_ADJUST = 0.5;
  41219. // Fix ssr
  41220. if (canUseDOM) {
  41221. __webpack_require__(/*! mutationobserver-shim */ "./node_modules/mutationobserver-shim/dist/mutationobserver.min.js");
  41222. }
  41223. var DOMWrap = {
  41224. name: 'DOMWrap',
  41225. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
  41226. data: function data() {
  41227. this.resizeObserver = null;
  41228. this.mutationObserver = null;
  41229. // original scroll size of the list
  41230. this.originalTotalWidth = 0;
  41231. // copy of overflowed items
  41232. this.overflowedItems = [];
  41233. // cache item of the original items (so we can track the size and order)
  41234. this.menuItemSizes = [];
  41235. return {
  41236. lastVisibleIndex: undefined
  41237. };
  41238. },
  41239. mounted: function mounted() {
  41240. var _this = this;
  41241. this.$nextTick(function () {
  41242. _this.setChildrenWidthAndResize();
  41243. if (_this.level === 1 && _this.mode === 'horizontal') {
  41244. var menuUl = _this.$el;
  41245. if (!menuUl) {
  41246. return;
  41247. }
  41248. _this.resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__["default"](function (entries) {
  41249. entries.forEach(_this.setChildrenWidthAndResize);
  41250. });
  41251. [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {
  41252. _this.resizeObserver.observe(el);
  41253. });
  41254. if (typeof MutationObserver !== 'undefined') {
  41255. _this.mutationObserver = new MutationObserver(function () {
  41256. _this.resizeObserver.disconnect();
  41257. [].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {
  41258. _this.resizeObserver.observe(el);
  41259. });
  41260. _this.setChildrenWidthAndResize();
  41261. });
  41262. _this.mutationObserver.observe(menuUl, {
  41263. attributes: false,
  41264. childList: true,
  41265. subTree: false
  41266. });
  41267. }
  41268. }
  41269. });
  41270. },
  41271. beforeDestroy: function beforeDestroy() {
  41272. if (this.resizeObserver) {
  41273. this.resizeObserver.disconnect();
  41274. }
  41275. if (this.mutationObserver) {
  41276. this.mutationObserver.disconnect();
  41277. }
  41278. },
  41279. methods: {
  41280. // get all valid menuItem nodes
  41281. getMenuItemNodes: function getMenuItemNodes() {
  41282. var prefixCls = this.$props.prefixCls;
  41283. var ul = this.$el;
  41284. if (!ul) {
  41285. return [];
  41286. }
  41287. // filter out all overflowed indicator placeholder
  41288. return [].slice.call(ul.children).filter(function (node) {
  41289. return node.className.split(' ').indexOf(prefixCls + '-overflowed-submenu') < 0;
  41290. });
  41291. },
  41292. getOverflowedSubMenuItem: function getOverflowedSubMenuItem(keyPrefix, overflowedItems, renderPlaceholder) {
  41293. var h = this.$createElement;
  41294. var _$props = this.$props,
  41295. overflowedIndicator = _$props.overflowedIndicator,
  41296. level = _$props.level,
  41297. mode = _$props.mode,
  41298. prefixCls = _$props.prefixCls,
  41299. theme = _$props.theme;
  41300. if (level !== 1 || mode !== 'horizontal') {
  41301. return null;
  41302. }
  41303. // put all the overflowed item inside a submenu
  41304. // with a title of overflow indicator ('...')
  41305. var copy = this.$slots['default'][0];
  41306. var _getPropsData = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getPropsData"])(copy),
  41307. title = _getPropsData.title,
  41308. rest = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getPropsData, ['title']); // eslint-disable-line no-unused-vars
  41309. var events = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getEvents"])(copy);
  41310. var style = {};
  41311. var key = keyPrefix + '-overflowed-indicator';
  41312. var eventKey = keyPrefix + '-overflowed-indicator';
  41313. if (overflowedItems.length === 0 && renderPlaceholder !== true) {
  41314. style = {
  41315. display: 'none'
  41316. };
  41317. } else if (renderPlaceholder) {
  41318. style = {
  41319. visibility: 'hidden',
  41320. // prevent from taking normal dom space
  41321. position: 'absolute'
  41322. };
  41323. key = key + '-placeholder';
  41324. eventKey = eventKey + '-placeholder';
  41325. }
  41326. var popupClassName = theme ? prefixCls + '-' + theme : '';
  41327. var props = {};
  41328. var on = {};
  41329. _util__WEBPACK_IMPORTED_MODULE_7__["menuAllProps"].props.forEach(function (k) {
  41330. if (rest[k] !== undefined) {
  41331. props[k] = rest[k];
  41332. }
  41333. });
  41334. _util__WEBPACK_IMPORTED_MODULE_7__["menuAllProps"].on.forEach(function (k) {
  41335. if (events[k] !== undefined) {
  41336. on[k] = events[k];
  41337. }
  41338. });
  41339. var subMenuProps = {
  41340. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
  41341. title: overflowedIndicator,
  41342. popupClassName: popupClassName
  41343. }, props, {
  41344. eventKey: eventKey,
  41345. disabled: false
  41346. }),
  41347. 'class': prefixCls + '-overflowed-submenu',
  41348. key: key,
  41349. style: style,
  41350. on: on
  41351. };
  41352. return h(
  41353. _SubMenu__WEBPACK_IMPORTED_MODULE_5__["default"],
  41354. subMenuProps,
  41355. [overflowedItems]
  41356. );
  41357. },
  41358. // memorize rendered menuSize
  41359. setChildrenWidthAndResize: function setChildrenWidthAndResize() {
  41360. if (this.mode !== 'horizontal') {
  41361. return;
  41362. }
  41363. var ul = this.$el;
  41364. if (!ul) {
  41365. return;
  41366. }
  41367. var ulChildrenNodes = ul.children;
  41368. if (!ulChildrenNodes || ulChildrenNodes.length === 0) {
  41369. return;
  41370. }
  41371. var lastOverflowedIndicatorPlaceholder = ul.children[ulChildrenNodes.length - 1];
  41372. // need last overflowed indicator for calculating length;
  41373. Object(_util__WEBPACK_IMPORTED_MODULE_7__["setStyle"])(lastOverflowedIndicatorPlaceholder, 'display', 'inline-block');
  41374. var menuItemNodes = this.getMenuItemNodes();
  41375. // reset display attribute for all hidden elements caused by overflow to calculate updated width
  41376. // and then reset to original state after width calculation
  41377. var overflowedItems = menuItemNodes.filter(function (c) {
  41378. return c.className.split(' ').indexOf(MENUITEM_OVERFLOWED_CLASSNAME) >= 0;
  41379. });
  41380. overflowedItems.forEach(function (c) {
  41381. Object(_util__WEBPACK_IMPORTED_MODULE_7__["setStyle"])(c, 'display', 'inline-block');
  41382. });
  41383. this.menuItemSizes = menuItemNodes.map(function (c) {
  41384. return Object(_util__WEBPACK_IMPORTED_MODULE_7__["getWidth"])(c);
  41385. });
  41386. overflowedItems.forEach(function (c) {
  41387. Object(_util__WEBPACK_IMPORTED_MODULE_7__["setStyle"])(c, 'display', 'none');
  41388. });
  41389. this.overflowedIndicatorWidth = Object(_util__WEBPACK_IMPORTED_MODULE_7__["getWidth"])(ul.children[ul.children.length - 1]);
  41390. this.originalTotalWidth = this.menuItemSizes.reduce(function (acc, cur) {
  41391. return acc + cur;
  41392. }, 0);
  41393. this.handleResize();
  41394. // prevent the overflowed indicator from taking space;
  41395. Object(_util__WEBPACK_IMPORTED_MODULE_7__["setStyle"])(lastOverflowedIndicatorPlaceholder, 'display', 'none');
  41396. },
  41397. handleResize: function handleResize() {
  41398. var _this2 = this;
  41399. if (this.mode !== 'horizontal') {
  41400. return;
  41401. }
  41402. var ul = this.$el;
  41403. if (!ul) {
  41404. return;
  41405. }
  41406. var width = Object(_util__WEBPACK_IMPORTED_MODULE_7__["getWidth"])(ul);
  41407. this.overflowedItems = [];
  41408. var currentSumWidth = 0;
  41409. // index for last visible child in horizontal mode
  41410. var lastVisibleIndex = void 0;
  41411. // float number comparison could be problematic
  41412. // e.g. 0.1 + 0.2 > 0.3 =====> true
  41413. // thus using FLOAT_PRECISION_ADJUST as buffer to help the situation
  41414. if (this.originalTotalWidth > width + FLOAT_PRECISION_ADJUST) {
  41415. lastVisibleIndex = -1;
  41416. this.menuItemSizes.forEach(function (liWidth) {
  41417. currentSumWidth += liWidth;
  41418. if (currentSumWidth + _this2.overflowedIndicatorWidth <= width) {
  41419. lastVisibleIndex += 1;
  41420. }
  41421. });
  41422. }
  41423. this.setState({ lastVisibleIndex: lastVisibleIndex });
  41424. },
  41425. renderChildren: function renderChildren(children) {
  41426. var _this3 = this;
  41427. // need to take care of overflowed items in horizontal mode
  41428. var lastVisibleIndex = this.$data.lastVisibleIndex;
  41429. var className = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getClass"])(this);
  41430. return (children || []).reduce(function (acc, childNode, index) {
  41431. var item = childNode;
  41432. var eventKey = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getPropsData"])(childNode).eventKey;
  41433. if (_this3.mode === 'horizontal') {
  41434. var overflowed = _this3.getOverflowedSubMenuItem(eventKey, []);
  41435. if (lastVisibleIndex !== undefined && className[_this3.prefixCls + '-root'] !== -1) {
  41436. if (index > lastVisibleIndex) {
  41437. item = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(childNode,
  41438. // 这里修改 eventKey 是为了防止隐藏状态下还会触发 openkeys 事件
  41439. {
  41440. style: { display: 'none' },
  41441. props: { eventKey: eventKey + '-hidden' },
  41442. 'class': MENUITEM_OVERFLOWED_CLASSNAME
  41443. });
  41444. }
  41445. if (index === lastVisibleIndex + 1) {
  41446. _this3.overflowedItems = children.slice(lastVisibleIndex + 1).map(function (c) {
  41447. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(c,
  41448. // children[index].key will become '.$key' in clone by default,
  41449. // we have to overwrite with the correct key explicitly
  41450. {
  41451. key: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getPropsData"])(c).eventKey,
  41452. props: { mode: 'vertical-left' }
  41453. });
  41454. });
  41455. overflowed = _this3.getOverflowedSubMenuItem(eventKey, _this3.overflowedItems);
  41456. }
  41457. }
  41458. var ret = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(acc), [overflowed, item]);
  41459. if (index === children.length - 1) {
  41460. // need a placeholder for calculating overflowed indicator width
  41461. ret.push(_this3.getOverflowedSubMenuItem(eventKey, [], true));
  41462. }
  41463. return ret;
  41464. }
  41465. return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(acc), [item]);
  41466. }, []);
  41467. }
  41468. },
  41469. render: function render() {
  41470. var h = arguments[0];
  41471. var Tag = this.$props.tag;
  41472. var tagProps = {
  41473. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this)
  41474. };
  41475. return h(
  41476. Tag,
  41477. tagProps,
  41478. [this.renderChildren(this.$slots['default'])]
  41479. );
  41480. }
  41481. };
  41482. DOMWrap.props = {
  41483. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),
  41484. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  41485. level: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  41486. theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  41487. overflowedIndicator: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].node,
  41488. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  41489. hiddenClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  41490. tag: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('div')
  41491. };
  41492. /* harmony default export */ __webpack_exports__["default"] = (DOMWrap);
  41493. /***/ }),
  41494. /***/ "./components/vc-menu/Divider.jsx":
  41495. /*!****************************************!*\
  41496. !*** ./components/vc-menu/Divider.jsx ***!
  41497. \****************************************/
  41498. /*! exports provided: default */
  41499. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41500. "use strict";
  41501. __webpack_require__.r(__webpack_exports__);
  41502. /* harmony default export */ __webpack_exports__["default"] = ({
  41503. name: 'MenuDivider',
  41504. props: {
  41505. disabled: {
  41506. type: Boolean,
  41507. 'default': true
  41508. },
  41509. rootPrefixCls: String
  41510. },
  41511. render: function render() {
  41512. var h = arguments[0];
  41513. var rootPrefixCls = this.$props.rootPrefixCls;
  41514. return h('li', { 'class': rootPrefixCls + '-item-divider' });
  41515. }
  41516. });
  41517. /***/ }),
  41518. /***/ "./components/vc-menu/Menu.jsx":
  41519. /*!*************************************!*\
  41520. !*** ./components/vc-menu/Menu.jsx ***!
  41521. \*************************************/
  41522. /*! exports provided: default */
  41523. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41524. "use strict";
  41525. __webpack_require__.r(__webpack_exports__);
  41526. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  41527. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  41528. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  41529. /* harmony import */ var _util_store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/store */ "./components/_util/store/index.js");
  41530. /* harmony import */ var _SubPopupMenu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SubPopupMenu */ "./components/vc-menu/SubPopupMenu.jsx");
  41531. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  41532. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  41533. /* harmony import */ var _commonPropsType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonPropsType */ "./components/vc-menu/commonPropsType.js");
  41534. var Menu = {
  41535. name: 'Menu',
  41536. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _commonPropsType__WEBPACK_IMPORTED_MODULE_6__["default"], {
  41537. selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true)
  41538. }),
  41539. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  41540. data: function data() {
  41541. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  41542. var selectedKeys = props.defaultSelectedKeys;
  41543. var openKeys = props.defaultOpenKeys;
  41544. if ('selectedKeys' in props) {
  41545. selectedKeys = props.selectedKeys || [];
  41546. }
  41547. if ('openKeys' in props) {
  41548. openKeys = props.openKeys || [];
  41549. }
  41550. this.store = Object(_util_store__WEBPACK_IMPORTED_MODULE_2__["create"])({
  41551. selectedKeys: selectedKeys,
  41552. openKeys: openKeys,
  41553. activeKey: {
  41554. '0-menu-': Object(_SubPopupMenu__WEBPACK_IMPORTED_MODULE_3__["getActiveKey"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { children: this.$slots['default'] || [] }), props.activeKey)
  41555. }
  41556. });
  41557. // this.isRootMenu = true // 声明在props上
  41558. return {};
  41559. },
  41560. mounted: function mounted() {
  41561. this.updateMiniStore();
  41562. },
  41563. updated: function updated() {
  41564. this.updateMiniStore();
  41565. },
  41566. methods: {
  41567. onSelect: function onSelect(selectInfo) {
  41568. var props = this.$props;
  41569. if (props.selectable) {
  41570. // root menu
  41571. var selectedKeys = this.store.getState().selectedKeys;
  41572. var selectedKey = selectInfo.key;
  41573. if (props.multiple) {
  41574. selectedKeys = selectedKeys.concat([selectedKey]);
  41575. } else {
  41576. selectedKeys = [selectedKey];
  41577. }
  41578. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'selectedKeys')) {
  41579. this.store.setState({
  41580. selectedKeys: selectedKeys
  41581. });
  41582. }
  41583. this.__emit('select', babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, selectInfo, {
  41584. selectedKeys: selectedKeys
  41585. }));
  41586. }
  41587. },
  41588. onClick: function onClick(e) {
  41589. this.__emit('click', e);
  41590. },
  41591. // onKeyDown needs to be exposed as a instance method
  41592. // e.g., in rc-select, we need to navigate menu item while
  41593. // current active item is rc-select input box rather than the menu itself
  41594. onKeyDown: function onKeyDown(e, callback) {
  41595. this.$refs.innerMenu.getWrappedInstance().onKeyDown(e, callback);
  41596. },
  41597. onOpenChange: function onOpenChange(event) {
  41598. var openKeys = this.store.getState().openKeys.concat();
  41599. var changed = false;
  41600. var processSingle = function processSingle(e) {
  41601. var oneChanged = false;
  41602. if (e.open) {
  41603. oneChanged = openKeys.indexOf(e.key) === -1;
  41604. if (oneChanged) {
  41605. openKeys.push(e.key);
  41606. }
  41607. } else {
  41608. var index = openKeys.indexOf(e.key);
  41609. oneChanged = index !== -1;
  41610. if (oneChanged) {
  41611. openKeys.splice(index, 1);
  41612. }
  41613. }
  41614. changed = changed || oneChanged;
  41615. };
  41616. if (Array.isArray(event)) {
  41617. // batch change call
  41618. event.forEach(processSingle);
  41619. } else {
  41620. processSingle(event);
  41621. }
  41622. if (changed) {
  41623. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'openKeys')) {
  41624. this.store.setState({ openKeys: openKeys });
  41625. }
  41626. this.__emit('openChange', openKeys);
  41627. }
  41628. },
  41629. onDeselect: function onDeselect(selectInfo) {
  41630. var props = this.$props;
  41631. if (props.selectable) {
  41632. var selectedKeys = this.store.getState().selectedKeys.concat();
  41633. var selectedKey = selectInfo.key;
  41634. var index = selectedKeys.indexOf(selectedKey);
  41635. if (index !== -1) {
  41636. selectedKeys.splice(index, 1);
  41637. }
  41638. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'selectedKeys')) {
  41639. this.store.setState({
  41640. selectedKeys: selectedKeys
  41641. });
  41642. }
  41643. this.__emit('deselect', babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, selectInfo, {
  41644. selectedKeys: selectedKeys
  41645. }));
  41646. }
  41647. },
  41648. getOpenTransitionName: function getOpenTransitionName() {
  41649. var props = this.$props;
  41650. var transitionName = props.openTransitionName;
  41651. var animationName = props.openAnimation;
  41652. if (!transitionName && typeof animationName === 'string') {
  41653. transitionName = props.prefixCls + '-open-' + animationName;
  41654. }
  41655. return transitionName;
  41656. },
  41657. updateMiniStore: function updateMiniStore() {
  41658. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  41659. if ('selectedKeys' in props) {
  41660. this.store.setState({
  41661. selectedKeys: props.selectedKeys || []
  41662. });
  41663. }
  41664. if ('openKeys' in props) {
  41665. this.store.setState({
  41666. openKeys: props.openKeys || []
  41667. });
  41668. }
  41669. }
  41670. },
  41671. render: function render() {
  41672. var h = arguments[0];
  41673. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  41674. var subPopupMenuProps = {
  41675. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
  41676. itemIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'itemIcon', props),
  41677. expandIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'expandIcon', props),
  41678. overflowedIndicator: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'overflowedIndicator', props) || h('span', ['\xB7\xB7\xB7']),
  41679. openTransitionName: this.getOpenTransitionName(),
  41680. parentMenu: this,
  41681. children: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])(this.$slots['default'] || [])
  41682. }),
  41683. 'class': props.prefixCls + '-root',
  41684. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), {
  41685. click: this.onClick,
  41686. openChange: this.onOpenChange,
  41687. deselect: this.onDeselect,
  41688. select: this.onSelect
  41689. }),
  41690. ref: 'innerMenu'
  41691. };
  41692. return h(
  41693. _util_store__WEBPACK_IMPORTED_MODULE_2__["Provider"],
  41694. {
  41695. attrs: { store: this.store }
  41696. },
  41697. [h(_SubPopupMenu__WEBPACK_IMPORTED_MODULE_3__["default"], subPopupMenuProps)]
  41698. );
  41699. }
  41700. };
  41701. /* harmony default export */ __webpack_exports__["default"] = (Menu);
  41702. /***/ }),
  41703. /***/ "./components/vc-menu/MenuItem.jsx":
  41704. /*!*****************************************!*\
  41705. !*** ./components/vc-menu/MenuItem.jsx ***!
  41706. \*****************************************/
  41707. /*! exports provided: default, menuItemProps */
  41708. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41709. "use strict";
  41710. __webpack_require__.r(__webpack_exports__);
  41711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "menuItemProps", function() { return props; });
  41712. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  41713. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  41714. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  41715. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  41716. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  41717. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  41718. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  41719. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
  41720. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  41721. /* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dom-scroll-into-view */ "./node_modules/dom-scroll-into-view/dist-web/index.js");
  41722. /* harmony import */ var _util_store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/store */ "./components/_util/store/index.js");
  41723. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./util */ "./components/vc-menu/util.js");
  41724. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  41725. var props = {
  41726. attribute: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  41727. rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  41728. eventKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
  41729. active: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  41730. selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  41731. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  41732. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  41733. index: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  41734. inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(24),
  41735. level: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(1),
  41736. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']).def('vertical'),
  41737. parentMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  41738. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  41739. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  41740. isSelected: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  41741. manualRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(_util__WEBPACK_IMPORTED_MODULE_8__["noop"]),
  41742. role: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  41743. subMenuKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  41744. itemIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
  41745. // clearSubMenuTimers: PropTypes.func.def(noop),
  41746. };
  41747. var MenuItem = {
  41748. name: 'MenuItem',
  41749. props: props,
  41750. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
  41751. isMenuItem: true,
  41752. created: function created() {
  41753. this.prevActive = this.active;
  41754. // invoke customized ref to expose component to mixin
  41755. this.callRef();
  41756. },
  41757. updated: function updated() {
  41758. var _this = this;
  41759. this.$nextTick(function () {
  41760. var _$props = _this.$props,
  41761. active = _$props.active,
  41762. parentMenu = _$props.parentMenu,
  41763. eventKey = _$props.eventKey;
  41764. if (!_this.prevActive && active && (!parentMenu || !parentMenu['scrolled-' + eventKey])) {
  41765. Object(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_6__["default"])(_this.$el, _this.parentMenu.$el, {
  41766. onlyScrollIfNeeded: true
  41767. });
  41768. parentMenu['scrolled-' + eventKey] = true;
  41769. } else if (parentMenu && parentMenu['scrolled-' + eventKey]) {
  41770. delete parentMenu['scrolled-' + eventKey];
  41771. }
  41772. _this.prevActive = active;
  41773. });
  41774. this.callRef();
  41775. },
  41776. beforeDestroy: function beforeDestroy() {
  41777. var props = this.$props;
  41778. this.__emit('destroy', props.eventKey);
  41779. },
  41780. methods: {
  41781. onKeyDown: function onKeyDown(e) {
  41782. var keyCode = e.keyCode;
  41783. if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ENTER) {
  41784. this.onClick(e);
  41785. return true;
  41786. }
  41787. },
  41788. onMouseLeave: function onMouseLeave(e) {
  41789. var eventKey = this.$props.eventKey;
  41790. this.__emit('itemHover', {
  41791. key: eventKey,
  41792. hover: false
  41793. });
  41794. this.__emit('mouseleave', {
  41795. key: eventKey,
  41796. domEvent: e
  41797. });
  41798. },
  41799. onMouseEnter: function onMouseEnter(e) {
  41800. var eventKey = this.eventKey;
  41801. this.__emit('itemHover', {
  41802. key: eventKey,
  41803. hover: true
  41804. });
  41805. this.__emit('mouseenter', {
  41806. key: eventKey,
  41807. domEvent: e
  41808. });
  41809. },
  41810. onClick: function onClick(e) {
  41811. var _$props2 = this.$props,
  41812. eventKey = _$props2.eventKey,
  41813. multiple = _$props2.multiple,
  41814. isSelected = _$props2.isSelected;
  41815. var info = {
  41816. key: eventKey,
  41817. keyPath: [eventKey],
  41818. item: this,
  41819. domEvent: e
  41820. };
  41821. this.__emit('click', info);
  41822. if (multiple) {
  41823. if (isSelected) {
  41824. this.__emit('deselect', info);
  41825. } else {
  41826. this.__emit('select', info);
  41827. }
  41828. } else if (!isSelected) {
  41829. this.__emit('select', info);
  41830. }
  41831. },
  41832. getPrefixCls: function getPrefixCls() {
  41833. return this.$props.rootPrefixCls + '-item';
  41834. },
  41835. getActiveClassName: function getActiveClassName() {
  41836. return this.getPrefixCls() + '-active';
  41837. },
  41838. getSelectedClassName: function getSelectedClassName() {
  41839. return this.getPrefixCls() + '-selected';
  41840. },
  41841. getDisabledClassName: function getDisabledClassName() {
  41842. return this.getPrefixCls() + '-disabled';
  41843. },
  41844. callRef: function callRef() {
  41845. if (this.manualRef) {
  41846. this.manualRef(this);
  41847. }
  41848. }
  41849. },
  41850. render: function render() {
  41851. var _className;
  41852. var h = arguments[0];
  41853. var props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props);
  41854. var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, this.getPrefixCls(), true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, this.getActiveClassName(), !props.disabled && props.active), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, this.getSelectedClassName(), props.isSelected), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, this.getDisabledClassName(), props.disabled), _className);
  41855. var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props.attribute, {
  41856. title: props.title,
  41857. role: props.role || 'menuitem',
  41858. 'aria-disabled': props.disabled
  41859. });
  41860. if (props.role === 'option') {
  41861. // overwrite to option
  41862. attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, attrs, {
  41863. role: 'option',
  41864. 'aria-selected': props.isSelected
  41865. });
  41866. } else if (props.role === null || props.role === 'none') {
  41867. // sometimes we want to specify role inside <li/> element
  41868. // <li><a role='menuitem'>Link</a></li> would be a good example
  41869. // in this case the role on <li/> should be "none" to
  41870. // remove the implied listitem role.
  41871. // https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html
  41872. attrs.role = 'none';
  41873. }
  41874. // In case that onClick/onMouseLeave/onMouseEnter is passed down from owner
  41875. var mouseEvent = {
  41876. click: props.disabled ? _util__WEBPACK_IMPORTED_MODULE_8__["noop"] : this.onClick,
  41877. mouseleave: props.disabled ? _util__WEBPACK_IMPORTED_MODULE_8__["noop"] : this.onMouseLeave,
  41878. mouseenter: props.disabled ? _util__WEBPACK_IMPORTED_MODULE_8__["noop"] : this.onMouseEnter
  41879. };
  41880. var style = {};
  41881. if (props.mode === 'inline') {
  41882. style.paddingLeft = props.inlineIndent * props.level + 'px';
  41883. }
  41884. var listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this));
  41885. _util__WEBPACK_IMPORTED_MODULE_8__["menuAllProps"].props.forEach(function (key) {
  41886. return delete props[key];
  41887. });
  41888. _util__WEBPACK_IMPORTED_MODULE_8__["menuAllProps"].on.forEach(function (key) {
  41889. return delete listeners[key];
  41890. });
  41891. var liProps = {
  41892. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props, attrs),
  41893. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, listeners, mouseEvent)
  41894. };
  41895. return h(
  41896. 'li',
  41897. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([liProps, { style: style, 'class': className }]),
  41898. [this.$slots['default'], Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'itemIcon', props)]
  41899. );
  41900. }
  41901. };
  41902. var connected = Object(_util_store__WEBPACK_IMPORTED_MODULE_7__["connect"])(function (_ref, _ref2) {
  41903. var activeKey = _ref.activeKey,
  41904. selectedKeys = _ref.selectedKeys;
  41905. var eventKey = _ref2.eventKey,
  41906. subMenuKey = _ref2.subMenuKey;
  41907. return {
  41908. active: activeKey[subMenuKey] === eventKey,
  41909. isSelected: selectedKeys.indexOf(eventKey) !== -1
  41910. };
  41911. })(MenuItem);
  41912. /* harmony default export */ __webpack_exports__["default"] = (connected);
  41913. /***/ }),
  41914. /***/ "./components/vc-menu/MenuItemGroup.jsx":
  41915. /*!**********************************************!*\
  41916. !*** ./components/vc-menu/MenuItemGroup.jsx ***!
  41917. \**********************************************/
  41918. /*! exports provided: default */
  41919. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41920. "use strict";
  41921. __webpack_require__.r(__webpack_exports__);
  41922. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  41923. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  41924. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  41925. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  41926. // import { menuAllProps } from './util'
  41927. var MenuItemGroup = {
  41928. name: 'MenuItemGroup',
  41929. props: {
  41930. renderMenuItem: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  41931. index: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  41932. className: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  41933. subMenuKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  41934. rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  41935. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
  41936. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  41937. },
  41938. isMenuItemGroup: true,
  41939. methods: {
  41940. renderInnerMenuItem: function renderInnerMenuItem(item) {
  41941. var _$props = this.$props,
  41942. renderMenuItem = _$props.renderMenuItem,
  41943. index = _$props.index,
  41944. subMenuKey = _$props.subMenuKey;
  41945. return renderMenuItem(item, index, subMenuKey);
  41946. }
  41947. },
  41948. render: function render() {
  41949. var h = arguments[0];
  41950. var props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props);
  41951. var rootPrefixCls = props.rootPrefixCls,
  41952. title = props.title;
  41953. var titleClassName = rootPrefixCls + '-item-group-title';
  41954. var listClassName = rootPrefixCls + '-item-group-list';
  41955. // menuAllProps.props.forEach(key => delete props[key])
  41956. var listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this));
  41957. delete listeners.click;
  41958. return h(
  41959. 'li',
  41960. { on: listeners, 'class': rootPrefixCls + '-item-group' },
  41961. [h(
  41962. 'div',
  41963. { 'class': titleClassName, attrs: { title: typeof title === 'string' ? title : undefined }
  41964. },
  41965. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'title')]
  41966. ), h(
  41967. 'ul',
  41968. { 'class': listClassName },
  41969. [this.$slots['default'] && this.$slots['default'].map(this.renderInnerMenuItem)]
  41970. )]
  41971. );
  41972. }
  41973. };
  41974. /* harmony default export */ __webpack_exports__["default"] = (MenuItemGroup);
  41975. /***/ }),
  41976. /***/ "./components/vc-menu/SubMenu.jsx":
  41977. /*!****************************************!*\
  41978. !*** ./components/vc-menu/SubMenu.jsx ***!
  41979. \****************************************/
  41980. /*! exports provided: default */
  41981. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  41982. "use strict";
  41983. __webpack_require__.r(__webpack_exports__);
  41984. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  41985. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  41986. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  41987. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
  41988. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  41989. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  41990. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  41991. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
  41992. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  41993. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  41994. /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
  41995. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
  41996. /* harmony import */ var _util_store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/store */ "./components/_util/store/index.js");
  41997. /* harmony import */ var _SubPopupMenu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SubPopupMenu */ "./components/vc-menu/SubPopupMenu.jsx");
  41998. /* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./placements */ "./components/vc-menu/placements.js");
  41999. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  42000. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  42001. /* harmony import */ var _util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/requestAnimationTimeout */ "./components/_util/requestAnimationTimeout.js");
  42002. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./util */ "./components/vc-menu/util.js");
  42003. /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
  42004. var guid = 0;
  42005. var popupPlacementMap = {
  42006. horizontal: 'bottomLeft',
  42007. vertical: 'rightTop',
  42008. 'vertical-left': 'rightTop',
  42009. 'vertical-right': 'leftTop'
  42010. };
  42011. var updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) {
  42012. var menuId = Object(_util__WEBPACK_IMPORTED_MODULE_14__["getMenuIdFromSubMenuEventKey"])(eventKey);
  42013. var state = store.getState();
  42014. store.setState({
  42015. defaultActiveFirst: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, state.defaultActiveFirst, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, menuId, defaultActiveFirst))
  42016. });
  42017. };
  42018. var SubMenu = {
  42019. name: 'SubMenu',
  42020. props: {
  42021. parentMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
  42022. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  42023. selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array.def([]),
  42024. openKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array.def([]),
  42025. openChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(_util__WEBPACK_IMPORTED_MODULE_14__["noop"]),
  42026. rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  42027. eventKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number]),
  42028. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  42029. active: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool, // TODO: remove
  42030. isRootMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool.def(false),
  42031. index: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number,
  42032. triggerSubMenuAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  42033. popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  42034. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func,
  42035. forceSubMenuRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  42036. openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object]),
  42037. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  42038. subMenuOpenDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number.def(0.1),
  42039. subMenuCloseDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number.def(0.1),
  42040. level: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number.def(1),
  42041. inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number.def(24),
  42042. openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  42043. popupOffset: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
  42044. isOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  42045. store: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
  42046. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']).def('vertical'),
  42047. manualRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(_util__WEBPACK_IMPORTED_MODULE_14__["noop"]),
  42048. builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object.def(function () {
  42049. return {};
  42050. }),
  42051. itemIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  42052. expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  42053. subMenuKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string
  42054. },
  42055. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
  42056. isSubMenu: true,
  42057. data: function data() {
  42058. var props = this.$props;
  42059. var store = props.store;
  42060. var eventKey = props.eventKey;
  42061. var defaultActiveFirst = store.getState().defaultActiveFirst;
  42062. var value = false;
  42063. if (defaultActiveFirst) {
  42064. value = defaultActiveFirst[eventKey];
  42065. }
  42066. updateDefaultActiveFirst(store, eventKey, value);
  42067. return {
  42068. // defaultActiveFirst: false,
  42069. };
  42070. },
  42071. mounted: function mounted() {
  42072. var _this = this;
  42073. this.$nextTick(function () {
  42074. _this.handleUpdated();
  42075. });
  42076. },
  42077. updated: function updated() {
  42078. var _this2 = this;
  42079. this.$nextTick(function () {
  42080. _this2.handleUpdated();
  42081. });
  42082. },
  42083. beforeDestroy: function beforeDestroy() {
  42084. var eventKey = this.eventKey;
  42085. this.__emit('destroy', eventKey);
  42086. /* istanbul ignore if */
  42087. if (this.minWidthTimeout) {
  42088. Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__["cancelAnimationTimeout"])(this.minWidthTimeout);
  42089. this.minWidthTimeout = null;
  42090. }
  42091. /* istanbul ignore if */
  42092. if (this.mouseenterTimeout) {
  42093. Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__["cancelAnimationTimeout"])(this.mouseenterTimeout);
  42094. this.mouseenterTimeout = null;
  42095. }
  42096. },
  42097. methods: {
  42098. handleUpdated: function handleUpdated() {
  42099. var _this3 = this;
  42100. var _$props = this.$props,
  42101. mode = _$props.mode,
  42102. parentMenu = _$props.parentMenu,
  42103. manualRef = _$props.manualRef;
  42104. // invoke customized ref to expose component to mixin
  42105. if (manualRef) {
  42106. manualRef(this);
  42107. }
  42108. if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.isOpen) {
  42109. return;
  42110. }
  42111. this.minWidthTimeout = Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__["requestAnimationTimeout"])(function () {
  42112. return _this3.adjustWidth();
  42113. }, 0);
  42114. },
  42115. onKeyDown: function onKeyDown(e) {
  42116. var keyCode = e.keyCode;
  42117. var menu = this.menuInstance;
  42118. var _$props2 = this.$props,
  42119. store = _$props2.store,
  42120. isOpen = _$props2.isOpen;
  42121. if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER) {
  42122. this.onTitleClick(e);
  42123. updateDefaultActiveFirst(store, this.eventKey, true);
  42124. return true;
  42125. }
  42126. if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].RIGHT) {
  42127. if (isOpen) {
  42128. menu.onKeyDown(e);
  42129. } else {
  42130. this.triggerOpenChange(true);
  42131. // need to update current menu's defaultActiveFirst value
  42132. updateDefaultActiveFirst(store, this.eventKey, true);
  42133. }
  42134. return true;
  42135. }
  42136. if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].LEFT) {
  42137. var handled = void 0;
  42138. if (isOpen) {
  42139. handled = menu.onKeyDown(e);
  42140. } else {
  42141. return undefined;
  42142. }
  42143. if (!handled) {
  42144. this.triggerOpenChange(false);
  42145. handled = true;
  42146. }
  42147. return handled;
  42148. }
  42149. if (isOpen && (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP || keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN)) {
  42150. return menu.onKeyDown(e);
  42151. }
  42152. return undefined;
  42153. },
  42154. onPopupVisibleChange: function onPopupVisibleChange(visible) {
  42155. this.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave');
  42156. },
  42157. onMouseEnter: function onMouseEnter(e) {
  42158. var _$props3 = this.$props,
  42159. key = _$props3.eventKey,
  42160. store = _$props3.store;
  42161. updateDefaultActiveFirst(store, key, false);
  42162. this.__emit('mouseenter', {
  42163. key: key,
  42164. domEvent: e
  42165. });
  42166. },
  42167. onMouseLeave: function onMouseLeave(e) {
  42168. var eventKey = this.eventKey,
  42169. parentMenu = this.parentMenu;
  42170. parentMenu.subMenuInstance = this;
  42171. // parentMenu.subMenuLeaveFn = () => {
  42172. // // trigger mouseleave
  42173. // this.__emit('mouseleave', {
  42174. // key: eventKey,
  42175. // domEvent: e,
  42176. // })
  42177. // }
  42178. this.__emit('mouseleave', {
  42179. key: eventKey,
  42180. domEvent: e
  42181. });
  42182. // prevent popup menu and submenu gap
  42183. // parentMenu.subMenuLeaveTimer = setTimeout(parentMenu.subMenuLeaveFn, 100)
  42184. },
  42185. onTitleMouseEnter: function onTitleMouseEnter(domEvent) {
  42186. var key = this.$props.eventKey;
  42187. // this.clearSubMenuTitleLeaveTimer()
  42188. this.__emit('itemHover', {
  42189. key: key,
  42190. hover: true
  42191. });
  42192. this.__emit('titleMouseenter', {
  42193. key: key,
  42194. domEvent: domEvent
  42195. });
  42196. },
  42197. onTitleMouseLeave: function onTitleMouseLeave(e) {
  42198. var eventKey = this.eventKey,
  42199. parentMenu = this.parentMenu;
  42200. parentMenu.subMenuInstance = this;
  42201. this.__emit('itemHover', {
  42202. key: eventKey,
  42203. hover: false
  42204. });
  42205. this.__emit('titleMouseleave', {
  42206. key: eventKey,
  42207. domEvent: e
  42208. });
  42209. },
  42210. onTitleClick: function onTitleClick(e) {
  42211. var _$props4 = this.$props,
  42212. triggerSubMenuAction = _$props4.triggerSubMenuAction,
  42213. eventKey = _$props4.eventKey,
  42214. isOpen = _$props4.isOpen,
  42215. store = _$props4.store;
  42216. this.__emit('titleClick', {
  42217. key: eventKey,
  42218. domEvent: e
  42219. });
  42220. if (triggerSubMenuAction === 'hover') {
  42221. return;
  42222. }
  42223. this.triggerOpenChange(!isOpen, 'click');
  42224. updateDefaultActiveFirst(store, eventKey, false);
  42225. },
  42226. onSubMenuClick: function onSubMenuClick(info) {
  42227. this.__emit('click', this.addKeyPath(info));
  42228. },
  42229. getPrefixCls: function getPrefixCls() {
  42230. return this.$props.rootPrefixCls + '-submenu';
  42231. },
  42232. getActiveClassName: function getActiveClassName() {
  42233. return this.getPrefixCls() + '-active';
  42234. },
  42235. getDisabledClassName: function getDisabledClassName() {
  42236. return this.getPrefixCls() + '-disabled';
  42237. },
  42238. getSelectedClassName: function getSelectedClassName() {
  42239. return this.getPrefixCls() + '-selected';
  42240. },
  42241. getOpenClassName: function getOpenClassName() {
  42242. return this.$props.rootPrefixCls + '-submenu-open';
  42243. },
  42244. saveMenuInstance: function saveMenuInstance(c) {
  42245. // children menu instance
  42246. this.menuInstance = c;
  42247. },
  42248. addKeyPath: function addKeyPath(info) {
  42249. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, info, {
  42250. keyPath: (info.keyPath || []).concat(this.$props.eventKey)
  42251. });
  42252. },
  42253. // triggerOpenChange (open, type) {
  42254. // const key = this.$props.eventKey
  42255. // this.__emit('openChange', {
  42256. // key,
  42257. // item: this,
  42258. // trigger: type,
  42259. // open,
  42260. // })
  42261. // },
  42262. triggerOpenChange: function triggerOpenChange(open, type) {
  42263. var _this4 = this;
  42264. var key = this.$props.eventKey;
  42265. var openChange = function openChange() {
  42266. _this4.__emit('openChange', {
  42267. key: key,
  42268. item: _this4,
  42269. trigger: type,
  42270. open: open
  42271. });
  42272. };
  42273. if (type === 'mouseenter') {
  42274. // make sure mouseenter happen after other menu item's mouseleave
  42275. this.mouseenterTimeout = Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__["requestAnimationTimeout"])(function () {
  42276. openChange();
  42277. }, 0);
  42278. } else {
  42279. openChange();
  42280. }
  42281. },
  42282. isChildrenSelected: function isChildrenSelected() {
  42283. var ret = { find: false };
  42284. Object(_util__WEBPACK_IMPORTED_MODULE_14__["loopMenuItemRecursively"])(this.$slots['default'], this.$props.selectedKeys, ret);
  42285. return ret.find;
  42286. },
  42287. // isOpen () {
  42288. // return this.$props.openKeys.indexOf(this.$props.eventKey) !== -1
  42289. // },
  42290. adjustWidth: function adjustWidth() {
  42291. /* istanbul ignore if */
  42292. if (!this.$refs.subMenuTitle || !this.menuInstance) {
  42293. return;
  42294. }
  42295. var popupMenu = this.menuInstance.$el;
  42296. if (popupMenu.offsetWidth >= this.$refs.subMenuTitle.offsetWidth) {
  42297. return;
  42298. }
  42299. /* istanbul ignore next */
  42300. popupMenu.style.minWidth = this.$refs.subMenuTitle.offsetWidth + 'px';
  42301. },
  42302. renderChildren: function renderChildren(children) {
  42303. var h = this.$createElement;
  42304. var props = this.$props;
  42305. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this),
  42306. select = _getListeners.select,
  42307. deselect = _getListeners.deselect,
  42308. openChange = _getListeners.openChange;
  42309. var subPopupMenuProps = {
  42310. props: {
  42311. mode: props.mode === 'horizontal' ? 'vertical' : props.mode,
  42312. visible: props.isOpen,
  42313. level: props.level + 1,
  42314. inlineIndent: props.inlineIndent,
  42315. focusable: false,
  42316. selectedKeys: props.selectedKeys,
  42317. eventKey: props.eventKey + '-menu-',
  42318. openKeys: props.openKeys,
  42319. openTransitionName: props.openTransitionName,
  42320. openAnimation: props.openAnimation,
  42321. subMenuOpenDelay: props.subMenuOpenDelay,
  42322. parentMenu: this,
  42323. subMenuCloseDelay: props.subMenuCloseDelay,
  42324. forceSubMenuRender: props.forceSubMenuRender,
  42325. triggerSubMenuAction: props.triggerSubMenuAction,
  42326. builtinPlacements: props.builtinPlacements,
  42327. defaultActiveFirst: props.store.getState().defaultActiveFirst[Object(_util__WEBPACK_IMPORTED_MODULE_14__["getMenuIdFromSubMenuEventKey"])(props.eventKey)],
  42328. multiple: props.multiple,
  42329. prefixCls: props.rootPrefixCls,
  42330. manualRef: this.saveMenuInstance,
  42331. itemIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'itemIcon'),
  42332. expandIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'expandIcon'),
  42333. children: children
  42334. },
  42335. on: {
  42336. click: this.onSubMenuClick,
  42337. select: select,
  42338. deselect: deselect,
  42339. openChange: openChange
  42340. },
  42341. id: this.internalMenuId
  42342. };
  42343. var baseProps = subPopupMenuProps.props;
  42344. var haveRendered = this.haveRendered;
  42345. this.haveRendered = true;
  42346. this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender;
  42347. // never rendered not planning to, don't render
  42348. if (!this.haveOpened) {
  42349. return h('div');
  42350. }
  42351. // don't show transition on first rendering (no animation for opened menu)
  42352. // show appear transition if it's not visible (not sure why)
  42353. // show appear transition if it's not inline mode
  42354. var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline';
  42355. subPopupMenuProps['class'] = ' ' + baseProps.prefixCls + '-sub';
  42356. var animProps = { appear: transitionAppear, css: false };
  42357. var transitionProps = {
  42358. props: animProps,
  42359. on: {}
  42360. };
  42361. if (baseProps.openTransitionName) {
  42362. transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_15__["default"])(baseProps.openTransitionName, {
  42363. appear: transitionAppear
  42364. });
  42365. } else if (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(baseProps.openAnimation) === 'object') {
  42366. animProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, animProps, baseProps.openAnimation.props || {});
  42367. if (!transitionAppear) {
  42368. animProps.appear = false;
  42369. }
  42370. } else if (typeof baseProps.openAnimation === 'string') {
  42371. transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_15__["default"])(baseProps.openAnimation, { appear: transitionAppear });
  42372. }
  42373. if (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(baseProps.openAnimation) === 'object' && baseProps.openAnimation.on) {
  42374. transitionProps.on = baseProps.openAnimation.on;
  42375. }
  42376. return h(
  42377. 'transition',
  42378. transitionProps,
  42379. [h(_SubPopupMenu__WEBPACK_IMPORTED_MODULE_9__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  42380. directives: [{
  42381. name: 'show',
  42382. value: props.isOpen
  42383. }]
  42384. }, subPopupMenuProps]))]
  42385. );
  42386. }
  42387. },
  42388. render: function render() {
  42389. var _className, _attrs;
  42390. var h = arguments[0];
  42391. var props = this.$props;
  42392. var rootPrefixCls = this.rootPrefixCls,
  42393. parentMenu = this.parentMenu;
  42394. var isOpen = props.isOpen;
  42395. var prefixCls = this.getPrefixCls();
  42396. var isInlineMode = props.mode === 'inline';
  42397. var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, prefixCls + '-' + props.mode, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, this.getOpenClassName(), isOpen), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, this.getActiveClassName(), props.active || isOpen && !isInlineMode), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, this.getDisabledClassName(), props.disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, this.getSelectedClassName(), this.isChildrenSelected()), _className);
  42398. if (!this.internalMenuId) {
  42399. if (props.eventKey) {
  42400. this.internalMenuId = props.eventKey + '$Menu';
  42401. } else {
  42402. this.internalMenuId = '$__$' + ++guid + '$Menu';
  42403. }
  42404. }
  42405. var mouseEvents = {};
  42406. var titleClickEvents = {};
  42407. var titleMouseEvents = {};
  42408. if (!props.disabled) {
  42409. mouseEvents = {
  42410. mouseleave: this.onMouseLeave,
  42411. mouseenter: this.onMouseEnter
  42412. };
  42413. // only works in title, not outer li
  42414. titleClickEvents = {
  42415. click: this.onTitleClick
  42416. };
  42417. titleMouseEvents = {
  42418. mouseenter: this.onTitleMouseEnter,
  42419. mouseleave: this.onTitleMouseLeave
  42420. };
  42421. }
  42422. var style = {};
  42423. if (isInlineMode) {
  42424. style.paddingLeft = props.inlineIndent * props.level + 'px';
  42425. }
  42426. var ariaOwns = {};
  42427. // only set aria-owns when menu is open
  42428. // otherwise it would be an invalid aria-owns value
  42429. // since corresponding node cannot be found
  42430. if (isOpen) {
  42431. ariaOwns = {
  42432. 'aria-owns': this.internalMenuId
  42433. };
  42434. }
  42435. var titleProps = {
  42436. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
  42437. 'aria-expanded': isOpen
  42438. }, ariaOwns, {
  42439. 'aria-haspopup': 'true',
  42440. title: typeof props.title === 'string' ? props.title : undefined
  42441. }),
  42442. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, titleMouseEvents, titleClickEvents),
  42443. style: style,
  42444. 'class': prefixCls + '-title',
  42445. ref: 'subMenuTitle'
  42446. };
  42447. // expand custom icon should NOT be displayed in menu with horizontal mode.
  42448. var icon = null;
  42449. if (props.mode !== 'horizontal') {
  42450. icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'expandIcon', props);
  42451. }
  42452. var title = h(
  42453. 'div',
  42454. titleProps,
  42455. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'title'), icon || h('i', { 'class': prefixCls + '-arrow' })]
  42456. );
  42457. var children = this.renderChildren(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["filterEmpty"])(this.$slots['default']));
  42458. var getPopupContainer = this.parentMenu.isRootMenu ? this.parentMenu.getPopupContainer : function (triggerNode) {
  42459. return triggerNode.parentNode;
  42460. };
  42461. var popupPlacement = popupPlacementMap[props.mode];
  42462. var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {};
  42463. var popupClassName = props.mode === 'inline' ? '' : props.popupClassName;
  42464. var liProps = {
  42465. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this), ['click']), mouseEvents),
  42466. 'class': className
  42467. };
  42468. return h(
  42469. 'li',
  42470. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([liProps, {
  42471. attrs: { role: 'menuitem' }
  42472. }]),
  42473. [isInlineMode && title, isInlineMode && children, !isInlineMode && h(
  42474. _vc_trigger__WEBPACK_IMPORTED_MODULE_6__["default"],
  42475. {
  42476. attrs: (_attrs = {
  42477. prefixCls: prefixCls,
  42478. popupClassName: prefixCls + '-popup ' + rootPrefixCls + '-' + parentMenu.theme + ' ' + (popupClassName || ''),
  42479. getPopupContainer: getPopupContainer,
  42480. builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_10__["default"]
  42481. }, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'builtinPlacements', babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, _placements__WEBPACK_IMPORTED_MODULE_10__["default"], props.builtinPlacements)), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'popupPlacement', popupPlacement), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'popupVisible', isOpen), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'popupAlign', popupAlign), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'action', props.disabled ? [] : [props.triggerSubMenuAction]), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'mouseEnterDelay', props.subMenuOpenDelay), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'mouseLeaveDelay', props.subMenuCloseDelay), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'forceRender', props.forceSubMenuRender), _attrs),
  42482. on: {
  42483. 'popupVisibleChange': this.onPopupVisibleChange
  42484. }
  42485. },
  42486. [h(
  42487. 'template',
  42488. { slot: 'popup' },
  42489. [children]
  42490. ), title]
  42491. )]
  42492. );
  42493. }
  42494. };
  42495. var connected = Object(_util_store__WEBPACK_IMPORTED_MODULE_8__["connect"])(function (_ref, _ref2) {
  42496. var openKeys = _ref.openKeys,
  42497. activeKey = _ref.activeKey,
  42498. selectedKeys = _ref.selectedKeys;
  42499. var eventKey = _ref2.eventKey,
  42500. subMenuKey = _ref2.subMenuKey;
  42501. return {
  42502. isOpen: openKeys.indexOf(eventKey) > -1,
  42503. active: activeKey[subMenuKey] === eventKey,
  42504. selectedKeys: selectedKeys
  42505. };
  42506. })(SubMenu);
  42507. connected.isSubMenu = true;
  42508. /* harmony default export */ __webpack_exports__["default"] = (connected);
  42509. /***/ }),
  42510. /***/ "./components/vc-menu/SubPopupMenu.jsx":
  42511. /*!*********************************************!*\
  42512. !*** ./components/vc-menu/SubPopupMenu.jsx ***!
  42513. \*********************************************/
  42514. /*! exports provided: saveRef, getActiveKey, default */
  42515. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42516. "use strict";
  42517. __webpack_require__.r(__webpack_exports__);
  42518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveRef", function() { return saveRef; });
  42519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActiveKey", function() { return getActiveKey; });
  42520. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  42521. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
  42522. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  42523. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  42524. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  42525. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  42526. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  42527. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  42528. /* harmony import */ var _util_store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/store */ "./components/_util/store/index.js");
  42529. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  42530. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
  42531. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  42532. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);
  42533. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./util */ "./components/vc-menu/util.js");
  42534. /* harmony import */ var _DOMWrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DOMWrap */ "./components/vc-menu/DOMWrap.jsx");
  42535. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  42536. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  42537. function allDisabled(arr) {
  42538. if (!arr.length) {
  42539. return true;
  42540. }
  42541. return arr.every(function (c) {
  42542. return !!c.disabled;
  42543. });
  42544. }
  42545. function updateActiveKey(store, menuId, activeKey) {
  42546. var state = store.getState();
  42547. store.setState({
  42548. activeKey: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, state.activeKey, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, menuId, activeKey))
  42549. });
  42550. }
  42551. function getEventKey(props) {
  42552. // when eventKey not available ,it's menu and return menu id '0-menu-'
  42553. return props.eventKey || '0-menu-';
  42554. }
  42555. function saveRef(key, c) {
  42556. if (c) {
  42557. var index = this.instanceArrayKeyIndexMap[key];
  42558. this.instanceArray[index] = c;
  42559. }
  42560. }
  42561. function getActiveKey(props, originalActiveKey) {
  42562. var activeKey = originalActiveKey;
  42563. var eventKey = props.eventKey,
  42564. defaultActiveFirst = props.defaultActiveFirst,
  42565. children = props.children;
  42566. if (activeKey !== undefined && activeKey !== null) {
  42567. var found = void 0;
  42568. Object(_util__WEBPACK_IMPORTED_MODULE_9__["loopMenuItem"])(children, function (c, i) {
  42569. var propsData = c.componentOptions.propsData || {};
  42570. if (c && !propsData.disabled && activeKey === Object(_util__WEBPACK_IMPORTED_MODULE_9__["getKeyFromChildrenIndex"])(c, eventKey, i)) {
  42571. found = true;
  42572. }
  42573. });
  42574. if (found) {
  42575. return activeKey;
  42576. }
  42577. }
  42578. activeKey = null;
  42579. if (defaultActiveFirst) {
  42580. Object(_util__WEBPACK_IMPORTED_MODULE_9__["loopMenuItem"])(children, function (c, i) {
  42581. var propsData = c.componentOptions.propsData || {};
  42582. var noActiveKey = activeKey === null || activeKey === undefined;
  42583. if (noActiveKey && c && !propsData.disabled) {
  42584. activeKey = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getKeyFromChildrenIndex"])(c, eventKey, i);
  42585. }
  42586. });
  42587. return activeKey;
  42588. }
  42589. return activeKey;
  42590. }
  42591. var SubPopupMenu = {
  42592. name: 'SubPopupMenu',
  42593. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])({
  42594. // onSelect: PropTypes.func,
  42595. // onClick: PropTypes.func,
  42596. // onDeselect: PropTypes.func,
  42597. // onOpenChange: PropTypes.func,
  42598. // onDestroy: PropTypes.func,
  42599. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  42600. openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  42601. openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object]),
  42602. openKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number])),
  42603. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  42604. parentMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  42605. eventKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  42606. store: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  42607. forceSubMenuRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  42608. // adding in refactor
  42609. focusable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  42610. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  42611. defaultActiveFirst: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  42612. activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
  42613. selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number])),
  42614. defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number])),
  42615. defaultOpenKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number])),
  42616. level: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  42617. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),
  42618. triggerSubMenuAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['click', 'hover']),
  42619. inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string]),
  42620. manualRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
  42621. itemIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  42622. expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  42623. overflowedIndicator: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  42624. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def([]),
  42625. __propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any // mock componentWillReceiveProps
  42626. }, {
  42627. prefixCls: 'rc-menu',
  42628. mode: 'vertical',
  42629. level: 1,
  42630. inlineIndent: 24,
  42631. visible: true,
  42632. focusable: true,
  42633. manualRef: _util__WEBPACK_IMPORTED_MODULE_9__["noop"]
  42634. }),
  42635. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
  42636. created: function created() {
  42637. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
  42638. this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props);
  42639. props.store.setState({
  42640. activeKey: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props.store.getState().activeKey, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, props.eventKey, getActiveKey(props, props.activeKey)))
  42641. });
  42642. this.instanceArray = [];
  42643. },
  42644. mounted: function mounted() {
  42645. // invoke customized ref to expose component to mixin
  42646. if (this.manualRef) {
  42647. this.manualRef(this);
  42648. }
  42649. },
  42650. updated: function updated() {
  42651. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
  42652. var prevProps = this.prevProps;
  42653. var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)];
  42654. var activeKey = getActiveKey(props, originalActiveKey);
  42655. if (activeKey !== originalActiveKey) {
  42656. updateActiveKey(props.store, getEventKey(props), activeKey);
  42657. } else if ('activeKey' in prevProps) {
  42658. // If prev activeKey is not same as current activeKey,
  42659. // we should set it.
  42660. var prevActiveKey = getActiveKey(prevProps, prevProps.activeKey);
  42661. if (activeKey !== prevActiveKey) {
  42662. updateActiveKey(props.store, getEventKey(props), activeKey);
  42663. }
  42664. }
  42665. this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props);
  42666. },
  42667. methods: {
  42668. // all keyboard events callbacks run from here at first
  42669. onKeyDown: function onKeyDown(e, callback) {
  42670. var keyCode = e.keyCode;
  42671. var handled = void 0;
  42672. this.getFlatInstanceArray().forEach(function (obj) {
  42673. if (obj && obj.active && obj.onKeyDown) {
  42674. handled = obj.onKeyDown(e);
  42675. }
  42676. });
  42677. if (handled) {
  42678. return 1;
  42679. }
  42680. var activeItem = null;
  42681. if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP || keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN) {
  42682. activeItem = this.step(keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP ? -1 : 1);
  42683. }
  42684. if (activeItem) {
  42685. e.preventDefault();
  42686. updateActiveKey(this.$props.store, getEventKey(this.$props), activeItem.eventKey);
  42687. if (typeof callback === 'function') {
  42688. callback(activeItem);
  42689. }
  42690. return 1;
  42691. }
  42692. return undefined;
  42693. },
  42694. onItemHover: function onItemHover(e) {
  42695. var key = e.key,
  42696. hover = e.hover;
  42697. updateActiveKey(this.$props.store, getEventKey(this.$props), hover ? key : null);
  42698. },
  42699. onDeselect: function onDeselect(selectInfo) {
  42700. this.__emit('deselect', selectInfo);
  42701. },
  42702. onSelect: function onSelect(selectInfo) {
  42703. this.__emit('select', selectInfo);
  42704. },
  42705. onClick: function onClick(e) {
  42706. this.__emit('click', e);
  42707. },
  42708. onOpenChange: function onOpenChange(e) {
  42709. this.__emit('openChange', e);
  42710. },
  42711. onDestroy: function onDestroy(key) {
  42712. this.__emit('destroy', key);
  42713. },
  42714. getFlatInstanceArray: function getFlatInstanceArray() {
  42715. return this.instanceArray;
  42716. },
  42717. getOpenTransitionName: function getOpenTransitionName() {
  42718. return this.$props.openTransitionName;
  42719. },
  42720. step: function step(direction) {
  42721. var children = this.getFlatInstanceArray();
  42722. var activeKey = this.$props.store.getState().activeKey[getEventKey(this.$props)];
  42723. var len = children.length;
  42724. if (!len) {
  42725. return null;
  42726. }
  42727. if (direction < 0) {
  42728. children = children.concat().reverse();
  42729. }
  42730. // find current activeIndex
  42731. var activeIndex = -1;
  42732. children.every(function (c, ci) {
  42733. if (c && c.eventKey === activeKey) {
  42734. activeIndex = ci;
  42735. return false;
  42736. }
  42737. return true;
  42738. });
  42739. if (!this.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) {
  42740. return undefined;
  42741. }
  42742. var start = (activeIndex + 1) % len;
  42743. var i = start;
  42744. do {
  42745. var child = children[i];
  42746. if (!child || child.disabled) {
  42747. i = (i + 1) % len;
  42748. } else {
  42749. return child;
  42750. }
  42751. } while (i !== start);
  42752. return null;
  42753. },
  42754. getIcon: function getIcon(instance, name) {
  42755. if (instance.$createElement) {
  42756. var temp = instance[name];
  42757. if (temp !== undefined) {
  42758. return temp;
  42759. }
  42760. return instance.$slots[name] || instance.$scopedSlots[name];
  42761. } else {
  42762. var _temp = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getPropsData"])(instance)[name];
  42763. if (_temp !== undefined) {
  42764. return _temp;
  42765. }
  42766. var slotsProp = [];
  42767. var componentOptions = instance.componentOptions || {};
  42768. (componentOptions.children || []).forEach(function (child) {
  42769. if (child.data && child.data.slot === name) {
  42770. if (child.tag === 'template') {
  42771. slotsProp.push(child.children);
  42772. } else {
  42773. slotsProp.push(child);
  42774. }
  42775. }
  42776. });
  42777. return slotsProp.length ? slotsProp : undefined;
  42778. }
  42779. },
  42780. renderCommonMenuItem: function renderCommonMenuItem(child, i, extraProps) {
  42781. var _this = this;
  42782. if (child.tag === undefined) {
  42783. return child;
  42784. }
  42785. var state = this.$props.store.getState();
  42786. var props = this.$props;
  42787. var key = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getKeyFromChildrenIndex"])(child, props.eventKey, i);
  42788. var childProps = child.componentOptions.propsData || {};
  42789. var isActive = key === state.activeKey[getEventKey(this.$props)];
  42790. if (!childProps.disabled) {
  42791. // manualRef的执行顺序不能保证,使用key映射ref在this.instanceArray中的位置
  42792. this.instanceArrayKeyIndexMap[key] = Object.keys(this.instanceArrayKeyIndexMap).length;
  42793. }
  42794. var childListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getEvents"])(child);
  42795. var newChildProps = {
  42796. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  42797. mode: childProps.mode || props.mode,
  42798. level: props.level,
  42799. inlineIndent: props.inlineIndent,
  42800. renderMenuItem: this.renderMenuItem,
  42801. rootPrefixCls: props.prefixCls,
  42802. index: i,
  42803. parentMenu: props.parentMenu,
  42804. // customized ref function, need to be invoked manually in child's componentDidMount
  42805. manualRef: childProps.disabled ? _util__WEBPACK_IMPORTED_MODULE_9__["noop"] : saveRef.bind(this, key),
  42806. eventKey: key,
  42807. active: !childProps.disabled && isActive,
  42808. multiple: props.multiple,
  42809. openTransitionName: this.getOpenTransitionName(),
  42810. openAnimation: props.openAnimation,
  42811. subMenuOpenDelay: props.subMenuOpenDelay,
  42812. subMenuCloseDelay: props.subMenuCloseDelay,
  42813. forceSubMenuRender: props.forceSubMenuRender,
  42814. builtinPlacements: props.builtinPlacements,
  42815. itemIcon: this.getIcon(child, 'itemIcon') || this.getIcon(this, 'itemIcon'),
  42816. expandIcon: this.getIcon(child, 'expandIcon') || this.getIcon(this, 'expandIcon')
  42817. }, extraProps),
  42818. on: {
  42819. click: function click(e) {
  42820. (childListeners.click || _util__WEBPACK_IMPORTED_MODULE_9__["noop"])(e);
  42821. _this.onClick(e);
  42822. },
  42823. itemHover: this.onItemHover,
  42824. openChange: this.onOpenChange,
  42825. deselect: this.onDeselect,
  42826. // destroy: this.onDestroy,
  42827. select: this.onSelect
  42828. }
  42829. };
  42830. // ref: https://github.com/ant-design/ant-design/issues/13943
  42831. if (props.mode === 'inline' || Object(_util__WEBPACK_IMPORTED_MODULE_9__["isMobileDevice"])()) {
  42832. newChildProps.props.triggerSubMenuAction = 'click';
  42833. }
  42834. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(child, newChildProps);
  42835. },
  42836. renderMenuItem: function renderMenuItem(c, i, subMenuKey) {
  42837. if (!c) {
  42838. return null;
  42839. }
  42840. var state = this.$props.store.getState();
  42841. var extraProps = {
  42842. openKeys: state.openKeys,
  42843. selectedKeys: state.selectedKeys,
  42844. triggerSubMenuAction: this.triggerSubMenuAction,
  42845. isRootMenu: false,
  42846. subMenuKey: subMenuKey
  42847. };
  42848. return this.renderCommonMenuItem(c, i, extraProps);
  42849. }
  42850. },
  42851. render: function render() {
  42852. var _this2 = this;
  42853. var h = arguments[0];
  42854. var props = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(this.$props, []);
  42855. var eventKey = props.eventKey,
  42856. prefixCls = props.prefixCls,
  42857. visible = props.visible,
  42858. level = props.level,
  42859. mode = props.mode,
  42860. theme = props.theme;
  42861. this.instanceArray = [];
  42862. this.instanceArrayKeyIndexMap = {};
  42863. var className = classnames__WEBPACK_IMPORTED_MODULE_8___default()(props.prefixCls, props.prefixCls + '-' + props.mode);
  42864. var domWrapProps = {
  42865. props: {
  42866. tag: 'ul',
  42867. // hiddenClassName: `${prefixCls}-hidden`,
  42868. visible: visible,
  42869. prefixCls: prefixCls,
  42870. level: level,
  42871. mode: mode,
  42872. theme: theme,
  42873. overflowedIndicator: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'overflowedIndicator')
  42874. },
  42875. attrs: {
  42876. role: props.role || 'menu'
  42877. },
  42878. 'class': className,
  42879. // Otherwise, the propagated click event will trigger another onClick
  42880. on: Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this), ['click'])
  42881. };
  42882. // if (props.id) {
  42883. // domProps.id = props.id
  42884. // }
  42885. if (props.focusable) {
  42886. domWrapProps.attrs.tabIndex = '0';
  42887. domWrapProps.on.keydown = this.onKeyDown;
  42888. }
  42889. return (
  42890. // ESLint is not smart enough to know that the type of `children` was checked.
  42891. /* eslint-disable */
  42892. h(
  42893. _DOMWrap__WEBPACK_IMPORTED_MODULE_10__["default"],
  42894. domWrapProps,
  42895. [props.children.map(function (c, i) {
  42896. return _this2.renderMenuItem(c, i, eventKey || '0-menu-');
  42897. })]
  42898. )
  42899. /*eslint -enable */
  42900. );
  42901. }
  42902. };
  42903. /* harmony default export */ __webpack_exports__["default"] = (Object(_util_store__WEBPACK_IMPORTED_MODULE_5__["connect"])()(SubPopupMenu));
  42904. /***/ }),
  42905. /***/ "./components/vc-menu/commonPropsType.js":
  42906. /*!***********************************************!*\
  42907. !*** ./components/vc-menu/commonPropsType.js ***!
  42908. \***********************************************/
  42909. /*! exports provided: default */
  42910. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42911. "use strict";
  42912. __webpack_require__.r(__webpack_exports__);
  42913. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  42914. /* harmony default export */ __webpack_exports__["default"] = ({
  42915. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('rc-menu'),
  42916. focusable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  42917. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  42918. defaultActiveFirst: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  42919. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  42920. activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
  42921. selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])),
  42922. defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])).def([]),
  42923. defaultOpenKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])).def([]),
  42924. openKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])),
  42925. openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object]),
  42926. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']).def('vertical'),
  42927. triggerSubMenuAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('hover'),
  42928. subMenuOpenDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.1),
  42929. subMenuCloseDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.1),
  42930. level: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
  42931. inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(24),
  42932. theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['light', 'dark']).def('light'),
  42933. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  42934. openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  42935. forceSubMenuRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  42936. selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  42937. isRootMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  42938. builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
  42939. return {};
  42940. }),
  42941. itemIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  42942. expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  42943. overflowedIndicator: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
  42944. });
  42945. /***/ }),
  42946. /***/ "./components/vc-menu/index.js":
  42947. /*!*************************************!*\
  42948. !*** ./components/vc-menu/index.js ***!
  42949. \*************************************/
  42950. /*! exports provided: SubMenu, Item, itemProps, MenuItem, MenuItemGroup, ItemGroup, Divider, default */
  42951. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42952. "use strict";
  42953. __webpack_require__.r(__webpack_exports__);
  42954. /* harmony import */ var _Menu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Menu */ "./components/vc-menu/Menu.jsx");
  42955. /* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SubMenu */ "./components/vc-menu/SubMenu.jsx");
  42956. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubMenu", function() { return _SubMenu__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  42957. /* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MenuItem */ "./components/vc-menu/MenuItem.jsx");
  42958. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  42959. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "itemProps", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_2__["menuItemProps"]; });
  42960. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  42961. /* harmony import */ var _MenuItemGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MenuItemGroup */ "./components/vc-menu/MenuItemGroup.jsx");
  42962. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItemGroup", function() { return _MenuItemGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  42963. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemGroup", function() { return _MenuItemGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  42964. /* harmony import */ var _Divider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Divider */ "./components/vc-menu/Divider.jsx");
  42965. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Divider", function() { return _Divider__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  42966. // based on rc-menu 7.5.5
  42967. /* harmony default export */ __webpack_exports__["default"] = (_Menu__WEBPACK_IMPORTED_MODULE_0__["default"]);
  42968. /***/ }),
  42969. /***/ "./components/vc-menu/placements.js":
  42970. /*!******************************************!*\
  42971. !*** ./components/vc-menu/placements.js ***!
  42972. \******************************************/
  42973. /*! exports provided: placements, default */
  42974. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  42975. "use strict";
  42976. __webpack_require__.r(__webpack_exports__);
  42977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return placements; });
  42978. var autoAdjustOverflow = {
  42979. adjustX: 1,
  42980. adjustY: 1
  42981. };
  42982. var placements = {
  42983. topLeft: {
  42984. points: ['bl', 'tl'],
  42985. overflow: autoAdjustOverflow,
  42986. offset: [0, -7]
  42987. },
  42988. bottomLeft: {
  42989. points: ['tl', 'bl'],
  42990. overflow: autoAdjustOverflow,
  42991. offset: [0, 7]
  42992. },
  42993. leftTop: {
  42994. points: ['tr', 'tl'],
  42995. overflow: autoAdjustOverflow,
  42996. offset: [-4, 0]
  42997. },
  42998. rightTop: {
  42999. points: ['tl', 'tr'],
  43000. overflow: autoAdjustOverflow,
  43001. offset: [4, 0]
  43002. }
  43003. };
  43004. /* harmony default export */ __webpack_exports__["default"] = (placements);
  43005. /***/ }),
  43006. /***/ "./components/vc-menu/util.js":
  43007. /*!************************************!*\
  43008. !*** ./components/vc-menu/util.js ***!
  43009. \************************************/
  43010. /*! exports provided: noop, getKeyFromChildrenIndex, getMenuIdFromSubMenuEventKey, loopMenuItem, loopMenuItemRecursively, menuAllProps, getWidth, setStyle, isMobileDevice */
  43011. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43012. "use strict";
  43013. __webpack_require__.r(__webpack_exports__);
  43014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
  43015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getKeyFromChildrenIndex", function() { return getKeyFromChildrenIndex; });
  43016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMenuIdFromSubMenuEventKey", function() { return getMenuIdFromSubMenuEventKey; });
  43017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loopMenuItem", function() { return loopMenuItem; });
  43018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loopMenuItemRecursively", function() { return loopMenuItemRecursively; });
  43019. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "menuAllProps", function() { return menuAllProps; });
  43020. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWidth", function() { return getWidth; });
  43021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setStyle", function() { return setStyle; });
  43022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMobileDevice", function() { return isMobileDevice; });
  43023. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  43024. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  43025. /* harmony import */ var _utils_isMobile__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/isMobile */ "./components/vc-menu/utils/isMobile.js");
  43026. function noop() {}
  43027. function getKeyFromChildrenIndex(child, menuEventKey, index) {
  43028. var prefix = menuEventKey || '';
  43029. return child.key === undefined ? prefix + 'item_' + index : child.key;
  43030. }
  43031. function getMenuIdFromSubMenuEventKey(eventKey) {
  43032. return eventKey + '-menu-';
  43033. }
  43034. function loopMenuItem(children, cb) {
  43035. var index = -1;
  43036. children.forEach(function (c) {
  43037. index++;
  43038. if (c && c.type && c.type.isMenuItemGroup) {
  43039. c.$slots['default'].forEach(function (c2) {
  43040. index++;
  43041. c.componentOptions && cb(c2, index);
  43042. });
  43043. } else {
  43044. c.componentOptions && cb(c, index);
  43045. }
  43046. });
  43047. }
  43048. function loopMenuItemRecursively(children, keys, ret) {
  43049. if (!children || ret.find) {
  43050. return;
  43051. }
  43052. children.forEach(function (c) {
  43053. if (ret.find) {
  43054. return;
  43055. }
  43056. if (c.data && c.data.slot && c.data.slot !== 'default') {
  43057. return;
  43058. }
  43059. if (c && c.componentOptions) {
  43060. var options = c.componentOptions.Ctor.options;
  43061. if (!options || !(options.isSubMenu || options.isMenuItem || options.isMenuItemGroup)) {
  43062. return;
  43063. }
  43064. if (keys.indexOf(c.key) !== -1) {
  43065. ret.find = true;
  43066. } else if (c.componentOptions.children) {
  43067. loopMenuItemRecursively(c.componentOptions.children, keys, ret);
  43068. }
  43069. }
  43070. });
  43071. }
  43072. var menuAllProps = {
  43073. props: ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',
  43074. // the following keys found need to be removed from test regression
  43075. 'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'],
  43076. on: ['select', 'deselect', 'destroy', 'openChange', 'itemHover', 'titleMouseenter', 'titleMouseleave', 'titleClick']
  43077. };
  43078. // ref: https://github.com/ant-design/ant-design/issues/14007
  43079. // ref: https://bugs.chromium.org/p/chromium/issues/detail?id=360889
  43080. // getBoundingClientRect return the full precision value, which is
  43081. // not the same behavior as on chrome. Set the precision to 6 to
  43082. // unify their behavior
  43083. var getWidth = function getWidth(elem) {
  43084. var width = elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width;
  43085. if (width) {
  43086. width = +width.toFixed(6);
  43087. }
  43088. return width || 0;
  43089. };
  43090. var setStyle = function setStyle(elem, styleProperty, value) {
  43091. if (elem && babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(elem.style) === 'object') {
  43092. elem.style[styleProperty] = value;
  43093. }
  43094. };
  43095. var isMobileDevice = function isMobileDevice() {
  43096. return _utils_isMobile__WEBPACK_IMPORTED_MODULE_1__["default"].any;
  43097. };
  43098. /***/ }),
  43099. /***/ "./components/vc-menu/utils/isMobile.js":
  43100. /*!**********************************************!*\
  43101. !*** ./components/vc-menu/utils/isMobile.js ***!
  43102. \**********************************************/
  43103. /*! exports provided: default */
  43104. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43105. "use strict";
  43106. __webpack_require__.r(__webpack_exports__);
  43107. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  43108. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  43109. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
  43110. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
  43111. // MIT License from https://github.com/kaimallea/isMobile
  43112. var applePhone = /iPhone/i;
  43113. var appleIpod = /iPod/i;
  43114. var appleTablet = /iPad/i;
  43115. var androidPhone = /\bAndroid(?:.+)Mobile\b/i; // Match 'Android' AND 'Mobile'
  43116. var androidTablet = /Android/i;
  43117. var amazonPhone = /\bAndroid(?:.+)SD4930UR\b/i;
  43118. var amazonTablet = /\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i;
  43119. var windowsPhone = /Windows Phone/i;
  43120. var windowsTablet = /\bWindows(?:.+)ARM\b/i; // Match 'Windows' AND 'ARM'
  43121. var otherBlackberry = /BlackBerry/i;
  43122. var otherBlackberry10 = /BB10/i;
  43123. var otherOpera = /Opera Mini/i;
  43124. var otherChrome = /\b(CriOS|Chrome)(?:.+)Mobile/i;
  43125. var otherFirefox = /Mobile(?:.+)Firefox\b/i; // Match 'Mobile' AND 'Firefox'
  43126. function match(regex, userAgent) {
  43127. return regex.test(userAgent);
  43128. }
  43129. function isMobile(userAgent) {
  43130. var ua = userAgent || (typeof navigator !== 'undefined' ? navigator.userAgent : '');
  43131. // Facebook mobile app's integrated browser adds a bunch of strings that
  43132. // match everything. Strip it out if it exists.
  43133. var tmp = ua.split('[FBAN');
  43134. if (typeof tmp[1] !== 'undefined') {
  43135. var _tmp = tmp;
  43136. var _tmp2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_tmp, 1);
  43137. ua = _tmp2[0];
  43138. }
  43139. // Twitter mobile app's integrated browser on iPad adds a "Twitter for
  43140. // iPhone" string. Same probably happens on other tablet platforms.
  43141. // This will confuse detection so strip it out if it exists.
  43142. tmp = ua.split('Twitter');
  43143. if (typeof tmp[1] !== 'undefined') {
  43144. var _tmp3 = tmp;
  43145. var _tmp4 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_tmp3, 1);
  43146. ua = _tmp4[0];
  43147. }
  43148. var result = {
  43149. apple: {
  43150. phone: match(applePhone, ua) && !match(windowsPhone, ua),
  43151. ipod: match(appleIpod, ua),
  43152. tablet: !match(applePhone, ua) && match(appleTablet, ua) && !match(windowsPhone, ua),
  43153. device: (match(applePhone, ua) || match(appleIpod, ua) || match(appleTablet, ua)) && !match(windowsPhone, ua)
  43154. },
  43155. amazon: {
  43156. phone: match(amazonPhone, ua),
  43157. tablet: !match(amazonPhone, ua) && match(amazonTablet, ua),
  43158. device: match(amazonPhone, ua) || match(amazonTablet, ua)
  43159. },
  43160. android: {
  43161. phone: !match(windowsPhone, ua) && match(amazonPhone, ua) || !match(windowsPhone, ua) && match(androidPhone, ua),
  43162. tablet: !match(windowsPhone, ua) && !match(amazonPhone, ua) && !match(androidPhone, ua) && (match(amazonTablet, ua) || match(androidTablet, ua)),
  43163. device: !match(windowsPhone, ua) && (match(amazonPhone, ua) || match(amazonTablet, ua) || match(androidPhone, ua) || match(androidTablet, ua)) || match(/\bokhttp\b/i, ua)
  43164. },
  43165. windows: {
  43166. phone: match(windowsPhone, ua),
  43167. tablet: match(windowsTablet, ua),
  43168. device: match(windowsPhone, ua) || match(windowsTablet, ua)
  43169. },
  43170. other: {
  43171. blackberry: match(otherBlackberry, ua),
  43172. blackberry10: match(otherBlackberry10, ua),
  43173. opera: match(otherOpera, ua),
  43174. firefox: match(otherFirefox, ua),
  43175. chrome: match(otherChrome, ua),
  43176. device: match(otherBlackberry, ua) || match(otherBlackberry10, ua) || match(otherOpera, ua) || match(otherFirefox, ua) || match(otherChrome, ua)
  43177. },
  43178. // Additional
  43179. any: null,
  43180. phone: null,
  43181. tablet: null
  43182. };
  43183. result.any = result.apple.device || result.android.device || result.windows.device || result.other.device;
  43184. // excludes 'other' devices and ipods, targeting touchscreen phones
  43185. result.phone = result.apple.phone || result.android.phone || result.windows.phone;
  43186. result.tablet = result.apple.tablet || result.android.tablet || result.windows.tablet;
  43187. return result;
  43188. }
  43189. var defaultResult = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, isMobile(), {
  43190. isMobile: isMobile
  43191. });
  43192. /* harmony default export */ __webpack_exports__["default"] = (defaultResult);
  43193. /***/ }),
  43194. /***/ "./components/vc-notification/Notice.jsx":
  43195. /*!***********************************************!*\
  43196. !*** ./components/vc-notification/Notice.jsx ***!
  43197. \***********************************************/
  43198. /*! exports provided: default */
  43199. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43200. "use strict";
  43201. __webpack_require__.r(__webpack_exports__);
  43202. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  43203. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  43204. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  43205. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  43206. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  43207. function noop() {}
  43208. /* harmony default export */ __webpack_exports__["default"] = ({
  43209. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  43210. props: {
  43211. duration: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number.def(1.5),
  43212. closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  43213. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  43214. update: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  43215. closeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  43216. },
  43217. watch: {
  43218. duration: function duration() {
  43219. this.restartCloseTimer();
  43220. }
  43221. },
  43222. mounted: function mounted() {
  43223. this.startCloseTimer();
  43224. },
  43225. updated: function updated() {
  43226. if (this.update) {
  43227. this.restartCloseTimer();
  43228. }
  43229. },
  43230. beforeDestroy: function beforeDestroy() {
  43231. this.clearCloseTimer();
  43232. this.willDestroy = true; // beforeDestroy调用后依然会触发onMouseleave事件
  43233. },
  43234. methods: {
  43235. close: function close(e) {
  43236. if (e) {
  43237. e.stopPropagation();
  43238. }
  43239. this.clearCloseTimer();
  43240. this.__emit('close');
  43241. },
  43242. startCloseTimer: function startCloseTimer() {
  43243. var _this = this;
  43244. this.clearCloseTimer();
  43245. if (!this.willDestroy && this.duration) {
  43246. this.closeTimer = setTimeout(function () {
  43247. _this.close();
  43248. }, this.duration * 1000);
  43249. }
  43250. },
  43251. clearCloseTimer: function clearCloseTimer() {
  43252. if (this.closeTimer) {
  43253. clearTimeout(this.closeTimer);
  43254. this.closeTimer = null;
  43255. }
  43256. },
  43257. restartCloseTimer: function restartCloseTimer() {
  43258. this.clearCloseTimer();
  43259. this.startCloseTimer();
  43260. }
  43261. },
  43262. render: function render() {
  43263. var _className;
  43264. var h = arguments[0];
  43265. var prefixCls = this.prefixCls,
  43266. closable = this.closable,
  43267. clearCloseTimer = this.clearCloseTimer,
  43268. startCloseTimer = this.startCloseTimer,
  43269. $slots = this.$slots,
  43270. close = this.close;
  43271. var componentClass = prefixCls + '-notice';
  43272. var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, '' + componentClass, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, componentClass + '-closable', closable), _className);
  43273. var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getStyle"])(this);
  43274. var closeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'closeIcon');
  43275. return h(
  43276. 'div',
  43277. {
  43278. 'class': className,
  43279. style: style || { right: '50%' },
  43280. on: {
  43281. 'mouseenter': clearCloseTimer,
  43282. 'mouseleave': startCloseTimer,
  43283. 'click': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this).click || noop
  43284. }
  43285. },
  43286. [h(
  43287. 'div',
  43288. { 'class': componentClass + '-content' },
  43289. [$slots['default']]
  43290. ), closable ? h(
  43291. 'a',
  43292. {
  43293. attrs: { tabIndex: '0' },
  43294. on: {
  43295. 'click': close
  43296. },
  43297. 'class': componentClass + '-close' },
  43298. [closeIcon || h('span', { 'class': componentClass + '-close-x' })]
  43299. ) : null]
  43300. );
  43301. }
  43302. });
  43303. /***/ }),
  43304. /***/ "./components/vc-notification/Notification.jsx":
  43305. /*!*****************************************************!*\
  43306. !*** ./components/vc-notification/Notification.jsx ***!
  43307. \*****************************************************/
  43308. /*! exports provided: default */
  43309. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43310. "use strict";
  43311. __webpack_require__.r(__webpack_exports__);
  43312. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  43313. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
  43314. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  43315. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  43316. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
  43317. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
  43318. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  43319. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  43320. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  43321. /* harmony import */ var _util_createChainedFunction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/createChainedFunction */ "./components/_util/createChainedFunction.js");
  43322. /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
  43323. /* harmony import */ var _Notice__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Notice */ "./components/vc-notification/Notice.jsx");
  43324. /* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
  43325. function noop() {}
  43326. var seed = 0;
  43327. var now = Date.now();
  43328. function getUuid() {
  43329. return 'rcNotification_' + now + '_' + seed++;
  43330. }
  43331. var Notification = {
  43332. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
  43333. props: {
  43334. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('rc-notification'),
  43335. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  43336. animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]).def('fade'),
  43337. maxCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  43338. closeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
  43339. },
  43340. data: function data() {
  43341. return {
  43342. notices: []
  43343. };
  43344. },
  43345. methods: {
  43346. getTransitionName: function getTransitionName() {
  43347. var props = this.$props;
  43348. var transitionName = props.transitionName;
  43349. if (!transitionName && props.animation) {
  43350. transitionName = props.prefixCls + '-' + props.animation;
  43351. }
  43352. return transitionName;
  43353. },
  43354. add: function add(notice) {
  43355. var key = notice.key = notice.key || getUuid();
  43356. var maxCount = this.$props.maxCount;
  43357. this.setState(function (previousState) {
  43358. var notices = previousState.notices;
  43359. var noticeIndex = notices.map(function (v) {
  43360. return v.key;
  43361. }).indexOf(key);
  43362. var updatedNotices = notices.concat();
  43363. if (noticeIndex !== -1) {
  43364. updatedNotices.splice(noticeIndex, 1, notice);
  43365. } else {
  43366. if (maxCount && notices.length >= maxCount) {
  43367. // XXX, use key of first item to update new added (let React to move exsiting
  43368. // instead of remove and mount). Same key was used before for both a) external
  43369. // manual control and b) internal react 'key' prop , which is not that good.
  43370. notice.updateKey = updatedNotices[0].updateKey || updatedNotices[0].key;
  43371. updatedNotices.shift();
  43372. }
  43373. updatedNotices.push(notice);
  43374. }
  43375. return {
  43376. notices: updatedNotices
  43377. };
  43378. });
  43379. },
  43380. remove: function remove(key) {
  43381. this.setState(function (previousState) {
  43382. return {
  43383. notices: previousState.notices.filter(function (notice) {
  43384. return notice.key !== key;
  43385. })
  43386. };
  43387. });
  43388. }
  43389. },
  43390. render: function render(h) {
  43391. var _this = this;
  43392. var prefixCls = this.prefixCls,
  43393. notices = this.notices,
  43394. remove = this.remove,
  43395. getTransitionName = this.getTransitionName;
  43396. var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_7__["default"])(getTransitionName());
  43397. var noticeNodes = notices.map(function (notice, index) {
  43398. var update = Boolean(index === notices.length - 1 && notice.updateKey);
  43399. var key = notice.updateKey ? notice.updateKey : notice.key;
  43400. var content = notice.content,
  43401. duration = notice.duration,
  43402. closable = notice.closable,
  43403. onClose = notice.onClose,
  43404. style = notice.style,
  43405. className = notice['class'];
  43406. var close = Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_6__["default"])(remove.bind(_this, notice.key), onClose);
  43407. var noticeProps = {
  43408. props: {
  43409. prefixCls: prefixCls,
  43410. duration: duration,
  43411. closable: closable,
  43412. update: update,
  43413. closeIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(_this, 'closeIcon')
  43414. },
  43415. on: {
  43416. close: close,
  43417. click: notice.onClick || noop
  43418. },
  43419. style: style,
  43420. 'class': className,
  43421. key: key
  43422. };
  43423. return h(
  43424. _Notice__WEBPACK_IMPORTED_MODULE_8__["default"],
  43425. noticeProps,
  43426. [typeof content === 'function' ? content(h) : content]
  43427. );
  43428. });
  43429. var className = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls, 1);
  43430. var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getStyle"])(this);
  43431. return h(
  43432. 'div',
  43433. {
  43434. 'class': className,
  43435. style: style || {
  43436. top: '65px',
  43437. left: '50%'
  43438. }
  43439. },
  43440. [h(
  43441. 'transition-group',
  43442. transitionProps,
  43443. [noticeNodes]
  43444. )]
  43445. );
  43446. }
  43447. };
  43448. Notification.newInstance = function newNotificationInstance(properties, callback) {
  43449. var _ref = properties || {},
  43450. getContainer = _ref.getContainer,
  43451. style = _ref.style,
  43452. className = _ref['class'],
  43453. props = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_ref, ['getContainer', 'style', 'class']);
  43454. var div = document.createElement('div');
  43455. if (getContainer) {
  43456. var root = getContainer();
  43457. root.appendChild(div);
  43458. } else {
  43459. document.body.appendChild(div);
  43460. }
  43461. var V = _base__WEBPACK_IMPORTED_MODULE_9__["default"].Vue || vue__WEBPACK_IMPORTED_MODULE_2___default.a;
  43462. new V({
  43463. el: div,
  43464. mounted: function mounted() {
  43465. var self = this;
  43466. this.$nextTick(function () {
  43467. callback({
  43468. notice: function notice(noticeProps) {
  43469. self.$refs.notification.add(noticeProps);
  43470. },
  43471. removeNotice: function removeNotice(key) {
  43472. self.$refs.notification.remove(key);
  43473. },
  43474. component: self,
  43475. destroy: function destroy() {
  43476. self.$destroy();
  43477. self.$el.parentNode.removeChild(self.$el);
  43478. }
  43479. });
  43480. });
  43481. },
  43482. render: function render() {
  43483. var h = arguments[0];
  43484. var p = {
  43485. props: props,
  43486. ref: 'notification',
  43487. style: style,
  43488. 'class': className
  43489. };
  43490. return h(Notification, p);
  43491. }
  43492. });
  43493. };
  43494. /* harmony default export */ __webpack_exports__["default"] = (Notification);
  43495. /***/ }),
  43496. /***/ "./components/vc-notification/index.js":
  43497. /*!*********************************************!*\
  43498. !*** ./components/vc-notification/index.js ***!
  43499. \*********************************************/
  43500. /*! exports provided: default */
  43501. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43502. "use strict";
  43503. __webpack_require__.r(__webpack_exports__);
  43504. /* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Notification */ "./components/vc-notification/Notification.jsx");
  43505. // based on rc-notification 3.3.1
  43506. /* harmony default export */ __webpack_exports__["default"] = (_Notification__WEBPACK_IMPORTED_MODULE_0__["default"]);
  43507. /***/ }),
  43508. /***/ "./components/vc-pagination/KeyCode.js":
  43509. /*!*********************************************!*\
  43510. !*** ./components/vc-pagination/KeyCode.js ***!
  43511. \*********************************************/
  43512. /*! exports provided: default */
  43513. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43514. "use strict";
  43515. __webpack_require__.r(__webpack_exports__);
  43516. /* harmony default export */ __webpack_exports__["default"] = ({
  43517. ZERO: 48,
  43518. NINE: 57,
  43519. NUMPAD_ZERO: 96,
  43520. NUMPAD_NINE: 105,
  43521. BACKSPACE: 8,
  43522. DELETE: 46,
  43523. ENTER: 13,
  43524. ARROW_UP: 38,
  43525. ARROW_DOWN: 40
  43526. });
  43527. /***/ }),
  43528. /***/ "./components/vc-pagination/Options.jsx":
  43529. /*!**********************************************!*\
  43530. !*** ./components/vc-pagination/Options.jsx ***!
  43531. \**********************************************/
  43532. /*! exports provided: default */
  43533. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43534. "use strict";
  43535. __webpack_require__.r(__webpack_exports__);
  43536. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  43537. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  43538. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  43539. /* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./KeyCode */ "./components/vc-pagination/KeyCode.js");
  43540. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  43541. /* harmony default export */ __webpack_exports__["default"] = ({
  43542. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  43543. props: {
  43544. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  43545. changeSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  43546. quickGo: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  43547. selectComponentClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  43548. current: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  43549. pageSizeOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array.def(['10', '20', '30', '40']),
  43550. pageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  43551. buildOptionText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  43552. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  43553. rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  43554. selectPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  43555. goButton: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  43556. },
  43557. data: function data() {
  43558. return {
  43559. goInputText: ''
  43560. };
  43561. },
  43562. methods: {
  43563. getValidValue: function getValidValue() {
  43564. var goInputText = this.goInputText,
  43565. current = this.current;
  43566. return !goInputText || isNaN(goInputText) ? current : Number(goInputText);
  43567. },
  43568. defaultBuildOptionText: function defaultBuildOptionText(opt) {
  43569. return opt.value + ' ' + this.locale.items_per_page;
  43570. },
  43571. handleChange: function handleChange(e) {
  43572. var _e$target = e.target,
  43573. value = _e$target.value,
  43574. composing = _e$target.composing;
  43575. if (e.isComposing || composing || this.goInputText === value) return;
  43576. this.setState({
  43577. goInputText: value
  43578. });
  43579. },
  43580. handleBlur: function handleBlur(e) {
  43581. var _$props = this.$props,
  43582. goButton = _$props.goButton,
  43583. quickGo = _$props.quickGo,
  43584. rootPrefixCls = _$props.rootPrefixCls;
  43585. if (goButton) {
  43586. return;
  43587. }
  43588. if (e.relatedTarget && (e.relatedTarget.className.indexOf(rootPrefixCls + '-prev') >= 0 || e.relatedTarget.className.indexOf(rootPrefixCls + '-next') >= 0)) {
  43589. return;
  43590. }
  43591. quickGo(this.getValidValue());
  43592. },
  43593. go: function go(e) {
  43594. var goInputText = this.goInputText;
  43595. if (goInputText === '') {
  43596. return;
  43597. }
  43598. if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].ENTER || e.type === 'click') {
  43599. // https://github.com/vueComponent/ant-design-vue/issues/1316
  43600. this.quickGo(this.getValidValue());
  43601. this.setState({
  43602. goInputText: ''
  43603. });
  43604. }
  43605. }
  43606. },
  43607. render: function render() {
  43608. var _this = this;
  43609. var h = arguments[0];
  43610. var rootPrefixCls = this.rootPrefixCls,
  43611. locale = this.locale,
  43612. changeSize = this.changeSize,
  43613. quickGo = this.quickGo,
  43614. goButton = this.goButton,
  43615. Select = this.selectComponentClass,
  43616. defaultBuildOptionText = this.defaultBuildOptionText,
  43617. selectPrefixCls = this.selectPrefixCls,
  43618. pageSize = this.pageSize,
  43619. pageSizeOptions = this.pageSizeOptions,
  43620. goInputText = this.goInputText,
  43621. disabled = this.disabled;
  43622. var prefixCls = rootPrefixCls + '-options';
  43623. var changeSelect = null;
  43624. var goInput = null;
  43625. var gotoButton = null;
  43626. if (!changeSize && !quickGo) {
  43627. return null;
  43628. }
  43629. if (changeSize && Select) {
  43630. var buildOptionText = this.buildOptionText || defaultBuildOptionText;
  43631. var options = pageSizeOptions.map(function (opt, i) {
  43632. return h(
  43633. Select.Option,
  43634. { key: i, attrs: { value: opt }
  43635. },
  43636. [buildOptionText({ value: opt })]
  43637. );
  43638. });
  43639. changeSelect = h(
  43640. Select,
  43641. {
  43642. attrs: {
  43643. disabled: disabled,
  43644. prefixCls: selectPrefixCls,
  43645. showSearch: false,
  43646. optionLabelProp: 'children',
  43647. dropdownMatchSelectWidth: false,
  43648. value: (pageSize || pageSizeOptions[0]).toString(),
  43649. getPopupContainer: function getPopupContainer(triggerNode) {
  43650. return triggerNode.parentNode;
  43651. }
  43652. },
  43653. 'class': prefixCls + '-size-changer', on: {
  43654. 'change': function change(value) {
  43655. return _this.changeSize(Number(value));
  43656. }
  43657. }
  43658. },
  43659. [options]
  43660. );
  43661. }
  43662. if (quickGo) {
  43663. if (goButton) {
  43664. gotoButton = typeof goButton === 'boolean' ? h(
  43665. 'button',
  43666. {
  43667. attrs: { type: 'button', disabled: disabled },
  43668. on: {
  43669. 'click': this.go,
  43670. 'keyup': this.go
  43671. }
  43672. },
  43673. [locale.jump_to_confirm]
  43674. ) : h(
  43675. 'span',
  43676. {
  43677. on: {
  43678. 'click': this.go,
  43679. 'keyup': this.go
  43680. }
  43681. },
  43682. [goButton]
  43683. );
  43684. }
  43685. goInput = h(
  43686. 'div',
  43687. { 'class': prefixCls + '-quick-jumper' },
  43688. [locale.jump_to, h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  43689. attrs: {
  43690. disabled: disabled,
  43691. type: 'text'
  43692. },
  43693. domProps: {
  43694. 'value': goInputText
  43695. },
  43696. on: {
  43697. 'input': this.handleChange,
  43698. 'keyup': this.go,
  43699. 'blur': this.handleBlur
  43700. }
  43701. }, {
  43702. directives: [{
  43703. name: 'ant-input'
  43704. }]
  43705. }])), locale.page, gotoButton]
  43706. );
  43707. }
  43708. return h(
  43709. 'li',
  43710. { 'class': '' + prefixCls },
  43711. [changeSelect, goInput]
  43712. );
  43713. }
  43714. });
  43715. /***/ }),
  43716. /***/ "./components/vc-pagination/Pager.jsx":
  43717. /*!********************************************!*\
  43718. !*** ./components/vc-pagination/Pager.jsx ***!
  43719. \********************************************/
  43720. /*! exports provided: default */
  43721. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43722. "use strict";
  43723. __webpack_require__.r(__webpack_exports__);
  43724. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  43725. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  43726. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  43727. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  43728. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  43729. /* harmony default export */ __webpack_exports__["default"] = ({
  43730. name: 'Pager',
  43731. props: {
  43732. rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  43733. page: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  43734. active: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  43735. last: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  43736. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  43737. showTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  43738. itemRender: {
  43739. type: Function,
  43740. 'default': function _default() {}
  43741. }
  43742. },
  43743. methods: {
  43744. handleClick: function handleClick() {
  43745. this.$emit('click', this.page);
  43746. },
  43747. handleKeyPress: function handleKeyPress(event) {
  43748. this.$emit('keypress', event, this.handleClick, this.page);
  43749. }
  43750. },
  43751. render: function render() {
  43752. var _classNames;
  43753. var h = arguments[0];
  43754. var props = this.$props;
  43755. var prefixCls = props.rootPrefixCls + '-item';
  43756. var cls = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, prefixCls + '-' + props.page, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-active', props.active), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', !props.page), _classNames));
  43757. return h(
  43758. 'li',
  43759. {
  43760. 'class': cls,
  43761. on: {
  43762. 'click': this.handleClick,
  43763. 'keypress': this.handleKeyPress
  43764. },
  43765. attrs: {
  43766. title: this.showTitle ? this.page : null,
  43767. tabIndex: '0'
  43768. }
  43769. },
  43770. [this.itemRender(this.page, 'page', h('a', [this.page]))]
  43771. );
  43772. }
  43773. });
  43774. /***/ }),
  43775. /***/ "./components/vc-pagination/Pagination.jsx":
  43776. /*!*************************************************!*\
  43777. !*** ./components/vc-pagination/Pagination.jsx ***!
  43778. \*************************************************/
  43779. /*! exports provided: default */
  43780. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43781. "use strict";
  43782. __webpack_require__.r(__webpack_exports__);
  43783. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  43784. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  43785. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  43786. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__);
  43787. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  43788. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
  43789. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  43790. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  43791. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  43792. /* harmony import */ var _Pager__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Pager */ "./components/vc-pagination/Pager.jsx");
  43793. /* harmony import */ var _Options__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Options */ "./components/vc-pagination/Options.jsx");
  43794. /* harmony import */ var _locale_zh_CN__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./locale/zh_CN */ "./components/vc-pagination/locale/zh_CN.js");
  43795. /* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./KeyCode */ "./components/vc-pagination/KeyCode.js");
  43796. function noop() {}
  43797. // 是否是正整数
  43798. function isInteger(value) {
  43799. return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
  43800. }
  43801. function defaultItemRender(page, type, element) {
  43802. return element;
  43803. }
  43804. function calculatePage(p, state, props) {
  43805. var pageSize = p;
  43806. if (typeof pageSize === 'undefined') {
  43807. pageSize = state.statePageSize;
  43808. }
  43809. return Math.floor((props.total - 1) / pageSize) + 1;
  43810. }
  43811. /* harmony default export */ __webpack_exports__["default"] = ({
  43812. name: 'Pagination',
  43813. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  43814. model: {
  43815. prop: 'current',
  43816. event: 'change.current'
  43817. },
  43818. props: {
  43819. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  43820. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('rc-pagination'),
  43821. selectPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('rc-select'),
  43822. current: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  43823. defaultCurrent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(1),
  43824. total: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0),
  43825. pageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  43826. defaultPageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(10),
  43827. hideOnSinglePage: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
  43828. showSizeChanger: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
  43829. showLessItems: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
  43830. // showSizeChange: PropTypes.func.def(noop),
  43831. selectComponentClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  43832. showPrevNextJumpers: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(true),
  43833. showQuickJumper: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]).def(false),
  43834. showTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(true),
  43835. pageSizeOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
  43836. buildOptionText: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  43837. showTotal: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  43838. simple: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  43839. locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object.def(_locale_zh_CN__WEBPACK_IMPORTED_MODULE_8__["default"]),
  43840. itemRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(defaultItemRender),
  43841. prevIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  43842. nextIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  43843. jumpPrevIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  43844. jumpNextIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
  43845. },
  43846. data: function data() {
  43847. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
  43848. var hasOnChange = this.onChange !== noop;
  43849. var hasCurrent = 'current' in props;
  43850. if (hasCurrent && !hasOnChange) {
  43851. console.warn('Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.'); // eslint-disable-line
  43852. }
  43853. var current = this.defaultCurrent;
  43854. if ('current' in props) {
  43855. current = this.current;
  43856. }
  43857. var pageSize = this.defaultPageSize;
  43858. if ('pageSize' in props) {
  43859. pageSize = this.pageSize;
  43860. }
  43861. current = Math.min(current, calculatePage(pageSize, undefined, props));
  43862. return {
  43863. stateCurrent: current,
  43864. stateCurrentInputValue: current,
  43865. statePageSize: pageSize
  43866. };
  43867. },
  43868. watch: {
  43869. current: function current(val) {
  43870. this.setState({
  43871. stateCurrent: val,
  43872. stateCurrentInputValue: val
  43873. });
  43874. },
  43875. pageSize: function pageSize(val) {
  43876. var newState = {};
  43877. var current = this.stateCurrent;
  43878. var newCurrent = calculatePage(val, this.$data, this.$props);
  43879. current = current > newCurrent ? newCurrent : current;
  43880. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'current')) {
  43881. newState.stateCurrent = current;
  43882. newState.stateCurrentInputValue = current;
  43883. }
  43884. newState.statePageSize = val;
  43885. this.setState(newState);
  43886. },
  43887. stateCurrent: function stateCurrent(val, oldValue) {
  43888. var _this = this;
  43889. // When current page change, fix focused style of prev item
  43890. // A hacky solution of https://github.com/ant-design/ant-design/issues/8948
  43891. this.$nextTick(function () {
  43892. if (_this.$refs.paginationNode) {
  43893. var lastCurrentNode = _this.$refs.paginationNode.querySelector('.' + _this.prefixCls + '-item-' + oldValue);
  43894. if (lastCurrentNode && document.activeElement === lastCurrentNode) {
  43895. lastCurrentNode.blur();
  43896. }
  43897. }
  43898. });
  43899. },
  43900. total: function total() {
  43901. var newState = {};
  43902. var newCurrent = calculatePage(this.pageSize, this.$data, this.$props);
  43903. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'current')) {
  43904. var current = Math.min(this.current, newCurrent);
  43905. newState.stateCurrent = current;
  43906. newState.stateCurrentInputValue = current;
  43907. } else {
  43908. var _current = this.stateCurrent;
  43909. if (_current === 0 && newCurrent > 0) {
  43910. _current = 1;
  43911. } else {
  43912. _current = Math.min(this.stateCurrent, newCurrent);
  43913. }
  43914. newState.stateCurrent = _current;
  43915. }
  43916. this.setState(newState);
  43917. }
  43918. },
  43919. methods: {
  43920. getJumpPrevPage: function getJumpPrevPage() {
  43921. return Math.max(1, this.stateCurrent - (this.showLessItems ? 3 : 5));
  43922. },
  43923. getJumpNextPage: function getJumpNextPage() {
  43924. return Math.min(calculatePage(undefined, this.$data, this.$props), this.stateCurrent + (this.showLessItems ? 3 : 5));
  43925. },
  43926. getItemIcon: function getItemIcon(icon) {
  43927. var h = this.$createElement;
  43928. var prefixCls = this.$props.prefixCls;
  43929. var iconNode = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, icon, this.$props) || h('a', { 'class': prefixCls + '-item-link' });
  43930. return iconNode;
  43931. },
  43932. getValidValue: function getValidValue(e) {
  43933. var inputValue = e.target.value;
  43934. var allPages = calculatePage(undefined, this.$data, this.$props);
  43935. var stateCurrentInputValue = this.$data.stateCurrentInputValue;
  43936. var value = void 0;
  43937. if (inputValue === '') {
  43938. value = inputValue;
  43939. } else if (isNaN(Number(inputValue))) {
  43940. value = stateCurrentInputValue;
  43941. } else if (inputValue >= allPages) {
  43942. value = allPages;
  43943. } else {
  43944. value = Number(inputValue);
  43945. }
  43946. return value;
  43947. },
  43948. isValid: function isValid(page) {
  43949. return isInteger(page) && page !== this.stateCurrent;
  43950. },
  43951. shouldDisplayQuickJumper: function shouldDisplayQuickJumper() {
  43952. var _$props = this.$props,
  43953. showQuickJumper = _$props.showQuickJumper,
  43954. pageSize = _$props.pageSize,
  43955. total = _$props.total;
  43956. if (total <= pageSize) {
  43957. return false;
  43958. }
  43959. return showQuickJumper;
  43960. },
  43961. // calculatePage (p) {
  43962. // let pageSize = p
  43963. // if (typeof pageSize === 'undefined') {
  43964. // pageSize = this.statePageSize
  43965. // }
  43966. // return Math.floor((this.total - 1) / pageSize) + 1
  43967. // },
  43968. handleKeyDown: function handleKeyDown(event) {
  43969. if (event.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ARROW_UP || event.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ARROW_DOWN) {
  43970. event.preventDefault();
  43971. }
  43972. },
  43973. handleKeyUp: function handleKeyUp(e) {
  43974. if (e.isComposing || e.target.composing) return;
  43975. var value = this.getValidValue(e);
  43976. var stateCurrentInputValue = this.stateCurrentInputValue;
  43977. if (value !== stateCurrentInputValue) {
  43978. this.setState({
  43979. stateCurrentInputValue: value
  43980. });
  43981. }
  43982. if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ENTER) {
  43983. this.handleChange(value);
  43984. } else if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ARROW_UP) {
  43985. this.handleChange(value - 1);
  43986. } else if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ARROW_DOWN) {
  43987. this.handleChange(value + 1);
  43988. }
  43989. },
  43990. changePageSize: function changePageSize(size) {
  43991. var current = this.stateCurrent;
  43992. var preCurrent = current;
  43993. var newCurrent = calculatePage(size, this.$data, this.$props);
  43994. current = current > newCurrent ? newCurrent : current;
  43995. // fix the issue:
  43996. // Once 'total' is 0, 'current' in 'onShowSizeChange' is 0, which is not correct.
  43997. if (newCurrent === 0) {
  43998. current = this.stateCurrent;
  43999. }
  44000. if (typeof size === 'number') {
  44001. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'pageSize')) {
  44002. this.setState({
  44003. statePageSize: size
  44004. });
  44005. }
  44006. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'current')) {
  44007. this.setState({
  44008. stateCurrent: current,
  44009. stateCurrentInputValue: current
  44010. });
  44011. }
  44012. }
  44013. this.$emit('update:pageSize', size);
  44014. this.$emit('showSizeChange', current, size);
  44015. if (current !== preCurrent) {
  44016. this.$emit('change.current', current, size);
  44017. }
  44018. },
  44019. handleChange: function handleChange(p) {
  44020. var disabled = this.$props.disabled;
  44021. var page = p;
  44022. if (this.isValid(page) && !disabled) {
  44023. var currentPage = calculatePage(undefined, this.$data, this.$props);
  44024. if (page > currentPage) {
  44025. page = currentPage;
  44026. } else if (page < 1) {
  44027. page = 1;
  44028. }
  44029. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'current')) {
  44030. this.setState({
  44031. stateCurrent: page,
  44032. stateCurrentInputValue: page
  44033. });
  44034. }
  44035. // this.$emit('input', page)
  44036. this.$emit('change.current', page, this.statePageSize);
  44037. this.$emit('change', page, this.statePageSize);
  44038. return page;
  44039. }
  44040. return this.stateCurrent;
  44041. },
  44042. prev: function prev() {
  44043. if (this.hasPrev()) {
  44044. this.handleChange(this.stateCurrent - 1);
  44045. }
  44046. },
  44047. next: function next() {
  44048. if (this.hasNext()) {
  44049. this.handleChange(this.stateCurrent + 1);
  44050. }
  44051. },
  44052. jumpPrev: function jumpPrev() {
  44053. this.handleChange(this.getJumpPrevPage());
  44054. },
  44055. jumpNext: function jumpNext() {
  44056. this.handleChange(this.getJumpNextPage());
  44057. },
  44058. hasPrev: function hasPrev() {
  44059. return this.stateCurrent > 1;
  44060. },
  44061. hasNext: function hasNext() {
  44062. return this.stateCurrent < calculatePage(undefined, this.$data, this.$props);
  44063. },
  44064. runIfEnter: function runIfEnter(event, callback) {
  44065. if (event.key === 'Enter' || event.charCode === 13) {
  44066. for (var _len = arguments.length, restParams = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  44067. restParams[_key - 2] = arguments[_key];
  44068. }
  44069. callback.apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(restParams));
  44070. }
  44071. },
  44072. runIfEnterPrev: function runIfEnterPrev(event) {
  44073. this.runIfEnter(event, this.prev);
  44074. },
  44075. runIfEnterNext: function runIfEnterNext(event) {
  44076. this.runIfEnter(event, this.next);
  44077. },
  44078. runIfEnterJumpPrev: function runIfEnterJumpPrev(event) {
  44079. this.runIfEnter(event, this.jumpPrev);
  44080. },
  44081. runIfEnterJumpNext: function runIfEnterJumpNext(event) {
  44082. this.runIfEnter(event, this.jumpNext);
  44083. },
  44084. handleGoTO: function handleGoTO(event) {
  44085. if (event.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ENTER || event.type === 'click') {
  44086. this.handleChange(this.stateCurrentInputValue);
  44087. }
  44088. }
  44089. },
  44090. render: function render() {
  44091. var _ref;
  44092. var h = arguments[0];
  44093. var _$props2 = this.$props,
  44094. prefixCls = _$props2.prefixCls,
  44095. disabled = _$props2.disabled;
  44096. // When hideOnSinglePage is true and there is only 1 page, hide the pager
  44097. if (this.hideOnSinglePage === true && this.total <= this.statePageSize) {
  44098. return null;
  44099. }
  44100. var props = this.$props;
  44101. var locale = this.locale;
  44102. var allPages = calculatePage(undefined, this.$data, this.$props);
  44103. var pagerList = [];
  44104. var jumpPrev = null;
  44105. var jumpNext = null;
  44106. var firstPager = null;
  44107. var lastPager = null;
  44108. var gotoButton = null;
  44109. var goButton = this.showQuickJumper && this.showQuickJumper.goButton;
  44110. var pageBufferSize = this.showLessItems ? 1 : 2;
  44111. var stateCurrent = this.stateCurrent,
  44112. statePageSize = this.statePageSize;
  44113. var prevPage = stateCurrent - 1 > 0 ? stateCurrent - 1 : 0;
  44114. var nextPage = stateCurrent + 1 < allPages ? stateCurrent + 1 : allPages;
  44115. if (this.simple) {
  44116. if (goButton) {
  44117. if (typeof goButton === 'boolean') {
  44118. gotoButton = h(
  44119. 'button',
  44120. {
  44121. attrs: { type: 'button' },
  44122. on: {
  44123. 'click': this.handleGoTO,
  44124. 'keyup': this.handleGoTO
  44125. }
  44126. },
  44127. [locale.jump_to_confirm]
  44128. );
  44129. } else {
  44130. gotoButton = h(
  44131. 'span',
  44132. {
  44133. on: {
  44134. 'click': this.handleGoTO,
  44135. 'keyup': this.handleGoTO
  44136. }
  44137. },
  44138. [goButton]
  44139. );
  44140. }
  44141. gotoButton = h(
  44142. 'li',
  44143. {
  44144. attrs: {
  44145. title: this.showTitle ? '' + locale.jump_to + this.stateCurrent + '/' + allPages : null
  44146. },
  44147. 'class': prefixCls + '-simple-pager'
  44148. },
  44149. [gotoButton]
  44150. );
  44151. }
  44152. var hasPrev = this.hasPrev();
  44153. var hasNext = this.hasNext();
  44154. return h(
  44155. 'ul',
  44156. { 'class': prefixCls + ' ' + prefixCls + '-simple' },
  44157. [h(
  44158. 'li',
  44159. {
  44160. attrs: {
  44161. title: this.showTitle ? locale.prev_page : null,
  44162. tabIndex: hasPrev ? 0 : null,
  44163. 'aria-disabled': !this.hasPrev()
  44164. },
  44165. on: {
  44166. 'click': this.prev,
  44167. 'keypress': this.runIfEnterPrev
  44168. },
  44169. 'class': (hasPrev ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev' },
  44170. [this.itemRender(prevPage, 'prev', this.getItemIcon('prevIcon'))]
  44171. ), h(
  44172. 'li',
  44173. {
  44174. attrs: {
  44175. title: this.showTitle ? stateCurrent + '/' + allPages : null
  44176. },
  44177. 'class': prefixCls + '-simple-pager'
  44178. },
  44179. [h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{
  44180. attrs: {
  44181. type: 'text',
  44182. size: '3'
  44183. },
  44184. domProps: {
  44185. 'value': this.stateCurrentInputValue
  44186. },
  44187. on: {
  44188. 'keydown': this.handleKeyDown,
  44189. 'keyup': this.handleKeyUp,
  44190. 'input': this.handleKeyUp
  44191. }
  44192. }, {
  44193. directives: [{
  44194. name: 'ant-input'
  44195. }]
  44196. }])), h(
  44197. 'span',
  44198. { 'class': prefixCls + '-slash' },
  44199. ['\uFF0F']
  44200. ), allPages]
  44201. ), h(
  44202. 'li',
  44203. {
  44204. attrs: {
  44205. title: this.showTitle ? locale.next_page : null,
  44206. tabIndex: this.hasNext ? 0 : null,
  44207. 'aria-disabled': !this.hasNext()
  44208. },
  44209. on: {
  44210. 'click': this.next,
  44211. 'keypress': this.runIfEnterNext
  44212. },
  44213. 'class': (hasNext ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next' },
  44214. [this.itemRender(nextPage, 'next', this.getItemIcon('nextIcon'))]
  44215. ), gotoButton]
  44216. );
  44217. }
  44218. if (allPages <= 5 + pageBufferSize * 2) {
  44219. var pagerProps = {
  44220. props: {
  44221. locale: locale,
  44222. rootPrefixCls: prefixCls,
  44223. showTitle: props.showTitle,
  44224. itemRender: props.itemRender
  44225. },
  44226. on: {
  44227. click: this.handleChange,
  44228. keypress: this.runIfEnter
  44229. }
  44230. };
  44231. if (!allPages) {
  44232. pagerList.push(h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([pagerProps, { key: 'noPager', attrs: { page: allPages },
  44233. 'class': prefixCls + '-disabled' }])));
  44234. }
  44235. for (var i = 1; i <= allPages; i++) {
  44236. var active = stateCurrent === i;
  44237. pagerList.push(h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([pagerProps, { key: i, attrs: { page: i, active: active }
  44238. }])));
  44239. }
  44240. } else {
  44241. var prevItemTitle = this.showLessItems ? locale.prev_3 : locale.prev_5;
  44242. var nextItemTitle = this.showLessItems ? locale.next_3 : locale.next_5;
  44243. if (this.showPrevNextJumpers) {
  44244. var jumpPrevClassString = prefixCls + '-jump-prev';
  44245. if (props.jumpPrevIcon) {
  44246. jumpPrevClassString += ' ' + prefixCls + '-jump-prev-custom-icon';
  44247. }
  44248. jumpPrev = h(
  44249. 'li',
  44250. {
  44251. attrs: {
  44252. title: this.showTitle ? prevItemTitle : null,
  44253. tabIndex: '0'
  44254. },
  44255. key: 'prev',
  44256. on: {
  44257. 'click': this.jumpPrev,
  44258. 'keypress': this.runIfEnterJumpPrev
  44259. },
  44260. 'class': jumpPrevClassString
  44261. },
  44262. [this.itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon('jumpPrevIcon'))]
  44263. );
  44264. var jumpNextClassString = prefixCls + '-jump-next';
  44265. if (props.jumpNextIcon) {
  44266. jumpNextClassString += ' ' + prefixCls + '-jump-next-custom-icon';
  44267. }
  44268. jumpNext = h(
  44269. 'li',
  44270. {
  44271. attrs: {
  44272. title: this.showTitle ? nextItemTitle : null,
  44273. tabIndex: '0'
  44274. },
  44275. key: 'next', on: {
  44276. 'click': this.jumpNext,
  44277. 'keypress': this.runIfEnterJumpNext
  44278. },
  44279. 'class': jumpNextClassString
  44280. },
  44281. [this.itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon('jumpNextIcon'))]
  44282. );
  44283. }
  44284. lastPager = h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
  44285. attrs: {
  44286. locale: locale,
  44287. last: true,
  44288. rootPrefixCls: prefixCls,
  44289. page: allPages,
  44290. active: false,
  44291. showTitle: this.showTitle,
  44292. itemRender: this.itemRender
  44293. },
  44294. on: {
  44295. 'click': this.handleChange,
  44296. 'keypress': this.runIfEnter
  44297. },
  44298. key: allPages });
  44299. firstPager = h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
  44300. attrs: {
  44301. locale: locale,
  44302. rootPrefixCls: prefixCls,
  44303. page: 1,
  44304. active: false,
  44305. showTitle: this.showTitle,
  44306. itemRender: this.itemRender
  44307. },
  44308. on: {
  44309. 'click': this.handleChange,
  44310. 'keypress': this.runIfEnter
  44311. },
  44312. key: 1 });
  44313. var left = Math.max(1, stateCurrent - pageBufferSize);
  44314. var right = Math.min(stateCurrent + pageBufferSize, allPages);
  44315. if (stateCurrent - 1 <= pageBufferSize) {
  44316. right = 1 + pageBufferSize * 2;
  44317. }
  44318. if (allPages - stateCurrent <= pageBufferSize) {
  44319. left = allPages - pageBufferSize * 2;
  44320. }
  44321. for (var _i = left; _i <= right; _i++) {
  44322. var _active = stateCurrent === _i;
  44323. pagerList.push(h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
  44324. attrs: {
  44325. locale: locale,
  44326. rootPrefixCls: prefixCls,
  44327. page: _i,
  44328. active: _active,
  44329. showTitle: this.showTitle,
  44330. itemRender: this.itemRender
  44331. },
  44332. on: {
  44333. 'click': this.handleChange,
  44334. 'keypress': this.runIfEnter
  44335. },
  44336. key: _i }));
  44337. }
  44338. if (stateCurrent - 1 >= pageBufferSize * 2 && stateCurrent !== 1 + 2) {
  44339. pagerList[0] = h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
  44340. attrs: {
  44341. locale: locale,
  44342. rootPrefixCls: prefixCls,
  44343. page: left,
  44344. active: false,
  44345. showTitle: this.showTitle,
  44346. itemRender: this.itemRender
  44347. },
  44348. on: {
  44349. 'click': this.handleChange,
  44350. 'keypress': this.runIfEnter
  44351. },
  44352. key: left, 'class': prefixCls + '-item-after-jump-prev' });
  44353. pagerList.unshift(jumpPrev);
  44354. }
  44355. if (allPages - stateCurrent >= pageBufferSize * 2 && stateCurrent !== allPages - 2) {
  44356. pagerList[pagerList.length - 1] = h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
  44357. attrs: {
  44358. locale: locale,
  44359. rootPrefixCls: prefixCls,
  44360. page: right,
  44361. active: false,
  44362. showTitle: this.showTitle,
  44363. itemRender: this.itemRender
  44364. },
  44365. on: {
  44366. 'click': this.handleChange,
  44367. 'keypress': this.runIfEnter
  44368. },
  44369. key: right, 'class': prefixCls + '-item-before-jump-next' });
  44370. pagerList.push(jumpNext);
  44371. }
  44372. if (left !== 1) {
  44373. pagerList.unshift(firstPager);
  44374. }
  44375. if (right !== allPages) {
  44376. pagerList.push(lastPager);
  44377. }
  44378. }
  44379. var totalText = null;
  44380. if (this.showTotal) {
  44381. totalText = h(
  44382. 'li',
  44383. { 'class': prefixCls + '-total-text' },
  44384. [this.showTotal(this.total, [this.total === 0 ? 0 : (stateCurrent - 1) * statePageSize + 1, stateCurrent * statePageSize > this.total ? this.total : stateCurrent * statePageSize])]
  44385. );
  44386. }
  44387. var prevDisabled = !this.hasPrev() || !allPages;
  44388. var nextDisabled = !this.hasNext() || !allPages;
  44389. var buildOptionText = this.buildOptionText || this.$scopedSlots.buildOptionText;
  44390. return h(
  44391. 'ul',
  44392. {
  44393. 'class': (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-disabled', disabled), _ref),
  44394. attrs: { unselectable: 'unselectable'
  44395. },
  44396. ref: 'paginationNode'
  44397. },
  44398. [totalText, h(
  44399. 'li',
  44400. {
  44401. attrs: {
  44402. title: this.showTitle ? locale.prev_page : null,
  44403. tabIndex: prevDisabled ? null : 0,
  44404. 'aria-disabled': prevDisabled
  44405. },
  44406. on: {
  44407. 'click': this.prev,
  44408. 'keypress': this.runIfEnterPrev
  44409. },
  44410. 'class': (!prevDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev' },
  44411. [this.itemRender(prevPage, 'prev', this.getItemIcon('prevIcon'))]
  44412. ), pagerList, h(
  44413. 'li',
  44414. {
  44415. attrs: {
  44416. title: this.showTitle ? locale.next_page : null,
  44417. tabIndex: nextDisabled ? null : 0,
  44418. 'aria-disabled': nextDisabled
  44419. },
  44420. on: {
  44421. 'click': this.next,
  44422. 'keypress': this.runIfEnterNext
  44423. },
  44424. 'class': (!nextDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next' },
  44425. [this.itemRender(nextPage, 'next', this.getItemIcon('nextIcon'))]
  44426. ), h(_Options__WEBPACK_IMPORTED_MODULE_7__["default"], {
  44427. attrs: {
  44428. disabled: disabled,
  44429. locale: locale,
  44430. rootPrefixCls: prefixCls,
  44431. selectComponentClass: this.selectComponentClass,
  44432. selectPrefixCls: this.selectPrefixCls,
  44433. changeSize: this.showSizeChanger ? this.changePageSize : null,
  44434. current: stateCurrent,
  44435. pageSize: statePageSize,
  44436. pageSizeOptions: this.pageSizeOptions,
  44437. buildOptionText: buildOptionText || null,
  44438. quickGo: this.shouldDisplayQuickJumper() ? this.handleChange : null,
  44439. goButton: goButton
  44440. }
  44441. })]
  44442. );
  44443. }
  44444. });
  44445. /***/ }),
  44446. /***/ "./components/vc-pagination/index.js":
  44447. /*!*******************************************!*\
  44448. !*** ./components/vc-pagination/index.js ***!
  44449. \*******************************************/
  44450. /*! exports provided: default */
  44451. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44452. "use strict";
  44453. __webpack_require__.r(__webpack_exports__);
  44454. /* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Pagination */ "./components/vc-pagination/Pagination.jsx");
  44455. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _Pagination__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  44456. // based on rc-pagination 1.20.14
  44457. /***/ }),
  44458. /***/ "./components/vc-pagination/locale/en_US.js":
  44459. /*!**************************************************!*\
  44460. !*** ./components/vc-pagination/locale/en_US.js ***!
  44461. \**************************************************/
  44462. /*! exports provided: default */
  44463. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44464. "use strict";
  44465. __webpack_require__.r(__webpack_exports__);
  44466. /* harmony default export */ __webpack_exports__["default"] = ({
  44467. // Options.jsx
  44468. items_per_page: '/ page',
  44469. jump_to: 'Go to',
  44470. jump_to_confirm: 'confirm',
  44471. page: '',
  44472. // Pagination.jsx
  44473. prev_page: 'Previous Page',
  44474. next_page: 'Next Page',
  44475. prev_5: 'Previous 5 Pages',
  44476. next_5: 'Next 5 Pages',
  44477. prev_3: 'Previous 3 Pages',
  44478. next_3: 'Next 3 Pages'
  44479. });
  44480. /***/ }),
  44481. /***/ "./components/vc-pagination/locale/zh_CN.js":
  44482. /*!**************************************************!*\
  44483. !*** ./components/vc-pagination/locale/zh_CN.js ***!
  44484. \**************************************************/
  44485. /*! exports provided: default */
  44486. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44487. "use strict";
  44488. __webpack_require__.r(__webpack_exports__);
  44489. /* harmony default export */ __webpack_exports__["default"] = ({
  44490. // Options.jsx
  44491. items_per_page: '条/页',
  44492. jump_to: '跳至',
  44493. jump_to_confirm: '确定',
  44494. page: '页',
  44495. // Pagination.jsx
  44496. prev_page: '上一页',
  44497. next_page: '下一页',
  44498. prev_5: '向前 5 页',
  44499. next_5: '向后 5 页',
  44500. prev_3: '向前 3 页',
  44501. next_3: '向后 3 页'
  44502. });
  44503. /***/ }),
  44504. /***/ "./components/vc-progress/index.js":
  44505. /*!*****************************************!*\
  44506. !*** ./components/vc-progress/index.js ***!
  44507. \*****************************************/
  44508. /*! exports provided: Line, Circle, default */
  44509. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44510. "use strict";
  44511. __webpack_require__.r(__webpack_exports__);
  44512. /* harmony import */ var _src___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/ */ "./components/vc-progress/src/index.js");
  44513. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Line", function() { return _src___WEBPACK_IMPORTED_MODULE_0__["Line"]; });
  44514. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Circle", function() { return _src___WEBPACK_IMPORTED_MODULE_0__["Circle"]; });
  44515. // based on rc-progress 2.5.2
  44516. /* harmony default export */ __webpack_exports__["default"] = (_src___WEBPACK_IMPORTED_MODULE_0__["default"]);
  44517. /***/ }),
  44518. /***/ "./components/vc-progress/src/Circle.js":
  44519. /*!**********************************************!*\
  44520. !*** ./components/vc-progress/src/Circle.js ***!
  44521. \**********************************************/
  44522. /*! exports provided: default */
  44523. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44524. "use strict";
  44525. __webpack_require__.r(__webpack_exports__);
  44526. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  44527. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  44528. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  44529. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  44530. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  44531. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  44532. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ "vue");
  44533. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_3__);
  44534. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  44535. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_4__);
  44536. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  44537. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  44538. /* harmony import */ var _enhancer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./enhancer */ "./components/vc-progress/src/enhancer.js");
  44539. /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./types */ "./components/vc-progress/src/types.js");
  44540. var circlePropTypes = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _types__WEBPACK_IMPORTED_MODULE_8__["propTypes"], {
  44541. gapPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['top', 'bottom', 'left', 'right']),
  44542. gapDegree: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool])
  44543. });
  44544. var circleDefaultProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _types__WEBPACK_IMPORTED_MODULE_8__["defaultProps"], {
  44545. gapPosition: 'top'
  44546. });
  44547. vue__WEBPACK_IMPORTED_MODULE_3___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_4___default.a, { name: 'ant-ref' });
  44548. var gradientSeed = 0;
  44549. function stripPercentToNumber(percent) {
  44550. return +percent.replace('%', '');
  44551. }
  44552. function toArray(symArray) {
  44553. return Array.isArray(symArray) ? symArray : [symArray];
  44554. }
  44555. function getPathStyles(offset, percent, strokeColor, strokeWidth) {
  44556. var gapDegree = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
  44557. var gapPosition = arguments[5];
  44558. var radius = 50 - strokeWidth / 2;
  44559. var beginPositionX = 0;
  44560. var beginPositionY = -radius;
  44561. var endPositionX = 0;
  44562. var endPositionY = -2 * radius;
  44563. switch (gapPosition) {
  44564. case 'left':
  44565. beginPositionX = -radius;
  44566. beginPositionY = 0;
  44567. endPositionX = 2 * radius;
  44568. endPositionY = 0;
  44569. break;
  44570. case 'right':
  44571. beginPositionX = radius;
  44572. beginPositionY = 0;
  44573. endPositionX = -2 * radius;
  44574. endPositionY = 0;
  44575. break;
  44576. case 'bottom':
  44577. beginPositionY = radius;
  44578. endPositionY = 2 * radius;
  44579. break;
  44580. default:
  44581. }
  44582. var pathString = 'M 50,50 m ' + beginPositionX + ',' + beginPositionY + '\n a ' + radius + ',' + radius + ' 0 1 1 ' + endPositionX + ',' + -endPositionY + '\n a ' + radius + ',' + radius + ' 0 1 1 ' + -endPositionX + ',' + endPositionY;
  44583. var len = Math.PI * 2 * radius;
  44584. var pathStyle = {
  44585. stroke: strokeColor,
  44586. strokeDasharray: percent / 100 * (len - gapDegree) + 'px ' + len + 'px',
  44587. strokeDashoffset: '-' + (gapDegree / 2 + offset / 100 * (len - gapDegree)) + 'px',
  44588. transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s' // eslint-disable-line
  44589. };
  44590. return {
  44591. pathString: pathString,
  44592. pathStyle: pathStyle
  44593. };
  44594. }
  44595. var Circle = {
  44596. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(circlePropTypes, circleDefaultProps),
  44597. created: function created() {
  44598. this.paths = {};
  44599. this.gradientId = gradientSeed;
  44600. gradientSeed += 1;
  44601. },
  44602. methods: {
  44603. getStokeList: function getStokeList() {
  44604. var _this = this;
  44605. var h = this.$createElement;
  44606. var _$props = this.$props,
  44607. prefixCls = _$props.prefixCls,
  44608. percent = _$props.percent,
  44609. strokeColor = _$props.strokeColor,
  44610. strokeWidth = _$props.strokeWidth,
  44611. strokeLinecap = _$props.strokeLinecap,
  44612. gapDegree = _$props.gapDegree,
  44613. gapPosition = _$props.gapPosition;
  44614. var percentList = toArray(percent);
  44615. var strokeColorList = toArray(strokeColor);
  44616. var stackPtg = 0;
  44617. return percentList.map(function (ptg, index) {
  44618. var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1];
  44619. var stroke = Object.prototype.toString.call(color) === '[object Object]' ? 'url(#' + prefixCls + '-gradient-' + _this.gradientId + ')' : '';
  44620. var _getPathStyles = getPathStyles(stackPtg, ptg, color, strokeWidth, gapDegree, gapPosition),
  44621. pathString = _getPathStyles.pathString,
  44622. pathStyle = _getPathStyles.pathStyle;
  44623. stackPtg += ptg;
  44624. var pathProps = {
  44625. key: index,
  44626. attrs: {
  44627. d: pathString,
  44628. stroke: stroke,
  44629. 'stroke-linecap': strokeLinecap,
  44630. 'stroke-width': strokeWidth,
  44631. opacity: ptg === 0 ? 0 : 1,
  44632. 'fill-opacity': '0'
  44633. },
  44634. 'class': prefixCls + '-circle-path',
  44635. style: pathStyle,
  44636. directives: [{
  44637. name: 'ant-ref',
  44638. value: function value(c) {
  44639. _this.paths[index] = c;
  44640. }
  44641. }]
  44642. };
  44643. return h('path', pathProps);
  44644. });
  44645. }
  44646. },
  44647. render: function render() {
  44648. var h = arguments[0];
  44649. var _$props2 = this.$props,
  44650. prefixCls = _$props2.prefixCls,
  44651. strokeWidth = _$props2.strokeWidth,
  44652. trailWidth = _$props2.trailWidth,
  44653. gapDegree = _$props2.gapDegree,
  44654. gapPosition = _$props2.gapPosition,
  44655. trailColor = _$props2.trailColor,
  44656. strokeLinecap = _$props2.strokeLinecap,
  44657. strokeColor = _$props2.strokeColor,
  44658. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_$props2, ['prefixCls', 'strokeWidth', 'trailWidth', 'gapDegree', 'gapPosition', 'trailColor', 'strokeLinecap', 'strokeColor']);
  44659. var _getPathStyles2 = getPathStyles(0, 100, trailColor, strokeWidth, gapDegree, gapPosition),
  44660. pathString = _getPathStyles2.pathString,
  44661. pathStyle = _getPathStyles2.pathStyle;
  44662. delete restProps.percent;
  44663. var strokeColorList = toArray(strokeColor);
  44664. var gradient = strokeColorList.find(function (color) {
  44665. return Object.prototype.toString.call(color) === '[object Object]';
  44666. });
  44667. var pathFirst = {
  44668. attrs: {
  44669. d: pathString,
  44670. stroke: trailColor,
  44671. 'stroke-linecap': strokeLinecap,
  44672. 'stroke-width': trailWidth || strokeWidth,
  44673. 'fill-opacity': '0'
  44674. },
  44675. 'class': prefixCls + '-circle-trail',
  44676. style: pathStyle
  44677. };
  44678. return h(
  44679. 'svg',
  44680. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': prefixCls + '-circle', attrs: { viewBox: '0 0 100 100' }
  44681. }, restProps]),
  44682. [gradient && h('defs', [h(
  44683. 'linearGradient',
  44684. {
  44685. attrs: {
  44686. id: prefixCls + '-gradient-' + this.gradientId,
  44687. x1: '100%',
  44688. y1: '0%',
  44689. x2: '0%',
  44690. y2: '0%'
  44691. }
  44692. },
  44693. [Object.keys(gradient).sort(function (a, b) {
  44694. return stripPercentToNumber(a) - stripPercentToNumber(b);
  44695. }).map(function (key, index) {
  44696. return h('stop', { key: index, attrs: { offset: key, 'stop-color': gradient[key] }
  44697. });
  44698. })]
  44699. )]), h('path', pathFirst), this.getStokeList().reverse()]
  44700. );
  44701. }
  44702. };
  44703. /* harmony default export */ __webpack_exports__["default"] = (Object(_enhancer__WEBPACK_IMPORTED_MODULE_7__["default"])(Circle));
  44704. /***/ }),
  44705. /***/ "./components/vc-progress/src/Line.js":
  44706. /*!********************************************!*\
  44707. !*** ./components/vc-progress/src/Line.js ***!
  44708. \********************************************/
  44709. /*! exports provided: default */
  44710. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44711. "use strict";
  44712. __webpack_require__.r(__webpack_exports__);
  44713. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  44714. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  44715. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  44716. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  44717. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
  44718. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
  44719. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  44720. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_3__);
  44721. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  44722. /* harmony import */ var _enhancer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./enhancer */ "./components/vc-progress/src/enhancer.js");
  44723. /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./types */ "./components/vc-progress/src/types.js");
  44724. vue__WEBPACK_IMPORTED_MODULE_2___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_3___default.a, { name: 'ant-ref' });
  44725. var Line = {
  44726. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(_types__WEBPACK_IMPORTED_MODULE_6__["propTypes"], _types__WEBPACK_IMPORTED_MODULE_6__["defaultProps"]),
  44727. created: function created() {
  44728. this.paths = {};
  44729. },
  44730. render: function render() {
  44731. var _this = this;
  44732. var h = arguments[0];
  44733. var _$props = this.$props,
  44734. percent = _$props.percent,
  44735. prefixCls = _$props.prefixCls,
  44736. strokeColor = _$props.strokeColor,
  44737. strokeLinecap = _$props.strokeLinecap,
  44738. strokeWidth = _$props.strokeWidth,
  44739. trailColor = _$props.trailColor,
  44740. trailWidth = _$props.trailWidth,
  44741. transition = _$props.transition,
  44742. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_$props, ['percent', 'prefixCls', 'strokeColor', 'strokeLinecap', 'strokeWidth', 'trailColor', 'trailWidth', 'transition']);
  44743. delete restProps.gapPosition;
  44744. var percentList = Array.isArray(percent) ? percent : [percent];
  44745. var strokeColorList = Array.isArray(strokeColor) ? strokeColor : [strokeColor];
  44746. var center = strokeWidth / 2;
  44747. var right = 100 - strokeWidth / 2;
  44748. var pathString = 'M ' + (strokeLinecap === 'round' ? center : 0) + ',' + center + '\n L ' + (strokeLinecap === 'round' ? right : 100) + ',' + center;
  44749. var viewBoxString = '0 0 100 ' + strokeWidth;
  44750. var stackPtg = 0;
  44751. var pathFirst = {
  44752. attrs: {
  44753. d: pathString,
  44754. 'stroke-linecap': strokeLinecap,
  44755. stroke: trailColor,
  44756. 'stroke-width': trailWidth || strokeWidth,
  44757. 'fill-opacity': '0'
  44758. },
  44759. 'class': prefixCls + '-line-trail'
  44760. };
  44761. return h(
  44762. 'svg',
  44763. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  44764. 'class': prefixCls + '-line',
  44765. attrs: { viewBox: viewBoxString,
  44766. preserveAspectRatio: 'none'
  44767. }
  44768. }, restProps]),
  44769. [h('path', pathFirst), percentList.map(function (ptg, index) {
  44770. var pathStyle = {
  44771. strokeDasharray: ptg + 'px, 100px',
  44772. strokeDashoffset: '-' + stackPtg + 'px',
  44773. transition: transition || 'stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear'
  44774. };
  44775. var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1];
  44776. stackPtg += ptg;
  44777. var pathProps = {
  44778. key: index,
  44779. attrs: {
  44780. d: pathString,
  44781. 'stroke-linecap': strokeLinecap,
  44782. stroke: color,
  44783. 'stroke-width': strokeWidth,
  44784. 'fill-opacity': '0'
  44785. },
  44786. 'class': prefixCls + '-line-path',
  44787. style: pathStyle,
  44788. directives: [{
  44789. name: 'ant-ref',
  44790. value: function value(c) {
  44791. _this.paths[index] = c;
  44792. }
  44793. }]
  44794. };
  44795. return h('path', pathProps);
  44796. })]
  44797. );
  44798. }
  44799. };
  44800. /* harmony default export */ __webpack_exports__["default"] = (Object(_enhancer__WEBPACK_IMPORTED_MODULE_5__["default"])(Line));
  44801. /***/ }),
  44802. /***/ "./components/vc-progress/src/enhancer.js":
  44803. /*!************************************************!*\
  44804. !*** ./components/vc-progress/src/enhancer.js ***!
  44805. \************************************************/
  44806. /*! exports provided: default */
  44807. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44808. "use strict";
  44809. __webpack_require__.r(__webpack_exports__);
  44810. function enhancer(Component) {
  44811. return {
  44812. mixins: [Component],
  44813. updated: function updated() {
  44814. var _this = this;
  44815. var now = Date.now();
  44816. var updated = false;
  44817. Object.keys(this.paths).forEach(function (key) {
  44818. var path = _this.paths[key];
  44819. if (!path) {
  44820. return;
  44821. }
  44822. updated = true;
  44823. var pathStyle = path.style;
  44824. pathStyle.transitionDuration = '.3s, .3s, .3s, .06s';
  44825. if (_this.prevTimeStamp && now - _this.prevTimeStamp < 100) {
  44826. pathStyle.transitionDuration = '0s, 0s';
  44827. }
  44828. });
  44829. if (updated) {
  44830. this.prevTimeStamp = Date.now();
  44831. }
  44832. }
  44833. };
  44834. }
  44835. /* harmony default export */ __webpack_exports__["default"] = (enhancer);
  44836. /***/ }),
  44837. /***/ "./components/vc-progress/src/index.js":
  44838. /*!*********************************************!*\
  44839. !*** ./components/vc-progress/src/index.js ***!
  44840. \*********************************************/
  44841. /*! exports provided: Line, Circle, default */
  44842. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44843. "use strict";
  44844. __webpack_require__.r(__webpack_exports__);
  44845. /* harmony import */ var _Line__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Line */ "./components/vc-progress/src/Line.js");
  44846. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Line", function() { return _Line__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  44847. /* harmony import */ var _Circle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Circle */ "./components/vc-progress/src/Circle.js");
  44848. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Circle", function() { return _Circle__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  44849. /* harmony default export */ __webpack_exports__["default"] = ({
  44850. Line: _Line__WEBPACK_IMPORTED_MODULE_0__["default"],
  44851. Circle: _Circle__WEBPACK_IMPORTED_MODULE_1__["default"]
  44852. });
  44853. /***/ }),
  44854. /***/ "./components/vc-progress/src/types.js":
  44855. /*!*********************************************!*\
  44856. !*** ./components/vc-progress/src/types.js ***!
  44857. \*********************************************/
  44858. /*! exports provided: defaultProps, propTypes */
  44859. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44860. "use strict";
  44861. __webpack_require__.r(__webpack_exports__);
  44862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultProps", function() { return defaultProps; });
  44863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "propTypes", function() { return propTypes; });
  44864. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  44865. var defaultProps = {
  44866. // className: '',
  44867. percent: 0,
  44868. prefixCls: 'rc-progress',
  44869. strokeColor: '#2db7f5',
  44870. strokeLinecap: 'round',
  44871. strokeWidth: 1,
  44872. // style: {},
  44873. trailColor: '#D9D9D9',
  44874. trailWidth: 1
  44875. };
  44876. var mixedType = _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string]);
  44877. var propTypes = {
  44878. // className: PropTypes.string,
  44879. percent: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([mixedType, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(mixedType)]),
  44880. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  44881. strokeColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object])), _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object]),
  44882. strokeLinecap: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['butt', 'round', 'square']),
  44883. strokeWidth: mixedType,
  44884. // style: PropTypes.object,
  44885. trailColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  44886. trailWidth: mixedType
  44887. };
  44888. /***/ }),
  44889. /***/ "./components/vc-rate/index.js":
  44890. /*!*************************************!*\
  44891. !*** ./components/vc-rate/index.js ***!
  44892. \*************************************/
  44893. /*! exports provided: default */
  44894. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44895. "use strict";
  44896. __webpack_require__.r(__webpack_exports__);
  44897. /* harmony import */ var _src___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/ */ "./components/vc-rate/src/index.js");
  44898. // based on rc-rate 2.5.0
  44899. /* harmony default export */ __webpack_exports__["default"] = (_src___WEBPACK_IMPORTED_MODULE_0__["default"]);
  44900. /***/ }),
  44901. /***/ "./components/vc-rate/src/Rate.jsx":
  44902. /*!*****************************************!*\
  44903. !*** ./components/vc-rate/src/Rate.jsx ***!
  44904. \*****************************************/
  44905. /*! exports provided: default */
  44906. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44907. "use strict";
  44908. __webpack_require__.r(__webpack_exports__);
  44909. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  44910. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  44911. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
  44912. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
  44913. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  44914. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  44915. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./components/vc-rate/src/util.js");
  44916. /* harmony import */ var _Star__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Star */ "./components/vc-rate/src/Star.jsx");
  44917. var rateProps = {
  44918. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  44919. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  44920. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  44921. count: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  44922. allowHalf: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  44923. allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  44924. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  44925. character: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  44926. characterRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  44927. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  44928. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
  44929. };
  44930. function noop() {}
  44931. /* harmony default export */ __webpack_exports__["default"] = ({
  44932. name: 'Rate',
  44933. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  44934. model: {
  44935. prop: 'value',
  44936. event: 'change'
  44937. },
  44938. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(rateProps, {
  44939. defaultValue: 0,
  44940. count: 5,
  44941. allowHalf: false,
  44942. allowClear: true,
  44943. prefixCls: 'rc-rate',
  44944. tabIndex: 0,
  44945. character: '★'
  44946. }),
  44947. data: function data() {
  44948. var value = this.value;
  44949. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value')) {
  44950. value = this.defaultValue;
  44951. }
  44952. return {
  44953. sValue: value,
  44954. focused: false,
  44955. cleanedValue: null,
  44956. hoverValue: undefined
  44957. };
  44958. },
  44959. watch: {
  44960. value: function value(val) {
  44961. this.setState({
  44962. sValue: val
  44963. });
  44964. }
  44965. },
  44966. mounted: function mounted() {
  44967. var _this = this;
  44968. this.$nextTick(function () {
  44969. if (_this.autoFocus && !_this.disabled) {
  44970. _this.focus();
  44971. }
  44972. });
  44973. },
  44974. methods: {
  44975. onHover: function onHover(event, index) {
  44976. var hoverValue = this.getStarValue(index, event.pageX);
  44977. var cleanedValue = this.cleanedValue;
  44978. if (hoverValue !== cleanedValue) {
  44979. this.setState({
  44980. hoverValue: hoverValue,
  44981. cleanedValue: null
  44982. });
  44983. }
  44984. this.$emit('hoverChange', hoverValue);
  44985. },
  44986. onMouseLeave: function onMouseLeave() {
  44987. this.setState({
  44988. hoverValue: undefined,
  44989. cleanedValue: null
  44990. });
  44991. this.$emit('hoverChange', undefined);
  44992. },
  44993. onClick: function onClick(event, index) {
  44994. var allowClear = this.allowClear,
  44995. value = this.sValue;
  44996. var newValue = this.getStarValue(index, event.pageX);
  44997. var isReset = false;
  44998. if (allowClear) {
  44999. isReset = newValue === value;
  45000. }
  45001. this.onMouseLeave(true);
  45002. this.changeValue(isReset ? 0 : newValue);
  45003. this.setState({
  45004. cleanedValue: isReset ? newValue : null
  45005. });
  45006. },
  45007. onFocus: function onFocus() {
  45008. this.setState({
  45009. focused: true
  45010. });
  45011. this.$emit('focus');
  45012. },
  45013. onBlur: function onBlur() {
  45014. this.setState({
  45015. focused: false
  45016. });
  45017. this.$emit('blur');
  45018. },
  45019. onKeyDown: function onKeyDown(event) {
  45020. var keyCode = event.keyCode;
  45021. var count = this.count,
  45022. allowHalf = this.allowHalf;
  45023. var sValue = this.sValue;
  45024. if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].RIGHT && sValue < count) {
  45025. if (allowHalf) {
  45026. sValue += 0.5;
  45027. } else {
  45028. sValue += 1;
  45029. }
  45030. this.changeValue(sValue);
  45031. event.preventDefault();
  45032. } else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].LEFT && sValue > 0) {
  45033. if (allowHalf) {
  45034. sValue -= 0.5;
  45035. } else {
  45036. sValue -= 1;
  45037. }
  45038. this.changeValue(sValue);
  45039. event.preventDefault();
  45040. }
  45041. this.$emit('keydown', event);
  45042. },
  45043. getStarDOM: function getStarDOM(index) {
  45044. return this.$refs['stars' + index].$el;
  45045. },
  45046. getStarValue: function getStarValue(index, x) {
  45047. var value = index + 1;
  45048. if (this.allowHalf) {
  45049. var starEle = this.getStarDOM(index);
  45050. var leftDis = Object(_util__WEBPACK_IMPORTED_MODULE_5__["getOffsetLeft"])(starEle);
  45051. var width = starEle.clientWidth;
  45052. if (x - leftDis < width / 2) {
  45053. value -= 0.5;
  45054. }
  45055. }
  45056. return value;
  45057. },
  45058. focus: function focus() {
  45059. if (!this.disabled) {
  45060. this.$refs.rateRef.focus();
  45061. }
  45062. },
  45063. blur: function blur() {
  45064. if (!this.disabled) {
  45065. this.$refs.rateRef.blur();
  45066. }
  45067. },
  45068. changeValue: function changeValue(value) {
  45069. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value')) {
  45070. this.setState({
  45071. sValue: value
  45072. });
  45073. }
  45074. this.$emit('change', value);
  45075. }
  45076. },
  45077. render: function render() {
  45078. var h = arguments[0];
  45079. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this),
  45080. count = _getOptionProps.count,
  45081. allowHalf = _getOptionProps.allowHalf,
  45082. prefixCls = _getOptionProps.prefixCls,
  45083. disabled = _getOptionProps.disabled,
  45084. tabIndex = _getOptionProps.tabIndex;
  45085. var sValue = this.sValue,
  45086. hoverValue = this.hoverValue,
  45087. focused = this.focused;
  45088. var stars = [];
  45089. var disabledClass = disabled ? prefixCls + '-disabled' : '';
  45090. var character = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'character');
  45091. var characterRender = this.characterRender || this.$scopedSlots.characterRender;
  45092. for (var index = 0; index < count; index++) {
  45093. var starProps = {
  45094. props: {
  45095. index: index,
  45096. count: count,
  45097. disabled: disabled,
  45098. prefixCls: prefixCls + '-star',
  45099. allowHalf: allowHalf,
  45100. value: hoverValue === undefined ? sValue : hoverValue,
  45101. character: character,
  45102. characterRender: characterRender,
  45103. focused: focused
  45104. },
  45105. on: {
  45106. click: this.onClick,
  45107. hover: this.onHover
  45108. },
  45109. key: index,
  45110. ref: 'stars' + index
  45111. };
  45112. stars.push(h(_Star__WEBPACK_IMPORTED_MODULE_6__["default"], starProps));
  45113. }
  45114. return h(
  45115. 'ul',
  45116. {
  45117. 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, disabledClass),
  45118. on: {
  45119. 'mouseleave': disabled ? noop : this.onMouseLeave,
  45120. 'focus': disabled ? noop : this.onFocus,
  45121. 'blur': disabled ? noop : this.onBlur,
  45122. 'keydown': disabled ? noop : this.onKeyDown
  45123. },
  45124. attrs: {
  45125. tabIndex: disabled ? -1 : tabIndex,
  45126. role: 'radiogroup'
  45127. },
  45128. ref: 'rateRef' },
  45129. [stars]
  45130. );
  45131. }
  45132. });
  45133. /***/ }),
  45134. /***/ "./components/vc-rate/src/Star.jsx":
  45135. /*!*****************************************!*\
  45136. !*** ./components/vc-rate/src/Star.jsx ***!
  45137. \*****************************************/
  45138. /*! exports provided: default */
  45139. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45140. "use strict";
  45141. __webpack_require__.r(__webpack_exports__);
  45142. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  45143. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  45144. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  45145. function noop() {}
  45146. /* harmony default export */ __webpack_exports__["default"] = ({
  45147. name: 'Star',
  45148. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
  45149. props: {
  45150. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  45151. index: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  45152. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  45153. allowHalf: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45154. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45155. character: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  45156. characterRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  45157. focused: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45158. count: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number
  45159. },
  45160. methods: {
  45161. onHover: function onHover(e) {
  45162. var index = this.index;
  45163. this.$emit('hover', e, index);
  45164. },
  45165. onClick: function onClick(e) {
  45166. var index = this.index;
  45167. this.$emit('click', e, index);
  45168. },
  45169. onKeyDown: function onKeyDown(e) {
  45170. var index = this.$props.index;
  45171. if (e.keyCode === 13) {
  45172. this.__emit('click', e, index);
  45173. }
  45174. },
  45175. getClassName: function getClassName() {
  45176. var prefixCls = this.prefixCls,
  45177. index = this.index,
  45178. value = this.value,
  45179. allowHalf = this.allowHalf,
  45180. focused = this.focused;
  45181. var starValue = index + 1;
  45182. var className = prefixCls;
  45183. if (value === 0 && index === 0 && focused) {
  45184. className += ' ' + prefixCls + '-focused';
  45185. } else if (allowHalf && value + 0.5 === starValue) {
  45186. className += ' ' + prefixCls + '-half ' + prefixCls + '-active';
  45187. if (focused) {
  45188. className += ' ' + prefixCls + '-focused';
  45189. }
  45190. } else {
  45191. className += starValue <= value ? ' ' + prefixCls + '-full' : ' ' + prefixCls + '-zero';
  45192. if (starValue === value && focused) {
  45193. className += ' ' + prefixCls + '-focused';
  45194. }
  45195. }
  45196. return className;
  45197. }
  45198. },
  45199. render: function render() {
  45200. var h = arguments[0];
  45201. var onHover = this.onHover,
  45202. onClick = this.onClick,
  45203. onKeyDown = this.onKeyDown,
  45204. disabled = this.disabled,
  45205. prefixCls = this.prefixCls,
  45206. characterRender = this.characterRender,
  45207. index = this.index,
  45208. count = this.count,
  45209. value = this.value;
  45210. var character = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'character');
  45211. var star = h(
  45212. 'li',
  45213. { 'class': this.getClassName() },
  45214. [h(
  45215. 'div',
  45216. {
  45217. on: {
  45218. 'click': disabled ? noop : onClick,
  45219. 'keydown': disabled ? noop : onKeyDown,
  45220. 'mousemove': disabled ? noop : onHover
  45221. },
  45222. attrs: {
  45223. role: 'radio',
  45224. 'aria-checked': value > index ? 'true' : 'false',
  45225. 'aria-posinset': index + 1,
  45226. 'aria-setsize': count,
  45227. tabIndex: 0
  45228. }
  45229. },
  45230. [h(
  45231. 'div',
  45232. { 'class': prefixCls + '-first' },
  45233. [character]
  45234. ), h(
  45235. 'div',
  45236. { 'class': prefixCls + '-second' },
  45237. [character]
  45238. )]
  45239. )]
  45240. );
  45241. if (characterRender) {
  45242. star = characterRender(star, this.$props);
  45243. }
  45244. return star;
  45245. }
  45246. });
  45247. /***/ }),
  45248. /***/ "./components/vc-rate/src/index.js":
  45249. /*!*****************************************!*\
  45250. !*** ./components/vc-rate/src/index.js ***!
  45251. \*****************************************/
  45252. /*! exports provided: default */
  45253. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45254. "use strict";
  45255. __webpack_require__.r(__webpack_exports__);
  45256. /* harmony import */ var _Rate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Rate */ "./components/vc-rate/src/Rate.jsx");
  45257. /* harmony default export */ __webpack_exports__["default"] = (_Rate__WEBPACK_IMPORTED_MODULE_0__["default"]);
  45258. /***/ }),
  45259. /***/ "./components/vc-rate/src/util.js":
  45260. /*!****************************************!*\
  45261. !*** ./components/vc-rate/src/util.js ***!
  45262. \****************************************/
  45263. /*! exports provided: getOffsetLeft */
  45264. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45265. "use strict";
  45266. __webpack_require__.r(__webpack_exports__);
  45267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOffsetLeft", function() { return getOffsetLeft; });
  45268. function getScroll(w, top) {
  45269. var ret = top ? w.pageYOffset : w.pageXOffset;
  45270. var method = top ? 'scrollTop' : 'scrollLeft';
  45271. if (typeof ret !== 'number') {
  45272. var d = w.document;
  45273. // ie6,7,8 standard mode
  45274. ret = d.documentElement[method];
  45275. if (typeof ret !== 'number') {
  45276. // quirks mode
  45277. ret = d.body[method];
  45278. }
  45279. }
  45280. return ret;
  45281. }
  45282. function getClientPosition(elem) {
  45283. var x = void 0;
  45284. var y = void 0;
  45285. var doc = elem.ownerDocument;
  45286. var body = doc.body;
  45287. var docElem = doc && doc.documentElement;
  45288. var box = elem.getBoundingClientRect();
  45289. x = box.left;
  45290. y = box.top;
  45291. x -= docElem.clientLeft || body.clientLeft || 0;
  45292. y -= docElem.clientTop || body.clientTop || 0;
  45293. return {
  45294. left: x,
  45295. top: y
  45296. };
  45297. }
  45298. function getOffsetLeft(el) {
  45299. var pos = getClientPosition(el);
  45300. var doc = el.ownerDocument;
  45301. var w = doc.defaultView || doc.parentWindow;
  45302. pos.left += getScroll(w);
  45303. return pos.left;
  45304. }
  45305. /***/ }),
  45306. /***/ "./components/vc-resize-observer/index.jsx":
  45307. /*!*************************************************!*\
  45308. !*** ./components/vc-resize-observer/index.jsx ***!
  45309. \*************************************************/
  45310. /*! exports provided: default */
  45311. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45312. "use strict";
  45313. __webpack_require__.r(__webpack_exports__);
  45314. /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
  45315. // based on rc-resize-observer 0.1.3
  45316. // Still need to be compatible with React 15, we use class component here
  45317. var VueResizeObserver = {
  45318. name: 'ResizeObserver',
  45319. props: {
  45320. disabled: Boolean
  45321. },
  45322. data: function data() {
  45323. this.currentElement = null;
  45324. this.resizeObserver = null;
  45325. return {
  45326. width: 0,
  45327. height: 0
  45328. };
  45329. },
  45330. mounted: function mounted() {
  45331. this.onComponentUpdated();
  45332. },
  45333. updated: function updated() {
  45334. this.onComponentUpdated();
  45335. },
  45336. beforeDestroy: function beforeDestroy() {
  45337. this.destroyObserver();
  45338. },
  45339. methods: {
  45340. onComponentUpdated: function onComponentUpdated() {
  45341. var disabled = this.$props.disabled;
  45342. // Unregister if disabled
  45343. if (disabled) {
  45344. this.destroyObserver();
  45345. return;
  45346. }
  45347. // Unregister if element changed
  45348. var element = this.$el;
  45349. var elementChanged = element !== this.currentElement;
  45350. if (elementChanged) {
  45351. this.destroyObserver();
  45352. this.currentElement = element;
  45353. }
  45354. if (!this.resizeObserver && element) {
  45355. this.resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__["default"](this.onResize);
  45356. this.resizeObserver.observe(element);
  45357. }
  45358. },
  45359. onResize: function onResize(entries) {
  45360. var target = entries[0].target;
  45361. var _target$getBoundingCl = target.getBoundingClientRect(),
  45362. width = _target$getBoundingCl.width,
  45363. height = _target$getBoundingCl.height;
  45364. /**
  45365. * Resize observer trigger when content size changed.
  45366. * In most case we just care about element size,
  45367. * let's use `boundary` instead of `contentRect` here to avoid shaking.
  45368. */
  45369. var fixedWidth = Math.floor(width);
  45370. var fixedHeight = Math.floor(height);
  45371. if (this.width !== fixedWidth || this.height !== fixedHeight) {
  45372. var size = { width: fixedWidth, height: fixedHeight };
  45373. this.width = fixedWidth;
  45374. this.height = fixedHeight;
  45375. this.$emit('resize', size);
  45376. }
  45377. },
  45378. destroyObserver: function destroyObserver() {
  45379. if (this.resizeObserver) {
  45380. this.resizeObserver.disconnect();
  45381. this.resizeObserver = null;
  45382. }
  45383. }
  45384. },
  45385. render: function render() {
  45386. return this.$slots['default'][0];
  45387. }
  45388. };
  45389. /* harmony default export */ __webpack_exports__["default"] = (VueResizeObserver);
  45390. /***/ }),
  45391. /***/ "./components/vc-select/DropdownMenu.jsx":
  45392. /*!***********************************************!*\
  45393. !*** ./components/vc-select/DropdownMenu.jsx ***!
  45394. \***********************************************/
  45395. /*! exports provided: default */
  45396. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45397. "use strict";
  45398. __webpack_require__.r(__webpack_exports__);
  45399. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  45400. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  45401. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
  45402. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_1__);
  45403. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  45404. /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
  45405. /* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-scroll-into-view */ "./node_modules/dom-scroll-into-view/dist-web/index.js");
  45406. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./components/vc-select/util.js");
  45407. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  45408. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  45409. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  45410. /* harmony default export */ __webpack_exports__["default"] = ({
  45411. name: 'DropdownMenu',
  45412. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
  45413. props: {
  45414. ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  45415. defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  45416. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  45417. dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  45418. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  45419. // onPopupFocus: PropTypes.func,
  45420. // onPopupScroll: PropTypes.func,
  45421. // onMenuDeSelect: PropTypes.func,
  45422. // onMenuSelect: PropTypes.func,
  45423. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  45424. menuItems: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  45425. inputValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  45426. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  45427. backfillValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  45428. firstActiveValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  45429. menuItemSelectedIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any
  45430. },
  45431. watch: {
  45432. visible: function visible(val) {
  45433. var _this = this;
  45434. if (!val) {
  45435. this.lastVisible = val;
  45436. } else {
  45437. this.$nextTick(function () {
  45438. _this.scrollActiveItemToView();
  45439. });
  45440. }
  45441. }
  45442. },
  45443. created: function created() {
  45444. this.rafInstance = null;
  45445. this.lastInputValue = this.$props.inputValue;
  45446. this.lastVisible = false;
  45447. },
  45448. mounted: function mounted() {
  45449. var _this2 = this;
  45450. this.$nextTick(function () {
  45451. _this2.scrollActiveItemToView();
  45452. });
  45453. this.lastVisible = this.$props.visible;
  45454. },
  45455. updated: function updated() {
  45456. var props = this.$props;
  45457. // if (!this.prevVisible && props.visible) {
  45458. // this.$nextTick(() => {
  45459. // this.scrollActiveItemToView();
  45460. // });
  45461. // }
  45462. this.lastVisible = props.visible;
  45463. this.lastInputValue = props.inputValue;
  45464. this.prevVisible = this.visible;
  45465. },
  45466. beforeDestroy: function beforeDestroy() {
  45467. if (this.rafInstance) {
  45468. raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(this.rafInstance);
  45469. }
  45470. },
  45471. methods: {
  45472. scrollActiveItemToView: function scrollActiveItemToView() {
  45473. var _this3 = this;
  45474. // scroll into view
  45475. var itemComponent = this.firstActiveItem && this.firstActiveItem.$el;
  45476. var props = this.$props;
  45477. var value = props.value,
  45478. visible = props.visible,
  45479. firstActiveValue = props.firstActiveValue;
  45480. if (!itemComponent || !visible) {
  45481. return;
  45482. }
  45483. var scrollIntoViewOpts = {
  45484. onlyScrollIfNeeded: true
  45485. };
  45486. if ((!value || value.length === 0) && firstActiveValue) {
  45487. scrollIntoViewOpts.alignWithTop = true;
  45488. }
  45489. // Delay to scroll since current frame item position is not ready when pre view is by filter
  45490. // https://github.com/ant-design/ant-design/issues/11268#issuecomment-406634462
  45491. this.rafInstance = raf__WEBPACK_IMPORTED_MODULE_1___default()(function () {
  45492. Object(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_4__["default"])(itemComponent, _this3.$refs.menuRef.$el, scrollIntoViewOpts);
  45493. });
  45494. },
  45495. renderMenu: function renderMenu() {
  45496. var _this4 = this;
  45497. var h = this.$createElement;
  45498. var props = this.$props;
  45499. var menuItems = props.menuItems,
  45500. defaultActiveFirstOption = props.defaultActiveFirstOption,
  45501. value = props.value,
  45502. prefixCls = props.prefixCls,
  45503. multiple = props.multiple,
  45504. inputValue = props.inputValue,
  45505. firstActiveValue = props.firstActiveValue,
  45506. dropdownMenuStyle = props.dropdownMenuStyle,
  45507. backfillValue = props.backfillValue,
  45508. visible = props.visible;
  45509. var menuItemSelectedIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'menuItemSelectedIcon');
  45510. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this),
  45511. menuDeselect = _getListeners.menuDeselect,
  45512. menuSelect = _getListeners.menuSelect,
  45513. popupScroll = _getListeners.popupScroll;
  45514. if (menuItems && menuItems.length) {
  45515. var selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_5__["getSelectKeys"])(menuItems, value);
  45516. var menuProps = {
  45517. props: {
  45518. multiple: multiple,
  45519. itemIcon: multiple ? menuItemSelectedIcon : null,
  45520. selectedKeys: selectedKeys,
  45521. prefixCls: prefixCls + '-menu'
  45522. },
  45523. on: {},
  45524. style: dropdownMenuStyle,
  45525. ref: 'menuRef',
  45526. attrs: {
  45527. role: 'listbox'
  45528. }
  45529. };
  45530. if (popupScroll) {
  45531. menuProps.on.scroll = popupScroll;
  45532. }
  45533. if (multiple) {
  45534. menuProps.on.deselect = menuDeselect;
  45535. menuProps.on.select = menuSelect;
  45536. } else {
  45537. menuProps.on.click = menuSelect;
  45538. }
  45539. var activeKeyProps = {};
  45540. var defaultActiveFirst = defaultActiveFirstOption;
  45541. var clonedMenuItems = menuItems;
  45542. if (selectedKeys.length || firstActiveValue) {
  45543. if (props.visible && !this.lastVisible) {
  45544. activeKeyProps.activeKey = selectedKeys[0] || firstActiveValue;
  45545. } else if (!visible) {
  45546. // Do not trigger auto active since we already have selectedKeys
  45547. if (selectedKeys[0]) {
  45548. defaultActiveFirst = false;
  45549. }
  45550. activeKeyProps.activeKey = undefined;
  45551. }
  45552. var foundFirst = false;
  45553. // set firstActiveItem via cloning menus
  45554. // for scroll into view
  45555. var clone = function clone(item) {
  45556. if (!foundFirst && selectedKeys.indexOf(item.key) !== -1 || !foundFirst && !selectedKeys.length && firstActiveValue.indexOf(item.key) !== -1) {
  45557. foundFirst = true;
  45558. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(item, {
  45559. directives: [{
  45560. name: 'ant-ref',
  45561. value: function value(ref) {
  45562. _this4.firstActiveItem = ref;
  45563. }
  45564. }]
  45565. });
  45566. }
  45567. return item;
  45568. };
  45569. clonedMenuItems = menuItems.map(function (item) {
  45570. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getSlotOptions"])(item).isMenuItemGroup) {
  45571. var children = item.componentOptions.children.map(clone);
  45572. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(item, { children: children });
  45573. }
  45574. return clone(item);
  45575. });
  45576. } else {
  45577. // Clear firstActiveItem when dropdown menu items was empty
  45578. // Avoid `Unable to find node on an unmounted component`
  45579. // https://github.com/ant-design/ant-design/issues/10774
  45580. this.firstActiveItem = null;
  45581. }
  45582. // clear activeKey when inputValue change
  45583. var lastValue = value && value[value.length - 1];
  45584. if (inputValue !== this.lastInputValue && (!lastValue || lastValue !== backfillValue)) {
  45585. activeKeyProps.activeKey = '';
  45586. }
  45587. menuProps.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, activeKeyProps, menuProps.props, { defaultActiveFirst: defaultActiveFirst });
  45588. return h(
  45589. _vc_menu__WEBPACK_IMPORTED_MODULE_3__["default"],
  45590. menuProps,
  45591. [clonedMenuItems]
  45592. );
  45593. }
  45594. return null;
  45595. }
  45596. },
  45597. render: function render() {
  45598. var h = arguments[0];
  45599. var renderMenu = this.renderMenu();
  45600. var _getListeners2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this),
  45601. popupFocus = _getListeners2.popupFocus,
  45602. popupScroll = _getListeners2.popupScroll;
  45603. return renderMenu ? h(
  45604. 'div',
  45605. {
  45606. style: {
  45607. overflow: 'auto',
  45608. transform: 'translateZ(0)'
  45609. },
  45610. attrs: { id: this.$props.ariaId,
  45611. tabIndex: '-1'
  45612. },
  45613. on: {
  45614. 'focus': popupFocus,
  45615. 'mousedown': _util__WEBPACK_IMPORTED_MODULE_5__["preventDefaultEvent"],
  45616. 'scroll': popupScroll
  45617. },
  45618. ref: 'menuContainer'
  45619. },
  45620. [renderMenu]
  45621. ) : null;
  45622. }
  45623. });
  45624. /***/ }),
  45625. /***/ "./components/vc-select/OptGroup.jsx":
  45626. /*!*******************************************!*\
  45627. !*** ./components/vc-select/OptGroup.jsx ***!
  45628. \*******************************************/
  45629. /*! exports provided: default */
  45630. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45631. "use strict";
  45632. __webpack_require__.r(__webpack_exports__);
  45633. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  45634. /* harmony default export */ __webpack_exports__["default"] = ({
  45635. props: {
  45636. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
  45637. label: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])
  45638. },
  45639. isSelectOptGroup: true
  45640. });
  45641. /***/ }),
  45642. /***/ "./components/vc-select/Option.jsx":
  45643. /*!*****************************************!*\
  45644. !*** ./components/vc-select/Option.jsx ***!
  45645. \*****************************************/
  45646. /*! exports provided: default */
  45647. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45648. "use strict";
  45649. __webpack_require__.r(__webpack_exports__);
  45650. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  45651. /* harmony default export */ __webpack_exports__["default"] = ({
  45652. props: {
  45653. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
  45654. label: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
  45655. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45656. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])
  45657. },
  45658. isSelectOption: true
  45659. });
  45660. /***/ }),
  45661. /***/ "./components/vc-select/PropTypes.js":
  45662. /*!*******************************************!*\
  45663. !*** ./components/vc-select/PropTypes.js ***!
  45664. \*******************************************/
  45665. /*! exports provided: SelectPropTypes */
  45666. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45667. "use strict";
  45668. __webpack_require__.r(__webpack_exports__);
  45669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectPropTypes", function() { return SelectPropTypes; });
  45670. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  45671. var SelectPropTypes = {
  45672. defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45673. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45674. filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  45675. // children: PropTypes.any,
  45676. showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45677. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45678. allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45679. showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45680. tags: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45681. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  45682. // className: PropTypes.string,
  45683. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  45684. optionLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  45685. optionFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  45686. animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  45687. choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  45688. open: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45689. defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45690. // onChange: PropTypes.func,
  45691. // onBlur: PropTypes.func,
  45692. // onFocus: PropTypes.func,
  45693. // onSelect: PropTypes.func,
  45694. // onSearch: PropTypes.func,
  45695. // onPopupScroll: PropTypes.func,
  45696. // onMouseEnter: PropTypes.func,
  45697. // onMouseLeave: PropTypes.func,
  45698. // onInputKeyDown: PropTypes.func,
  45699. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  45700. // onDeselect: PropTypes.func,
  45701. labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45702. loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45703. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  45704. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  45705. dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  45706. dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  45707. maxTagTextLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  45708. maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  45709. maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  45710. tokenSeparators: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string),
  45711. getInputElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  45712. showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string),
  45713. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45714. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  45715. clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  45716. inputIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  45717. removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  45718. menuItemSelectedIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  45719. dropdownRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  45720. mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['multiple', 'tags']),
  45721. backfill: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45722. dropdownAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  45723. dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  45724. dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  45725. notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([String, Number]),
  45726. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([String, Number])
  45727. };
  45728. /***/ }),
  45729. /***/ "./components/vc-select/Select.jsx":
  45730. /*!*****************************************!*\
  45731. !*** ./components/vc-select/Select.jsx ***!
  45732. \*****************************************/
  45733. /*! exports provided: Select, default */
  45734. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45735. "use strict";
  45736. __webpack_require__.r(__webpack_exports__);
  45737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Select", function() { return Select; });
  45738. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  45739. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  45740. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  45741. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  45742. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  45743. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  45744. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
  45745. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  45746. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  45747. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
  45748. /* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! component-classes */ "./node_modules/component-classes/index.js");
  45749. /* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(component_classes__WEBPACK_IMPORTED_MODULE_6__);
  45750. /* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
  45751. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
  45752. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_8__);
  45753. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vue */ "vue");
  45754. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_9__);
  45755. /* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Option */ "./components/vc-select/Option.jsx");
  45756. /* harmony import */ var _OptGroup__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./OptGroup */ "./components/vc-select/OptGroup.jsx");
  45757. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  45758. /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
  45759. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  45760. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  45761. /* harmony import */ var _util_proxyComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/proxyComponent */ "./components/_util/proxyComponent.jsx");
  45762. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  45763. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_17__);
  45764. /* harmony import */ var _SelectTrigger__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./SelectTrigger */ "./components/vc-select/SelectTrigger.jsx");
  45765. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./util */ "./components/vc-select/util.js");
  45766. /* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./PropTypes */ "./components/vc-select/PropTypes.js");
  45767. /* harmony import */ var _vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../vc-util/Dom/contains */ "./components/vc-util/Dom/contains.js");
  45768. /* harmony import */ var _util_env__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../_util/env */ "./components/_util/env.js");
  45769. vue__WEBPACK_IMPORTED_MODULE_9___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_17___default.a, { name: 'ant-ref' });
  45770. var SELECT_EMPTY_VALUE_KEY = 'RC_SELECT_EMPTY_VALUE_KEY';
  45771. var noop = function noop() {
  45772. return null;
  45773. };
  45774. // Where el is the DOM element you'd like to test for visibility
  45775. function isHidden(node) {
  45776. return !node || node.offsetParent === null;
  45777. }
  45778. function chaining() {
  45779. for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) {
  45780. fns[_key] = arguments[_key];
  45781. }
  45782. return function () {
  45783. for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  45784. args[_key2] = arguments[_key2];
  45785. }
  45786. // eslint-disable-line
  45787. // eslint-disable-line
  45788. for (var i = 0; i < fns.length; i++) {
  45789. if (fns[i] && typeof fns[i] === 'function') {
  45790. fns[i].apply(chaining, args);
  45791. }
  45792. }
  45793. };
  45794. }
  45795. var Select = {
  45796. inheritAttrs: false,
  45797. Option: _Option__WEBPACK_IMPORTED_MODULE_10__["default"],
  45798. OptGroup: _OptGroup__WEBPACK_IMPORTED_MODULE_11__["default"],
  45799. name: 'Select',
  45800. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_15__["default"]],
  45801. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"], {
  45802. prefixCls: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].prefixCls.def('rc-select'),
  45803. defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
  45804. labelInValue: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].labelInValue.def(false),
  45805. defaultActiveFirstOption: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].defaultActiveFirstOption.def(true),
  45806. showSearch: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].showSearch.def(true),
  45807. allowClear: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].allowClear.def(false),
  45808. placeholder: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].placeholder.def(''),
  45809. // showArrow: SelectPropTypes.showArrow.def(true),
  45810. dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
  45811. dropdownStyle: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].dropdownStyle.def(function () {
  45812. return {};
  45813. }),
  45814. dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
  45815. return {};
  45816. }),
  45817. optionFilterProp: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].optionFilterProp.def('value'),
  45818. optionLabelProp: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].optionLabelProp.def('value'),
  45819. notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def('Not Found'),
  45820. backfill: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
  45821. showAction: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].showAction.def(['click']),
  45822. combobox: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
  45823. tokenSeparators: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string).def([]),
  45824. autoClearSearchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
  45825. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def(0),
  45826. dropdownRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(function (menu) {
  45827. return menu;
  45828. })
  45829. // onChange: noop,
  45830. // onFocus: noop,
  45831. // onBlur: noop,
  45832. // onSelect: noop,
  45833. // onSearch: noop,
  45834. // onDeselect: noop,
  45835. // onInputKeydown: noop,
  45836. }),
  45837. model: {
  45838. prop: 'value',
  45839. event: 'change'
  45840. },
  45841. created: function created() {
  45842. this.saveInputRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'inputRef');
  45843. this.saveInputMirrorRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'inputMirrorRef');
  45844. this.saveTopCtrlRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'topCtrlRef');
  45845. this.saveSelectTriggerRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'selectTriggerRef');
  45846. this.saveRootRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'rootRef');
  45847. this.saveSelectionRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'selectionRef');
  45848. this._focused = false;
  45849. this._mouseDown = false;
  45850. this._options = [];
  45851. this._empty = false;
  45852. },
  45853. data: function data() {
  45854. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
  45855. var optionsInfo = this.getOptionsInfoFromProps(props);
  45856. warning__WEBPACK_IMPORTED_MODULE_8___default()(this.__propsSymbol__, 'Replace slots.default with props.children and pass props.__propsSymbol__');
  45857. if (props.tags && typeof props.filterOption !== 'function') {
  45858. var isDisabledExist = Object.keys(optionsInfo).some(function (key) {
  45859. return optionsInfo[key].disabled;
  45860. });
  45861. warning__WEBPACK_IMPORTED_MODULE_8___default()(!isDisabledExist, 'Please avoid setting option to disabled in tags mode since user can always type text as tag.');
  45862. }
  45863. var state = {
  45864. _value: this.getValueFromProps(props, true), // true: use default value
  45865. _inputValue: props.combobox ? this.getInputValueForCombobox(props, optionsInfo, true // use default value
  45866. ) : '',
  45867. _open: props.defaultOpen,
  45868. _optionsInfo: optionsInfo,
  45869. _backfillValue: '',
  45870. // a flag for aviod redundant getOptionsInfoFromProps call
  45871. _skipBuildOptionsInfo: true,
  45872. _ariaId: Object(_util__WEBPACK_IMPORTED_MODULE_19__["generateUUID"])()
  45873. };
  45874. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, state, {
  45875. _mirrorInputValue: state._inputValue }, this.getDerivedState(props, state));
  45876. },
  45877. mounted: function mounted() {
  45878. var _this = this;
  45879. this.$nextTick(function () {
  45880. // when defaultOpen is true, we should auto focus search input
  45881. // https://github.com/ant-design/ant-design/issues/14254
  45882. if (_this.autoFocus || _this._open) {
  45883. _this.focus();
  45884. }
  45885. // this.setState({
  45886. // _ariaId: generateUUID(),
  45887. // });
  45888. });
  45889. },
  45890. watch: {
  45891. __propsSymbol__: function __propsSymbol__() {
  45892. babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()(this.$data, this.getDerivedState(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this), this.$data));
  45893. },
  45894. '$data._inputValue': function $data_inputValue(val) {
  45895. this.$data._mirrorInputValue = val;
  45896. }
  45897. },
  45898. updated: function updated() {
  45899. var _this2 = this;
  45900. this.$nextTick(function () {
  45901. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(_this2.$props)) {
  45902. var inputNode = _this2.getInputDOMNode();
  45903. var mirrorNode = _this2.getInputMirrorDOMNode();
  45904. if (inputNode && inputNode.value && mirrorNode) {
  45905. inputNode.style.width = '';
  45906. inputNode.style.width = mirrorNode.clientWidth + 10 + 'px';
  45907. } else if (inputNode) {
  45908. inputNode.style.width = '';
  45909. }
  45910. }
  45911. _this2.forcePopupAlign();
  45912. });
  45913. },
  45914. beforeDestroy: function beforeDestroy() {
  45915. this.clearFocusTime();
  45916. this.clearBlurTime();
  45917. this.clearComboboxTime();
  45918. if (this.dropdownContainer) {
  45919. document.body.removeChild(this.dropdownContainer);
  45920. this.dropdownContainer = null;
  45921. }
  45922. },
  45923. methods: {
  45924. getDerivedState: function getDerivedState(nextProps, prevState) {
  45925. var optionsInfo = prevState._skipBuildOptionsInfo ? prevState._optionsInfo : this.getOptionsInfoFromProps(nextProps, prevState);
  45926. var newState = {
  45927. _optionsInfo: optionsInfo,
  45928. _skipBuildOptionsInfo: false
  45929. };
  45930. if ('open' in nextProps) {
  45931. newState._open = nextProps.open;
  45932. }
  45933. if ('value' in nextProps) {
  45934. var value = this.getValueFromProps(nextProps);
  45935. newState._value = value;
  45936. if (nextProps.combobox) {
  45937. newState._inputValue = this.getInputValueForCombobox(nextProps, optionsInfo);
  45938. }
  45939. }
  45940. return newState;
  45941. },
  45942. getOptionsFromChildren: function getOptionsFromChildren() {
  45943. var _this3 = this;
  45944. var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  45945. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  45946. children.forEach(function (child) {
  45947. if (!child.data || child.data.slot !== undefined) {
  45948. return;
  45949. }
  45950. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).isSelectOptGroup) {
  45951. _this3.getOptionsFromChildren(child.componentOptions.children, options);
  45952. } else {
  45953. options.push(child);
  45954. }
  45955. });
  45956. return options;
  45957. },
  45958. getInputValueForCombobox: function getInputValueForCombobox(props, optionsInfo, useDefaultValue) {
  45959. var value = [];
  45960. if ('value' in props && !useDefaultValue) {
  45961. value = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(props.value);
  45962. }
  45963. if ('defaultValue' in props && useDefaultValue) {
  45964. value = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(props.defaultValue);
  45965. }
  45966. if (value.length) {
  45967. value = value[0];
  45968. } else {
  45969. return '';
  45970. }
  45971. var label = value;
  45972. if (props.labelInValue) {
  45973. label = value.label;
  45974. } else if (optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(value)]) {
  45975. label = optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(value)].label;
  45976. }
  45977. if (label === undefined) {
  45978. label = '';
  45979. }
  45980. return label;
  45981. },
  45982. getLabelFromOption: function getLabelFromOption(props, option) {
  45983. return Object(_util__WEBPACK_IMPORTED_MODULE_19__["getPropValue"])(option, props.optionLabelProp);
  45984. },
  45985. getOptionsInfoFromProps: function getOptionsInfoFromProps(props, preState) {
  45986. var _this4 = this;
  45987. var options = this.getOptionsFromChildren(this.$props.children);
  45988. var optionsInfo = {};
  45989. options.forEach(function (option) {
  45990. var singleValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(option);
  45991. optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(singleValue)] = {
  45992. option: option,
  45993. value: singleValue,
  45994. label: _this4.getLabelFromOption(props, option),
  45995. title: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getValueByProp"])(option, 'title'),
  45996. disabled: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getValueByProp"])(option, 'disabled')
  45997. };
  45998. });
  45999. if (preState) {
  46000. // keep option info in pre state value.
  46001. var oldOptionsInfo = preState._optionsInfo;
  46002. var value = preState._value;
  46003. if (value) {
  46004. value.forEach(function (v) {
  46005. var key = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(v);
  46006. if (!optionsInfo[key] && oldOptionsInfo[key] !== undefined) {
  46007. optionsInfo[key] = oldOptionsInfo[key];
  46008. }
  46009. });
  46010. }
  46011. }
  46012. return optionsInfo;
  46013. },
  46014. getValueFromProps: function getValueFromProps(props, useDefaultValue) {
  46015. var value = [];
  46016. if ('value' in props && !useDefaultValue) {
  46017. value = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(props.value);
  46018. }
  46019. if ('defaultValue' in props && useDefaultValue) {
  46020. value = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(props.defaultValue);
  46021. }
  46022. if (props.labelInValue) {
  46023. value = value.map(function (v) {
  46024. return v.key;
  46025. });
  46026. }
  46027. return value;
  46028. },
  46029. onInputChange: function onInputChange(e) {
  46030. var _e$target = e.target,
  46031. val = _e$target.value,
  46032. composing = _e$target.composing;
  46033. var _$data$_inputValue = this.$data._inputValue,
  46034. _inputValue = _$data$_inputValue === undefined ? '' : _$data$_inputValue;
  46035. if (e.isComposing || composing || _inputValue === val) {
  46036. this.setState({
  46037. _mirrorInputValue: val
  46038. });
  46039. return;
  46040. }
  46041. var tokenSeparators = this.$props.tokenSeparators;
  46042. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) && tokenSeparators.length && Object(_util__WEBPACK_IMPORTED_MODULE_19__["includesSeparators"])(val, tokenSeparators)) {
  46043. var nextValue = this.getValueByInput(val);
  46044. if (nextValue !== undefined) {
  46045. this.fireChange(nextValue);
  46046. }
  46047. this.setOpenState(false, { needFocus: true });
  46048. this.setInputValue('', false);
  46049. return;
  46050. }
  46051. this.setInputValue(val);
  46052. this.setState({
  46053. _open: true
  46054. });
  46055. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(this.$props)) {
  46056. this.fireChange([val]);
  46057. }
  46058. },
  46059. onDropdownVisibleChange: function onDropdownVisibleChange(open) {
  46060. if (open && !this._focused) {
  46061. this.clearBlurTime();
  46062. this.timeoutFocus();
  46063. this._focused = true;
  46064. this.updateFocusClassName();
  46065. }
  46066. this.setOpenState(open);
  46067. },
  46068. // combobox ignore
  46069. onKeyDown: function onKeyDown(event) {
  46070. var open = this.$data._open;
  46071. var disabled = this.$props.disabled;
  46072. if (disabled) {
  46073. return;
  46074. }
  46075. var keyCode = event.keyCode;
  46076. if (open && !this.getInputDOMNode()) {
  46077. this.onInputKeydown(event);
  46078. } else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER || keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].DOWN) {
  46079. // vue state是同步更新,onKeyDown在onMenuSelect后会再次调用,单选时不在调用setOpenState
  46080. // https://github.com/vueComponent/ant-design-vue/issues/1142
  46081. if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER && !Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props)) {
  46082. this.maybeFocus(true);
  46083. } else if (!open) {
  46084. this.setOpenState(true);
  46085. }
  46086. event.preventDefault();
  46087. } else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].SPACE) {
  46088. // Not block space if popup is shown
  46089. if (!open) {
  46090. this.setOpenState(true);
  46091. event.preventDefault();
  46092. }
  46093. }
  46094. },
  46095. onInputKeydown: function onInputKeydown(event) {
  46096. var _this5 = this;
  46097. var _$props = this.$props,
  46098. disabled = _$props.disabled,
  46099. combobox = _$props.combobox,
  46100. defaultActiveFirstOption = _$props.defaultActiveFirstOption;
  46101. if (disabled) {
  46102. return;
  46103. }
  46104. var state = this.$data;
  46105. var isRealOpen = this.getRealOpenState(state);
  46106. var keyCode = event.keyCode;
  46107. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) && !event.target.value && keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].BACKSPACE) {
  46108. event.preventDefault();
  46109. var value = state._value;
  46110. if (value.length) {
  46111. this.removeSelected(value[value.length - 1]);
  46112. }
  46113. return;
  46114. }
  46115. if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].DOWN) {
  46116. if (!state._open) {
  46117. this.openIfHasChildren();
  46118. event.preventDefault();
  46119. event.stopPropagation();
  46120. return;
  46121. }
  46122. } else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER && state._open) {
  46123. // Aviod trigger form submit when select item
  46124. // https://github.com/ant-design/ant-design/issues/10861
  46125. // https://github.com/ant-design/ant-design/issues/14544
  46126. if (isRealOpen || !combobox) {
  46127. event.preventDefault();
  46128. }
  46129. // Hard close popup to avoid lock of non option in combobox mode
  46130. if (isRealOpen && combobox && defaultActiveFirstOption === false) {
  46131. this.comboboxTimer = setTimeout(function () {
  46132. _this5.setOpenState(false);
  46133. });
  46134. }
  46135. } else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ESC) {
  46136. if (state._open) {
  46137. this.setOpenState(false);
  46138. event.preventDefault();
  46139. event.stopPropagation();
  46140. }
  46141. return;
  46142. }
  46143. if (isRealOpen && this.selectTriggerRef) {
  46144. var menu = this.selectTriggerRef.getInnerMenu();
  46145. if (menu && menu.onKeyDown(event, this.handleBackfill)) {
  46146. event.preventDefault();
  46147. event.stopPropagation();
  46148. }
  46149. }
  46150. },
  46151. onMenuSelect: function onMenuSelect(_ref) {
  46152. var item = _ref.item;
  46153. if (!item) {
  46154. return;
  46155. }
  46156. var value = this.$data._value;
  46157. var props = this.$props;
  46158. var selectedValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(item);
  46159. var lastValue = value[value.length - 1];
  46160. var skipTrigger = false;
  46161. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props)) {
  46162. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["findIndexInValueBySingleValue"])(value, selectedValue) !== -1) {
  46163. skipTrigger = true;
  46164. } else {
  46165. value = value.concat([selectedValue]);
  46166. }
  46167. } else {
  46168. if (!Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(props) && lastValue !== undefined && lastValue === selectedValue && selectedValue !== this.$data._backfillValue) {
  46169. this.setOpenState(false, { needFocus: true, fireSearch: false });
  46170. skipTrigger = true;
  46171. } else {
  46172. value = [selectedValue];
  46173. this.setOpenState(false, { needFocus: true, fireSearch: false });
  46174. }
  46175. }
  46176. if (!skipTrigger) {
  46177. this.fireChange(value);
  46178. }
  46179. if (!skipTrigger) {
  46180. this.fireSelect(selectedValue);
  46181. var inputValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(props) ? Object(_util__WEBPACK_IMPORTED_MODULE_19__["getPropValue"])(item, props.optionLabelProp) : '';
  46182. if (props.autoClearSearchValue) {
  46183. this.setInputValue(inputValue, false);
  46184. }
  46185. }
  46186. },
  46187. onMenuDeselect: function onMenuDeselect(_ref2) {
  46188. var item = _ref2.item,
  46189. domEvent = _ref2.domEvent;
  46190. if (domEvent.type === 'keydown' && domEvent.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER) {
  46191. var menuItemDomNode = item.$el;
  46192. // https://github.com/ant-design/ant-design/issues/20465#issuecomment-569033796
  46193. if (!isHidden(menuItemDomNode)) {
  46194. this.removeSelected(Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(item));
  46195. }
  46196. return;
  46197. }
  46198. if (domEvent.type === 'click') {
  46199. this.removeSelected(Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(item));
  46200. }
  46201. if (this.autoClearSearchValue) {
  46202. this.setInputValue('');
  46203. }
  46204. },
  46205. onArrowClick: function onArrowClick(e) {
  46206. e.stopPropagation();
  46207. e.preventDefault();
  46208. this.clearBlurTime();
  46209. if (!this.disabled) {
  46210. this.setOpenState(!this.$data._open, { needFocus: !this.$data._open });
  46211. }
  46212. },
  46213. onPlaceholderClick: function onPlaceholderClick() {
  46214. if (this.getInputDOMNode() && this.getInputDOMNode()) {
  46215. this.getInputDOMNode().focus();
  46216. }
  46217. },
  46218. onPopupFocus: function onPopupFocus() {
  46219. // fix ie scrollbar, focus element again
  46220. this.maybeFocus(true, true);
  46221. },
  46222. onClearSelection: function onClearSelection(event) {
  46223. var props = this.$props;
  46224. var state = this.$data;
  46225. if (props.disabled) {
  46226. return;
  46227. }
  46228. var inputValue = state._inputValue,
  46229. value = state._value;
  46230. event.stopPropagation();
  46231. if (inputValue || value.length) {
  46232. if (value.length) {
  46233. this.fireChange([]);
  46234. }
  46235. this.setOpenState(false, { needFocus: true });
  46236. if (inputValue) {
  46237. this.setInputValue('');
  46238. }
  46239. }
  46240. },
  46241. onChoiceAnimationLeave: function onChoiceAnimationLeave() {
  46242. this.forcePopupAlign();
  46243. },
  46244. getOptionInfoBySingleValue: function getOptionInfoBySingleValue(value, optionsInfo) {
  46245. var h = this.$createElement;
  46246. var info = void 0;
  46247. optionsInfo = optionsInfo || this.$data._optionsInfo;
  46248. if (optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(value)]) {
  46249. info = optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(value)];
  46250. }
  46251. if (info) {
  46252. return info;
  46253. }
  46254. var defaultLabel = value;
  46255. if (this.$props.labelInValue) {
  46256. var valueLabel = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getLabelFromPropsValue"])(this.$props.value, value);
  46257. var defaultValueLabel = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getLabelFromPropsValue"])(this.$props.defaultValue, value);
  46258. if (valueLabel !== undefined) {
  46259. defaultLabel = valueLabel;
  46260. } else if (defaultValueLabel !== undefined) {
  46261. defaultLabel = defaultValueLabel;
  46262. }
  46263. }
  46264. var defaultInfo = {
  46265. option: h(
  46266. _Option__WEBPACK_IMPORTED_MODULE_10__["default"],
  46267. {
  46268. attrs: { value: value },
  46269. key: value },
  46270. [value]
  46271. ),
  46272. value: value,
  46273. label: defaultLabel
  46274. };
  46275. return defaultInfo;
  46276. },
  46277. getOptionBySingleValue: function getOptionBySingleValue(value) {
  46278. var _getOptionInfoBySingl = this.getOptionInfoBySingleValue(value),
  46279. option = _getOptionInfoBySingl.option;
  46280. return option;
  46281. },
  46282. getOptionsBySingleValue: function getOptionsBySingleValue(values) {
  46283. var _this6 = this;
  46284. return values.map(function (value) {
  46285. return _this6.getOptionBySingleValue(value);
  46286. });
  46287. },
  46288. getValueByLabel: function getValueByLabel(label) {
  46289. var _this7 = this;
  46290. if (label === undefined) {
  46291. return null;
  46292. }
  46293. var value = null;
  46294. Object.keys(this.$data._optionsInfo).forEach(function (key) {
  46295. var info = _this7.$data._optionsInfo[key];
  46296. var disabled = info.disabled;
  46297. if (disabled) {
  46298. return;
  46299. }
  46300. var oldLable = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(info.label);
  46301. if (oldLable && oldLable.join('') === label) {
  46302. value = info.value;
  46303. }
  46304. });
  46305. return value;
  46306. },
  46307. getVLBySingleValue: function getVLBySingleValue(value) {
  46308. if (this.$props.labelInValue) {
  46309. return {
  46310. key: value,
  46311. label: this.getLabelBySingleValue(value)
  46312. };
  46313. }
  46314. return value;
  46315. },
  46316. getVLForOnChange: function getVLForOnChange(vlsS) {
  46317. var _this8 = this;
  46318. var vls = vlsS;
  46319. if (vls !== undefined) {
  46320. if (!this.labelInValue) {
  46321. vls = vls.map(function (v) {
  46322. return v;
  46323. });
  46324. } else {
  46325. vls = vls.map(function (vl) {
  46326. return {
  46327. key: vl,
  46328. label: _this8.getLabelBySingleValue(vl)
  46329. };
  46330. });
  46331. }
  46332. return Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) ? vls : vls[0];
  46333. }
  46334. return vls;
  46335. },
  46336. getLabelBySingleValue: function getLabelBySingleValue(value, optionsInfo) {
  46337. var _getOptionInfoBySingl2 = this.getOptionInfoBySingleValue(value, optionsInfo),
  46338. label = _getOptionInfoBySingl2.label;
  46339. return label;
  46340. },
  46341. getDropdownContainer: function getDropdownContainer() {
  46342. if (!this.dropdownContainer) {
  46343. this.dropdownContainer = document.createElement('div');
  46344. document.body.appendChild(this.dropdownContainer);
  46345. }
  46346. return this.dropdownContainer;
  46347. },
  46348. getPlaceholderElement: function getPlaceholderElement() {
  46349. var h = this.$createElement;
  46350. var props = this.$props,
  46351. state = this.$data;
  46352. var hidden = false;
  46353. if (state._mirrorInputValue) {
  46354. hidden = true;
  46355. }
  46356. var value = state._value;
  46357. if (value.length) {
  46358. hidden = true;
  46359. }
  46360. if (!state._mirrorInputValue && Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(props) && value.length === 1 && state._value && !state._value[0]) {
  46361. hidden = false;
  46362. }
  46363. var placeholder = props.placeholder;
  46364. if (placeholder) {
  46365. var p = {
  46366. on: {
  46367. mousedown: _util__WEBPACK_IMPORTED_MODULE_19__["preventDefaultEvent"],
  46368. click: this.onPlaceholderClick
  46369. },
  46370. attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"],
  46371. style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  46372. display: hidden ? 'none' : 'block'
  46373. }, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]),
  46374. 'class': props.prefixCls + '-selection__placeholder'
  46375. };
  46376. return h(
  46377. 'div',
  46378. p,
  46379. [placeholder]
  46380. );
  46381. }
  46382. return null;
  46383. },
  46384. inputClick: function inputClick(e) {
  46385. if (this.$data._open) {
  46386. this.clearBlurTime();
  46387. e.stopPropagation();
  46388. } else {
  46389. this._focused = false;
  46390. }
  46391. },
  46392. inputBlur: function inputBlur(e) {
  46393. var _this9 = this;
  46394. var target = e.relatedTarget || document.activeElement;
  46395. // https://github.com/vueComponent/ant-design-vue/issues/999
  46396. // https://github.com/vueComponent/ant-design-vue/issues/1223
  46397. if ((_util_env__WEBPACK_IMPORTED_MODULE_22__["isIE"] || _util_env__WEBPACK_IMPORTED_MODULE_22__["isEdge"]) && (e.relatedTarget === this.$refs.arrow || target && this.selectTriggerRef && this.selectTriggerRef.getInnerMenu() && this.selectTriggerRef.getInnerMenu().$el === target || Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_21__["default"])(e.target, target))) {
  46398. e.target.focus();
  46399. e.preventDefault();
  46400. return;
  46401. }
  46402. this.clearBlurTime();
  46403. if (this.disabled) {
  46404. e.preventDefault();
  46405. return;
  46406. }
  46407. this.blurTimer = setTimeout(function () {
  46408. _this9._focused = false;
  46409. _this9.updateFocusClassName();
  46410. var props = _this9.$props;
  46411. var value = _this9.$data._value;
  46412. var inputValue = _this9.$data._inputValue;
  46413. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(props) && props.showSearch && inputValue && props.defaultActiveFirstOption) {
  46414. var options = _this9._options || [];
  46415. if (options.length) {
  46416. var firstOption = Object(_util__WEBPACK_IMPORTED_MODULE_19__["findFirstMenuItem"])(options);
  46417. if (firstOption) {
  46418. value = [Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(firstOption)];
  46419. _this9.fireChange(value);
  46420. }
  46421. }
  46422. } else if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props) && inputValue) {
  46423. if (_this9._mouseDown) {
  46424. // need update dropmenu when not blur
  46425. _this9.setInputValue('');
  46426. } else {
  46427. // why not use setState?
  46428. _this9.$data._inputValue = '';
  46429. if (_this9.getInputDOMNode && _this9.getInputDOMNode()) {
  46430. _this9.getInputDOMNode().value = '';
  46431. }
  46432. }
  46433. var tmpValue = _this9.getValueByInput(inputValue);
  46434. if (tmpValue !== undefined) {
  46435. value = tmpValue;
  46436. _this9.fireChange(value);
  46437. }
  46438. }
  46439. // if click the rest space of Select in multiple mode
  46440. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props) && _this9._mouseDown) {
  46441. _this9.maybeFocus(true, true);
  46442. _this9._mouseDown = false;
  46443. return;
  46444. }
  46445. _this9.setOpenState(false);
  46446. _this9.$emit('blur', _this9.getVLForOnChange(value));
  46447. }, 200);
  46448. },
  46449. inputFocus: function inputFocus(e) {
  46450. if (this.$props.disabled) {
  46451. e.preventDefault();
  46452. return;
  46453. }
  46454. this.clearBlurTime();
  46455. // In IE11, onOuterFocus will be trigger twice when focus input
  46456. // First one: e.target is div
  46457. // Second one: e.target is input
  46458. // other browser only trigger second one
  46459. // https://github.com/ant-design/ant-design/issues/15942
  46460. // Here we ignore the first one when e.target is div
  46461. var inputNode = this.getInputDOMNode();
  46462. if (inputNode && e.target === this.rootRef) {
  46463. return;
  46464. }
  46465. if (!Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props) && e.target === inputNode) {
  46466. return;
  46467. }
  46468. if (this._focused) {
  46469. return;
  46470. }
  46471. this._focused = true;
  46472. this.updateFocusClassName();
  46473. // only effect multiple or tag mode
  46474. if (!Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) || !this._mouseDown) {
  46475. this.timeoutFocus();
  46476. }
  46477. },
  46478. _getInputElement: function _getInputElement() {
  46479. var h = this.$createElement;
  46480. var props = this.$props;
  46481. var _$data = this.$data,
  46482. inputValue = _$data._inputValue,
  46483. _mirrorInputValue = _$data._mirrorInputValue;
  46484. var attrs = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getAttrs"])(this);
  46485. var defaultInput = h('input', {
  46486. attrs: { id: attrs.id, autoComplete: 'off' }
  46487. });
  46488. var inputElement = props.getInputElement ? props.getInputElement() : defaultInput;
  46489. var inputCls = classnames__WEBPACK_IMPORTED_MODULE_5___default()(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getClass"])(inputElement), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, props.prefixCls + '-search__field', true));
  46490. var inputEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getEvents"])(inputElement);
  46491. // https://github.com/ant-design/ant-design/issues/4992#issuecomment-281542159
  46492. // Add space to the end of the inputValue as the width measurement tolerance
  46493. inputElement.data = inputElement.data || {};
  46494. return h(
  46495. 'div',
  46496. { 'class': props.prefixCls + '-search__field__wrap', on: {
  46497. 'click': this.inputClick
  46498. }
  46499. },
  46500. [Object(_util_vnode__WEBPACK_IMPORTED_MODULE_14__["cloneElement"])(inputElement, {
  46501. props: {
  46502. disabled: props.disabled,
  46503. value: inputValue
  46504. },
  46505. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, inputElement.data.attrs || {}, {
  46506. disabled: props.disabled,
  46507. value: inputValue
  46508. }),
  46509. domProps: {
  46510. value: inputValue
  46511. },
  46512. 'class': inputCls,
  46513. directives: [{
  46514. name: 'ant-ref',
  46515. value: this.saveInputRef
  46516. }, {
  46517. name: 'ant-input'
  46518. }],
  46519. on: {
  46520. input: this.onInputChange,
  46521. keydown: chaining(this.onInputKeydown, inputEvents.keydown, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this).inputKeydown),
  46522. focus: chaining(this.inputFocus, inputEvents.focus),
  46523. blur: chaining(this.inputBlur, inputEvents.blur)
  46524. }
  46525. }), h(
  46526. 'span',
  46527. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  46528. directives: [{
  46529. name: 'ant-ref',
  46530. value: this.saveInputMirrorRef
  46531. }]
  46532. }, {
  46533. // ref='inputMirrorRef'
  46534. 'class': props.prefixCls + '-search__field__mirror'
  46535. }]),
  46536. [_mirrorInputValue, '\xA0']
  46537. )]
  46538. );
  46539. },
  46540. getInputDOMNode: function getInputDOMNode() {
  46541. return this.topCtrlRef ? this.topCtrlRef.querySelector('input,textarea,div[contentEditable]') : this.inputRef;
  46542. },
  46543. getInputMirrorDOMNode: function getInputMirrorDOMNode() {
  46544. return this.inputMirrorRef;
  46545. },
  46546. getPopupDOMNode: function getPopupDOMNode() {
  46547. if (this.selectTriggerRef) {
  46548. return this.selectTriggerRef.getPopupDOMNode();
  46549. }
  46550. },
  46551. getPopupMenuComponent: function getPopupMenuComponent() {
  46552. if (this.selectTriggerRef) {
  46553. return this.selectTriggerRef.getInnerMenu();
  46554. }
  46555. },
  46556. setOpenState: function setOpenState(open) {
  46557. var _this10 = this;
  46558. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  46559. var props = this.$props,
  46560. state = this.$data;
  46561. var needFocus = config.needFocus,
  46562. fireSearch = config.fireSearch;
  46563. if (state._open === open) {
  46564. this.maybeFocus(open, !!needFocus);
  46565. return;
  46566. }
  46567. this.__emit('dropdownVisibleChange', open);
  46568. var nextState = {
  46569. _open: open,
  46570. _backfillValue: ''
  46571. };
  46572. // clear search input value when open is false in singleMode.
  46573. if (!open && Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(props) && props.showSearch) {
  46574. this.setInputValue('', fireSearch);
  46575. }
  46576. if (!open) {
  46577. this.maybeFocus(open, !!needFocus);
  46578. }
  46579. this.setState(nextState, function () {
  46580. if (open) {
  46581. _this10.maybeFocus(open, !!needFocus);
  46582. }
  46583. });
  46584. },
  46585. setInputValue: function setInputValue(inputValue) {
  46586. var fireSearch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  46587. if (inputValue !== this.$data._inputValue) {
  46588. this.setState({
  46589. _inputValue: inputValue
  46590. }, this.forcePopupAlign);
  46591. if (fireSearch) {
  46592. this.$emit('search', inputValue);
  46593. }
  46594. }
  46595. },
  46596. getValueByInput: function getValueByInput(str) {
  46597. var _this11 = this;
  46598. var _$props2 = this.$props,
  46599. multiple = _$props2.multiple,
  46600. tokenSeparators = _$props2.tokenSeparators;
  46601. var nextValue = this.$data._value;
  46602. var hasNewValue = false;
  46603. Object(_util__WEBPACK_IMPORTED_MODULE_19__["splitBySeparators"])(str, tokenSeparators).forEach(function (label) {
  46604. var selectedValue = [label];
  46605. if (multiple) {
  46606. var value = _this11.getValueByLabel(label);
  46607. if (value && Object(_util__WEBPACK_IMPORTED_MODULE_19__["findIndexInValueBySingleValue"])(nextValue, value) === -1) {
  46608. nextValue = nextValue.concat(value);
  46609. hasNewValue = true;
  46610. _this11.fireSelect(value);
  46611. }
  46612. } else if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["findIndexInValueBySingleValue"])(nextValue, label) === -1) {
  46613. nextValue = nextValue.concat(selectedValue);
  46614. hasNewValue = true;
  46615. _this11.fireSelect(label);
  46616. }
  46617. });
  46618. return hasNewValue ? nextValue : undefined;
  46619. },
  46620. getRealOpenState: function getRealOpenState(state) {
  46621. var _open = this.$props.open;
  46622. if (typeof _open === 'boolean') {
  46623. return _open;
  46624. }
  46625. var open = (state || this.$data)._open;
  46626. var options = this._options || [];
  46627. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props) || !this.$props.showSearch) {
  46628. if (open && !options.length) {
  46629. open = false;
  46630. }
  46631. }
  46632. return open;
  46633. },
  46634. focus: function focus() {
  46635. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(this.$props) && this.selectionRef) {
  46636. this.selectionRef.focus();
  46637. } else if (this.getInputDOMNode()) {
  46638. this.getInputDOMNode().focus();
  46639. }
  46640. },
  46641. blur: function blur() {
  46642. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(this.$props) && this.selectionRef) {
  46643. this.selectionRef.blur();
  46644. } else if (this.getInputDOMNode()) {
  46645. this.getInputDOMNode().blur();
  46646. }
  46647. },
  46648. markMouseDown: function markMouseDown() {
  46649. this._mouseDown = true;
  46650. },
  46651. markMouseLeave: function markMouseLeave() {
  46652. this._mouseDown = false;
  46653. },
  46654. handleBackfill: function handleBackfill(item) {
  46655. if (!this.backfill || !(Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(this.$props) || Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(this.$props))) {
  46656. return;
  46657. }
  46658. var key = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(item);
  46659. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(this.$props)) {
  46660. this.setInputValue(key, false);
  46661. }
  46662. this.setState({
  46663. _value: [key],
  46664. _backfillValue: key
  46665. });
  46666. },
  46667. _filterOption: function _filterOption(input, child) {
  46668. var defaultFilter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _util__WEBPACK_IMPORTED_MODULE_19__["defaultFilterFn"];
  46669. var _$data2 = this.$data,
  46670. value = _$data2._value,
  46671. backfillValue = _$data2._backfillValue;
  46672. var lastValue = value[value.length - 1];
  46673. if (!input || lastValue && lastValue === backfillValue) {
  46674. return true;
  46675. }
  46676. var filterFn = this.$props.filterOption;
  46677. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["hasProp"])(this, 'filterOption')) {
  46678. if (filterFn === true) {
  46679. filterFn = defaultFilter.bind(this);
  46680. }
  46681. } else {
  46682. filterFn = defaultFilter.bind(this);
  46683. }
  46684. if (!filterFn) {
  46685. return true;
  46686. } else if (typeof filterFn === 'function') {
  46687. return filterFn.call(this, input, child);
  46688. } else if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getValueByProp"])(child, 'disabled')) {
  46689. return false;
  46690. }
  46691. return true;
  46692. },
  46693. timeoutFocus: function timeoutFocus() {
  46694. var _this12 = this;
  46695. if (this.focusTimer) {
  46696. this.clearFocusTime();
  46697. }
  46698. this.focusTimer = window.setTimeout(function () {
  46699. // this._focused = true
  46700. // this.updateFocusClassName()
  46701. _this12.$emit('focus');
  46702. }, 10);
  46703. },
  46704. clearFocusTime: function clearFocusTime() {
  46705. if (this.focusTimer) {
  46706. clearTimeout(this.focusTimer);
  46707. this.focusTimer = null;
  46708. }
  46709. },
  46710. clearBlurTime: function clearBlurTime() {
  46711. if (this.blurTimer) {
  46712. clearTimeout(this.blurTimer);
  46713. this.blurTimer = null;
  46714. }
  46715. },
  46716. clearComboboxTime: function clearComboboxTime() {
  46717. if (this.comboboxTimer) {
  46718. clearTimeout(this.comboboxTimer);
  46719. this.comboboxTimer = null;
  46720. }
  46721. },
  46722. updateFocusClassName: function updateFocusClassName() {
  46723. var rootRef = this.rootRef,
  46724. prefixCls = this.prefixCls;
  46725. // avoid setState and its side effect
  46726. if (this._focused) {
  46727. component_classes__WEBPACK_IMPORTED_MODULE_6___default()(rootRef).add(prefixCls + '-focused');
  46728. } else {
  46729. component_classes__WEBPACK_IMPORTED_MODULE_6___default()(rootRef).remove(prefixCls + '-focused');
  46730. }
  46731. },
  46732. maybeFocus: function maybeFocus(open, needFocus) {
  46733. if (needFocus || open) {
  46734. var input = this.getInputDOMNode();
  46735. var _document = document,
  46736. activeElement = _document.activeElement;
  46737. if (input && (open || Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props))) {
  46738. if (activeElement !== input) {
  46739. input.focus();
  46740. this._focused = true;
  46741. }
  46742. } else if (activeElement !== this.selectionRef && this.selectionRef) {
  46743. this.selectionRef.focus();
  46744. this._focused = true;
  46745. }
  46746. }
  46747. },
  46748. removeSelected: function removeSelected(selectedKey, e) {
  46749. var props = this.$props;
  46750. if (props.disabled || this.isChildDisabled(selectedKey)) {
  46751. return;
  46752. }
  46753. // Do not trigger Trigger popup
  46754. if (e && e.stopPropagation) {
  46755. e.stopPropagation();
  46756. }
  46757. var oldValue = this.$data._value;
  46758. var value = oldValue.filter(function (singleValue) {
  46759. return singleValue !== selectedKey;
  46760. });
  46761. var canMultiple = Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props);
  46762. if (canMultiple) {
  46763. var event = selectedKey;
  46764. if (props.labelInValue) {
  46765. event = {
  46766. key: selectedKey,
  46767. label: this.getLabelBySingleValue(selectedKey)
  46768. };
  46769. }
  46770. this.$emit('deselect', event, this.getOptionBySingleValue(selectedKey));
  46771. }
  46772. this.fireChange(value);
  46773. },
  46774. openIfHasChildren: function openIfHasChildren() {
  46775. var $props = this.$props;
  46776. if ($props.children && $props.children.length || Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])($props)) {
  46777. this.setOpenState(true);
  46778. }
  46779. },
  46780. fireSelect: function fireSelect(value) {
  46781. this.$emit('select', this.getVLBySingleValue(value), this.getOptionBySingleValue(value));
  46782. },
  46783. fireChange: function fireChange(value) {
  46784. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["hasProp"])(this, 'value')) {
  46785. this.setState({
  46786. _value: value
  46787. }, this.forcePopupAlign);
  46788. }
  46789. var vls = this.getVLForOnChange(value);
  46790. var options = this.getOptionsBySingleValue(value);
  46791. this._valueOptions = options;
  46792. this.$emit('change', vls, Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) ? options : options[0]);
  46793. },
  46794. isChildDisabled: function isChildDisabled(key) {
  46795. return (this.$props.children || []).some(function (child) {
  46796. var childValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(child);
  46797. return childValue === key && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getValueByProp"])(child, 'disabled');
  46798. });
  46799. },
  46800. forcePopupAlign: function forcePopupAlign() {
  46801. if (!this.$data._open) {
  46802. return;
  46803. }
  46804. if (this.selectTriggerRef && this.selectTriggerRef.triggerRef) {
  46805. this.selectTriggerRef.triggerRef.forcePopupAlign();
  46806. }
  46807. },
  46808. renderFilterOptions: function renderFilterOptions() {
  46809. var h = this.$createElement;
  46810. var inputValue = this.$data._inputValue;
  46811. var _$props3 = this.$props,
  46812. children = _$props3.children,
  46813. tags = _$props3.tags,
  46814. notFoundContent = _$props3.notFoundContent;
  46815. var menuItems = [];
  46816. var childrenKeys = [];
  46817. var empty = false;
  46818. var options = this.renderFilterOptionsFromChildren(children, childrenKeys, menuItems);
  46819. if (tags) {
  46820. // tags value must be string
  46821. var value = this.$data._value;
  46822. value = value.filter(function (singleValue) {
  46823. return childrenKeys.indexOf(singleValue) === -1 && (!inputValue || String(singleValue).indexOf(String(inputValue)) > -1);
  46824. });
  46825. // sort by length
  46826. value.sort(function (val1, val2) {
  46827. return val1.length - val2.length;
  46828. });
  46829. value.forEach(function (singleValue) {
  46830. var key = singleValue;
  46831. var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"], {
  46832. role: 'option'
  46833. });
  46834. var menuItem = h(
  46835. _vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
  46836. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"] }, { attrs: attrs }, {
  46837. attrs: { value: key },
  46838. key: key }]),
  46839. [key]
  46840. );
  46841. options.push(menuItem);
  46842. menuItems.push(menuItem);
  46843. });
  46844. // ref: https://github.com/ant-design/ant-design/issues/14090
  46845. if (inputValue && menuItems.every(function (option) {
  46846. return Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(option) !== inputValue;
  46847. })) {
  46848. var p = {
  46849. attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"],
  46850. key: inputValue,
  46851. props: {
  46852. value: inputValue,
  46853. role: 'option'
  46854. },
  46855. style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
  46856. };
  46857. options.unshift(h(
  46858. _vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
  46859. p,
  46860. [inputValue]
  46861. ));
  46862. }
  46863. }
  46864. if (!options.length && notFoundContent) {
  46865. empty = true;
  46866. var _p = {
  46867. attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"],
  46868. key: 'NOT_FOUND',
  46869. props: {
  46870. value: 'NOT_FOUND',
  46871. disabled: true,
  46872. role: 'option'
  46873. },
  46874. style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
  46875. };
  46876. options = [h(
  46877. _vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
  46878. _p,
  46879. [notFoundContent]
  46880. )];
  46881. }
  46882. return { empty: empty, options: options };
  46883. },
  46884. renderFilterOptionsFromChildren: function renderFilterOptionsFromChildren() {
  46885. var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  46886. var _this13 = this;
  46887. var childrenKeys = arguments[1];
  46888. var menuItems = arguments[2];
  46889. var h = this.$createElement;
  46890. var sel = [];
  46891. var props = this.$props;
  46892. var inputValue = this.$data._inputValue;
  46893. var tags = props.tags;
  46894. children.forEach(function (child) {
  46895. if (!child.data || child.data.slot !== undefined) {
  46896. return;
  46897. }
  46898. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).isSelectOptGroup) {
  46899. var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(child, 'label');
  46900. var key = child.key;
  46901. if (!key && typeof label === 'string') {
  46902. key = label;
  46903. } else if (!label && key) {
  46904. label = key;
  46905. }
  46906. var childChildren = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlots"])(child)['default'];
  46907. childChildren = typeof childChildren === 'function' ? childChildren() : childChildren;
  46908. // Match option group label
  46909. if (inputValue && _this13._filterOption(inputValue, child)) {
  46910. var innerItems = childChildren.map(function (subChild) {
  46911. var childValueSub = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(subChild) || subChild.key;
  46912. return h(
  46913. _vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
  46914. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: childValueSub, attrs: { value: childValueSub }
  46915. }, subChild.data]),
  46916. [subChild.componentOptions.children]
  46917. );
  46918. });
  46919. sel.push(h(
  46920. _vc_menu__WEBPACK_IMPORTED_MODULE_7__["ItemGroup"],
  46921. { key: key, attrs: { title: label },
  46922. 'class': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getClass"])(child) },
  46923. [innerItems]
  46924. ));
  46925. // Not match
  46926. } else {
  46927. var _innerItems = _this13.renderFilterOptionsFromChildren(childChildren, childrenKeys, menuItems);
  46928. if (_innerItems.length) {
  46929. sel.push(h(
  46930. _vc_menu__WEBPACK_IMPORTED_MODULE_7__["ItemGroup"],
  46931. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: key, attrs: { title: label }
  46932. }, child.data]),
  46933. [_innerItems]
  46934. ));
  46935. }
  46936. }
  46937. return;
  46938. }
  46939. warning__WEBPACK_IMPORTED_MODULE_8___default()(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).isSelectOption, 'the children of `Select` should be `Select.Option` or `Select.OptGroup`, ' + ('instead of `' + (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).name || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child)) + '`.'));
  46940. var childValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(child);
  46941. Object(_util__WEBPACK_IMPORTED_MODULE_19__["validateOptionValue"])(childValue, _this13.$props);
  46942. if (_this13._filterOption(inputValue, child)) {
  46943. var p = {
  46944. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"], Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getAttrs"])(child)),
  46945. key: childValue,
  46946. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  46947. value: childValue
  46948. }, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getPropsData"])(child), {
  46949. role: 'option'
  46950. }),
  46951. style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"],
  46952. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getEvents"])(child),
  46953. 'class': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getClass"])(child)
  46954. };
  46955. var menuItem = h(
  46956. _vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
  46957. p,
  46958. [child.componentOptions.children]
  46959. );
  46960. sel.push(menuItem);
  46961. menuItems.push(menuItem);
  46962. }
  46963. if (tags) {
  46964. childrenKeys.push(childValue);
  46965. }
  46966. });
  46967. return sel;
  46968. },
  46969. renderTopControlNode: function renderTopControlNode() {
  46970. var _this14 = this;
  46971. var h = this.$createElement;
  46972. var props = this.$props;
  46973. var _$data3 = this.$data,
  46974. value = _$data3._value,
  46975. inputValue = _$data3._inputValue,
  46976. open = _$data3._open;
  46977. var choiceTransitionName = props.choiceTransitionName,
  46978. prefixCls = props.prefixCls,
  46979. maxTagTextLength = props.maxTagTextLength,
  46980. maxTagCount = props.maxTagCount,
  46981. maxTagPlaceholder = props.maxTagPlaceholder,
  46982. showSearch = props.showSearch;
  46983. var removeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'removeIcon');
  46984. var className = prefixCls + '-selection__rendered';
  46985. // search input is inside topControlNode in single, multiple & combobox. 2016/04/13
  46986. var innerNode = null;
  46987. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(props)) {
  46988. var selectedValue = null;
  46989. if (value.length) {
  46990. var showSelectedValue = false;
  46991. var opacity = 1;
  46992. if (!showSearch) {
  46993. showSelectedValue = true;
  46994. } else if (open) {
  46995. showSelectedValue = !inputValue;
  46996. if (showSelectedValue) {
  46997. opacity = 0.4;
  46998. }
  46999. } else {
  47000. showSelectedValue = true;
  47001. }
  47002. var singleValue = value[0];
  47003. var _getOptionInfoBySingl3 = this.getOptionInfoBySingleValue(singleValue),
  47004. label = _getOptionInfoBySingl3.label,
  47005. title = _getOptionInfoBySingl3.title;
  47006. selectedValue = h(
  47007. 'div',
  47008. {
  47009. key: 'value',
  47010. 'class': prefixCls + '-selection-selected-value',
  47011. attrs: { title: Object(_util__WEBPACK_IMPORTED_MODULE_19__["toTitle"])(title || label)
  47012. },
  47013. style: {
  47014. display: showSelectedValue ? 'block' : 'none',
  47015. opacity: opacity
  47016. }
  47017. },
  47018. [label]
  47019. );
  47020. }
  47021. if (!showSearch) {
  47022. innerNode = [selectedValue];
  47023. } else {
  47024. innerNode = [selectedValue, h(
  47025. 'div',
  47026. {
  47027. 'class': prefixCls + '-search ' + prefixCls + '-search--inline',
  47028. key: 'input',
  47029. style: {
  47030. display: open ? 'block' : 'none'
  47031. }
  47032. },
  47033. [this._getInputElement()]
  47034. )];
  47035. }
  47036. } else {
  47037. var selectedValueNodes = [];
  47038. var limitedCountValue = value;
  47039. var maxTagPlaceholderEl = void 0;
  47040. if (maxTagCount !== undefined && value.length > maxTagCount) {
  47041. limitedCountValue = limitedCountValue.slice(0, maxTagCount);
  47042. var omittedValues = this.getVLForOnChange(value.slice(maxTagCount, value.length));
  47043. var content = '+ ' + (value.length - maxTagCount) + ' ...';
  47044. if (maxTagPlaceholder) {
  47045. content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;
  47046. }
  47047. var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"], {
  47048. role: 'presentation',
  47049. title: Object(_util__WEBPACK_IMPORTED_MODULE_19__["toTitle"])(content)
  47050. });
  47051. maxTagPlaceholderEl = h(
  47052. 'li',
  47053. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  47054. style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
  47055. }, { attrs: attrs }, {
  47056. on: {
  47057. 'mousedown': _util__WEBPACK_IMPORTED_MODULE_19__["preventDefaultEvent"]
  47058. },
  47059. 'class': prefixCls + '-selection__choice ' + prefixCls + '-selection__choice__disabled',
  47060. key: 'maxTagPlaceholder'
  47061. }]),
  47062. [h(
  47063. 'div',
  47064. { 'class': prefixCls + '-selection__choice__content' },
  47065. [content]
  47066. )]
  47067. );
  47068. }
  47069. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props)) {
  47070. selectedValueNodes = limitedCountValue.map(function (singleValue) {
  47071. var info = _this14.getOptionInfoBySingleValue(singleValue);
  47072. var content = info.label;
  47073. var title = info.title || content;
  47074. if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) {
  47075. content = content.slice(0, maxTagTextLength) + '...';
  47076. }
  47077. var disabled = _this14.isChildDisabled(singleValue);
  47078. var choiceClassName = disabled ? prefixCls + '-selection__choice ' + prefixCls + '-selection__choice__disabled' : prefixCls + '-selection__choice';
  47079. // attrs 放在一起,避免动态title混乱问题,很奇怪的问题 https://github.com/vueComponent/ant-design-vue/issues/588
  47080. var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"], {
  47081. role: 'presentation',
  47082. title: Object(_util__WEBPACK_IMPORTED_MODULE_19__["toTitle"])(title)
  47083. });
  47084. return h(
  47085. 'li',
  47086. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  47087. style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
  47088. }, { attrs: attrs }, {
  47089. on: {
  47090. 'mousedown': _util__WEBPACK_IMPORTED_MODULE_19__["preventDefaultEvent"]
  47091. },
  47092. 'class': choiceClassName,
  47093. key: singleValue || SELECT_EMPTY_VALUE_KEY
  47094. }]),
  47095. [h(
  47096. 'div',
  47097. { 'class': prefixCls + '-selection__choice__content' },
  47098. [content]
  47099. ), disabled ? null : h(
  47100. 'span',
  47101. {
  47102. on: {
  47103. 'click': function click(event) {
  47104. _this14.removeSelected(singleValue, event);
  47105. }
  47106. },
  47107. 'class': prefixCls + '-selection__choice__remove'
  47108. },
  47109. [removeIcon || h(
  47110. 'i',
  47111. { 'class': prefixCls + '-selection__choice__remove-icon' },
  47112. ['\xD7']
  47113. )]
  47114. )]
  47115. );
  47116. });
  47117. }
  47118. if (maxTagPlaceholderEl) {
  47119. selectedValueNodes.push(maxTagPlaceholderEl);
  47120. }
  47121. selectedValueNodes.push(h(
  47122. 'li',
  47123. { 'class': prefixCls + '-search ' + prefixCls + '-search--inline', key: '__input' },
  47124. [this._getInputElement()]
  47125. ));
  47126. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props) && choiceTransitionName) {
  47127. var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_13__["default"])(choiceTransitionName, {
  47128. tag: 'ul',
  47129. afterLeave: this.onChoiceAnimationLeave
  47130. });
  47131. innerNode = h(
  47132. 'transition-group',
  47133. transitionProps,
  47134. [selectedValueNodes]
  47135. );
  47136. } else {
  47137. innerNode = h('ul', [selectedValueNodes]);
  47138. }
  47139. }
  47140. return h(
  47141. 'div',
  47142. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  47143. 'class': className
  47144. }, {
  47145. directives: [{
  47146. name: 'ant-ref',
  47147. value: this.saveTopCtrlRef
  47148. }]
  47149. }, {
  47150. on: {
  47151. 'click': this.topCtrlContainerClick
  47152. }
  47153. }]),
  47154. [this.getPlaceholderElement(), innerNode]
  47155. );
  47156. },
  47157. renderArrow: function renderArrow(multiple) {
  47158. var h = this.$createElement;
  47159. // showArrow : Set to true if not multiple by default but keep set value.
  47160. var _$props4 = this.$props,
  47161. _$props4$showArrow = _$props4.showArrow,
  47162. showArrow = _$props4$showArrow === undefined ? !multiple : _$props4$showArrow,
  47163. loading = _$props4.loading,
  47164. prefixCls = _$props4.prefixCls;
  47165. var inputIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'inputIcon');
  47166. if (!showArrow && !loading) {
  47167. return null;
  47168. }
  47169. // if loading have loading icon
  47170. var defaultIcon = loading ? h('i', { 'class': prefixCls + '-arrow-loading' }) : h('i', { 'class': prefixCls + '-arrow-icon' });
  47171. return h(
  47172. 'span',
  47173. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  47174. key: 'arrow',
  47175. 'class': prefixCls + '-arrow',
  47176. style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
  47177. }, { attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"] }, {
  47178. on: {
  47179. 'click': this.onArrowClick
  47180. },
  47181. ref: 'arrow'
  47182. }]),
  47183. [inputIcon || defaultIcon]
  47184. );
  47185. },
  47186. topCtrlContainerClick: function topCtrlContainerClick(e) {
  47187. if (this.$data._open && !Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(this.$props)) {
  47188. e.stopPropagation();
  47189. }
  47190. },
  47191. renderClear: function renderClear() {
  47192. var h = this.$createElement;
  47193. var _$props5 = this.$props,
  47194. prefixCls = _$props5.prefixCls,
  47195. allowClear = _$props5.allowClear;
  47196. var _$data4 = this.$data,
  47197. value = _$data4._value,
  47198. inputValue = _$data4._inputValue;
  47199. var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'clearIcon');
  47200. var clear = h(
  47201. 'span',
  47202. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  47203. key: 'clear',
  47204. 'class': prefixCls + '-selection__clear',
  47205. on: {
  47206. 'mousedown': _util__WEBPACK_IMPORTED_MODULE_19__["preventDefaultEvent"]
  47207. },
  47208. style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
  47209. }, { attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"] }, {
  47210. on: {
  47211. 'click': this.onClearSelection
  47212. }
  47213. }]),
  47214. [clearIcon || h(
  47215. 'i',
  47216. { 'class': prefixCls + '-selection__clear-icon' },
  47217. ['\xD7']
  47218. )]
  47219. );
  47220. if (!allowClear) {
  47221. return null;
  47222. }
  47223. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(this.$props)) {
  47224. if (inputValue) {
  47225. return clear;
  47226. }
  47227. return null;
  47228. }
  47229. if (inputValue || value.length) {
  47230. return clear;
  47231. }
  47232. return null;
  47233. },
  47234. selectionRefClick: function selectionRefClick() {
  47235. //e.stopPropagation();
  47236. if (!this.disabled) {
  47237. var input = this.getInputDOMNode();
  47238. if (this._focused && this.$data._open) {
  47239. // this._focused = false;
  47240. this.setOpenState(false, false);
  47241. input && input.blur();
  47242. } else {
  47243. this.clearBlurTime();
  47244. //this._focused = true;
  47245. this.setOpenState(true, true);
  47246. input && input.focus();
  47247. }
  47248. }
  47249. },
  47250. selectionRefFocus: function selectionRefFocus(e) {
  47251. if (this._focused || this.disabled || Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props)) {
  47252. e.preventDefault();
  47253. return;
  47254. }
  47255. this._focused = true;
  47256. this.updateFocusClassName();
  47257. this.$emit('focus');
  47258. },
  47259. selectionRefBlur: function selectionRefBlur(e) {
  47260. if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props)) {
  47261. e.preventDefault();
  47262. return;
  47263. }
  47264. this.inputBlur(e);
  47265. }
  47266. },
  47267. render: function render() {
  47268. var _rootCls;
  47269. var h = arguments[0];
  47270. var props = this.$props;
  47271. var multiple = Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props);
  47272. // Default set showArrow to true if not set (not set directly in defaultProps to handle multiple case)
  47273. var _props$showArrow = props.showArrow,
  47274. showArrow = _props$showArrow === undefined ? true : _props$showArrow;
  47275. var state = this.$data;
  47276. var disabled = props.disabled,
  47277. prefixCls = props.prefixCls,
  47278. loading = props.loading;
  47279. var ctrlNode = this.renderTopControlNode();
  47280. var _$data5 = this.$data,
  47281. open = _$data5._open,
  47282. inputValue = _$data5._inputValue,
  47283. value = _$data5._value;
  47284. if (open) {
  47285. var filterOptions = this.renderFilterOptions();
  47286. this._empty = filterOptions.empty;
  47287. this._options = filterOptions.options;
  47288. }
  47289. var realOpen = this.getRealOpenState();
  47290. var empty = this._empty;
  47291. var options = this._options || [];
  47292. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this),
  47293. _getListeners$mouseen = _getListeners.mouseenter,
  47294. mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
  47295. _getListeners$mousele = _getListeners.mouseleave,
  47296. mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele,
  47297. _getListeners$popupSc = _getListeners.popupScroll,
  47298. popupScroll = _getListeners$popupSc === undefined ? noop : _getListeners$popupSc;
  47299. var selectionProps = {
  47300. props: {},
  47301. attrs: {
  47302. role: 'combobox',
  47303. 'aria-autocomplete': 'list',
  47304. 'aria-haspopup': 'true',
  47305. 'aria-expanded': realOpen,
  47306. 'aria-controls': this.$data._ariaId
  47307. },
  47308. on: {
  47309. // click: this.selectionRefClick,
  47310. },
  47311. 'class': prefixCls + '-selection ' + prefixCls + '-selection--' + (multiple ? 'multiple' : 'single'),
  47312. // directives: [
  47313. // {
  47314. // name: 'ant-ref',
  47315. // value: this.saveSelectionRef,
  47316. // },
  47317. // ],
  47318. key: 'selection'
  47319. };
  47320. //if (!isMultipleOrTagsOrCombobox(props)) {
  47321. // selectionProps.on.keydown = this.onKeyDown;
  47322. // selectionProps.on.focus = this.selectionRefFocus;
  47323. // selectionProps.on.blur = this.selectionRefBlur;
  47324. // selectionProps.attrs.tabIndex = props.disabled ? -1 : props.tabIndex;
  47325. //}
  47326. var extraSelectionProps = { attrs: { tabIndex: -1 } };
  47327. if (!Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(props)) {
  47328. extraSelectionProps.attrs.tabIndex = props.disabled ? -1 : props.tabIndex;
  47329. }
  47330. var rootCls = (_rootCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-open', open), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-focused', open || !!this._focused), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-combobox', Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(props)), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-enabled', !disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-allow-clear', !!props.allowClear), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-no-arrow', !showArrow), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-loading', !!loading), _rootCls);
  47331. return h(
  47332. _SelectTrigger__WEBPACK_IMPORTED_MODULE_18__["default"],
  47333. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  47334. attrs: {
  47335. dropdownAlign: props.dropdownAlign,
  47336. dropdownClassName: props.dropdownClassName,
  47337. dropdownMatchSelectWidth: props.dropdownMatchSelectWidth,
  47338. defaultActiveFirstOption: props.defaultActiveFirstOption,
  47339. dropdownMenuStyle: props.dropdownMenuStyle,
  47340. transitionName: props.transitionName,
  47341. animation: props.animation,
  47342. prefixCls: props.prefixCls,
  47343. dropdownStyle: props.dropdownStyle,
  47344. combobox: props.combobox,
  47345. showSearch: props.showSearch,
  47346. options: options,
  47347. empty: empty,
  47348. multiple: multiple,
  47349. disabled: disabled,
  47350. visible: realOpen,
  47351. inputValue: inputValue,
  47352. value: value,
  47353. backfillValue: state._backfillValue,
  47354. firstActiveValue: props.firstActiveValue,
  47355. getPopupContainer: props.getPopupContainer,
  47356. showAction: props.showAction,
  47357. menuItemSelectedIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'menuItemSelectedIcon')
  47358. },
  47359. on: {
  47360. 'dropdownVisibleChange': this.onDropdownVisibleChange,
  47361. 'menuSelect': this.onMenuSelect,
  47362. 'menuDeselect': this.onMenuDeselect,
  47363. 'popupScroll': popupScroll,
  47364. 'popupFocus': this.onPopupFocus,
  47365. 'mouseenter': mouseenter,
  47366. 'mouseleave': mouseleave
  47367. }
  47368. }, {
  47369. directives: [{
  47370. name: 'ant-ref',
  47371. value: this.saveSelectTriggerRef
  47372. }]
  47373. }, {
  47374. attrs: {
  47375. dropdownRender: props.dropdownRender,
  47376. ariaId: this.$data._ariaId
  47377. }
  47378. }]),
  47379. [h(
  47380. 'div',
  47381. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  47382. directives: [{
  47383. name: 'ant-ref',
  47384. value: chaining(this.saveRootRef, this.saveSelectionRef)
  47385. }]
  47386. }, {
  47387. style: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getStyle"])(this),
  47388. 'class': classnames__WEBPACK_IMPORTED_MODULE_5___default()(rootCls),
  47389. on: {
  47390. 'mousedown': this.markMouseDown,
  47391. 'mouseup': this.markMouseLeave,
  47392. 'mouseout': this.markMouseLeave
  47393. }
  47394. }, extraSelectionProps, {
  47395. on: {
  47396. 'blur': this.selectionRefBlur,
  47397. 'focus': this.selectionRefFocus,
  47398. 'click': this.selectionRefClick,
  47399. 'keydown': Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(props) ? noop : this.onKeyDown
  47400. }
  47401. }]),
  47402. [h(
  47403. 'div',
  47404. selectionProps,
  47405. [ctrlNode, this.renderClear(), this.renderArrow(!!multiple)]
  47406. )]
  47407. )]
  47408. );
  47409. }
  47410. };
  47411. /* harmony default export */ __webpack_exports__["default"] = (Object(_util_proxyComponent__WEBPACK_IMPORTED_MODULE_16__["default"])(Select));
  47412. /***/ }),
  47413. /***/ "./components/vc-select/SelectTrigger.jsx":
  47414. /*!************************************************!*\
  47415. !*** ./components/vc-select/SelectTrigger.jsx ***!
  47416. \************************************************/
  47417. /*! exports provided: default */
  47418. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47419. "use strict";
  47420. __webpack_require__.r(__webpack_exports__);
  47421. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  47422. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  47423. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  47424. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  47425. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  47426. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  47427. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
  47428. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_3__);
  47429. /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
  47430. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  47431. /* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DropdownMenu */ "./components/vc-select/DropdownMenu.jsx");
  47432. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util */ "./components/vc-select/util.js");
  47433. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  47434. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  47435. var BUILT_IN_PLACEMENTS = {
  47436. bottomLeft: {
  47437. points: ['tl', 'bl'],
  47438. offset: [0, 4],
  47439. overflow: {
  47440. adjustX: 0,
  47441. adjustY: 1
  47442. }
  47443. },
  47444. topLeft: {
  47445. points: ['bl', 'tl'],
  47446. offset: [0, -4],
  47447. overflow: {
  47448. adjustX: 0,
  47449. adjustY: 1
  47450. }
  47451. }
  47452. };
  47453. /* harmony default export */ __webpack_exports__["default"] = ({
  47454. name: 'SelectTrigger',
  47455. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
  47456. props: {
  47457. // onPopupFocus: PropTypes.func,
  47458. // onPopupScroll: PropTypes.func,
  47459. dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  47460. defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  47461. dropdownAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
  47462. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  47463. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  47464. showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  47465. dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  47466. dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
  47467. dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
  47468. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  47469. inputValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  47470. filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  47471. empty: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  47472. options: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  47473. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  47474. popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  47475. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
  47476. // children: PropTypes.any,
  47477. showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string),
  47478. combobox: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
  47479. animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  47480. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  47481. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func,
  47482. backfillValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  47483. menuItemSelectedIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  47484. dropdownRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func,
  47485. ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string
  47486. },
  47487. data: function data() {
  47488. return {
  47489. dropdownWidth: 0
  47490. };
  47491. },
  47492. created: function created() {
  47493. this.rafInstance = null;
  47494. this.saveDropdownMenuRef = Object(_util__WEBPACK_IMPORTED_MODULE_7__["saveRef"])(this, 'dropdownMenuRef');
  47495. this.saveTriggerRef = Object(_util__WEBPACK_IMPORTED_MODULE_7__["saveRef"])(this, 'triggerRef');
  47496. },
  47497. mounted: function mounted() {
  47498. var _this = this;
  47499. this.$nextTick(function () {
  47500. _this.setDropdownWidth();
  47501. });
  47502. },
  47503. updated: function updated() {
  47504. var _this2 = this;
  47505. this.$nextTick(function () {
  47506. _this2.setDropdownWidth();
  47507. });
  47508. },
  47509. beforeDestroy: function beforeDestroy() {
  47510. this.cancelRafInstance();
  47511. },
  47512. methods: {
  47513. setDropdownWidth: function setDropdownWidth() {
  47514. var _this3 = this;
  47515. this.cancelRafInstance();
  47516. this.rafInstance = raf__WEBPACK_IMPORTED_MODULE_3___default()(function () {
  47517. var width = _this3.$el.offsetWidth;
  47518. if (width !== _this3.dropdownWidth) {
  47519. _this3.setState({ dropdownWidth: width });
  47520. }
  47521. });
  47522. },
  47523. cancelRafInstance: function cancelRafInstance() {
  47524. if (this.rafInstance) {
  47525. raf__WEBPACK_IMPORTED_MODULE_3___default.a.cancel(this.rafInstance);
  47526. }
  47527. },
  47528. getInnerMenu: function getInnerMenu() {
  47529. return this.dropdownMenuRef && this.dropdownMenuRef.$refs.menuRef;
  47530. },
  47531. getPopupDOMNode: function getPopupDOMNode() {
  47532. return this.triggerRef.getPopupDomNode();
  47533. },
  47534. getDropdownElement: function getDropdownElement(newProps) {
  47535. var h = this.$createElement;
  47536. var value = this.value,
  47537. firstActiveValue = this.firstActiveValue,
  47538. defaultActiveFirstOption = this.defaultActiveFirstOption,
  47539. dropdownMenuStyle = this.dropdownMenuStyle,
  47540. getDropdownPrefixCls = this.getDropdownPrefixCls,
  47541. backfillValue = this.backfillValue,
  47542. menuItemSelectedIcon = this.menuItemSelectedIcon;
  47543. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this),
  47544. menuSelect = _getListeners.menuSelect,
  47545. menuDeselect = _getListeners.menuDeselect,
  47546. popupScroll = _getListeners.popupScroll;
  47547. var props = this.$props;
  47548. var dropdownRender = props.dropdownRender,
  47549. ariaId = props.ariaId;
  47550. var dropdownMenuProps = {
  47551. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, newProps.props, {
  47552. ariaId: ariaId,
  47553. prefixCls: getDropdownPrefixCls(),
  47554. value: value,
  47555. firstActiveValue: firstActiveValue,
  47556. defaultActiveFirstOption: defaultActiveFirstOption,
  47557. dropdownMenuStyle: dropdownMenuStyle,
  47558. backfillValue: backfillValue,
  47559. menuItemSelectedIcon: menuItemSelectedIcon
  47560. }),
  47561. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, newProps.on, {
  47562. menuSelect: menuSelect,
  47563. menuDeselect: menuDeselect,
  47564. popupScroll: popupScroll
  47565. }),
  47566. directives: [{
  47567. name: 'ant-ref',
  47568. value: this.saveDropdownMenuRef
  47569. }]
  47570. };
  47571. var menuNode = h(_DropdownMenu__WEBPACK_IMPORTED_MODULE_6__["default"], dropdownMenuProps);
  47572. if (dropdownRender) {
  47573. return dropdownRender(menuNode, props);
  47574. }
  47575. return null;
  47576. },
  47577. getDropdownTransitionName: function getDropdownTransitionName() {
  47578. var props = this.$props;
  47579. var transitionName = props.transitionName;
  47580. if (!transitionName && props.animation) {
  47581. transitionName = this.getDropdownPrefixCls() + '-' + props.animation;
  47582. }
  47583. return transitionName;
  47584. },
  47585. getDropdownPrefixCls: function getDropdownPrefixCls() {
  47586. return this.prefixCls + '-dropdown';
  47587. }
  47588. },
  47589. render: function render() {
  47590. var _popupClassName;
  47591. var h = arguments[0];
  47592. var $props = this.$props,
  47593. $slots = this.$slots;
  47594. var multiple = $props.multiple,
  47595. visible = $props.visible,
  47596. inputValue = $props.inputValue,
  47597. dropdownAlign = $props.dropdownAlign,
  47598. disabled = $props.disabled,
  47599. showSearch = $props.showSearch,
  47600. dropdownClassName = $props.dropdownClassName,
  47601. dropdownStyle = $props.dropdownStyle,
  47602. dropdownMatchSelectWidth = $props.dropdownMatchSelectWidth,
  47603. options = $props.options,
  47604. getPopupContainer = $props.getPopupContainer,
  47605. showAction = $props.showAction,
  47606. empty = $props.empty;
  47607. var _getListeners2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this),
  47608. mouseenter = _getListeners2.mouseenter,
  47609. mouseleave = _getListeners2.mouseleave,
  47610. popupFocus = _getListeners2.popupFocus,
  47611. dropdownVisibleChange = _getListeners2.dropdownVisibleChange;
  47612. var dropdownPrefixCls = this.getDropdownPrefixCls();
  47613. var popupClassName = (_popupClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_popupClassName, dropdownClassName, !!dropdownClassName), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_popupClassName, dropdownPrefixCls + '--' + (multiple ? 'multiple' : 'single'), 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_popupClassName, dropdownPrefixCls + '--empty', empty), _popupClassName);
  47614. var popupElement = this.getDropdownElement({
  47615. props: {
  47616. menuItems: options,
  47617. multiple: multiple,
  47618. inputValue: inputValue,
  47619. visible: visible
  47620. },
  47621. on: {
  47622. popupFocus: popupFocus
  47623. }
  47624. });
  47625. var hideAction = void 0;
  47626. if (disabled) {
  47627. hideAction = [];
  47628. } else if (Object(_util__WEBPACK_IMPORTED_MODULE_7__["isSingleMode"])($props) && !showSearch) {
  47629. hideAction = ['click'];
  47630. } else {
  47631. hideAction = ['blur'];
  47632. }
  47633. var popupStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, dropdownStyle);
  47634. var widthProp = dropdownMatchSelectWidth ? 'width' : 'minWidth';
  47635. if (this.dropdownWidth) {
  47636. popupStyle[widthProp] = this.dropdownWidth + 'px';
  47637. }
  47638. var triggerProps = {
  47639. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, $props, {
  47640. showAction: disabled ? [] : showAction,
  47641. hideAction: hideAction,
  47642. ref: 'triggerRef',
  47643. popupPlacement: 'bottomLeft',
  47644. builtinPlacements: BUILT_IN_PLACEMENTS,
  47645. prefixCls: dropdownPrefixCls,
  47646. popupTransitionName: this.getDropdownTransitionName(),
  47647. popupAlign: dropdownAlign,
  47648. popupVisible: visible,
  47649. getPopupContainer: getPopupContainer,
  47650. popupClassName: classnames__WEBPACK_IMPORTED_MODULE_2___default()(popupClassName),
  47651. popupStyle: popupStyle
  47652. }),
  47653. on: {
  47654. popupVisibleChange: dropdownVisibleChange
  47655. },
  47656. directives: [{
  47657. name: 'ant-ref',
  47658. value: this.saveTriggerRef
  47659. }]
  47660. };
  47661. if (mouseenter) {
  47662. triggerProps.on.mouseenter = mouseenter;
  47663. }
  47664. if (mouseleave) {
  47665. triggerProps.on.mouseleave = mouseleave;
  47666. }
  47667. return h(
  47668. _vc_trigger__WEBPACK_IMPORTED_MODULE_4__["default"],
  47669. triggerProps,
  47670. [$slots['default'], h(
  47671. 'template',
  47672. { slot: 'popup' },
  47673. [popupElement]
  47674. )]
  47675. );
  47676. }
  47677. });
  47678. /***/ }),
  47679. /***/ "./components/vc-select/index.js":
  47680. /*!***************************************!*\
  47681. !*** ./components/vc-select/index.js ***!
  47682. \***************************************/
  47683. /*! exports provided: Select, Option, OptGroup, SelectPropTypes, default */
  47684. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47685. "use strict";
  47686. __webpack_require__.r(__webpack_exports__);
  47687. /* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Select */ "./components/vc-select/Select.jsx");
  47688. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Select", function() { return _Select__WEBPACK_IMPORTED_MODULE_0__["Select"]; });
  47689. /* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Option */ "./components/vc-select/Option.jsx");
  47690. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Option", function() { return _Option__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  47691. /* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PropTypes */ "./components/vc-select/PropTypes.js");
  47692. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectPropTypes", function() { return _PropTypes__WEBPACK_IMPORTED_MODULE_2__["SelectPropTypes"]; });
  47693. /* harmony import */ var _OptGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./OptGroup */ "./components/vc-select/OptGroup.jsx");
  47694. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OptGroup", function() { return _OptGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  47695. // based on vc-select 9.2.2
  47696. _Select__WEBPACK_IMPORTED_MODULE_0__["Select"].Option = _Option__WEBPACK_IMPORTED_MODULE_1__["default"];
  47697. _Select__WEBPACK_IMPORTED_MODULE_0__["Select"].OptGroup = _OptGroup__WEBPACK_IMPORTED_MODULE_3__["default"];
  47698. _Select__WEBPACK_IMPORTED_MODULE_0__["default"].Option = _Option__WEBPACK_IMPORTED_MODULE_1__["default"];
  47699. _Select__WEBPACK_IMPORTED_MODULE_0__["default"].OptGroup = _OptGroup__WEBPACK_IMPORTED_MODULE_3__["default"];
  47700. /* harmony default export */ __webpack_exports__["default"] = (_Select__WEBPACK_IMPORTED_MODULE_0__["default"]);
  47701. /***/ }),
  47702. /***/ "./components/vc-select/util.js":
  47703. /*!**************************************!*\
  47704. !*** ./components/vc-select/util.js ***!
  47705. \**************************************/
  47706. /*! exports provided: toTitle, getValuePropValue, getPropValue, isMultiple, isCombobox, isMultipleOrTags, isMultipleOrTagsOrCombobox, isSingleMode, toArray, getMapKey, preventDefaultEvent, findIndexInValueBySingleValue, getLabelFromPropsValue, getSelectKeys, UNSELECTABLE_STYLE, UNSELECTABLE_ATTRIBUTE, findFirstMenuItem, includesSeparators, splitBySeparators, defaultFilterFn, validateOptionValue, saveRef, generateUUID */
  47707. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47708. "use strict";
  47709. __webpack_require__.r(__webpack_exports__);
  47710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toTitle", function() { return toTitle; });
  47711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValuePropValue", function() { return getValuePropValue; });
  47712. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPropValue", function() { return getPropValue; });
  47713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMultiple", function() { return isMultiple; });
  47714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCombobox", function() { return isCombobox; });
  47715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMultipleOrTags", function() { return isMultipleOrTags; });
  47716. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMultipleOrTagsOrCombobox", function() { return isMultipleOrTagsOrCombobox; });
  47717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSingleMode", function() { return isSingleMode; });
  47718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; });
  47719. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMapKey", function() { return getMapKey; });
  47720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "preventDefaultEvent", function() { return preventDefaultEvent; });
  47721. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIndexInValueBySingleValue", function() { return findIndexInValueBySingleValue; });
  47722. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLabelFromPropsValue", function() { return getLabelFromPropsValue; });
  47723. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSelectKeys", function() { return getSelectKeys; });
  47724. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSELECTABLE_STYLE", function() { return UNSELECTABLE_STYLE; });
  47725. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSELECTABLE_ATTRIBUTE", function() { return UNSELECTABLE_ATTRIBUTE; });
  47726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findFirstMenuItem", function() { return findFirstMenuItem; });
  47727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "includesSeparators", function() { return includesSeparators; });
  47728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitBySeparators", function() { return splitBySeparators; });
  47729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultFilterFn", function() { return defaultFilterFn; });
  47730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateOptionValue", function() { return validateOptionValue; });
  47731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveRef", function() { return saveRef; });
  47732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateUUID", function() { return generateUUID; });
  47733. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  47734. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  47735. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  47736. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  47737. function toTitle(title) {
  47738. if (typeof title === 'string') {
  47739. return title.trim();
  47740. }
  47741. return '';
  47742. }
  47743. function getValuePropValue(child) {
  47744. if (!child) {
  47745. return null;
  47746. }
  47747. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getPropsData"])(child);
  47748. if ('value' in props) {
  47749. return props.value;
  47750. }
  47751. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getKey"])(child) !== undefined) {
  47752. return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getKey"])(child);
  47753. }
  47754. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getSlotOptions"])(child).isSelectOptGroup) {
  47755. var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(child, 'label');
  47756. if (label) {
  47757. return label;
  47758. }
  47759. }
  47760. throw new Error('Need at least a key or a value or a label (only for OptGroup) for ' + child);
  47761. }
  47762. function getPropValue(child, prop) {
  47763. if (prop === 'value') {
  47764. return getValuePropValue(child);
  47765. }
  47766. if (prop === 'children') {
  47767. var newChild = child.$slots ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneVNodes"])(child.$slots['default'], true) : Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneVNodes"])(child.componentOptions.children, true);
  47768. if (newChild.length === 1 && !newChild[0].tag) {
  47769. return newChild[0].text;
  47770. }
  47771. return newChild;
  47772. }
  47773. var data = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getPropsData"])(child);
  47774. if (prop in data) {
  47775. return data[prop];
  47776. } else {
  47777. return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getAttrs"])(child)[prop];
  47778. }
  47779. }
  47780. function isMultiple(props) {
  47781. return props.multiple;
  47782. }
  47783. function isCombobox(props) {
  47784. return props.combobox;
  47785. }
  47786. function isMultipleOrTags(props) {
  47787. return props.multiple || props.tags;
  47788. }
  47789. function isMultipleOrTagsOrCombobox(props) {
  47790. return isMultipleOrTags(props) || isCombobox(props);
  47791. }
  47792. function isSingleMode(props) {
  47793. return !isMultipleOrTagsOrCombobox(props);
  47794. }
  47795. function toArray(value) {
  47796. var ret = value;
  47797. if (value === undefined) {
  47798. ret = [];
  47799. } else if (!Array.isArray(value)) {
  47800. ret = [value];
  47801. }
  47802. return ret;
  47803. }
  47804. function getMapKey(value) {
  47805. return (typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value)) + '-' + value;
  47806. }
  47807. function preventDefaultEvent(e) {
  47808. e.preventDefault();
  47809. }
  47810. function findIndexInValueBySingleValue(value, singleValue) {
  47811. var index = -1;
  47812. if (value) {
  47813. for (var i = 0; i < value.length; i++) {
  47814. if (value[i] === singleValue) {
  47815. index = i;
  47816. break;
  47817. }
  47818. }
  47819. }
  47820. return index;
  47821. }
  47822. function getLabelFromPropsValue(value, key) {
  47823. var label = void 0;
  47824. value = toArray(value);
  47825. if (value) {
  47826. for (var i = 0; i < value.length; i++) {
  47827. if (value[i].key === key) {
  47828. label = value[i].label;
  47829. break;
  47830. }
  47831. }
  47832. }
  47833. return label;
  47834. }
  47835. function getSelectKeys(menuItems, value) {
  47836. if (value === null || value === undefined) {
  47837. return [];
  47838. }
  47839. var selectedKeys = [];
  47840. menuItems.forEach(function (item) {
  47841. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getSlotOptions"])(item).isMenuItemGroup) {
  47842. selectedKeys = selectedKeys.concat(getSelectKeys(item.componentOptions.children, value));
  47843. } else {
  47844. var itemValue = getValuePropValue(item);
  47845. var itemKey = item.key;
  47846. if (findIndexInValueBySingleValue(value, itemValue) !== -1 && itemKey !== undefined) {
  47847. selectedKeys.push(itemKey);
  47848. }
  47849. }
  47850. });
  47851. return selectedKeys;
  47852. }
  47853. var UNSELECTABLE_STYLE = {
  47854. userSelect: 'none',
  47855. WebkitUserSelect: 'none'
  47856. };
  47857. var UNSELECTABLE_ATTRIBUTE = {
  47858. unselectable: 'on'
  47859. };
  47860. function findFirstMenuItem(children) {
  47861. for (var i = 0; i < children.length; i++) {
  47862. var child = children[i];
  47863. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getPropsData"])(child);
  47864. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getSlotOptions"])(child).isMenuItemGroup) {
  47865. var found = findFirstMenuItem(child.componentOptions.children);
  47866. if (found) {
  47867. return found;
  47868. }
  47869. } else if (!(props.disabled || props.disabled === '')) {
  47870. return child;
  47871. }
  47872. }
  47873. return null;
  47874. }
  47875. function includesSeparators(str, separators) {
  47876. for (var i = 0; i < separators.length; ++i) {
  47877. if (str.lastIndexOf(separators[i]) > 0) {
  47878. return true;
  47879. }
  47880. }
  47881. return false;
  47882. }
  47883. function splitBySeparators(str, separators) {
  47884. var reg = new RegExp('[' + separators.join() + ']');
  47885. return str.split(reg).filter(function (token) {
  47886. return token;
  47887. });
  47888. }
  47889. function defaultFilterFn(input, child) {
  47890. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getPropsData"])(child);
  47891. if (props.disabled) {
  47892. return false;
  47893. }
  47894. var value = getPropValue(child, this.optionFilterProp);
  47895. if (value.length && value[0].text) {
  47896. value = value[0].text;
  47897. } else {
  47898. value = String(value);
  47899. }
  47900. return value.toLowerCase().indexOf(input.toLowerCase()) > -1;
  47901. }
  47902. function validateOptionValue(value, props) {
  47903. if (isSingleMode(props) || isMultiple(props)) {
  47904. return;
  47905. }
  47906. if (typeof value !== 'string') {
  47907. throw new Error('Invalid `value` of type `' + (typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value)) + '` supplied to Option, ' + 'expected `string` when `tags/combobox` is `true`.');
  47908. }
  47909. }
  47910. function saveRef(instance, name) {
  47911. return function (node) {
  47912. instance[name] = node;
  47913. };
  47914. }
  47915. function generateUUID() {
  47916. if (false) {}
  47917. var d = new Date().getTime();
  47918. var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  47919. var r = (d + Math.random() * 16) % 16 | 0;
  47920. d = Math.floor(d / 16);
  47921. return (c === 'x' ? r : r & 0x7 | 0x8).toString(16);
  47922. });
  47923. return uuid;
  47924. }
  47925. /***/ }),
  47926. /***/ "./components/vc-slick/src/arrows.js":
  47927. /*!*******************************************!*\
  47928. !*** ./components/vc-slick/src/arrows.js ***!
  47929. \*******************************************/
  47930. /*! exports provided: PrevArrow, NextArrow */
  47931. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47932. "use strict";
  47933. __webpack_require__.r(__webpack_exports__);
  47934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PrevArrow", function() { return PrevArrow; });
  47935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NextArrow", function() { return NextArrow; });
  47936. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  47937. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  47938. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  47939. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  47940. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  47941. /* harmony import */ var _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/innerSliderUtils */ "./components/vc-slick/src/utils/innerSliderUtils.js");
  47942. function noop() {}
  47943. var PrevArrow = {
  47944. functional: true,
  47945. clickHandler: function clickHandler(options, handle, e) {
  47946. if (e) {
  47947. e.preventDefault();
  47948. }
  47949. handle(options, e);
  47950. },
  47951. render: function render(createElement, context) {
  47952. var h = arguments[0];
  47953. var props = context.props;
  47954. var clickHandler = props.clickHandler,
  47955. infinite = props.infinite,
  47956. currentSlide = props.currentSlide,
  47957. slideCount = props.slideCount,
  47958. slidesToShow = props.slidesToShow;
  47959. var prevClasses = { 'slick-arrow': true, 'slick-prev': true };
  47960. var prevHandler = function prevHandler(e) {
  47961. if (e) {
  47962. e.preventDefault();
  47963. }
  47964. clickHandler({ message: 'previous' });
  47965. };
  47966. if (!infinite && (currentSlide === 0 || slideCount <= slidesToShow)) {
  47967. prevClasses['slick-disabled'] = true;
  47968. prevHandler = noop;
  47969. }
  47970. var prevArrowProps = {
  47971. key: '0',
  47972. domProps: {
  47973. 'data-role': 'none'
  47974. },
  47975. 'class': prevClasses,
  47976. style: { display: 'block' },
  47977. on: {
  47978. click: prevHandler
  47979. }
  47980. };
  47981. var customProps = {
  47982. currentSlide: currentSlide,
  47983. slideCount: slideCount
  47984. };
  47985. var prevArrow = void 0;
  47986. if (props.prevArrow) {
  47987. prevArrow = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(props.prevArrow(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, prevArrowProps, {
  47988. props: customProps
  47989. })), {
  47990. key: '0',
  47991. 'class': prevClasses,
  47992. style: { display: 'block' },
  47993. on: {
  47994. click: prevHandler
  47995. }
  47996. });
  47997. } else {
  47998. prevArrow = h(
  47999. 'button',
  48000. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: '0', attrs: { type: 'button' }
  48001. }, prevArrowProps]),
  48002. [' ', 'Previous']
  48003. );
  48004. }
  48005. return prevArrow;
  48006. }
  48007. };
  48008. var NextArrow = {
  48009. functional: true,
  48010. clickHandler: function clickHandler(options, handle, e) {
  48011. if (e) {
  48012. e.preventDefault();
  48013. }
  48014. handle(options, e);
  48015. },
  48016. render: function render(createElement, context) {
  48017. var h = arguments[0];
  48018. var props = context.props;
  48019. var clickHandler = props.clickHandler,
  48020. currentSlide = props.currentSlide,
  48021. slideCount = props.slideCount;
  48022. var nextClasses = { 'slick-arrow': true, 'slick-next': true };
  48023. var nextHandler = function nextHandler(e) {
  48024. if (e) {
  48025. e.preventDefault();
  48026. }
  48027. clickHandler({ message: 'next' });
  48028. };
  48029. if (!Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_3__["canGoNext"])(props)) {
  48030. nextClasses['slick-disabled'] = true;
  48031. nextHandler = noop;
  48032. }
  48033. var nextArrowProps = {
  48034. key: '1',
  48035. domProps: {
  48036. 'data-role': 'none'
  48037. },
  48038. 'class': nextClasses,
  48039. style: { display: 'block' },
  48040. on: {
  48041. click: nextHandler
  48042. }
  48043. };
  48044. var customProps = {
  48045. currentSlide: currentSlide,
  48046. slideCount: slideCount
  48047. };
  48048. var nextArrow = void 0;
  48049. if (props.nextArrow) {
  48050. nextArrow = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(props.nextArrow(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, nextArrowProps, {
  48051. props: customProps
  48052. })), {
  48053. key: '1',
  48054. 'class': nextClasses,
  48055. style: { display: 'block' },
  48056. on: {
  48057. click: nextHandler
  48058. }
  48059. });
  48060. } else {
  48061. nextArrow = h(
  48062. 'button',
  48063. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: '1', attrs: { type: 'button' }
  48064. }, nextArrowProps]),
  48065. [' ', 'Next']
  48066. );
  48067. }
  48068. return nextArrow;
  48069. }
  48070. };
  48071. /***/ }),
  48072. /***/ "./components/vc-slick/src/default-props.js":
  48073. /*!**************************************************!*\
  48074. !*** ./components/vc-slick/src/default-props.js ***!
  48075. \**************************************************/
  48076. /*! exports provided: default */
  48077. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48078. "use strict";
  48079. __webpack_require__.r(__webpack_exports__);
  48080. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  48081. var defaultProps = {
  48082. accessibility: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  48083. // 自定义高度
  48084. adaptiveHeight: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48085. afterChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
  48086. arrows: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  48087. autoplay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48088. autoplaySpeed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(3000),
  48089. beforeChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
  48090. centerMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48091. centerPadding: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('50px'),
  48092. cssEase: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('ease'),
  48093. dots: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48094. dotsClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('slick-dots'),
  48095. draggable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  48096. unslick: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48097. easing: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('linear'),
  48098. edgeFriction: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.35),
  48099. fade: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48100. focusOnSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48101. infinite: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  48102. initialSlide: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0),
  48103. lazyLoad: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
  48104. verticalSwiping: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48105. asNavFor: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
  48106. // 圆点hover是否暂停
  48107. pauseOnDotsHover: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48108. // focus是否暂停
  48109. pauseOnFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48110. // hover是否暂停
  48111. pauseOnHover: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  48112. responsive: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
  48113. rows: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
  48114. rtl: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48115. slide: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('div'),
  48116. slidesPerRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
  48117. slidesToScroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
  48118. slidesToShow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
  48119. speed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(500),
  48120. swipe: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  48121. swipeEvent: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
  48122. swipeToSlide: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48123. touchMove: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  48124. touchThreshold: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(5),
  48125. useCSS: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  48126. useTransform: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  48127. variableWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48128. vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  48129. waitForAnimate: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
  48130. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
  48131. __propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
  48132. };
  48133. /* harmony default export */ __webpack_exports__["default"] = (defaultProps);
  48134. /***/ }),
  48135. /***/ "./components/vc-slick/src/dots.js":
  48136. /*!*****************************************!*\
  48137. !*** ./components/vc-slick/src/dots.js ***!
  48138. \*****************************************/
  48139. /*! exports provided: default */
  48140. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48141. "use strict";
  48142. __webpack_require__.r(__webpack_exports__);
  48143. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  48144. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  48145. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  48146. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
  48147. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  48148. var getDotCount = function getDotCount(spec) {
  48149. var dots = void 0;
  48150. if (spec.infinite) {
  48151. dots = Math.ceil(spec.slideCount / spec.slidesToScroll);
  48152. } else {
  48153. dots = Math.ceil((spec.slideCount - spec.slidesToShow) / spec.slidesToScroll) + 1;
  48154. }
  48155. return dots;
  48156. };
  48157. /* harmony default export */ __webpack_exports__["default"] = ({
  48158. functional: true,
  48159. render: function render(createElement, context) {
  48160. var h = arguments[0];
  48161. var props = context.props,
  48162. listeners = context.listeners;
  48163. var slideCount = props.slideCount,
  48164. slidesToScroll = props.slidesToScroll,
  48165. slidesToShow = props.slidesToShow,
  48166. infinite = props.infinite,
  48167. currentSlide = props.currentSlide,
  48168. appendDots = props.appendDots,
  48169. customPaging = props.customPaging,
  48170. clickHandler = props.clickHandler,
  48171. dotsClass = props.dotsClass;
  48172. var dotCount = getDotCount({
  48173. slideCount: slideCount,
  48174. slidesToScroll: slidesToScroll,
  48175. slidesToShow: slidesToShow,
  48176. infinite: infinite
  48177. });
  48178. // Apply join & split to Array to pre-fill it for IE8
  48179. //
  48180. // Credit: http://stackoverflow.com/a/13735425/1849458
  48181. var mouseenter = listeners.mouseenter,
  48182. mouseover = listeners.mouseover,
  48183. mouseleave = listeners.mouseleave;
  48184. var mouseEvents = { mouseenter: mouseenter, mouseover: mouseover, mouseleave: mouseleave };
  48185. var dots = Array.apply(null, Array(dotCount + 1).join('0').split('')).map(function (x, i) {
  48186. var leftBound = i * slidesToScroll;
  48187. var rightBound = i * slidesToScroll + (slidesToScroll - 1);
  48188. var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
  48189. 'slick-active': currentSlide >= leftBound && currentSlide <= rightBound
  48190. });
  48191. var dotOptions = {
  48192. message: 'dots',
  48193. index: i,
  48194. slidesToScroll: slidesToScroll,
  48195. currentSlide: currentSlide
  48196. };
  48197. function onClick(e) {
  48198. // In Autoplay the focus stays on clicked button even after transition
  48199. // to next slide. That only goes away by click somewhere outside
  48200. if (e) {
  48201. e.preventDefault();
  48202. }
  48203. clickHandler(dotOptions);
  48204. }
  48205. return h(
  48206. 'li',
  48207. { key: i, 'class': className },
  48208. [Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(customPaging({ i: i }), {
  48209. on: {
  48210. click: onClick
  48211. }
  48212. })]
  48213. );
  48214. });
  48215. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(appendDots({ dots: dots }), {
  48216. 'class': dotsClass,
  48217. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, mouseEvents)
  48218. });
  48219. }
  48220. });
  48221. /***/ }),
  48222. /***/ "./components/vc-slick/src/index.js":
  48223. /*!******************************************!*\
  48224. !*** ./components/vc-slick/src/index.js ***!
  48225. \******************************************/
  48226. /*! exports provided: default */
  48227. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48228. "use strict";
  48229. __webpack_require__.r(__webpack_exports__);
  48230. /* harmony import */ var _slider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./slider */ "./components/vc-slick/src/slider.js");
  48231. // base react-slick 0.23.2
  48232. /* harmony default export */ __webpack_exports__["default"] = (_slider__WEBPACK_IMPORTED_MODULE_0__["default"]);
  48233. /***/ }),
  48234. /***/ "./components/vc-slick/src/initial-state.js":
  48235. /*!**************************************************!*\
  48236. !*** ./components/vc-slick/src/initial-state.js ***!
  48237. \**************************************************/
  48238. /*! exports provided: default */
  48239. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48240. "use strict";
  48241. __webpack_require__.r(__webpack_exports__);
  48242. var initialState = {
  48243. animating: false,
  48244. autoplaying: null,
  48245. currentDirection: 0,
  48246. currentLeft: null,
  48247. currentSlide: 0,
  48248. direction: 1,
  48249. dragging: false,
  48250. edgeDragged: false,
  48251. initialized: false,
  48252. lazyLoadedList: [],
  48253. listHeight: null,
  48254. listWidth: null,
  48255. scrolling: false,
  48256. slideCount: null,
  48257. slideHeight: null,
  48258. slideWidth: null,
  48259. swipeLeft: null,
  48260. swiped: false, // used by swipeEvent. differentites between touch and swipe.
  48261. swiping: false,
  48262. touchObject: { startX: 0, startY: 0, curX: 0, curY: 0 },
  48263. trackStyle: {},
  48264. trackWidth: 0
  48265. };
  48266. /* harmony default export */ __webpack_exports__["default"] = (initialState);
  48267. /***/ }),
  48268. /***/ "./components/vc-slick/src/inner-slider.js":
  48269. /*!*************************************************!*\
  48270. !*** ./components/vc-slick/src/inner-slider.js ***!
  48271. \*************************************************/
  48272. /*! exports provided: default */
  48273. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48274. "use strict";
  48275. __webpack_require__.r(__webpack_exports__);
  48276. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  48277. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  48278. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  48279. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  48280. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  48281. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  48282. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
  48283. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_3__);
  48284. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  48285. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
  48286. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "vue");
  48287. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_5__);
  48288. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  48289. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_6__);
  48290. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  48291. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  48292. /* harmony import */ var _default_props__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./default-props */ "./components/vc-slick/src/default-props.js");
  48293. /* harmony import */ var _initial_state__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./initial-state */ "./components/vc-slick/src/initial-state.js");
  48294. /* harmony import */ var _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/innerSliderUtils */ "./components/vc-slick/src/utils/innerSliderUtils.js");
  48295. /* harmony import */ var _track__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./track */ "./components/vc-slick/src/track.js");
  48296. /* harmony import */ var _dots__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./dots */ "./components/vc-slick/src/dots.js");
  48297. /* harmony import */ var _arrows__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./arrows */ "./components/vc-slick/src/arrows.js");
  48298. /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
  48299. vue__WEBPACK_IMPORTED_MODULE_5___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_6___default.a, { name: 'ant-ref' });
  48300. function noop() {}
  48301. /* harmony default export */ __webpack_exports__["default"] = ({
  48302. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _default_props__WEBPACK_IMPORTED_MODULE_9__["default"]),
  48303. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
  48304. data: function data() {
  48305. this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props);
  48306. this.list = null;
  48307. this.track = null;
  48308. this.callbackTimers = [];
  48309. this.clickable = true;
  48310. this.debouncedResize = null;
  48311. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _initial_state__WEBPACK_IMPORTED_MODULE_10__["default"], {
  48312. currentSlide: this.initialSlide,
  48313. slideCount: this.children.length
  48314. });
  48315. },
  48316. methods: {
  48317. listRefHandler: function listRefHandler(ref) {
  48318. this.list = ref;
  48319. },
  48320. trackRefHandler: function trackRefHandler(ref) {
  48321. this.track = ref;
  48322. },
  48323. adaptHeight: function adaptHeight() {
  48324. if (this.adaptiveHeight && this.list) {
  48325. var elem = this.list.querySelector('[data-index="' + this.currentSlide + '"]');
  48326. this.list.style.height = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getHeight"])(elem) + 'px';
  48327. }
  48328. },
  48329. onWindowResized: function onWindowResized(setTrackStyle) {
  48330. var _this = this;
  48331. if (this.debouncedResize) this.debouncedResize.cancel();
  48332. this.debouncedResize = lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default()(function () {
  48333. return _this.resizeWindow(setTrackStyle);
  48334. }, 50);
  48335. this.debouncedResize();
  48336. },
  48337. resizeWindow: function resizeWindow() {
  48338. var _this2 = this;
  48339. var setTrackStyle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  48340. if (!this.track) return;
  48341. var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  48342. listRef: this.list,
  48343. trackRef: this.track,
  48344. children: this.children
  48345. }, this.$props, this.$data);
  48346. this.updateState(spec, setTrackStyle, function () {
  48347. if (_this2.autoplay) {
  48348. _this2.handleAutoPlay('update');
  48349. } else {
  48350. _this2.pause('paused');
  48351. }
  48352. });
  48353. // animating state should be cleared while resizing, otherwise autoplay stops working
  48354. this.setState({
  48355. animating: false
  48356. });
  48357. clearTimeout(this.animationEndCallback);
  48358. delete this.animationEndCallback;
  48359. },
  48360. updateState: function updateState(spec, setTrackStyle, callback) {
  48361. var updatedState = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["initializedState"])(spec);
  48362. spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, spec, updatedState, { slideIndex: updatedState.currentSlide });
  48363. var targetLeft = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getTrackLeft"])(spec);
  48364. spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, spec, { left: targetLeft });
  48365. var trackStyle = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getTrackCSS"])(spec);
  48366. if (setTrackStyle || this.children.length !== spec.children.length) {
  48367. updatedState['trackStyle'] = trackStyle;
  48368. }
  48369. this.setState(updatedState, callback);
  48370. },
  48371. ssrInit: function ssrInit() {
  48372. var children = this.children;
  48373. if (this.variableWidth) {
  48374. var _trackWidth = 0;
  48375. var _trackLeft = 0;
  48376. var childrenWidths = [];
  48377. var preClones = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPreClones"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, {
  48378. slideCount: children.length
  48379. }));
  48380. var postClones = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPostClones"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, {
  48381. slideCount: children.length
  48382. }));
  48383. children.forEach(function (child) {
  48384. var childWidth = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getStyle"])(child).width.split('px')[0];
  48385. childrenWidths.push(childWidth);
  48386. _trackWidth += childWidth;
  48387. });
  48388. for (var i = 0; i < preClones; i++) {
  48389. _trackLeft += childrenWidths[childrenWidths.length - 1 - i];
  48390. _trackWidth += childrenWidths[childrenWidths.length - 1 - i];
  48391. }
  48392. for (var _i = 0; _i < postClones; _i++) {
  48393. _trackWidth += childrenWidths[_i];
  48394. }
  48395. for (var _i2 = 0; _i2 < this.currentSlide; _i2++) {
  48396. _trackLeft += childrenWidths[_i2];
  48397. }
  48398. var _trackStyle = {
  48399. width: _trackWidth + 'px',
  48400. left: -_trackLeft + 'px'
  48401. };
  48402. if (this.centerMode) {
  48403. var currentWidth = childrenWidths[this.currentSlide] + 'px';
  48404. _trackStyle.left = 'calc(' + _trackStyle.left + ' + (100% - ' + currentWidth + ') / 2 ) ';
  48405. }
  48406. this.setState({
  48407. trackStyle: _trackStyle
  48408. });
  48409. return;
  48410. }
  48411. var childrenCount = children.length;
  48412. var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, { slideCount: childrenCount });
  48413. var slideCount = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPreClones"])(spec) + Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPostClones"])(spec) + childrenCount;
  48414. var trackWidth = 100 / this.slidesToShow * slideCount;
  48415. var slideWidth = 100 / slideCount;
  48416. var trackLeft = -slideWidth * (Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPreClones"])(spec) + this.currentSlide) * trackWidth / 100;
  48417. if (this.centerMode) {
  48418. trackLeft += (100 - slideWidth * trackWidth / 100) / 2;
  48419. }
  48420. var trackStyle = {
  48421. width: trackWidth + '%',
  48422. left: trackLeft + '%'
  48423. };
  48424. this.setState({
  48425. slideWidth: slideWidth + '%',
  48426. trackStyle: trackStyle
  48427. });
  48428. },
  48429. checkImagesLoad: function checkImagesLoad() {
  48430. var _this3 = this;
  48431. var images = document.querySelectorAll('.slick-slide img');
  48432. var imagesCount = images.length;
  48433. var loadedCount = 0;
  48434. Array.prototype.forEach.call(images, function (image) {
  48435. var handler = function handler() {
  48436. return ++loadedCount && loadedCount >= imagesCount && _this3.onWindowResized();
  48437. };
  48438. if (!image.onclick) {
  48439. image.onclick = function () {
  48440. return image.parentNode.focus();
  48441. };
  48442. } else {
  48443. var prevClickHandler = image.onclick;
  48444. image.onclick = function () {
  48445. prevClickHandler();
  48446. image.parentNode.focus();
  48447. };
  48448. }
  48449. if (!image.onload) {
  48450. if (_this3.$props.lazyLoad) {
  48451. image.onload = function () {
  48452. _this3.adaptHeight();
  48453. _this3.callbackTimers.push(setTimeout(_this3.onWindowResized, _this3.speed));
  48454. };
  48455. } else {
  48456. image.onload = handler;
  48457. image.onerror = function () {
  48458. handler();
  48459. _this3.$emit('lazyLoadError');
  48460. };
  48461. }
  48462. }
  48463. });
  48464. },
  48465. progressiveLazyLoad: function progressiveLazyLoad() {
  48466. var slidesToLoad = [];
  48467. var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data);
  48468. for (var index = this.currentSlide; index < this.slideCount + Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPostClones"])(spec); index++) {
  48469. if (this.lazyLoadedList.indexOf(index) < 0) {
  48470. slidesToLoad.push(index);
  48471. break;
  48472. }
  48473. }
  48474. for (var _index = this.currentSlide - 1; _index >= -Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPreClones"])(spec); _index--) {
  48475. if (this.lazyLoadedList.indexOf(_index) < 0) {
  48476. slidesToLoad.push(_index);
  48477. break;
  48478. }
  48479. }
  48480. if (slidesToLoad.length > 0) {
  48481. this.setState(function (state) {
  48482. return {
  48483. lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad)
  48484. };
  48485. });
  48486. this.$emit('lazyLoad', slidesToLoad);
  48487. } else {
  48488. if (this.lazyLoadTimer) {
  48489. clearInterval(this.lazyLoadTimer);
  48490. delete this.lazyLoadTimer;
  48491. }
  48492. }
  48493. },
  48494. slideHandler: function slideHandler(index) {
  48495. var _this4 = this;
  48496. var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  48497. var _$props = this.$props,
  48498. asNavFor = _$props.asNavFor,
  48499. currentSlide = _$props.currentSlide,
  48500. beforeChange = _$props.beforeChange,
  48501. speed = _$props.speed,
  48502. afterChange = _$props.afterChange;
  48503. var _slideHandler2 = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["slideHandler"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  48504. index: index
  48505. }, this.$props, this.$data, {
  48506. trackRef: this.track,
  48507. useCSS: this.useCSS && !dontAnimate
  48508. })),
  48509. state = _slideHandler2.state,
  48510. nextState = _slideHandler2.nextState;
  48511. if (!state) return;
  48512. beforeChange && beforeChange(currentSlide, state.currentSlide);
  48513. var slidesToLoad = state.lazyLoadedList.filter(function (value) {
  48514. return _this4.lazyLoadedList.indexOf(value) < 0;
  48515. });
  48516. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this).lazyLoad && slidesToLoad.length > 0) {
  48517. this.$emit('lazyLoad', slidesToLoad);
  48518. }
  48519. this.setState(state, function () {
  48520. asNavFor && asNavFor.innerSlider.currentSlide !== currentSlide && asNavFor.innerSlider.slideHandler(index);
  48521. if (!nextState) return;
  48522. _this4.animationEndCallback = setTimeout(function () {
  48523. var animating = nextState.animating,
  48524. firstBatch = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(nextState, ['animating']);
  48525. _this4.setState(firstBatch, function () {
  48526. _this4.callbackTimers.push(setTimeout(function () {
  48527. return _this4.setState({ animating: animating });
  48528. }, 10));
  48529. afterChange && afterChange(state.currentSlide);
  48530. delete _this4.animationEndCallback;
  48531. });
  48532. }, speed);
  48533. });
  48534. },
  48535. changeSlide: function changeSlide(options) {
  48536. var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  48537. var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data);
  48538. var targetSlide = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["changeSlide"])(spec, options);
  48539. if (targetSlide !== 0 && !targetSlide) return;
  48540. if (dontAnimate === true) {
  48541. this.slideHandler(targetSlide, dontAnimate);
  48542. } else {
  48543. this.slideHandler(targetSlide);
  48544. }
  48545. },
  48546. clickHandler: function clickHandler(e) {
  48547. if (this.clickable === false) {
  48548. e.stopPropagation();
  48549. e.preventDefault();
  48550. }
  48551. this.clickable = true;
  48552. },
  48553. keyHandler: function keyHandler(e) {
  48554. var dir = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["keyHandler"])(e, this.accessibility, this.rtl);
  48555. dir !== '' && this.changeSlide({ message: dir });
  48556. },
  48557. selectHandler: function selectHandler(options) {
  48558. this.changeSlide(options);
  48559. },
  48560. disableBodyScroll: function disableBodyScroll() {
  48561. var preventDefault = function preventDefault(e) {
  48562. e = e || window.event;
  48563. if (e.preventDefault) e.preventDefault();
  48564. e.returnValue = false;
  48565. };
  48566. window.ontouchmove = preventDefault;
  48567. },
  48568. enableBodyScroll: function enableBodyScroll() {
  48569. window.ontouchmove = null;
  48570. },
  48571. swipeStart: function swipeStart(e) {
  48572. if (this.verticalSwiping) {
  48573. this.disableBodyScroll();
  48574. }
  48575. var state = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["swipeStart"])(e, this.swipe, this.draggable);
  48576. state !== '' && this.setState(state);
  48577. },
  48578. swipeMove: function swipeMove(e) {
  48579. var state = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["swipeMove"])(e, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, {
  48580. trackRef: this.track,
  48581. listRef: this.list,
  48582. slideIndex: this.currentSlide
  48583. }));
  48584. if (!state) return;
  48585. if (state['swiping']) {
  48586. this.clickable = false;
  48587. }
  48588. this.setState(state);
  48589. },
  48590. swipeEnd: function swipeEnd(e) {
  48591. var state = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["swipeEnd"])(e, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, {
  48592. trackRef: this.track,
  48593. listRef: this.list,
  48594. slideIndex: this.currentSlide
  48595. }));
  48596. if (!state) return;
  48597. var triggerSlideHandler = state['triggerSlideHandler'];
  48598. delete state['triggerSlideHandler'];
  48599. this.setState(state);
  48600. if (triggerSlideHandler === undefined) return;
  48601. this.slideHandler(triggerSlideHandler);
  48602. if (this.$props.verticalSwiping) {
  48603. this.enableBodyScroll();
  48604. }
  48605. },
  48606. slickPrev: function slickPrev() {
  48607. var _this5 = this;
  48608. // this and fellow methods are wrapped in setTimeout
  48609. // to make sure initialize setState has happened before
  48610. // any of such methods are called
  48611. this.callbackTimers.push(setTimeout(function () {
  48612. return _this5.changeSlide({ message: 'previous' });
  48613. }, 0));
  48614. },
  48615. slickNext: function slickNext() {
  48616. var _this6 = this;
  48617. this.callbackTimers.push(setTimeout(function () {
  48618. return _this6.changeSlide({ message: 'next' });
  48619. }, 0));
  48620. },
  48621. slickGoTo: function slickGoTo(slide) {
  48622. var _this7 = this;
  48623. var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  48624. slide = Number(slide);
  48625. if (isNaN(slide)) return '';
  48626. this.callbackTimers.push(setTimeout(function () {
  48627. return _this7.changeSlide({
  48628. message: 'index',
  48629. index: slide,
  48630. currentSlide: _this7.currentSlide
  48631. }, dontAnimate);
  48632. }, 0));
  48633. },
  48634. play: function play() {
  48635. var nextIndex = void 0;
  48636. if (this.rtl) {
  48637. nextIndex = this.currentSlide - this.slidesToScroll;
  48638. } else {
  48639. if (Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["canGoNext"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data))) {
  48640. nextIndex = this.currentSlide + this.slidesToScroll;
  48641. } else {
  48642. return false;
  48643. }
  48644. }
  48645. this.slideHandler(nextIndex);
  48646. },
  48647. handleAutoPlay: function handleAutoPlay(playType) {
  48648. if (this.autoplayTimer) {
  48649. clearInterval(this.autoplayTimer);
  48650. }
  48651. var autoplaying = this.autoplaying;
  48652. if (playType === 'update') {
  48653. if (autoplaying === 'hovered' || autoplaying === 'focused' || autoplaying === 'paused') {
  48654. return;
  48655. }
  48656. } else if (playType === 'leave') {
  48657. if (autoplaying === 'paused' || autoplaying === 'focused') {
  48658. return;
  48659. }
  48660. } else if (playType === 'blur') {
  48661. if (autoplaying === 'paused' || autoplaying === 'hovered') {
  48662. return;
  48663. }
  48664. }
  48665. this.autoplayTimer = setInterval(this.play, this.autoplaySpeed + 50);
  48666. this.setState({ autoplaying: 'playing' });
  48667. },
  48668. pause: function pause(pauseType) {
  48669. if (this.autoplayTimer) {
  48670. clearInterval(this.autoplayTimer);
  48671. this.autoplayTimer = null;
  48672. }
  48673. var autoplaying = this.autoplaying;
  48674. if (pauseType === 'paused') {
  48675. this.setState({ autoplaying: 'paused' });
  48676. } else if (pauseType === 'focused') {
  48677. if (autoplaying === 'hovered' || autoplaying === 'playing') {
  48678. this.setState({ autoplaying: 'focused' });
  48679. }
  48680. } else {
  48681. // pauseType is 'hovered'
  48682. if (autoplaying === 'playing') {
  48683. this.setState({ autoplaying: 'hovered' });
  48684. }
  48685. }
  48686. },
  48687. onDotsOver: function onDotsOver() {
  48688. this.autoplay && this.pause('hovered');
  48689. },
  48690. onDotsLeave: function onDotsLeave() {
  48691. this.autoplay && this.autoplaying === 'hovered' && this.handleAutoPlay('leave');
  48692. },
  48693. onTrackOver: function onTrackOver() {
  48694. this.autoplay && this.pause('hovered');
  48695. },
  48696. onTrackLeave: function onTrackLeave() {
  48697. this.autoplay && this.autoplaying === 'hovered' && this.handleAutoPlay('leave');
  48698. },
  48699. onSlideFocus: function onSlideFocus() {
  48700. this.autoplay && this.pause('focused');
  48701. },
  48702. onSlideBlur: function onSlideBlur() {
  48703. this.autoplay && this.autoplaying === 'focused' && this.handleAutoPlay('blur');
  48704. },
  48705. customPaging: function customPaging(_ref) {
  48706. var i = _ref.i;
  48707. var h = this.$createElement;
  48708. return h('button', [i + 1]);
  48709. },
  48710. appendDots: function appendDots(_ref2) {
  48711. var dots = _ref2.dots;
  48712. var h = this.$createElement;
  48713. return h(
  48714. 'ul',
  48715. { style: { display: 'block' } },
  48716. [dots]
  48717. );
  48718. }
  48719. },
  48720. beforeMount: function beforeMount() {
  48721. this.ssrInit();
  48722. this.$emit('init');
  48723. if (this.lazyLoad) {
  48724. var slidesToLoad = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getOnDemandLazySlides"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data));
  48725. if (slidesToLoad.length > 0) {
  48726. this.setState(function (prevState) {
  48727. return {
  48728. lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)
  48729. };
  48730. });
  48731. this.$emit('lazyLoad', slidesToLoad);
  48732. }
  48733. }
  48734. },
  48735. mounted: function mounted() {
  48736. var _this8 = this;
  48737. this.$nextTick(function () {
  48738. var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  48739. listRef: _this8.list,
  48740. trackRef: _this8.track,
  48741. children: _this8.children
  48742. }, _this8.$props);
  48743. _this8.updateState(spec, true, function () {
  48744. _this8.adaptHeight();
  48745. _this8.autoplay && _this8.handleAutoPlay('update');
  48746. });
  48747. if (_this8.lazyLoad === 'progressive') {
  48748. _this8.lazyLoadTimer = setInterval(_this8.progressiveLazyLoad, 1000);
  48749. }
  48750. _this8.ro = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_15__["default"](function () {
  48751. if (_this8.animating) {
  48752. _this8.onWindowResized(false); // don't set trackStyle hence don't break animation
  48753. _this8.callbackTimers.push(setTimeout(function () {
  48754. return _this8.onWindowResized();
  48755. }, _this8.speed));
  48756. } else {
  48757. _this8.onWindowResized();
  48758. }
  48759. });
  48760. _this8.ro.observe(_this8.list);
  48761. Array.prototype.forEach.call(document.querySelectorAll('.slick-slide'), function (slide) {
  48762. slide.onfocus = _this8.$props.pauseOnFocus ? _this8.onSlideFocus : null;
  48763. slide.onblur = _this8.$props.pauseOnFocus ? _this8.onSlideBlur : null;
  48764. });
  48765. // To support server-side rendering
  48766. if (!window) {
  48767. return;
  48768. }
  48769. if (window.addEventListener) {
  48770. window.addEventListener('resize', _this8.onWindowResized);
  48771. } else {
  48772. window.attachEvent('onresize', _this8.onWindowResized);
  48773. }
  48774. });
  48775. },
  48776. beforeDestroy: function beforeDestroy() {
  48777. if (this.animationEndCallback) {
  48778. clearTimeout(this.animationEndCallback);
  48779. }
  48780. if (this.lazyLoadTimer) {
  48781. clearInterval(this.lazyLoadTimer);
  48782. }
  48783. if (this.callbackTimers.length) {
  48784. this.callbackTimers.forEach(function (timer) {
  48785. return clearTimeout(timer);
  48786. });
  48787. this.callbackTimers = [];
  48788. }
  48789. if (window.addEventListener) {
  48790. window.removeEventListener('resize', this.onWindowResized);
  48791. } else {
  48792. window.detachEvent('onresize', this.onWindowResized);
  48793. }
  48794. if (this.autoplayTimer) {
  48795. clearInterval(this.autoplayTimer);
  48796. }
  48797. },
  48798. updated: function updated() {
  48799. this.checkImagesLoad();
  48800. this.$emit('reInit');
  48801. if (this.lazyLoad) {
  48802. var slidesToLoad = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getOnDemandLazySlides"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data));
  48803. if (slidesToLoad.length > 0) {
  48804. this.setState(function (prevState) {
  48805. return {
  48806. lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)
  48807. };
  48808. });
  48809. this.$emit('lazyLoad');
  48810. }
  48811. }
  48812. // if (this.props.onLazyLoad) {
  48813. // this.props.onLazyLoad([leftMostSlide])
  48814. // }
  48815. this.adaptHeight();
  48816. },
  48817. watch: {
  48818. __propsSymbol__: function __propsSymbol__() {
  48819. var _this9 = this;
  48820. var nextProps = this.$props;
  48821. var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  48822. listRef: this.list,
  48823. trackRef: this.track
  48824. }, nextProps, this.$data);
  48825. var setTrackStyle = false;
  48826. var _iteratorNormalCompletion = true;
  48827. var _didIteratorError = false;
  48828. var _iteratorError = undefined;
  48829. try {
  48830. for (var _iterator = Object.keys(this.preProps)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  48831. var key = _step.value;
  48832. if (!nextProps.hasOwnProperty(key)) {
  48833. setTrackStyle = true;
  48834. break;
  48835. }
  48836. if (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(nextProps[key]) === 'object' || typeof nextProps[key] === 'function' || babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(nextProps[key]) === 'symbol') {
  48837. continue;
  48838. }
  48839. if (nextProps[key] !== this.preProps[key]) {
  48840. setTrackStyle = true;
  48841. break;
  48842. }
  48843. }
  48844. } catch (err) {
  48845. _didIteratorError = true;
  48846. _iteratorError = err;
  48847. } finally {
  48848. try {
  48849. if (!_iteratorNormalCompletion && _iterator['return']) {
  48850. _iterator['return']();
  48851. }
  48852. } finally {
  48853. if (_didIteratorError) {
  48854. throw _iteratorError;
  48855. }
  48856. }
  48857. }
  48858. this.updateState(spec, setTrackStyle, function () {
  48859. if (_this9.currentSlide >= nextProps.children.length) {
  48860. _this9.changeSlide({
  48861. message: 'index',
  48862. index: nextProps.children.length - nextProps.slidesToShow,
  48863. currentSlide: _this9.currentSlide
  48864. });
  48865. }
  48866. if (nextProps.autoplay) {
  48867. _this9.handleAutoPlay('update');
  48868. } else {
  48869. _this9.pause('paused');
  48870. }
  48871. });
  48872. this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, nextProps);
  48873. }
  48874. },
  48875. render: function render() {
  48876. var h = arguments[0];
  48877. var className = classnames__WEBPACK_IMPORTED_MODULE_4___default()('slick-slider', {
  48878. 'slick-vertical': this.vertical,
  48879. 'slick-initialized': true
  48880. });
  48881. var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data);
  48882. var trackProps = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["extractObject"])(spec, ['fade', 'cssEase', 'speed', 'infinite', 'centerMode', 'focusOnSelect', 'currentSlide', 'lazyLoad', 'lazyLoadedList', 'rtl', 'slideWidth', 'slideHeight', 'listHeight', 'vertical', 'slidesToShow', 'slidesToScroll', 'slideCount', 'trackStyle', 'variableWidth', 'unslick', 'centerPadding']);
  48883. var pauseOnHover = this.$props.pauseOnHover;
  48884. trackProps = {
  48885. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, trackProps, {
  48886. focusOnSelect: this.focusOnSelect ? this.selectHandler : null
  48887. }),
  48888. directives: [{
  48889. name: 'ant-ref',
  48890. value: this.trackRefHandler
  48891. }],
  48892. on: {
  48893. mouseenter: pauseOnHover ? this.onTrackOver : noop,
  48894. mouseleave: pauseOnHover ? this.onTrackLeave : noop,
  48895. mouseover: pauseOnHover ? this.onTrackOver : noop
  48896. }
  48897. };
  48898. var dots = void 0;
  48899. if (this.dots === true && this.slideCount >= this.slidesToShow) {
  48900. var dotProps = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["extractObject"])(spec, ['dotsClass', 'slideCount', 'slidesToShow', 'currentSlide', 'slidesToScroll', 'clickHandler', 'children', 'infinite', 'appendDots']);
  48901. dotProps.customPaging = this.customPaging;
  48902. dotProps.appendDots = this.appendDots;
  48903. var _$scopedSlots = this.$scopedSlots,
  48904. customPaging = _$scopedSlots.customPaging,
  48905. appendDots = _$scopedSlots.appendDots;
  48906. if (customPaging) {
  48907. dotProps.customPaging = customPaging;
  48908. }
  48909. if (appendDots) {
  48910. dotProps.appendDots = appendDots;
  48911. }
  48912. var pauseOnDotsHover = this.$props.pauseOnDotsHover;
  48913. dotProps = {
  48914. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, dotProps, {
  48915. clickHandler: this.changeSlide
  48916. }),
  48917. on: {
  48918. mouseenter: pauseOnDotsHover ? this.onDotsLeave : noop,
  48919. mouseover: pauseOnDotsHover ? this.onDotsOver : noop,
  48920. mouseleave: pauseOnDotsHover ? this.onDotsLeave : noop
  48921. }
  48922. };
  48923. dots = h(_dots__WEBPACK_IMPORTED_MODULE_13__["default"], dotProps);
  48924. }
  48925. var prevArrow = void 0,
  48926. nextArrow = void 0;
  48927. var arrowProps = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["extractObject"])(spec, ['infinite', 'centerMode', 'currentSlide', 'slideCount', 'slidesToShow']);
  48928. arrowProps.clickHandler = this.changeSlide;
  48929. var _$scopedSlots2 = this.$scopedSlots,
  48930. prevArrowCustom = _$scopedSlots2.prevArrow,
  48931. nextArrowCustom = _$scopedSlots2.nextArrow;
  48932. if (prevArrowCustom) {
  48933. arrowProps.prevArrow = prevArrowCustom;
  48934. }
  48935. if (nextArrowCustom) {
  48936. arrowProps.nextArrow = nextArrowCustom;
  48937. }
  48938. if (this.arrows) {
  48939. prevArrow = h(_arrows__WEBPACK_IMPORTED_MODULE_14__["PrevArrow"], { props: arrowProps });
  48940. nextArrow = h(_arrows__WEBPACK_IMPORTED_MODULE_14__["NextArrow"], { props: arrowProps });
  48941. }
  48942. var verticalHeightStyle = null;
  48943. if (this.vertical) {
  48944. verticalHeightStyle = {
  48945. height: typeof this.listHeight === 'number' ? this.listHeight + 'px' : this.listHeight
  48946. };
  48947. }
  48948. var centerPaddingStyle = null;
  48949. if (this.vertical === false) {
  48950. if (this.centerMode === true) {
  48951. centerPaddingStyle = {
  48952. padding: '0px ' + this.centerPadding
  48953. };
  48954. }
  48955. } else {
  48956. if (this.centerMode === true) {
  48957. centerPaddingStyle = {
  48958. padding: this.centerPadding + ' 0px'
  48959. };
  48960. }
  48961. }
  48962. var listStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, verticalHeightStyle, centerPaddingStyle);
  48963. var touchMove = this.touchMove;
  48964. var listProps = {
  48965. directives: [{
  48966. name: 'ant-ref',
  48967. value: this.listRefHandler
  48968. }],
  48969. 'class': 'slick-list',
  48970. style: listStyle,
  48971. on: {
  48972. click: this.clickHandler,
  48973. mousedown: touchMove ? this.swipeStart : noop,
  48974. mousemove: this.dragging && touchMove ? this.swipeMove : noop,
  48975. mouseup: touchMove ? this.swipeEnd : noop,
  48976. mouseleave: this.dragging && touchMove ? this.swipeEnd : noop,
  48977. touchstart: touchMove ? this.swipeStart : noop,
  48978. touchmove: this.dragging && touchMove ? this.swipeMove : noop,
  48979. touchend: touchMove ? this.swipeEnd : noop,
  48980. touchcancel: this.dragging && touchMove ? this.swipeEnd : noop,
  48981. keydown: this.accessibility ? this.keyHandler : noop
  48982. }
  48983. };
  48984. var innerSliderProps = {
  48985. 'class': className,
  48986. props: {
  48987. dir: 'ltr'
  48988. }
  48989. };
  48990. if (this.unslick) {
  48991. listProps = {
  48992. 'class': 'slick-list',
  48993. directives: [{
  48994. name: 'ant-ref',
  48995. value: this.listRefHandler
  48996. }]
  48997. };
  48998. innerSliderProps = { 'class': className };
  48999. }
  49000. return h(
  49001. 'div',
  49002. innerSliderProps,
  49003. [!this.unslick ? prevArrow : '', h(
  49004. 'div',
  49005. listProps,
  49006. [h(
  49007. _track__WEBPACK_IMPORTED_MODULE_12__["default"],
  49008. trackProps,
  49009. [this.children]
  49010. )]
  49011. ), !this.unslick ? nextArrow : '', !this.unslick ? dots : '']
  49012. );
  49013. }
  49014. });
  49015. /***/ }),
  49016. /***/ "./components/vc-slick/src/slider.js":
  49017. /*!*******************************************!*\
  49018. !*** ./components/vc-slick/src/slider.js ***!
  49019. \*******************************************/
  49020. /*! exports provided: default */
  49021. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49022. "use strict";
  49023. __webpack_require__.r(__webpack_exports__);
  49024. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  49025. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  49026. /* harmony import */ var json2mq__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! json2mq */ "./node_modules/json2mq/index.js");
  49027. /* harmony import */ var json2mq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(json2mq__WEBPACK_IMPORTED_MODULE_1__);
  49028. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
  49029. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
  49030. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  49031. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_3__);
  49032. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  49033. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  49034. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  49035. /* harmony import */ var _inner_slider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./inner-slider */ "./components/vc-slick/src/inner-slider.js");
  49036. /* harmony import */ var _default_props__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./default-props */ "./components/vc-slick/src/default-props.js");
  49037. /* harmony import */ var _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/innerSliderUtils */ "./components/vc-slick/src/utils/innerSliderUtils.js");
  49038. var enquire = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_9__["canUseDOM"])() && __webpack_require__(/*! enquire.js */ "./node_modules/enquire.js/src/index.js");
  49039. vue__WEBPACK_IMPORTED_MODULE_2___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_3___default.a, { name: 'ant-ref' });
  49040. /* harmony default export */ __webpack_exports__["default"] = ({
  49041. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _default_props__WEBPACK_IMPORTED_MODULE_8__["default"]),
  49042. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  49043. data: function data() {
  49044. this._responsiveMediaHandlers = [];
  49045. return {
  49046. breakpoint: null
  49047. };
  49048. },
  49049. methods: {
  49050. innerSliderRefHandler: function innerSliderRefHandler(ref) {
  49051. this.innerSlider = ref;
  49052. },
  49053. media: function media(query, handler) {
  49054. // javascript handler for css media query
  49055. enquire.register(query, handler);
  49056. this._responsiveMediaHandlers.push({ query: query, handler: handler });
  49057. },
  49058. slickPrev: function slickPrev() {
  49059. this.innerSlider.slickPrev();
  49060. },
  49061. slickNext: function slickNext() {
  49062. this.innerSlider.slickNext();
  49063. },
  49064. slickGoTo: function slickGoTo(slide) {
  49065. var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  49066. this.innerSlider.slickGoTo(slide, dontAnimate);
  49067. },
  49068. slickPause: function slickPause() {
  49069. this.innerSlider.pause('paused');
  49070. },
  49071. slickPlay: function slickPlay() {
  49072. this.innerSlider.handleAutoPlay('play');
  49073. }
  49074. },
  49075. // handles responsive breakpoints
  49076. beforeMount: function beforeMount() {
  49077. var _this = this;
  49078. // performance monitoring
  49079. // if (process.env.NODE_ENV !== 'production') {
  49080. // const { whyDidYouUpdate } = require('why-did-you-update')
  49081. // whyDidYouUpdate(React)
  49082. // }
  49083. if (this.responsive) {
  49084. var breakpoints = this.responsive.map(function (breakpt) {
  49085. return breakpt.breakpoint;
  49086. });
  49087. // sort them in increasing order of their numerical value
  49088. breakpoints.sort(function (x, y) {
  49089. return x - y;
  49090. });
  49091. breakpoints.forEach(function (breakpoint, index) {
  49092. // media query for each breakpoint
  49093. var bQuery = void 0;
  49094. if (index === 0) {
  49095. bQuery = json2mq__WEBPACK_IMPORTED_MODULE_1___default()({ minWidth: 0, maxWidth: breakpoint });
  49096. } else {
  49097. bQuery = json2mq__WEBPACK_IMPORTED_MODULE_1___default()({
  49098. minWidth: breakpoints[index - 1] + 1,
  49099. maxWidth: breakpoint
  49100. });
  49101. }
  49102. // when not using server side rendering
  49103. Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_9__["canUseDOM"])() && _this.media(bQuery, function () {
  49104. _this.setState({ breakpoint: breakpoint });
  49105. });
  49106. });
  49107. // Register media query for full screen. Need to support resize from small to large
  49108. // convert javascript object to media query string
  49109. var query = json2mq__WEBPACK_IMPORTED_MODULE_1___default()({ minWidth: breakpoints.slice(-1)[0] });
  49110. Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_9__["canUseDOM"])() && this.media(query, function () {
  49111. _this.setState({ breakpoint: null });
  49112. });
  49113. }
  49114. },
  49115. beforeDestroy: function beforeDestroy() {
  49116. this._responsiveMediaHandlers.forEach(function (obj) {
  49117. enquire.unregister(obj.query, obj.handler);
  49118. });
  49119. },
  49120. render: function render() {
  49121. var _this2 = this;
  49122. var h = arguments[0];
  49123. var settings = void 0;
  49124. var newProps = void 0;
  49125. if (this.breakpoint) {
  49126. newProps = this.responsive.filter(function (resp) {
  49127. return resp.breakpoint === _this2.breakpoint;
  49128. });
  49129. settings = newProps[0].settings === 'unslick' ? 'unslick' : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, newProps[0].settings);
  49130. } else {
  49131. settings = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props);
  49132. }
  49133. // force scrolling by one if centerMode is on
  49134. if (settings.centerMode) {
  49135. if (settings.slidesToScroll > 1 && "development" !== 'production') {
  49136. console.warn('slidesToScroll should be equal to 1 in centerMode, you are using ' + settings.slidesToScroll);
  49137. }
  49138. settings.slidesToScroll = 1;
  49139. }
  49140. // force showing one slide and scrolling by one if the fade mode is on
  49141. if (settings.fade) {
  49142. if (settings.slidesToShow > 1 && "development" !== 'production') {
  49143. console.warn('slidesToShow should be equal to 1 when fade is true, you\'re using ' + settings.slidesToShow);
  49144. }
  49145. if (settings.slidesToScroll > 1 && "development" !== 'production') {
  49146. console.warn('slidesToScroll should be equal to 1 when fade is true, you\'re using ' + settings.slidesToScroll);
  49147. }
  49148. settings.slidesToShow = 1;
  49149. settings.slidesToScroll = 1;
  49150. }
  49151. // makes sure that children is an array, even when there is only 1 child
  49152. var children = this.$slots['default'] || [];
  49153. // Children may contain false or null, so we should filter them
  49154. // children may also contain string filled with spaces (in certain cases where we use jsx strings)
  49155. children = children.filter(function (child) {
  49156. if (typeof child === 'string') {
  49157. return !!child.trim();
  49158. }
  49159. return !!child;
  49160. });
  49161. // rows and slidesPerRow logic is handled here
  49162. if (settings.variableWidth && (settings.rows > 1 || settings.slidesPerRow > 1)) {
  49163. console.warn('variableWidth is not supported in case of rows > 1 or slidesPerRow > 1');
  49164. settings.variableWidth = false;
  49165. }
  49166. var newChildren = [];
  49167. var currentWidth = null;
  49168. for (var i = 0; i < children.length; i += settings.rows * settings.slidesPerRow) {
  49169. var newSlide = [];
  49170. for (var j = i; j < i + settings.rows * settings.slidesPerRow; j += settings.slidesPerRow) {
  49171. var row = [];
  49172. for (var k = j; k < j + settings.slidesPerRow; k += 1) {
  49173. if (settings.variableWidth && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getStyle"])(children[k])) {
  49174. currentWidth = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getStyle"])(children[k]).width;
  49175. }
  49176. if (k >= children.length) break;
  49177. row.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(children[k], {
  49178. key: 100 * i + 10 * j + k,
  49179. attrs: {
  49180. tabIndex: -1
  49181. },
  49182. style: {
  49183. width: 100 / settings.slidesPerRow + '%',
  49184. display: 'inline-block'
  49185. }
  49186. }));
  49187. }
  49188. newSlide.push(h(
  49189. 'div',
  49190. { key: 10 * i + j },
  49191. [row]
  49192. ));
  49193. }
  49194. if (settings.variableWidth) {
  49195. newChildren.push(h(
  49196. 'div',
  49197. { key: i, style: { width: currentWidth } },
  49198. [newSlide]
  49199. ));
  49200. } else {
  49201. newChildren.push(h(
  49202. 'div',
  49203. { key: i },
  49204. [newSlide]
  49205. ));
  49206. }
  49207. }
  49208. if (settings === 'unslick') {
  49209. var className = 'regular slider ' + (this.className || '');
  49210. return h(
  49211. 'div',
  49212. { 'class': className },
  49213. [newChildren]
  49214. );
  49215. } else if (newChildren.length <= settings.slidesToShow) {
  49216. settings.unslick = true;
  49217. }
  49218. var sliderProps = {
  49219. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, settings, {
  49220. children: newChildren,
  49221. __propsSymbol__: Symbol()
  49222. }),
  49223. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this),
  49224. directives: [{
  49225. name: 'ant-ref',
  49226. value: this.innerSliderRefHandler
  49227. }],
  49228. scopedSlots: this.$scopedSlots
  49229. };
  49230. return h(_inner_slider__WEBPACK_IMPORTED_MODULE_7__["default"], sliderProps);
  49231. }
  49232. });
  49233. /***/ }),
  49234. /***/ "./components/vc-slick/src/track.js":
  49235. /*!******************************************!*\
  49236. !*** ./components/vc-slick/src/track.js ***!
  49237. \******************************************/
  49238. /*! exports provided: default */
  49239. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49240. "use strict";
  49241. __webpack_require__.r(__webpack_exports__);
  49242. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  49243. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  49244. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  49245. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
  49246. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  49247. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  49248. /* harmony import */ var _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/innerSliderUtils */ "./components/vc-slick/src/utils/innerSliderUtils.js");
  49249. // given specifications/props for a slide, fetch all the classes that need to be applied to the slide
  49250. var getSlideClasses = function getSlideClasses(spec) {
  49251. var slickActive = void 0,
  49252. slickCenter = void 0;
  49253. var centerOffset = void 0,
  49254. index = void 0;
  49255. if (spec.rtl) {
  49256. index = spec.slideCount - 1 - spec.index;
  49257. } else {
  49258. index = spec.index;
  49259. }
  49260. var slickCloned = index < 0 || index >= spec.slideCount;
  49261. if (spec.centerMode) {
  49262. centerOffset = Math.floor(spec.slidesToShow / 2);
  49263. slickCenter = (index - spec.currentSlide) % spec.slideCount === 0;
  49264. if (index > spec.currentSlide - centerOffset - 1 && index <= spec.currentSlide + centerOffset) {
  49265. slickActive = true;
  49266. }
  49267. } else {
  49268. slickActive = spec.currentSlide <= index && index < spec.currentSlide + spec.slidesToShow;
  49269. }
  49270. var slickCurrent = index === spec.currentSlide;
  49271. return {
  49272. 'slick-slide': true,
  49273. 'slick-active': slickActive,
  49274. 'slick-center': slickCenter,
  49275. 'slick-cloned': slickCloned,
  49276. 'slick-current': slickCurrent // dubious in case of RTL
  49277. };
  49278. };
  49279. var getSlideStyle = function getSlideStyle(spec) {
  49280. var style = {};
  49281. if (spec.variableWidth === undefined || spec.variableWidth === false) {
  49282. style.width = spec.slideWidth + (typeof spec.slideWidth === 'number' ? 'px' : '');
  49283. }
  49284. if (spec.fade) {
  49285. style.position = 'relative';
  49286. if (spec.vertical) {
  49287. style.top = -spec.index * parseInt(spec.slideHeight) + 'px';
  49288. } else {
  49289. style.left = -spec.index * parseInt(spec.slideWidth) + 'px';
  49290. }
  49291. style.opacity = spec.currentSlide === spec.index ? 1 : 0;
  49292. style.transition = 'opacity ' + spec.speed + 'ms ' + spec.cssEase + ', ' + 'visibility ' + spec.speed + 'ms ' + spec.cssEase;
  49293. style.WebkitTransition = 'opacity ' + spec.speed + 'ms ' + spec.cssEase + ', ' + 'visibility ' + spec.speed + 'ms ' + spec.cssEase;
  49294. }
  49295. return style;
  49296. };
  49297. var getKey = function getKey(child, fallbackKey) {
  49298. return child.key || child.key === 0 && '0' || fallbackKey;
  49299. };
  49300. var renderSlides = function renderSlides(spec, children, createElement) {
  49301. var key = void 0;
  49302. var slides = [];
  49303. var preCloneSlides = [];
  49304. var postCloneSlides = [];
  49305. var childrenCount = children.length;
  49306. var startIndex = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__["lazyStartIndex"])(spec);
  49307. var endIndex = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__["lazyEndIndex"])(spec);
  49308. children.forEach(function (elem, index) {
  49309. var child = void 0;
  49310. var childOnClickOptions = {
  49311. message: 'children',
  49312. index: index,
  49313. slidesToScroll: spec.slidesToScroll,
  49314. currentSlide: spec.currentSlide
  49315. };
  49316. // in case of lazyLoad, whether or not we want to fetch the slide
  49317. if (!spec.lazyLoad || spec.lazyLoad && spec.lazyLoadedList.indexOf(index) >= 0) {
  49318. child = elem;
  49319. } else {
  49320. child = createElement('div');
  49321. }
  49322. var childStyle = getSlideStyle(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { index: index }));
  49323. var slideClass = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getClass"])(child.context) || '';
  49324. var slideClasses = getSlideClasses(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { index: index }));
  49325. // push a cloned element of the desired slide
  49326. slides.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, {
  49327. key: 'original' + getKey(child, index),
  49328. attrs: {
  49329. tabIndex: '-1',
  49330. 'data-index': index,
  49331. 'aria-hidden': !slideClasses['slick-active']
  49332. },
  49333. 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(slideClasses, slideClass),
  49334. style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ outline: 'none' }, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getStyle"])(child.context) || {}, childStyle),
  49335. on: {
  49336. click: function click() {
  49337. // child.props && child.props.onClick && child.props.onClick(e)
  49338. if (spec.focusOnSelect) {
  49339. spec.focusOnSelect(childOnClickOptions);
  49340. }
  49341. }
  49342. }
  49343. }, true));
  49344. // if slide needs to be precloned or postcloned
  49345. if (spec.infinite && spec.fade === false) {
  49346. var preCloneNo = childrenCount - index;
  49347. if (preCloneNo <= Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__["getPreClones"])(spec) && childrenCount !== spec.slidesToShow) {
  49348. key = -preCloneNo;
  49349. if (key >= startIndex) {
  49350. child = elem;
  49351. }
  49352. slideClasses = getSlideClasses(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { index: key }));
  49353. preCloneSlides.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, {
  49354. key: 'precloned' + getKey(child, key),
  49355. 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(slideClasses, slideClass),
  49356. attrs: {
  49357. tabIndex: '-1',
  49358. 'data-index': key,
  49359. 'aria-hidden': !slideClasses['slick-active']
  49360. },
  49361. style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getStyle"])(child.context) || {}, childStyle),
  49362. on: {
  49363. click: function click() {
  49364. // child.props && child.props.onClick && child.props.onClick(e)
  49365. if (spec.focusOnSelect) {
  49366. spec.focusOnSelect(childOnClickOptions);
  49367. }
  49368. }
  49369. }
  49370. }));
  49371. }
  49372. if (childrenCount !== spec.slidesToShow) {
  49373. key = childrenCount + index;
  49374. if (key < endIndex) {
  49375. child = elem;
  49376. }
  49377. slideClasses = getSlideClasses(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { index: key }));
  49378. postCloneSlides.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, {
  49379. key: 'postcloned' + getKey(child, key),
  49380. attrs: {
  49381. tabIndex: '-1',
  49382. 'data-index': key,
  49383. 'aria-hidden': !slideClasses['slick-active']
  49384. },
  49385. 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(slideClasses, slideClass),
  49386. style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getStyle"])(child.context) || {}, childStyle),
  49387. on: {
  49388. click: function click() {
  49389. // child.props && child.props.onClick && child.props.onClick(e)
  49390. if (spec.focusOnSelect) {
  49391. spec.focusOnSelect(childOnClickOptions);
  49392. }
  49393. }
  49394. }
  49395. }));
  49396. }
  49397. }
  49398. });
  49399. if (spec.rtl) {
  49400. return preCloneSlides.concat(slides, postCloneSlides).reverse();
  49401. } else {
  49402. return preCloneSlides.concat(slides, postCloneSlides);
  49403. }
  49404. };
  49405. /* harmony default export */ __webpack_exports__["default"] = ({
  49406. functional: true,
  49407. render: function render(createElement, context) {
  49408. var h = arguments[0];
  49409. var props = context.props,
  49410. listeners = context.listeners,
  49411. children = context.children,
  49412. data = context.data;
  49413. var slides = renderSlides(props, children, createElement);
  49414. var mouseenter = listeners.mouseenter,
  49415. mouseover = listeners.mouseover,
  49416. mouseleave = listeners.mouseleave;
  49417. var mouseEvents = { mouseenter: mouseenter, mouseover: mouseover, mouseleave: mouseleave };
  49418. var trackProps = {
  49419. 'class': 'slick-track',
  49420. style: props.trackStyle,
  49421. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, mouseEvents),
  49422. directives: data.directives
  49423. };
  49424. return h(
  49425. 'div',
  49426. trackProps,
  49427. [slides]
  49428. );
  49429. }
  49430. });
  49431. /***/ }),
  49432. /***/ "./components/vc-slick/src/utils/innerSliderUtils.js":
  49433. /*!***********************************************************!*\
  49434. !*** ./components/vc-slick/src/utils/innerSliderUtils.js ***!
  49435. \***********************************************************/
  49436. /*! exports provided: getOnDemandLazySlides, getRequiredLazySlides, lazyStartIndex, lazyEndIndex, lazySlidesOnLeft, lazySlidesOnRight, getWidth, getHeight, getSwipeDirection, canGoNext, extractObject, initializedState, slideHandler, changeSlide, keyHandler, swipeStart, swipeMove, swipeEnd, getNavigableIndexes, checkNavigable, getSlideCount, checkSpecKeys, getTrackCSS, getTrackAnimateCSS, getTrackLeft, getPreClones, getPostClones, getTotalSlides, siblingDirection, slidesOnRight, slidesOnLeft, canUseDOM */
  49437. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49438. "use strict";
  49439. __webpack_require__.r(__webpack_exports__);
  49440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOnDemandLazySlides", function() { return getOnDemandLazySlides; });
  49441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRequiredLazySlides", function() { return getRequiredLazySlides; });
  49442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lazyStartIndex", function() { return lazyStartIndex; });
  49443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lazyEndIndex", function() { return lazyEndIndex; });
  49444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lazySlidesOnLeft", function() { return lazySlidesOnLeft; });
  49445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lazySlidesOnRight", function() { return lazySlidesOnRight; });
  49446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWidth", function() { return getWidth; });
  49447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHeight", function() { return getHeight; });
  49448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSwipeDirection", function() { return getSwipeDirection; });
  49449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canGoNext", function() { return canGoNext; });
  49450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractObject", function() { return extractObject; });
  49451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializedState", function() { return initializedState; });
  49452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slideHandler", function() { return slideHandler; });
  49453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "changeSlide", function() { return changeSlide; });
  49454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyHandler", function() { return keyHandler; });
  49455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "swipeStart", function() { return swipeStart; });
  49456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "swipeMove", function() { return swipeMove; });
  49457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "swipeEnd", function() { return swipeEnd; });
  49458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNavigableIndexes", function() { return getNavigableIndexes; });
  49459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkNavigable", function() { return checkNavigable; });
  49460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlideCount", function() { return getSlideCount; });
  49461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkSpecKeys", function() { return checkSpecKeys; });
  49462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTrackCSS", function() { return getTrackCSS; });
  49463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTrackAnimateCSS", function() { return getTrackAnimateCSS; });
  49464. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTrackLeft", function() { return getTrackLeft; });
  49465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPreClones", function() { return getPreClones; });
  49466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPostClones", function() { return getPostClones; });
  49467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTotalSlides", function() { return getTotalSlides; });
  49468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "siblingDirection", function() { return siblingDirection; });
  49469. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slidesOnRight", function() { return slidesOnRight; });
  49470. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slidesOnLeft", function() { return slidesOnLeft; });
  49471. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canUseDOM", function() { return canUseDOM; });
  49472. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  49473. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  49474. var getOnDemandLazySlides = function getOnDemandLazySlides(spec) {
  49475. var onDemandSlides = [];
  49476. var startIndex = lazyStartIndex(spec);
  49477. var endIndex = lazyEndIndex(spec);
  49478. for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {
  49479. if (spec.lazyLoadedList.indexOf(slideIndex) < 0) {
  49480. onDemandSlides.push(slideIndex);
  49481. }
  49482. }
  49483. return onDemandSlides;
  49484. };
  49485. // return list of slides that need to be present
  49486. var getRequiredLazySlides = function getRequiredLazySlides(spec) {
  49487. var requiredSlides = [];
  49488. var startIndex = lazyStartIndex(spec);
  49489. var endIndex = lazyEndIndex(spec);
  49490. for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {
  49491. requiredSlides.push(slideIndex);
  49492. }
  49493. return requiredSlides;
  49494. };
  49495. // startIndex that needs to be present
  49496. var lazyStartIndex = function lazyStartIndex(spec) {
  49497. return spec.currentSlide - lazySlidesOnLeft(spec);
  49498. };
  49499. var lazyEndIndex = function lazyEndIndex(spec) {
  49500. return spec.currentSlide + lazySlidesOnRight(spec);
  49501. };
  49502. var lazySlidesOnLeft = function lazySlidesOnLeft(spec) {
  49503. return spec.centerMode ? Math.floor(spec.slidesToShow / 2) + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : 0;
  49504. };
  49505. var lazySlidesOnRight = function lazySlidesOnRight(spec) {
  49506. return spec.centerMode ? Math.floor((spec.slidesToShow - 1) / 2) + 1 + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : spec.slidesToShow;
  49507. };
  49508. // get width of an element
  49509. var getWidth = function getWidth(elem) {
  49510. return elem && elem.offsetWidth || 0;
  49511. };
  49512. var getHeight = function getHeight(elem) {
  49513. return elem && elem.offsetHeight || 0;
  49514. };
  49515. var getSwipeDirection = function getSwipeDirection(touchObject) {
  49516. var verticalSwiping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  49517. var swipeAngle = void 0;
  49518. var xDist = touchObject.startX - touchObject.curX;
  49519. var yDist = touchObject.startY - touchObject.curY;
  49520. var r = Math.atan2(yDist, xDist);
  49521. swipeAngle = Math.round(r * 180 / Math.PI);
  49522. if (swipeAngle < 0) {
  49523. swipeAngle = 360 - Math.abs(swipeAngle);
  49524. }
  49525. if (swipeAngle <= 45 && swipeAngle >= 0 || swipeAngle <= 360 && swipeAngle >= 315) {
  49526. return 'left';
  49527. }
  49528. if (swipeAngle >= 135 && swipeAngle <= 225) {
  49529. return 'right';
  49530. }
  49531. if (verticalSwiping === true) {
  49532. if (swipeAngle >= 35 && swipeAngle <= 135) {
  49533. return 'up';
  49534. } else {
  49535. return 'down';
  49536. }
  49537. }
  49538. return 'vertical';
  49539. };
  49540. // whether or not we can go next
  49541. var canGoNext = function canGoNext(spec) {
  49542. var canGo = true;
  49543. if (!spec.infinite) {
  49544. if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) {
  49545. canGo = false;
  49546. } else if (spec.slideCount <= spec.slidesToShow || spec.currentSlide >= spec.slideCount - spec.slidesToShow) {
  49547. canGo = false;
  49548. }
  49549. }
  49550. return canGo;
  49551. };
  49552. // given an object and a list of keys, return new object with given keys
  49553. var extractObject = function extractObject(spec, keys) {
  49554. var newObject = {};
  49555. keys.forEach(function (key) {
  49556. return newObject[key] = spec[key];
  49557. });
  49558. return newObject;
  49559. };
  49560. // get initialized state
  49561. var initializedState = function initializedState(spec) {
  49562. // spec also contains listRef, trackRef
  49563. var slideCount = spec.children.length;
  49564. var listWidth = Math.ceil(getWidth(spec.listRef));
  49565. var trackWidth = Math.ceil(getWidth(spec.trackRef));
  49566. var slideWidth = void 0;
  49567. if (!spec.vertical) {
  49568. var centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2;
  49569. if (typeof spec.centerPadding === 'string' && spec.centerPadding.slice(-1) === '%') {
  49570. centerPaddingAdj *= listWidth / 100;
  49571. }
  49572. slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow);
  49573. } else {
  49574. slideWidth = listWidth;
  49575. }
  49576. var slideHeight = spec.listRef && getHeight(spec.listRef.querySelector('[data-index="0"]'));
  49577. var listHeight = slideHeight * spec.slidesToShow;
  49578. var currentSlide = spec.currentSlide === undefined ? spec.initialSlide : spec.currentSlide;
  49579. if (spec.rtl && spec.currentSlide === undefined) {
  49580. currentSlide = slideCount - 1 - spec.initialSlide;
  49581. }
  49582. var lazyLoadedList = spec.lazyLoadedList || [];
  49583. var slidesToLoad = getOnDemandLazySlides({ currentSlide: currentSlide, lazyLoadedList: lazyLoadedList }, spec);
  49584. lazyLoadedList.concat(slidesToLoad);
  49585. var state = {
  49586. slideCount: slideCount,
  49587. slideWidth: slideWidth,
  49588. listWidth: listWidth,
  49589. trackWidth: trackWidth,
  49590. currentSlide: currentSlide,
  49591. slideHeight: slideHeight,
  49592. listHeight: listHeight,
  49593. lazyLoadedList: lazyLoadedList
  49594. };
  49595. if (spec.autoplaying === null && spec.autoplay) {
  49596. state['autoplaying'] = 'playing';
  49597. }
  49598. return state;
  49599. };
  49600. var slideHandler = function slideHandler(spec) {
  49601. var waitForAnimate = spec.waitForAnimate,
  49602. animating = spec.animating,
  49603. fade = spec.fade,
  49604. infinite = spec.infinite,
  49605. index = spec.index,
  49606. slideCount = spec.slideCount,
  49607. lazyLoadedList = spec.lazyLoadedList,
  49608. lazyLoad = spec.lazyLoad,
  49609. currentSlide = spec.currentSlide,
  49610. centerMode = spec.centerMode,
  49611. slidesToScroll = spec.slidesToScroll,
  49612. slidesToShow = spec.slidesToShow,
  49613. useCSS = spec.useCSS;
  49614. if (waitForAnimate && animating) return {};
  49615. var animationSlide = index;
  49616. var finalSlide = void 0;
  49617. var animationLeft = void 0;
  49618. var finalLeft = void 0;
  49619. var state = {};
  49620. var nextState = {};
  49621. if (fade) {
  49622. if (!infinite && (index < 0 || index >= slideCount)) return {};
  49623. if (index < 0) {
  49624. animationSlide = index + slideCount;
  49625. } else if (index >= slideCount) {
  49626. animationSlide = index - slideCount;
  49627. }
  49628. if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) {
  49629. lazyLoadedList.push(animationSlide);
  49630. }
  49631. state = {
  49632. animating: true,
  49633. currentSlide: animationSlide,
  49634. lazyLoadedList: lazyLoadedList
  49635. };
  49636. nextState = { animating: false };
  49637. } else {
  49638. finalSlide = animationSlide;
  49639. if (animationSlide < 0) {
  49640. finalSlide = animationSlide + slideCount;
  49641. if (!infinite) finalSlide = 0;else if (slideCount % slidesToScroll !== 0) {
  49642. finalSlide = slideCount - slideCount % slidesToScroll;
  49643. }
  49644. } else if (!canGoNext(spec) && animationSlide > currentSlide) {
  49645. animationSlide = finalSlide = currentSlide;
  49646. } else if (centerMode && animationSlide >= slideCount) {
  49647. animationSlide = infinite ? slideCount : slideCount - 1;
  49648. finalSlide = infinite ? 0 : slideCount - 1;
  49649. } else if (animationSlide >= slideCount) {
  49650. finalSlide = animationSlide - slideCount;
  49651. if (!infinite) finalSlide = slideCount - slidesToShow;else if (slideCount % slidesToScroll !== 0) finalSlide = 0;
  49652. }
  49653. animationLeft = getTrackLeft(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { slideIndex: animationSlide }));
  49654. finalLeft = getTrackLeft(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { slideIndex: finalSlide }));
  49655. if (!infinite) {
  49656. if (animationLeft === finalLeft) animationSlide = finalSlide;
  49657. animationLeft = finalLeft;
  49658. }
  49659. lazyLoad && lazyLoadedList.concat(getOnDemandLazySlides(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { currentSlide: animationSlide })));
  49660. if (!useCSS) {
  49661. state = {
  49662. currentSlide: finalSlide,
  49663. trackStyle: getTrackCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: finalLeft })),
  49664. lazyLoadedList: lazyLoadedList
  49665. };
  49666. } else {
  49667. state = {
  49668. animating: true,
  49669. currentSlide: finalSlide,
  49670. trackStyle: getTrackAnimateCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: animationLeft })),
  49671. lazyLoadedList: lazyLoadedList
  49672. };
  49673. nextState = {
  49674. animating: false,
  49675. currentSlide: finalSlide,
  49676. trackStyle: getTrackCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: finalLeft })),
  49677. swipeLeft: null
  49678. };
  49679. }
  49680. }
  49681. return { state: state, nextState: nextState };
  49682. };
  49683. var changeSlide = function changeSlide(spec, options) {
  49684. var previousInt = void 0,
  49685. slideOffset = void 0,
  49686. targetSlide = void 0;
  49687. var slidesToScroll = spec.slidesToScroll,
  49688. slidesToShow = spec.slidesToShow,
  49689. slideCount = spec.slideCount,
  49690. currentSlide = spec.currentSlide,
  49691. lazyLoad = spec.lazyLoad,
  49692. infinite = spec.infinite;
  49693. var unevenOffset = slideCount % slidesToScroll !== 0;
  49694. var indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll;
  49695. if (options.message === 'previous') {
  49696. slideOffset = indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset;
  49697. targetSlide = currentSlide - slideOffset;
  49698. if (lazyLoad && !infinite) {
  49699. previousInt = currentSlide - slideOffset;
  49700. targetSlide = previousInt === -1 ? slideCount - 1 : previousInt;
  49701. }
  49702. } else if (options.message === 'next') {
  49703. slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset;
  49704. targetSlide = currentSlide + slideOffset;
  49705. if (lazyLoad && !infinite) {
  49706. targetSlide = (currentSlide + slidesToScroll) % slideCount + indexOffset;
  49707. }
  49708. } else if (options.message === 'dots') {
  49709. // Click on dots
  49710. targetSlide = options.index * options.slidesToScroll;
  49711. if (targetSlide === options.currentSlide) {
  49712. return null;
  49713. }
  49714. } else if (options.message === 'children') {
  49715. // Click on the slides
  49716. targetSlide = options.index;
  49717. if (targetSlide === options.currentSlide) {
  49718. return null;
  49719. }
  49720. if (infinite) {
  49721. var direction = siblingDirection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { targetSlide: targetSlide }));
  49722. if (targetSlide > options.currentSlide && direction === 'left') {
  49723. targetSlide = targetSlide - slideCount;
  49724. } else if (targetSlide < options.currentSlide && direction === 'right') {
  49725. targetSlide = targetSlide + slideCount;
  49726. }
  49727. }
  49728. } else if (options.message === 'index') {
  49729. targetSlide = Number(options.index);
  49730. if (targetSlide === options.currentSlide) {
  49731. return null;
  49732. }
  49733. }
  49734. return targetSlide;
  49735. };
  49736. var keyHandler = function keyHandler(e, accessibility, rtl) {
  49737. if (e.target.tagName.match('TEXTAREA|INPUT|SELECT') || !accessibility) {
  49738. return '';
  49739. }
  49740. if (e.keyCode === 37) return rtl ? 'next' : 'previous';
  49741. if (e.keyCode === 39) return rtl ? 'previous' : 'next';
  49742. return '';
  49743. };
  49744. var swipeStart = function swipeStart(e, swipe, draggable) {
  49745. e.target.tagName === 'IMG' && e.preventDefault();
  49746. if (!swipe || !draggable && e.type.indexOf('mouse') !== -1) return '';
  49747. return {
  49748. dragging: true,
  49749. touchObject: {
  49750. startX: e.touches ? e.touches[0].pageX : e.clientX,
  49751. startY: e.touches ? e.touches[0].pageY : e.clientY,
  49752. curX: e.touches ? e.touches[0].pageX : e.clientX,
  49753. curY: e.touches ? e.touches[0].pageY : e.clientY
  49754. }
  49755. };
  49756. };
  49757. var swipeMove = function swipeMove(e, spec) {
  49758. // spec also contains, trackRef and slideIndex
  49759. var scrolling = spec.scrolling,
  49760. animating = spec.animating,
  49761. vertical = spec.vertical,
  49762. swipeToSlide = spec.swipeToSlide,
  49763. verticalSwiping = spec.verticalSwiping,
  49764. rtl = spec.rtl,
  49765. currentSlide = spec.currentSlide,
  49766. edgeFriction = spec.edgeFriction,
  49767. edgeDragged = spec.edgeDragged,
  49768. onEdge = spec.onEdge,
  49769. swiped = spec.swiped,
  49770. swiping = spec.swiping,
  49771. slideCount = spec.slideCount,
  49772. slidesToScroll = spec.slidesToScroll,
  49773. infinite = spec.infinite,
  49774. touchObject = spec.touchObject,
  49775. swipeEvent = spec.swipeEvent,
  49776. listHeight = spec.listHeight,
  49777. listWidth = spec.listWidth;
  49778. if (scrolling) return;
  49779. if (animating) return e.preventDefault();
  49780. if (vertical && swipeToSlide && verticalSwiping) e.preventDefault();
  49781. var swipeLeft = void 0;
  49782. var state = {};
  49783. var curLeft = getTrackLeft(spec);
  49784. touchObject.curX = e.touches ? e.touches[0].pageX : e.clientX;
  49785. touchObject.curY = e.touches ? e.touches[0].pageY : e.clientY;
  49786. touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2)));
  49787. var verticalSwipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2)));
  49788. if (!verticalSwiping && !swiping && verticalSwipeLength > 10) {
  49789. return { scrolling: true };
  49790. }
  49791. if (verticalSwiping) touchObject.swipeLength = verticalSwipeLength;
  49792. var positionOffset = (!rtl ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1);
  49793. if (verticalSwiping) {
  49794. positionOffset = touchObject.curY > touchObject.startY ? 1 : -1;
  49795. }
  49796. var dotCount = Math.ceil(slideCount / slidesToScroll);
  49797. var swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping);
  49798. var touchSwipeLength = touchObject.swipeLength;
  49799. if (!infinite) {
  49800. if (currentSlide === 0 && swipeDirection === 'right' || currentSlide + 1 >= dotCount && swipeDirection === 'left' || !canGoNext(spec) && swipeDirection === 'left') {
  49801. touchSwipeLength = touchObject.swipeLength * edgeFriction;
  49802. if (edgeDragged === false && onEdge) {
  49803. onEdge(swipeDirection);
  49804. state['edgeDragged'] = true;
  49805. }
  49806. }
  49807. }
  49808. if (!swiped && swipeEvent) {
  49809. swipeEvent(swipeDirection);
  49810. state['swiped'] = true;
  49811. }
  49812. if (!vertical) {
  49813. if (!rtl) {
  49814. swipeLeft = curLeft + touchSwipeLength * positionOffset;
  49815. } else {
  49816. swipeLeft = curLeft - touchSwipeLength * positionOffset;
  49817. }
  49818. } else {
  49819. swipeLeft = curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset;
  49820. }
  49821. if (verticalSwiping) {
  49822. swipeLeft = curLeft + touchSwipeLength * positionOffset;
  49823. }
  49824. state = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, state, {
  49825. touchObject: touchObject,
  49826. swipeLeft: swipeLeft,
  49827. trackStyle: getTrackCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: swipeLeft }))
  49828. });
  49829. if (Math.abs(touchObject.curX - touchObject.startX) < Math.abs(touchObject.curY - touchObject.startY) * 0.8) {
  49830. return state;
  49831. }
  49832. if (touchObject.swipeLength > 10) {
  49833. state['swiping'] = true;
  49834. e.preventDefault();
  49835. }
  49836. return state;
  49837. };
  49838. var swipeEnd = function swipeEnd(e, spec) {
  49839. var dragging = spec.dragging,
  49840. swipe = spec.swipe,
  49841. touchObject = spec.touchObject,
  49842. listWidth = spec.listWidth,
  49843. touchThreshold = spec.touchThreshold,
  49844. verticalSwiping = spec.verticalSwiping,
  49845. listHeight = spec.listHeight,
  49846. currentSlide = spec.currentSlide,
  49847. swipeToSlide = spec.swipeToSlide,
  49848. scrolling = spec.scrolling,
  49849. onSwipe = spec.onSwipe;
  49850. if (!dragging) {
  49851. if (swipe) e.preventDefault();
  49852. return {};
  49853. }
  49854. var minSwipe = verticalSwiping ? listHeight / touchThreshold : listWidth / touchThreshold;
  49855. var swipeDirection = getSwipeDirection(touchObject, verticalSwiping);
  49856. // reset the state of touch related state variables.
  49857. var state = {
  49858. dragging: false,
  49859. edgeDragged: false,
  49860. scrolling: false,
  49861. swiping: false,
  49862. swiped: false,
  49863. swipeLeft: null,
  49864. touchObject: {}
  49865. };
  49866. if (scrolling) {
  49867. return state;
  49868. }
  49869. if (!touchObject.swipeLength) {
  49870. return state;
  49871. }
  49872. if (touchObject.swipeLength > minSwipe) {
  49873. e.preventDefault();
  49874. if (onSwipe) {
  49875. onSwipe(swipeDirection);
  49876. }
  49877. var slideCount = void 0,
  49878. newSlide = void 0;
  49879. switch (swipeDirection) {
  49880. case 'left':
  49881. case 'up':
  49882. newSlide = currentSlide + getSlideCount(spec);
  49883. slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
  49884. state['currentDirection'] = 0;
  49885. break;
  49886. case 'right':
  49887. case 'down':
  49888. newSlide = currentSlide - getSlideCount(spec);
  49889. slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
  49890. state['currentDirection'] = 1;
  49891. break;
  49892. default:
  49893. slideCount = currentSlide;
  49894. }
  49895. state['triggerSlideHandler'] = slideCount;
  49896. } else {
  49897. // Adjust the track back to it's original position.
  49898. var currentLeft = getTrackLeft(spec);
  49899. state['trackStyle'] = getTrackAnimateCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: currentLeft }));
  49900. }
  49901. return state;
  49902. };
  49903. var getNavigableIndexes = function getNavigableIndexes(spec) {
  49904. var max = spec.infinite ? spec.slideCount * 2 : spec.slideCount;
  49905. var breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0;
  49906. var counter = spec.infinite ? spec.slidesToShow * -1 : 0;
  49907. var indexes = [];
  49908. while (breakpoint < max) {
  49909. indexes.push(breakpoint);
  49910. breakpoint = counter + spec.slidesToScroll;
  49911. counter += Math.min(spec.slidesToScroll, spec.slidesToShow);
  49912. }
  49913. return indexes;
  49914. };
  49915. var checkNavigable = function checkNavigable(spec, index) {
  49916. var navigables = getNavigableIndexes(spec);
  49917. var prevNavigable = 0;
  49918. if (index > navigables[navigables.length - 1]) {
  49919. index = navigables[navigables.length - 1];
  49920. } else {
  49921. for (var n in navigables) {
  49922. if (index < navigables[n]) {
  49923. index = prevNavigable;
  49924. break;
  49925. }
  49926. prevNavigable = navigables[n];
  49927. }
  49928. }
  49929. return index;
  49930. };
  49931. var getSlideCount = function getSlideCount(spec) {
  49932. var centerOffset = spec.centerMode ? spec.slideWidth * Math.floor(spec.slidesToShow / 2) : 0;
  49933. if (spec.swipeToSlide) {
  49934. var swipedSlide = void 0;
  49935. var slickList = spec.listRef;
  49936. var slides = slickList.querySelectorAll('.slick-slide');
  49937. Array.from(slides).every(function (slide) {
  49938. if (!spec.vertical) {
  49939. if (slide.offsetLeft - centerOffset + getWidth(slide) / 2 > spec.swipeLeft * -1) {
  49940. swipedSlide = slide;
  49941. return false;
  49942. }
  49943. } else {
  49944. if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) {
  49945. swipedSlide = slide;
  49946. return false;
  49947. }
  49948. }
  49949. return true;
  49950. });
  49951. if (!swipedSlide) {
  49952. return 0;
  49953. }
  49954. var currentIndex = spec.rtl === true ? spec.slideCount - spec.currentSlide : spec.currentSlide;
  49955. var slidesTraversed = Math.abs(swipedSlide.dataset.index - currentIndex) || 1;
  49956. return slidesTraversed;
  49957. } else {
  49958. return spec.slidesToScroll;
  49959. }
  49960. };
  49961. var checkSpecKeys = function checkSpecKeys(spec, keysArray) {
  49962. return keysArray.reduce(function (value, key) {
  49963. return value && spec.hasOwnProperty(key);
  49964. }, true) ? null : console.error('Keys Missing:', spec);
  49965. };
  49966. var getTrackCSS = function getTrackCSS(spec) {
  49967. checkSpecKeys(spec, ['left', 'variableWidth', 'slideCount', 'slidesToShow', 'slideWidth']);
  49968. var trackWidth = void 0,
  49969. trackHeight = void 0;
  49970. var trackChildren = spec.slideCount + 2 * spec.slidesToShow;
  49971. if (!spec.vertical) {
  49972. trackWidth = getTotalSlides(spec) * spec.slideWidth;
  49973. } else {
  49974. trackHeight = trackChildren * spec.slideHeight;
  49975. }
  49976. var style = {
  49977. opacity: 1,
  49978. transition: '',
  49979. WebkitTransition: ''
  49980. };
  49981. if (spec.useTransform) {
  49982. var WebkitTransform = !spec.vertical ? 'translate3d(' + spec.left + 'px, 0px, 0px)' : 'translate3d(0px, ' + spec.left + 'px, 0px)';
  49983. var transform = !spec.vertical ? 'translate3d(' + spec.left + 'px, 0px, 0px)' : 'translate3d(0px, ' + spec.left + 'px, 0px)';
  49984. var msTransform = !spec.vertical ? 'translateX(' + spec.left + 'px)' : 'translateY(' + spec.left + 'px)';
  49985. style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, style, {
  49986. WebkitTransform: WebkitTransform,
  49987. transform: transform,
  49988. msTransform: msTransform
  49989. });
  49990. } else {
  49991. if (spec.vertical) {
  49992. style['top'] = spec.left;
  49993. } else {
  49994. style['left'] = spec.left;
  49995. }
  49996. }
  49997. if (spec.fade) style = { opacity: 1 };
  49998. if (trackWidth) style.width = trackWidth + 'px';
  49999. if (trackHeight) style.height = trackHeight + 'px';
  50000. // Fallback for IE8
  50001. if (window && !window.addEventListener && window.attachEvent) {
  50002. if (!spec.vertical) {
  50003. style.marginLeft = spec.left + 'px';
  50004. } else {
  50005. style.marginTop = spec.left + 'px';
  50006. }
  50007. }
  50008. return style;
  50009. };
  50010. var getTrackAnimateCSS = function getTrackAnimateCSS(spec) {
  50011. checkSpecKeys(spec, ['left', 'variableWidth', 'slideCount', 'slidesToShow', 'slideWidth', 'speed', 'cssEase']);
  50012. var style = getTrackCSS(spec);
  50013. // useCSS is true by default so it can be undefined
  50014. if (spec.useTransform) {
  50015. style.WebkitTransition = '-webkit-transform ' + spec.speed + 'ms ' + spec.cssEase;
  50016. style.transition = 'transform ' + spec.speed + 'ms ' + spec.cssEase;
  50017. } else {
  50018. if (spec.vertical) {
  50019. style.transition = 'top ' + spec.speed + 'ms ' + spec.cssEase;
  50020. } else {
  50021. style.transition = 'left ' + spec.speed + 'ms ' + spec.cssEase;
  50022. }
  50023. }
  50024. return style;
  50025. };
  50026. var getTrackLeft = function getTrackLeft(spec) {
  50027. if (spec.unslick) {
  50028. return 0;
  50029. }
  50030. checkSpecKeys(spec, ['slideIndex', 'trackRef', 'infinite', 'centerMode', 'slideCount', 'slidesToShow', 'slidesToScroll', 'slideWidth', 'listWidth', 'variableWidth', 'slideHeight']);
  50031. var slideIndex = spec.slideIndex,
  50032. trackRef = spec.trackRef,
  50033. infinite = spec.infinite,
  50034. centerMode = spec.centerMode,
  50035. slideCount = spec.slideCount,
  50036. slidesToShow = spec.slidesToShow,
  50037. slidesToScroll = spec.slidesToScroll,
  50038. slideWidth = spec.slideWidth,
  50039. listWidth = spec.listWidth,
  50040. variableWidth = spec.variableWidth,
  50041. slideHeight = spec.slideHeight,
  50042. fade = spec.fade,
  50043. vertical = spec.vertical;
  50044. var slideOffset = 0;
  50045. var targetLeft = void 0;
  50046. var targetSlide = void 0;
  50047. var verticalOffset = 0;
  50048. if (fade || spec.slideCount === 1) {
  50049. return 0;
  50050. }
  50051. var slidesToOffset = 0;
  50052. if (infinite) {
  50053. slidesToOffset = -getPreClones(spec); // bring active slide to the beginning of visual area
  50054. // if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children
  50055. if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
  50056. slidesToOffset = -(slideIndex > slideCount ? slidesToShow - (slideIndex - slideCount) : slideCount % slidesToScroll);
  50057. }
  50058. // shift current slide to center of the frame
  50059. if (centerMode) {
  50060. slidesToOffset += parseInt(slidesToShow / 2);
  50061. }
  50062. } else {
  50063. if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
  50064. slidesToOffset = slidesToShow - slideCount % slidesToScroll;
  50065. }
  50066. if (centerMode) {
  50067. slidesToOffset = parseInt(slidesToShow / 2);
  50068. }
  50069. }
  50070. slideOffset = slidesToOffset * slideWidth;
  50071. verticalOffset = slidesToOffset * slideHeight;
  50072. if (!vertical) {
  50073. targetLeft = slideIndex * slideWidth * -1 + slideOffset;
  50074. } else {
  50075. targetLeft = slideIndex * slideHeight * -1 + verticalOffset;
  50076. }
  50077. if (variableWidth === true) {
  50078. var targetSlideIndex = void 0;
  50079. var trackElem = trackRef;
  50080. targetSlideIndex = slideIndex + getPreClones(spec);
  50081. targetSlide = trackElem && trackElem.childNodes[targetSlideIndex];
  50082. targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0;
  50083. if (centerMode === true) {
  50084. targetSlideIndex = infinite ? slideIndex + getPreClones(spec) : slideIndex;
  50085. targetSlide = trackElem && trackElem.children[targetSlideIndex];
  50086. targetLeft = 0;
  50087. for (var slide = 0; slide < targetSlideIndex; slide++) {
  50088. targetLeft -= trackElem && trackElem.children[slide] && trackElem.children[slide].offsetWidth;
  50089. }
  50090. targetLeft -= parseInt(spec.centerPadding);
  50091. targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2;
  50092. }
  50093. }
  50094. return targetLeft;
  50095. };
  50096. var getPreClones = function getPreClones(spec) {
  50097. if (spec.unslick || !spec.infinite) {
  50098. return 0;
  50099. }
  50100. if (spec.variableWidth) {
  50101. return spec.slideCount;
  50102. }
  50103. return spec.slidesToShow + (spec.centerMode ? 1 : 0);
  50104. };
  50105. var getPostClones = function getPostClones(spec) {
  50106. if (spec.unslick || !spec.infinite) {
  50107. return 0;
  50108. }
  50109. return spec.slideCount;
  50110. };
  50111. var getTotalSlides = function getTotalSlides(spec) {
  50112. return spec.slideCount === 1 ? 1 : getPreClones(spec) + spec.slideCount + getPostClones(spec);
  50113. };
  50114. var siblingDirection = function siblingDirection(spec) {
  50115. if (spec.targetSlide > spec.currentSlide) {
  50116. if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) {
  50117. return 'left';
  50118. }
  50119. return 'right';
  50120. } else {
  50121. if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) {
  50122. return 'right';
  50123. }
  50124. return 'left';
  50125. }
  50126. };
  50127. var slidesOnRight = function slidesOnRight(_ref) {
  50128. var slidesToShow = _ref.slidesToShow,
  50129. centerMode = _ref.centerMode,
  50130. rtl = _ref.rtl,
  50131. centerPadding = _ref.centerPadding;
  50132. // returns no of slides on the right of active slide
  50133. if (centerMode) {
  50134. var right = (slidesToShow - 1) / 2 + 1;
  50135. if (parseInt(centerPadding) > 0) right += 1;
  50136. if (rtl && slidesToShow % 2 === 0) right += 1;
  50137. return right;
  50138. }
  50139. if (rtl) {
  50140. return 0;
  50141. }
  50142. return slidesToShow - 1;
  50143. };
  50144. var slidesOnLeft = function slidesOnLeft(_ref2) {
  50145. var slidesToShow = _ref2.slidesToShow,
  50146. centerMode = _ref2.centerMode,
  50147. rtl = _ref2.rtl,
  50148. centerPadding = _ref2.centerPadding;
  50149. // returns no of slides on the left of active slide
  50150. if (centerMode) {
  50151. var left = (slidesToShow - 1) / 2 + 1;
  50152. if (parseInt(centerPadding) > 0) left += 1;
  50153. if (!rtl && slidesToShow % 2 === 0) left += 1;
  50154. return left;
  50155. }
  50156. if (rtl) {
  50157. return slidesToShow - 1;
  50158. }
  50159. return 0;
  50160. };
  50161. var canUseDOM = function canUseDOM() {
  50162. return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
  50163. };
  50164. /***/ }),
  50165. /***/ "./components/vc-slider/src/Handle.jsx":
  50166. /*!*********************************************!*\
  50167. !*** ./components/vc-slider/src/Handle.jsx ***!
  50168. \*********************************************/
  50169. /*! exports provided: default */
  50170. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50171. "use strict";
  50172. __webpack_require__.r(__webpack_exports__);
  50173. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  50174. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  50175. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  50176. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  50177. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  50178. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  50179. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  50180. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  50181. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  50182. /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
  50183. /* harmony default export */ __webpack_exports__["default"] = ({
  50184. name: 'Handle',
  50185. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  50186. props: {
  50187. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  50188. vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  50189. offset: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  50190. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  50191. min: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  50192. max: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  50193. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  50194. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  50195. className: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  50196. reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
  50197. // handleFocus: PropTypes.func.def(noop),
  50198. // handleBlur: PropTypes.func.def(noop),
  50199. },
  50200. data: function data() {
  50201. return {
  50202. clickFocused: false
  50203. };
  50204. },
  50205. mounted: function mounted() {
  50206. // mouseup won't trigger if mouse moved out of handle
  50207. // so we listen on document here.
  50208. this.onMouseUpListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_6__["default"])(document, 'mouseup', this.handleMouseUp);
  50209. },
  50210. beforeDestroy: function beforeDestroy() {
  50211. if (this.onMouseUpListener) {
  50212. this.onMouseUpListener.remove();
  50213. }
  50214. },
  50215. methods: {
  50216. setClickFocus: function setClickFocus(focused) {
  50217. this.setState({ clickFocused: focused });
  50218. },
  50219. handleMouseUp: function handleMouseUp() {
  50220. if (document.activeElement === this.$refs.handle) {
  50221. this.setClickFocus(true);
  50222. }
  50223. },
  50224. handleBlur: function handleBlur(e) {
  50225. this.setClickFocus(false);
  50226. this.__emit('blur', e);
  50227. },
  50228. handleKeyDown: function handleKeyDown() {
  50229. this.setClickFocus(false);
  50230. },
  50231. clickFocus: function clickFocus() {
  50232. this.setClickFocus(true);
  50233. this.focus();
  50234. },
  50235. focus: function focus() {
  50236. this.$refs.handle.focus();
  50237. },
  50238. blur: function blur() {
  50239. this.$refs.handle.blur();
  50240. },
  50241. // when click can not focus in vue, use mousedown trigger focus
  50242. handleMousedown: function handleMousedown(e) {
  50243. this.focus();
  50244. this.__emit('mousedown', e);
  50245. }
  50246. },
  50247. render: function render() {
  50248. var _ref, _ref2;
  50249. var h = arguments[0];
  50250. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this),
  50251. prefixCls = _getOptionProps.prefixCls,
  50252. vertical = _getOptionProps.vertical,
  50253. reverse = _getOptionProps.reverse,
  50254. offset = _getOptionProps.offset,
  50255. disabled = _getOptionProps.disabled,
  50256. min = _getOptionProps.min,
  50257. max = _getOptionProps.max,
  50258. value = _getOptionProps.value,
  50259. tabIndex = _getOptionProps.tabIndex;
  50260. var className = classnames__WEBPACK_IMPORTED_MODULE_2___default()(this.$props.className, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-handle-click-focused', this.clickFocused));
  50261. var positionStyle = vertical ? (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, reverse ? 'top' : 'bottom', offset + '%'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, reverse ? 'bottom' : 'top', 'auto'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, 'transform', 'translateY(+50%)'), _ref) : (_ref2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, reverse ? 'right' : 'left', offset + '%'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, reverse ? 'left' : 'right', 'auto'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, 'transform', 'translateX(' + (reverse ? '+' : '-') + '50%)'), _ref2);
  50262. var ariaProps = {
  50263. 'aria-valuemin': min,
  50264. 'aria-valuemax': max,
  50265. 'aria-valuenow': value,
  50266. 'aria-disabled': !!disabled
  50267. };
  50268. var _tabIndex = tabIndex || 0;
  50269. if (disabled || tabIndex === null) {
  50270. _tabIndex = null;
  50271. }
  50272. var handleProps = {
  50273. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  50274. role: 'slider',
  50275. tabIndex: _tabIndex
  50276. }, ariaProps),
  50277. 'class': className,
  50278. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), {
  50279. blur: this.handleBlur,
  50280. keydown: this.handleKeyDown,
  50281. mousedown: this.handleMousedown
  50282. }),
  50283. ref: 'handle',
  50284. style: positionStyle
  50285. };
  50286. return h('div', handleProps);
  50287. }
  50288. });
  50289. /***/ }),
  50290. /***/ "./components/vc-slider/src/Range.jsx":
  50291. /*!********************************************!*\
  50292. !*** ./components/vc-slider/src/Range.jsx ***!
  50293. \********************************************/
  50294. /*! exports provided: default */
  50295. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50296. "use strict";
  50297. __webpack_require__.r(__webpack_exports__);
  50298. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  50299. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  50300. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  50301. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  50302. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  50303. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
  50304. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  50305. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  50306. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  50307. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  50308. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  50309. /* harmony import */ var _common_Track__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./common/Track */ "./components/vc-slider/src/common/Track.jsx");
  50310. /* harmony import */ var _common_createSlider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./common/createSlider */ "./components/vc-slider/src/common/createSlider.jsx");
  50311. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils */ "./components/vc-slider/src/utils.js");
  50312. var _trimAlignValue = function _trimAlignValue(_ref) {
  50313. var value = _ref.value,
  50314. handle = _ref.handle,
  50315. bounds = _ref.bounds,
  50316. props = _ref.props;
  50317. var allowCross = props.allowCross,
  50318. pushable = props.pushable;
  50319. var thershold = Number(pushable);
  50320. var valInRange = _utils__WEBPACK_IMPORTED_MODULE_9__["ensureValueInRange"](value, props);
  50321. var valNotConflict = valInRange;
  50322. if (!allowCross && handle != null && bounds !== undefined) {
  50323. if (handle > 0 && valInRange <= bounds[handle - 1] + thershold) {
  50324. valNotConflict = bounds[handle - 1] + thershold;
  50325. }
  50326. if (handle < bounds.length - 1 && valInRange >= bounds[handle + 1] - thershold) {
  50327. valNotConflict = bounds[handle + 1] - thershold;
  50328. }
  50329. }
  50330. return _utils__WEBPACK_IMPORTED_MODULE_9__["ensureValuePrecision"](valNotConflict, props);
  50331. };
  50332. var rangeProps = {
  50333. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number),
  50334. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number),
  50335. count: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  50336. pushable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
  50337. allowCross: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  50338. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  50339. reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  50340. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number),
  50341. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  50342. min: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  50343. max: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  50344. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
  50345. };
  50346. var Range = {
  50347. name: 'Range',
  50348. displayName: 'Range',
  50349. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
  50350. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(rangeProps, {
  50351. count: 1,
  50352. allowCross: true,
  50353. pushable: false,
  50354. tabIndex: []
  50355. }),
  50356. data: function data() {
  50357. var _this = this;
  50358. var count = this.count,
  50359. min = this.min,
  50360. max = this.max;
  50361. var initialValue = Array.apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(Array(count + 1))).map(function () {
  50362. return min;
  50363. });
  50364. var defaultValue = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'defaultValue') ? this.defaultValue : initialValue;
  50365. var value = this.value;
  50366. if (value === undefined) {
  50367. value = defaultValue;
  50368. }
  50369. var bounds = value.map(function (v, i) {
  50370. return _trimAlignValue({
  50371. value: v,
  50372. handle: i,
  50373. props: _this.$props
  50374. });
  50375. });
  50376. var recent = bounds[0] === max ? 0 : bounds.length - 1;
  50377. return {
  50378. sHandle: null,
  50379. recent: recent,
  50380. bounds: bounds
  50381. };
  50382. },
  50383. watch: {
  50384. value: {
  50385. handler: function handler(val) {
  50386. var bounds = this.bounds;
  50387. this.setChangeValue(val || bounds);
  50388. },
  50389. deep: true
  50390. },
  50391. min: function min() {
  50392. var value = this.value;
  50393. this.setChangeValue(value || this.bounds);
  50394. },
  50395. max: function max() {
  50396. var value = this.value;
  50397. this.setChangeValue(value || this.bounds);
  50398. }
  50399. },
  50400. methods: {
  50401. setChangeValue: function setChangeValue(value) {
  50402. var _this2 = this;
  50403. var bounds = this.bounds;
  50404. var nextBounds = value.map(function (v, i) {
  50405. return _trimAlignValue({
  50406. value: v,
  50407. handle: i,
  50408. bounds: bounds,
  50409. props: _this2.$props
  50410. });
  50411. });
  50412. if (nextBounds.length === bounds.length && nextBounds.every(function (v, i) {
  50413. return v === bounds[i];
  50414. })) return;
  50415. this.setState({ bounds: nextBounds });
  50416. if (value.some(function (v) {
  50417. return _utils__WEBPACK_IMPORTED_MODULE_9__["isValueOutOfRange"](v, _this2.$props);
  50418. })) {
  50419. var newValues = value.map(function (v) {
  50420. return _utils__WEBPACK_IMPORTED_MODULE_9__["ensureValueInRange"](v, _this2.$props);
  50421. });
  50422. this.$emit('change', newValues);
  50423. }
  50424. },
  50425. onChange: function onChange(state) {
  50426. var isNotControlled = !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'value');
  50427. if (isNotControlled) {
  50428. this.setState(state);
  50429. } else {
  50430. var controlledState = {};
  50431. ['sHandle', 'recent'].forEach(function (item) {
  50432. if (state[item] !== undefined) {
  50433. controlledState[item] = state[item];
  50434. }
  50435. });
  50436. if (Object.keys(controlledState).length) {
  50437. this.setState(controlledState);
  50438. }
  50439. }
  50440. var data = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$data, state);
  50441. var changedValue = data.bounds;
  50442. this.$emit('change', changedValue);
  50443. },
  50444. onStart: function onStart(position) {
  50445. var bounds = this.bounds;
  50446. this.$emit('beforeChange', bounds);
  50447. var value = this.calcValueByPos(position);
  50448. this.startValue = value;
  50449. this.startPosition = position;
  50450. var closestBound = this.getClosestBound(value);
  50451. this.prevMovedHandleIndex = this.getBoundNeedMoving(value, closestBound);
  50452. this.setState({
  50453. sHandle: this.prevMovedHandleIndex,
  50454. recent: this.prevMovedHandleIndex
  50455. });
  50456. var prevValue = bounds[this.prevMovedHandleIndex];
  50457. if (value === prevValue) return;
  50458. var nextBounds = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(bounds));
  50459. nextBounds[this.prevMovedHandleIndex] = value;
  50460. this.onChange({ bounds: nextBounds });
  50461. },
  50462. onEnd: function onEnd(force) {
  50463. var sHandle = this.sHandle;
  50464. this.removeDocumentEvents();
  50465. if (sHandle !== null || force) {
  50466. this.$emit('afterChange', this.bounds);
  50467. }
  50468. this.setState({ sHandle: null });
  50469. },
  50470. onMove: function onMove(e, position) {
  50471. _utils__WEBPACK_IMPORTED_MODULE_9__["pauseEvent"](e);
  50472. var bounds = this.bounds,
  50473. sHandle = this.sHandle;
  50474. var value = this.calcValueByPos(position);
  50475. var oldValue = bounds[sHandle];
  50476. if (value === oldValue) return;
  50477. this.moveTo(value);
  50478. },
  50479. onKeyboard: function onKeyboard(e) {
  50480. var _$props = this.$props,
  50481. reverse = _$props.reverse,
  50482. vertical = _$props.vertical;
  50483. var valueMutator = _utils__WEBPACK_IMPORTED_MODULE_9__["getKeyboardValueMutator"](e, vertical, reverse);
  50484. if (valueMutator) {
  50485. _utils__WEBPACK_IMPORTED_MODULE_9__["pauseEvent"](e);
  50486. var bounds = this.bounds,
  50487. sHandle = this.sHandle;
  50488. var oldValue = bounds[sHandle === null ? this.recent : sHandle];
  50489. var mutatedValue = valueMutator(oldValue, this.$props);
  50490. var value = _trimAlignValue({
  50491. value: mutatedValue,
  50492. handle: sHandle,
  50493. bounds: bounds,
  50494. props: this.$props
  50495. });
  50496. if (value === oldValue) return;
  50497. var isFromKeyboardEvent = true;
  50498. this.moveTo(value, isFromKeyboardEvent);
  50499. }
  50500. },
  50501. getClosestBound: function getClosestBound(value) {
  50502. var bounds = this.bounds;
  50503. var closestBound = 0;
  50504. for (var i = 1; i < bounds.length - 1; ++i) {
  50505. if (value > bounds[i]) {
  50506. closestBound = i;
  50507. }
  50508. }
  50509. if (Math.abs(bounds[closestBound + 1] - value) < Math.abs(bounds[closestBound] - value)) {
  50510. closestBound += 1;
  50511. }
  50512. return closestBound;
  50513. },
  50514. getBoundNeedMoving: function getBoundNeedMoving(value, closestBound) {
  50515. var bounds = this.bounds,
  50516. recent = this.recent;
  50517. var boundNeedMoving = closestBound;
  50518. var isAtTheSamePoint = bounds[closestBound + 1] === bounds[closestBound];
  50519. if (isAtTheSamePoint && bounds[recent] === bounds[closestBound]) {
  50520. boundNeedMoving = recent;
  50521. }
  50522. if (isAtTheSamePoint && value !== bounds[closestBound + 1]) {
  50523. boundNeedMoving = value < bounds[closestBound + 1] ? closestBound : closestBound + 1;
  50524. }
  50525. return boundNeedMoving;
  50526. },
  50527. getLowerBound: function getLowerBound() {
  50528. return this.bounds[0];
  50529. },
  50530. getUpperBound: function getUpperBound() {
  50531. var bounds = this.bounds;
  50532. return bounds[bounds.length - 1];
  50533. },
  50534. /**
  50535. * Returns an array of possible slider points, taking into account both
  50536. * `marks` and `step`. The result is cached.
  50537. */
  50538. getPoints: function getPoints() {
  50539. var marks = this.marks,
  50540. step = this.step,
  50541. min = this.min,
  50542. max = this.max;
  50543. var cache = this._getPointsCache;
  50544. if (!cache || cache.marks !== marks || cache.step !== step) {
  50545. var pointsObject = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, marks);
  50546. if (step !== null) {
  50547. for (var point = min; point <= max; point += step) {
  50548. pointsObject[point] = point;
  50549. }
  50550. }
  50551. var points = Object.keys(pointsObject).map(parseFloat);
  50552. points.sort(function (a, b) {
  50553. return a - b;
  50554. });
  50555. this._getPointsCache = { marks: marks, step: step, points: points };
  50556. }
  50557. return this._getPointsCache.points;
  50558. },
  50559. moveTo: function moveTo(value, isFromKeyboardEvent) {
  50560. var _this3 = this;
  50561. var nextBounds = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.bounds));
  50562. var sHandle = this.sHandle,
  50563. recent = this.recent;
  50564. var handle = sHandle === null ? recent : sHandle;
  50565. nextBounds[handle] = value;
  50566. var nextHandle = handle;
  50567. if (this.$props.pushable !== false) {
  50568. this.pushSurroundingHandles(nextBounds, nextHandle);
  50569. } else if (this.$props.allowCross) {
  50570. nextBounds.sort(function (a, b) {
  50571. return a - b;
  50572. });
  50573. nextHandle = nextBounds.indexOf(value);
  50574. }
  50575. this.onChange({
  50576. recent: nextHandle,
  50577. sHandle: nextHandle,
  50578. bounds: nextBounds
  50579. });
  50580. if (isFromKeyboardEvent) {
  50581. // known problem: because setState is async,
  50582. // so trigger focus will invoke handler's onEnd and another handler's onStart too early,
  50583. // cause onBeforeChange and onAfterChange receive wrong value.
  50584. // here use setState callback to hack,but not elegant
  50585. this.$emit('afterChange', nextBounds);
  50586. this.setState({}, function () {
  50587. _this3.handlesRefs[nextHandle].focus();
  50588. });
  50589. this.onEnd();
  50590. }
  50591. },
  50592. pushSurroundingHandles: function pushSurroundingHandles(bounds, handle) {
  50593. var value = bounds[handle];
  50594. var threshold = this.pushable;
  50595. threshold = Number(threshold);
  50596. var direction = 0;
  50597. if (bounds[handle + 1] - value < threshold) {
  50598. direction = +1; // push to right
  50599. }
  50600. if (value - bounds[handle - 1] < threshold) {
  50601. direction = -1; // push to left
  50602. }
  50603. if (direction === 0) {
  50604. return;
  50605. }
  50606. var nextHandle = handle + direction;
  50607. var diffToNext = direction * (bounds[nextHandle] - value);
  50608. if (!this.pushHandle(bounds, nextHandle, direction, threshold - diffToNext)) {
  50609. // revert to original value if pushing is impossible
  50610. bounds[handle] = bounds[nextHandle] - direction * threshold;
  50611. }
  50612. },
  50613. pushHandle: function pushHandle(bounds, handle, direction, amount) {
  50614. var originalValue = bounds[handle];
  50615. var currentValue = bounds[handle];
  50616. while (direction * (currentValue - originalValue) < amount) {
  50617. if (!this.pushHandleOnePoint(bounds, handle, direction)) {
  50618. // can't push handle enough to create the needed `amount` gap, so we
  50619. // revert its position to the original value
  50620. bounds[handle] = originalValue;
  50621. return false;
  50622. }
  50623. currentValue = bounds[handle];
  50624. }
  50625. // the handle was pushed enough to create the needed `amount` gap
  50626. return true;
  50627. },
  50628. pushHandleOnePoint: function pushHandleOnePoint(bounds, handle, direction) {
  50629. var points = this.getPoints();
  50630. var pointIndex = points.indexOf(bounds[handle]);
  50631. var nextPointIndex = pointIndex + direction;
  50632. if (nextPointIndex >= points.length || nextPointIndex < 0) {
  50633. // reached the minimum or maximum available point, can't push anymore
  50634. return false;
  50635. }
  50636. var nextHandle = handle + direction;
  50637. var nextValue = points[nextPointIndex];
  50638. var threshold = this.pushable;
  50639. var diffToNext = direction * (bounds[nextHandle] - nextValue);
  50640. if (!this.pushHandle(bounds, nextHandle, direction, threshold - diffToNext)) {
  50641. // couldn't push next handle, so we won't push this one either
  50642. return false;
  50643. }
  50644. // push the handle
  50645. bounds[handle] = nextValue;
  50646. return true;
  50647. },
  50648. trimAlignValue: function trimAlignValue(value) {
  50649. var sHandle = this.sHandle,
  50650. bounds = this.bounds;
  50651. return _trimAlignValue({
  50652. value: value,
  50653. handle: sHandle,
  50654. bounds: bounds,
  50655. props: this.$props
  50656. });
  50657. },
  50658. ensureValueNotConflict: function ensureValueNotConflict(handle, val, _ref2) {
  50659. var allowCross = _ref2.allowCross,
  50660. thershold = _ref2.pushable;
  50661. var state = this.$data || {};
  50662. var bounds = state.bounds;
  50663. handle = handle === undefined ? state.sHandle : handle;
  50664. thershold = Number(thershold);
  50665. /* eslint-disable eqeqeq */
  50666. if (!allowCross && handle != null && bounds !== undefined) {
  50667. if (handle > 0 && val <= bounds[handle - 1] + thershold) {
  50668. return bounds[handle - 1] + thershold;
  50669. }
  50670. if (handle < bounds.length - 1 && val >= bounds[handle + 1] - thershold) {
  50671. return bounds[handle + 1] - thershold;
  50672. }
  50673. }
  50674. /* eslint-enable eqeqeq */
  50675. return val;
  50676. },
  50677. getTrack: function getTrack(_ref3) {
  50678. var bounds = _ref3.bounds,
  50679. prefixCls = _ref3.prefixCls,
  50680. reverse = _ref3.reverse,
  50681. vertical = _ref3.vertical,
  50682. included = _ref3.included,
  50683. offsets = _ref3.offsets,
  50684. trackStyle = _ref3.trackStyle;
  50685. var h = this.$createElement;
  50686. return bounds.slice(0, -1).map(function (_, index) {
  50687. var _classNames;
  50688. var i = index + 1;
  50689. var trackClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-track', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-track-' + i, true), _classNames));
  50690. return h(_common_Track__WEBPACK_IMPORTED_MODULE_7__["default"], {
  50691. 'class': trackClassName,
  50692. attrs: { vertical: vertical,
  50693. reverse: reverse,
  50694. included: included,
  50695. offset: offsets[i - 1],
  50696. length: offsets[i] - offsets[i - 1]
  50697. },
  50698. style: trackStyle[index],
  50699. key: i
  50700. });
  50701. });
  50702. },
  50703. renderSlider: function renderSlider() {
  50704. var _this4 = this;
  50705. var sHandle = this.sHandle,
  50706. bounds = this.bounds,
  50707. prefixCls = this.prefixCls,
  50708. vertical = this.vertical,
  50709. included = this.included,
  50710. disabled = this.disabled,
  50711. min = this.min,
  50712. max = this.max,
  50713. reverse = this.reverse,
  50714. handle = this.handle,
  50715. defaultHandle = this.defaultHandle,
  50716. trackStyle = this.trackStyle,
  50717. handleStyle = this.handleStyle,
  50718. tabIndex = this.tabIndex;
  50719. var handleGenerator = handle || defaultHandle;
  50720. var offsets = bounds.map(function (v) {
  50721. return _this4.calcOffset(v);
  50722. });
  50723. var handleClassName = prefixCls + '-handle';
  50724. var handles = bounds.map(function (v, i) {
  50725. var _classNames2;
  50726. var _tabIndex = tabIndex[i] || 0;
  50727. if (disabled || tabIndex[i] === null) {
  50728. _tabIndex = null;
  50729. }
  50730. return handleGenerator({
  50731. className: classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, handleClassName, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, handleClassName + '-' + (i + 1), true), _classNames2)),
  50732. prefixCls: prefixCls,
  50733. vertical: vertical,
  50734. offset: offsets[i],
  50735. value: v,
  50736. dragging: sHandle === i,
  50737. index: i,
  50738. tabIndex: _tabIndex,
  50739. min: min,
  50740. max: max,
  50741. reverse: reverse,
  50742. disabled: disabled,
  50743. style: handleStyle[i],
  50744. directives: [{
  50745. name: 'ant-ref',
  50746. value: function value(h) {
  50747. return _this4.saveHandle(i, h);
  50748. }
  50749. }],
  50750. on: {
  50751. focus: _this4.onFocus,
  50752. blur: _this4.onBlur
  50753. }
  50754. });
  50755. });
  50756. return {
  50757. tracks: this.getTrack({
  50758. bounds: bounds,
  50759. prefixCls: prefixCls,
  50760. reverse: reverse,
  50761. vertical: vertical,
  50762. included: included,
  50763. offsets: offsets,
  50764. trackStyle: trackStyle
  50765. }),
  50766. handles: handles
  50767. };
  50768. }
  50769. }
  50770. };
  50771. /* harmony default export */ __webpack_exports__["default"] = (Object(_common_createSlider__WEBPACK_IMPORTED_MODULE_8__["default"])(Range));
  50772. /***/ }),
  50773. /***/ "./components/vc-slider/src/Slider.jsx":
  50774. /*!*********************************************!*\
  50775. !*** ./components/vc-slider/src/Slider.jsx ***!
  50776. \*********************************************/
  50777. /*! exports provided: default */
  50778. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50779. "use strict";
  50780. __webpack_require__.r(__webpack_exports__);
  50781. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  50782. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  50783. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  50784. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
  50785. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  50786. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  50787. /* harmony import */ var _common_Track__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./common/Track */ "./components/vc-slider/src/common/Track.jsx");
  50788. /* harmony import */ var _common_createSlider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./common/createSlider */ "./components/vc-slider/src/common/createSlider.jsx");
  50789. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ "./components/vc-slider/src/utils.js");
  50790. var Slider = {
  50791. name: 'Slider',
  50792. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  50793. props: {
  50794. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  50795. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  50796. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  50797. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  50798. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  50799. reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  50800. min: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  50801. max: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number
  50802. },
  50803. data: function data() {
  50804. var defaultValue = this.defaultValue !== undefined ? this.defaultValue : this.min;
  50805. var value = this.value !== undefined ? this.value : defaultValue;
  50806. Object(_util_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'minimumTrackStyle'), 'Slider', 'minimumTrackStyle will be deprecate, please use trackStyle instead.');
  50807. Object(_util_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'maximumTrackStyle'), 'Slider', 'maximumTrackStyle will be deprecate, please use railStyle instead.');
  50808. return {
  50809. sValue: this.trimAlignValue(value),
  50810. dragging: false
  50811. };
  50812. },
  50813. watch: {
  50814. value: {
  50815. handler: function handler(val) {
  50816. this.setChangeValue(val);
  50817. },
  50818. deep: true
  50819. },
  50820. min: function min() {
  50821. var sValue = this.sValue;
  50822. this.setChangeValue(sValue);
  50823. },
  50824. max: function max() {
  50825. var sValue = this.sValue;
  50826. this.setChangeValue(sValue);
  50827. }
  50828. },
  50829. methods: {
  50830. setChangeValue: function setChangeValue(value) {
  50831. var newValue = value !== undefined ? value : this.sValue;
  50832. var nextValue = this.trimAlignValue(newValue, this.$props);
  50833. if (nextValue === this.sValue) return;
  50834. this.setState({ sValue: nextValue });
  50835. if (_utils__WEBPACK_IMPORTED_MODULE_7__["isValueOutOfRange"](newValue, this.$props)) {
  50836. this.$emit('change', nextValue);
  50837. }
  50838. },
  50839. onChange: function onChange(state) {
  50840. var isNotControlled = !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'value');
  50841. var nextState = state.sValue > this.max ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, state, { sValue: this.max }) : state;
  50842. if (isNotControlled) {
  50843. this.setState(nextState);
  50844. }
  50845. var changedValue = nextState.sValue;
  50846. this.$emit('change', changedValue);
  50847. },
  50848. onStart: function onStart(position) {
  50849. this.setState({ dragging: true });
  50850. var sValue = this.sValue;
  50851. this.$emit('beforeChange', sValue);
  50852. var value = this.calcValueByPos(position);
  50853. this.startValue = value;
  50854. this.startPosition = position;
  50855. if (value === sValue) return;
  50856. this.prevMovedHandleIndex = 0;
  50857. this.onChange({ sValue: value });
  50858. },
  50859. onEnd: function onEnd(force) {
  50860. var dragging = this.dragging;
  50861. this.removeDocumentEvents();
  50862. if (dragging || force) {
  50863. this.$emit('afterChange', this.sValue);
  50864. }
  50865. this.setState({ dragging: false });
  50866. },
  50867. onMove: function onMove(e, position) {
  50868. _utils__WEBPACK_IMPORTED_MODULE_7__["pauseEvent"](e);
  50869. var sValue = this.sValue;
  50870. var value = this.calcValueByPos(position);
  50871. if (value === sValue) return;
  50872. this.onChange({ sValue: value });
  50873. },
  50874. onKeyboard: function onKeyboard(e) {
  50875. var _$props = this.$props,
  50876. reverse = _$props.reverse,
  50877. vertical = _$props.vertical;
  50878. var valueMutator = _utils__WEBPACK_IMPORTED_MODULE_7__["getKeyboardValueMutator"](e, vertical, reverse);
  50879. if (valueMutator) {
  50880. _utils__WEBPACK_IMPORTED_MODULE_7__["pauseEvent"](e);
  50881. var sValue = this.sValue;
  50882. var mutatedValue = valueMutator(sValue, this.$props);
  50883. var value = this.trimAlignValue(mutatedValue);
  50884. if (value === sValue) return;
  50885. this.onChange({ sValue: value });
  50886. this.$emit('afterChange', value);
  50887. this.onEnd();
  50888. }
  50889. },
  50890. getLowerBound: function getLowerBound() {
  50891. return this.min;
  50892. },
  50893. getUpperBound: function getUpperBound() {
  50894. return this.sValue;
  50895. },
  50896. trimAlignValue: function trimAlignValue(v) {
  50897. var nextProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  50898. if (v === null) {
  50899. return null;
  50900. }
  50901. var mergedProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, nextProps);
  50902. var val = _utils__WEBPACK_IMPORTED_MODULE_7__["ensureValueInRange"](v, mergedProps);
  50903. return _utils__WEBPACK_IMPORTED_MODULE_7__["ensureValuePrecision"](val, mergedProps);
  50904. },
  50905. getTrack: function getTrack(_ref) {
  50906. var prefixCls = _ref.prefixCls,
  50907. reverse = _ref.reverse,
  50908. vertical = _ref.vertical,
  50909. included = _ref.included,
  50910. offset = _ref.offset,
  50911. minimumTrackStyle = _ref.minimumTrackStyle,
  50912. _trackStyle = _ref._trackStyle;
  50913. var h = this.$createElement;
  50914. return h(_common_Track__WEBPACK_IMPORTED_MODULE_5__["default"], {
  50915. 'class': prefixCls + '-track',
  50916. attrs: { vertical: vertical,
  50917. included: included,
  50918. offset: 0,
  50919. reverse: reverse,
  50920. length: offset
  50921. },
  50922. style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, minimumTrackStyle, _trackStyle)
  50923. });
  50924. },
  50925. renderSlider: function renderSlider() {
  50926. var _this = this;
  50927. var prefixCls = this.prefixCls,
  50928. vertical = this.vertical,
  50929. included = this.included,
  50930. disabled = this.disabled,
  50931. minimumTrackStyle = this.minimumTrackStyle,
  50932. trackStyle = this.trackStyle,
  50933. handleStyle = this.handleStyle,
  50934. tabIndex = this.tabIndex,
  50935. min = this.min,
  50936. max = this.max,
  50937. reverse = this.reverse,
  50938. handle = this.handle,
  50939. defaultHandle = this.defaultHandle;
  50940. var handleGenerator = handle || defaultHandle;
  50941. var sValue = this.sValue,
  50942. dragging = this.dragging;
  50943. var offset = this.calcOffset(sValue);
  50944. var handles = handleGenerator({
  50945. className: prefixCls + '-handle',
  50946. prefixCls: prefixCls,
  50947. vertical: vertical,
  50948. offset: offset,
  50949. value: sValue,
  50950. dragging: dragging,
  50951. disabled: disabled,
  50952. min: min,
  50953. max: max,
  50954. reverse: reverse,
  50955. index: 0,
  50956. tabIndex: tabIndex,
  50957. style: handleStyle[0] || handleStyle,
  50958. directives: [{
  50959. name: 'ant-ref',
  50960. value: function value(h) {
  50961. return _this.saveHandle(0, h);
  50962. }
  50963. }],
  50964. on: {
  50965. focus: this.onFocus,
  50966. blur: this.onBlur
  50967. }
  50968. });
  50969. var _trackStyle = trackStyle[0] || trackStyle;
  50970. return {
  50971. tracks: this.getTrack({
  50972. prefixCls: prefixCls,
  50973. reverse: reverse,
  50974. vertical: vertical,
  50975. included: included,
  50976. offset: offset,
  50977. minimumTrackStyle: minimumTrackStyle,
  50978. _trackStyle: _trackStyle
  50979. }),
  50980. handles: handles
  50981. };
  50982. }
  50983. }
  50984. };
  50985. /* harmony default export */ __webpack_exports__["default"] = (Object(_common_createSlider__WEBPACK_IMPORTED_MODULE_6__["default"])(Slider));
  50986. /***/ }),
  50987. /***/ "./components/vc-slider/src/common/Marks.jsx":
  50988. /*!***************************************************!*\
  50989. !*** ./components/vc-slider/src/common/Marks.jsx ***!
  50990. \***************************************************/
  50991. /*! exports provided: default */
  50992. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50993. "use strict";
  50994. __webpack_require__.r(__webpack_exports__);
  50995. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  50996. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  50997. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  50998. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  50999. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  51000. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
  51001. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  51002. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  51003. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
  51004. var Marks = {
  51005. functional: true,
  51006. render: function render(h, context) {
  51007. var _context$props = context.props,
  51008. className = _context$props.className,
  51009. vertical = _context$props.vertical,
  51010. reverse = _context$props.reverse,
  51011. marks = _context$props.marks,
  51012. included = _context$props.included,
  51013. upperBound = _context$props.upperBound,
  51014. lowerBound = _context$props.lowerBound,
  51015. max = _context$props.max,
  51016. min = _context$props.min;
  51017. var clickLabel = context.listeners.clickLabel;
  51018. var marksKeys = Object.keys(marks);
  51019. var range = max - min;
  51020. var elements = marksKeys.map(parseFloat).sort(function (a, b) {
  51021. return a - b;
  51022. }).map(function (point) {
  51023. var _classNames;
  51024. var markPoint = typeof marks[point] === 'function' ? marks[point](h) : marks[point];
  51025. var markPointIsObject = (typeof markPoint === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(markPoint)) === 'object' && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["isValidElement"])(markPoint);
  51026. var markLabel = markPointIsObject ? markPoint.label : markPoint;
  51027. if (!markLabel && markLabel !== 0) {
  51028. return null;
  51029. }
  51030. var isActive = !included && point === upperBound || included && point <= upperBound && point >= lowerBound;
  51031. var markClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, className + '-text', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, className + '-text-active', isActive), _classNames));
  51032. var bottomStyle = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({
  51033. marginBottom: '-50%'
  51034. }, reverse ? 'top' : 'bottom', (point - min) / range * 100 + '%');
  51035. var leftStyle = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({
  51036. transform: 'translateX(-50%)',
  51037. msTransform: 'translateX(-50%)'
  51038. }, reverse ? 'right' : 'left', reverse ? (point - min / 4) / range * 100 + '%' : (point - min) / range * 100 + '%');
  51039. var style = vertical ? bottomStyle : leftStyle;
  51040. var markStyle = markPointIsObject ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, style, markPoint.style) : style;
  51041. return h(
  51042. 'span',
  51043. {
  51044. 'class': markClassName,
  51045. style: markStyle,
  51046. key: point,
  51047. on: {
  51048. 'mousedown': function mousedown(e) {
  51049. return clickLabel(e, point);
  51050. },
  51051. 'touchstart': function touchstart(e) {
  51052. return clickLabel(e, point);
  51053. }
  51054. }
  51055. },
  51056. [markLabel]
  51057. );
  51058. });
  51059. return h(
  51060. 'div',
  51061. { 'class': className },
  51062. [elements]
  51063. );
  51064. }
  51065. };
  51066. /* harmony default export */ __webpack_exports__["default"] = (Marks);
  51067. /***/ }),
  51068. /***/ "./components/vc-slider/src/common/Steps.jsx":
  51069. /*!***************************************************!*\
  51070. !*** ./components/vc-slider/src/common/Steps.jsx ***!
  51071. \***************************************************/
  51072. /*! exports provided: default */
  51073. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51074. "use strict";
  51075. __webpack_require__.r(__webpack_exports__);
  51076. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  51077. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  51078. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  51079. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  51080. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  51081. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  51082. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/warning */ "./components/_util/warning.js");
  51083. var calcPoints = function calcPoints(vertical, marks, dots, step, min, max) {
  51084. Object(_util_warning__WEBPACK_IMPORTED_MODULE_3__["default"])(dots ? step > 0 : true, 'Slider', '`Slider[step]` should be a positive number in order to make Slider[dots] work.');
  51085. var points = Object.keys(marks).map(parseFloat).sort(function (a, b) {
  51086. return a - b;
  51087. });
  51088. if (dots && step) {
  51089. for (var i = min; i <= max; i += step) {
  51090. if (points.indexOf(i) === -1) {
  51091. points.push(i);
  51092. }
  51093. }
  51094. }
  51095. return points;
  51096. };
  51097. var Steps = {
  51098. functional: true,
  51099. render: function render(h, context) {
  51100. var _context$props = context.props,
  51101. prefixCls = _context$props.prefixCls,
  51102. vertical = _context$props.vertical,
  51103. reverse = _context$props.reverse,
  51104. marks = _context$props.marks,
  51105. dots = _context$props.dots,
  51106. step = _context$props.step,
  51107. included = _context$props.included,
  51108. lowerBound = _context$props.lowerBound,
  51109. upperBound = _context$props.upperBound,
  51110. max = _context$props.max,
  51111. min = _context$props.min,
  51112. dotStyle = _context$props.dotStyle,
  51113. activeDotStyle = _context$props.activeDotStyle;
  51114. var range = max - min;
  51115. var elements = calcPoints(vertical, marks, dots, step, min, max).map(function (point) {
  51116. var _classNames;
  51117. var offset = Math.abs(point - min) / range * 100 + '%';
  51118. var isActived = !included && point === upperBound || included && point <= upperBound && point >= lowerBound;
  51119. var style = vertical ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, dotStyle, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, reverse ? 'top' : 'bottom', offset)) : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, dotStyle, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, reverse ? 'right' : 'left', offset));
  51120. if (isActived) {
  51121. style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, style, activeDotStyle);
  51122. }
  51123. var pointClassName = classnames__WEBPACK_IMPORTED_MODULE_2___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-dot', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-dot-active', isActived), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-dot-reverse', reverse), _classNames));
  51124. return h('span', { 'class': pointClassName, style: style, key: point });
  51125. });
  51126. return h(
  51127. 'div',
  51128. { 'class': prefixCls + '-step' },
  51129. [elements]
  51130. );
  51131. }
  51132. };
  51133. /* harmony default export */ __webpack_exports__["default"] = (Steps);
  51134. /***/ }),
  51135. /***/ "./components/vc-slider/src/common/Track.jsx":
  51136. /*!***************************************************!*\
  51137. !*** ./components/vc-slider/src/common/Track.jsx ***!
  51138. \***************************************************/
  51139. /*! exports provided: default */
  51140. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51141. "use strict";
  51142. __webpack_require__.r(__webpack_exports__);
  51143. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  51144. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  51145. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  51146. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  51147. /* eslint-disable */
  51148. var Track = {
  51149. functional: true,
  51150. render: function render(h, context) {
  51151. var _ref, _ref2;
  51152. var _context$props = context.props,
  51153. included = _context$props.included,
  51154. vertical = _context$props.vertical,
  51155. offset = _context$props.offset,
  51156. length = _context$props.length,
  51157. reverse = _context$props.reverse;
  51158. var _context$data = context.data,
  51159. style = _context$data.style,
  51160. className = _context$data['class'];
  51161. var positonStyle = vertical ? (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, reverse ? 'top' : 'bottom', offset + '%'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, reverse ? 'bottom' : 'top', 'auto'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, 'height', length + '%'), _ref) : (_ref2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, reverse ? 'right' : 'left', offset + '%'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, reverse ? 'left' : 'right', 'auto'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, 'width', length + '%'), _ref2);
  51162. var elStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, style, positonStyle);
  51163. return included ? h('div', { 'class': className, style: elStyle }) : null;
  51164. }
  51165. };
  51166. /* harmony default export */ __webpack_exports__["default"] = (Track);
  51167. /***/ }),
  51168. /***/ "./components/vc-slider/src/common/createSlider.jsx":
  51169. /*!**********************************************************!*\
  51170. !*** ./components/vc-slider/src/common/createSlider.jsx ***!
  51171. \**********************************************************/
  51172. /*! exports provided: default */
  51173. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51174. "use strict";
  51175. __webpack_require__.r(__webpack_exports__);
  51176. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createSlider; });
  51177. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  51178. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  51179. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  51180. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  51181. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  51182. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
  51183. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  51184. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  51185. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  51186. /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
  51187. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_util/warning */ "./components/_util/warning.js");
  51188. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
  51189. /* harmony import */ var _Steps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Steps */ "./components/vc-slider/src/common/Steps.jsx");
  51190. /* harmony import */ var _Marks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Marks */ "./components/vc-slider/src/common/Marks.jsx");
  51191. /* harmony import */ var _Handle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Handle */ "./components/vc-slider/src/Handle.jsx");
  51192. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils */ "./components/vc-slider/src/utils.js");
  51193. function noop() {}
  51194. function createSlider(Component) {
  51195. // const displayName = `ComponentEnhancer(${Component.displayName})`
  51196. var propTypes = {
  51197. min: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  51198. max: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  51199. step: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  51200. marks: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  51201. included: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  51202. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  51203. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  51204. handle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
  51205. dots: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  51206. vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  51207. reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  51208. minimumTrackStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object, // just for compatibility, will be deperecate
  51209. maximumTrackStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object, // just for compatibility, will be deperecate
  51210. handleStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object)]),
  51211. trackStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object)]),
  51212. railStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  51213. dotStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  51214. activeDotStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  51215. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
  51216. };
  51217. return {
  51218. name: 'createSlider',
  51219. mixins: [Component],
  51220. model: {
  51221. prop: 'value',
  51222. event: 'change'
  51223. },
  51224. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(propTypes, {
  51225. prefixCls: 'rc-slider',
  51226. min: 0,
  51227. max: 100,
  51228. step: 1,
  51229. marks: {},
  51230. included: true,
  51231. disabled: false,
  51232. dots: false,
  51233. vertical: false,
  51234. reverse: false,
  51235. trackStyle: [{}],
  51236. handleStyle: [{}],
  51237. railStyle: {},
  51238. dotStyle: {},
  51239. activeDotStyle: {}
  51240. }),
  51241. data: function data() {
  51242. var step = this.step,
  51243. max = this.max,
  51244. min = this.min;
  51245. var isPointDiffEven = isFinite(max - min) ? (max - min) % step === 0 : true; // eslint-disable-line
  51246. Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(step && Math.floor(step) === step ? isPointDiffEven : true, 'Slider', 'Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)', max - min, step);
  51247. this.handlesRefs = {};
  51248. return {};
  51249. },
  51250. mounted: function mounted() {
  51251. var _this = this;
  51252. this.$nextTick(function () {
  51253. // Snapshot testing cannot handle refs, so be sure to null-check this.
  51254. _this.document = _this.$refs.sliderRef && _this.$refs.sliderRef.ownerDocument;
  51255. // this.setHandleRefs()
  51256. var autoFocus = _this.autoFocus,
  51257. disabled = _this.disabled;
  51258. if (autoFocus && !disabled) {
  51259. _this.focus();
  51260. }
  51261. });
  51262. },
  51263. beforeDestroy: function beforeDestroy() {
  51264. var _this2 = this;
  51265. this.$nextTick(function () {
  51266. // if (super.componentWillUnmount) super.componentWillUnmount()
  51267. _this2.removeDocumentEvents();
  51268. });
  51269. },
  51270. methods: {
  51271. defaultHandle: function defaultHandle(_ref) {
  51272. var index = _ref.index,
  51273. directives = _ref.directives,
  51274. className = _ref.className,
  51275. style = _ref.style,
  51276. on = _ref.on,
  51277. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_ref, ['index', 'directives', 'className', 'style', 'on']);
  51278. var h = this.$createElement;
  51279. delete restProps.dragging;
  51280. if (restProps.value === null) {
  51281. return null;
  51282. }
  51283. var handleProps = {
  51284. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, restProps),
  51285. 'class': className,
  51286. style: style,
  51287. key: index,
  51288. directives: directives,
  51289. on: on
  51290. };
  51291. return h(_Handle__WEBPACK_IMPORTED_MODULE_10__["default"], handleProps);
  51292. },
  51293. onMouseDown: function onMouseDown(e) {
  51294. if (e.button !== 0) {
  51295. return;
  51296. }
  51297. var isVertical = this.vertical;
  51298. var position = _utils__WEBPACK_IMPORTED_MODULE_11__["getMousePosition"](isVertical, e);
  51299. if (!_utils__WEBPACK_IMPORTED_MODULE_11__["isEventFromHandle"](e, this.handlesRefs)) {
  51300. this.dragOffset = 0;
  51301. } else {
  51302. var handlePosition = _utils__WEBPACK_IMPORTED_MODULE_11__["getHandleCenterPosition"](isVertical, e.target);
  51303. this.dragOffset = position - handlePosition;
  51304. position = handlePosition;
  51305. }
  51306. this.removeDocumentEvents();
  51307. this.onStart(position);
  51308. this.addDocumentMouseEvents();
  51309. _utils__WEBPACK_IMPORTED_MODULE_11__["pauseEvent"](e);
  51310. },
  51311. onTouchStart: function onTouchStart(e) {
  51312. if (_utils__WEBPACK_IMPORTED_MODULE_11__["isNotTouchEvent"](e)) return;
  51313. var isVertical = this.vertical;
  51314. var position = _utils__WEBPACK_IMPORTED_MODULE_11__["getTouchPosition"](isVertical, e);
  51315. if (!_utils__WEBPACK_IMPORTED_MODULE_11__["isEventFromHandle"](e, this.handlesRefs)) {
  51316. this.dragOffset = 0;
  51317. } else {
  51318. var handlePosition = _utils__WEBPACK_IMPORTED_MODULE_11__["getHandleCenterPosition"](isVertical, e.target);
  51319. this.dragOffset = position - handlePosition;
  51320. position = handlePosition;
  51321. }
  51322. this.onStart(position);
  51323. this.addDocumentTouchEvents();
  51324. _utils__WEBPACK_IMPORTED_MODULE_11__["pauseEvent"](e);
  51325. },
  51326. onFocus: function onFocus(e) {
  51327. var vertical = this.vertical;
  51328. if (_utils__WEBPACK_IMPORTED_MODULE_11__["isEventFromHandle"](e, this.handlesRefs)) {
  51329. var handlePosition = _utils__WEBPACK_IMPORTED_MODULE_11__["getHandleCenterPosition"](vertical, e.target);
  51330. this.dragOffset = 0;
  51331. this.onStart(handlePosition);
  51332. _utils__WEBPACK_IMPORTED_MODULE_11__["pauseEvent"](e);
  51333. this.$emit('focus', e);
  51334. }
  51335. },
  51336. onBlur: function onBlur(e) {
  51337. this.onEnd();
  51338. this.$emit('blur', e);
  51339. },
  51340. onMouseUp: function onMouseUp() {
  51341. if (this.handlesRefs[this.prevMovedHandleIndex]) {
  51342. this.handlesRefs[this.prevMovedHandleIndex].clickFocus();
  51343. }
  51344. },
  51345. onMouseMove: function onMouseMove(e) {
  51346. if (!this.$refs.sliderRef) {
  51347. this.onEnd();
  51348. return;
  51349. }
  51350. var position = _utils__WEBPACK_IMPORTED_MODULE_11__["getMousePosition"](this.vertical, e);
  51351. this.onMove(e, position - this.dragOffset);
  51352. },
  51353. onTouchMove: function onTouchMove(e) {
  51354. if (_utils__WEBPACK_IMPORTED_MODULE_11__["isNotTouchEvent"](e) || !this.$refs.sliderRef) {
  51355. this.onEnd();
  51356. return;
  51357. }
  51358. var position = _utils__WEBPACK_IMPORTED_MODULE_11__["getTouchPosition"](this.vertical, e);
  51359. this.onMove(e, position - this.dragOffset);
  51360. },
  51361. onKeyDown: function onKeyDown(e) {
  51362. if (this.$refs.sliderRef && _utils__WEBPACK_IMPORTED_MODULE_11__["isEventFromHandle"](e, this.handlesRefs)) {
  51363. this.onKeyboard(e);
  51364. }
  51365. },
  51366. onClickMarkLabel: function onClickMarkLabel(e, value) {
  51367. var _this3 = this;
  51368. e.stopPropagation();
  51369. this.onChange({ sValue: value });
  51370. this.setState({ sValue: value }, function () {
  51371. return _this3.onEnd(true);
  51372. });
  51373. },
  51374. getSliderStart: function getSliderStart() {
  51375. var slider = this.$refs.sliderRef;
  51376. var vertical = this.vertical,
  51377. reverse = this.reverse;
  51378. var rect = slider.getBoundingClientRect();
  51379. if (vertical) {
  51380. return reverse ? rect.bottom : rect.top;
  51381. }
  51382. return window.pageXOffset + (reverse ? rect.right : rect.left);
  51383. },
  51384. getSliderLength: function getSliderLength() {
  51385. var slider = this.$refs.sliderRef;
  51386. if (!slider) {
  51387. return 0;
  51388. }
  51389. var coords = slider.getBoundingClientRect();
  51390. return this.vertical ? coords.height : coords.width;
  51391. },
  51392. addDocumentTouchEvents: function addDocumentTouchEvents() {
  51393. // just work for Chrome iOS Safari and Android Browser
  51394. this.onTouchMoveListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(this.document, 'touchmove', this.onTouchMove);
  51395. this.onTouchUpListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(this.document, 'touchend', this.onEnd);
  51396. },
  51397. addDocumentMouseEvents: function addDocumentMouseEvents() {
  51398. this.onMouseMoveListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(this.document, 'mousemove', this.onMouseMove);
  51399. this.onMouseUpListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(this.document, 'mouseup', this.onEnd);
  51400. },
  51401. removeDocumentEvents: function removeDocumentEvents() {
  51402. /* eslint-disable no-unused-expressions */
  51403. this.onTouchMoveListener && this.onTouchMoveListener.remove();
  51404. this.onTouchUpListener && this.onTouchUpListener.remove();
  51405. this.onMouseMoveListener && this.onMouseMoveListener.remove();
  51406. this.onMouseUpListener && this.onMouseUpListener.remove();
  51407. /* eslint-enable no-unused-expressions */
  51408. },
  51409. focus: function focus() {
  51410. if (!this.disabled) {
  51411. this.handlesRefs[0].focus();
  51412. }
  51413. },
  51414. blur: function blur() {
  51415. var _this4 = this;
  51416. if (!this.disabled) {
  51417. Object.keys(this.handlesRefs).forEach(function (key) {
  51418. if (_this4.handlesRefs[key] && _this4.handlesRefs[key].blur) {
  51419. _this4.handlesRefs[key].blur();
  51420. }
  51421. });
  51422. }
  51423. },
  51424. calcValue: function calcValue(offset) {
  51425. var vertical = this.vertical,
  51426. min = this.min,
  51427. max = this.max;
  51428. var ratio = Math.abs(Math.max(offset, 0) / this.getSliderLength());
  51429. var value = vertical ? (1 - ratio) * (max - min) + min : ratio * (max - min) + min;
  51430. return value;
  51431. },
  51432. calcValueByPos: function calcValueByPos(position) {
  51433. var sign = this.reverse ? -1 : +1;
  51434. var pixelOffset = sign * (position - this.getSliderStart());
  51435. var nextValue = this.trimAlignValue(this.calcValue(pixelOffset));
  51436. return nextValue;
  51437. },
  51438. calcOffset: function calcOffset(value) {
  51439. var min = this.min,
  51440. max = this.max;
  51441. var ratio = (value - min) / (max - min);
  51442. return ratio * 100;
  51443. },
  51444. saveHandle: function saveHandle(index, handle) {
  51445. this.handlesRefs[index] = handle;
  51446. }
  51447. },
  51448. render: function render(h) {
  51449. var _classNames;
  51450. var prefixCls = this.prefixCls,
  51451. marks = this.marks,
  51452. dots = this.dots,
  51453. step = this.step,
  51454. included = this.included,
  51455. disabled = this.disabled,
  51456. vertical = this.vertical,
  51457. reverse = this.reverse,
  51458. min = this.min,
  51459. max = this.max,
  51460. maximumTrackStyle = this.maximumTrackStyle,
  51461. railStyle = this.railStyle,
  51462. dotStyle = this.dotStyle,
  51463. activeDotStyle = this.activeDotStyle;
  51464. var _renderSlider = this.renderSlider(h),
  51465. tracks = _renderSlider.tracks,
  51466. handles = _renderSlider.handles;
  51467. var sliderClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-with-marks', Object.keys(marks).length), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-vertical', vertical), _classNames));
  51468. var markProps = {
  51469. props: {
  51470. vertical: vertical,
  51471. marks: marks,
  51472. included: included,
  51473. lowerBound: this.getLowerBound(),
  51474. upperBound: this.getUpperBound(),
  51475. max: max,
  51476. min: min,
  51477. reverse: reverse,
  51478. className: prefixCls + '-mark'
  51479. },
  51480. on: {
  51481. clickLabel: disabled ? noop : this.onClickMarkLabel
  51482. }
  51483. };
  51484. return h(
  51485. 'div',
  51486. {
  51487. ref: 'sliderRef',
  51488. attrs: { tabIndex: '-1'
  51489. },
  51490. 'class': sliderClassName,
  51491. on: {
  51492. 'touchstart': disabled ? noop : this.onTouchStart,
  51493. 'mousedown': disabled ? noop : this.onMouseDown,
  51494. 'mouseup': disabled ? noop : this.onMouseUp,
  51495. 'keydown': disabled ? noop : this.onKeyDown,
  51496. 'focus': disabled ? noop : this.onFocus,
  51497. 'blur': disabled ? noop : this.onBlur
  51498. }
  51499. },
  51500. [h('div', {
  51501. 'class': prefixCls + '-rail',
  51502. style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, maximumTrackStyle, railStyle)
  51503. }), tracks, h(_Steps__WEBPACK_IMPORTED_MODULE_8__["default"], {
  51504. attrs: {
  51505. prefixCls: prefixCls,
  51506. vertical: vertical,
  51507. reverse: reverse,
  51508. marks: marks,
  51509. dots: dots,
  51510. step: step,
  51511. included: included,
  51512. lowerBound: this.getLowerBound(),
  51513. upperBound: this.getUpperBound(),
  51514. max: max,
  51515. min: min,
  51516. dotStyle: dotStyle,
  51517. activeDotStyle: activeDotStyle
  51518. }
  51519. }), handles, h(_Marks__WEBPACK_IMPORTED_MODULE_9__["default"], markProps), this.$slots['default']]
  51520. );
  51521. }
  51522. };
  51523. }
  51524. /***/ }),
  51525. /***/ "./components/vc-slider/src/utils.js":
  51526. /*!*******************************************!*\
  51527. !*** ./components/vc-slider/src/utils.js ***!
  51528. \*******************************************/
  51529. /*! exports provided: isEventFromHandle, isValueOutOfRange, isNotTouchEvent, getClosestPoint, getPrecision, getMousePosition, getTouchPosition, getHandleCenterPosition, ensureValueInRange, ensureValuePrecision, pauseEvent, calculateNextValue, getKeyboardValueMutator */
  51530. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51531. "use strict";
  51532. __webpack_require__.r(__webpack_exports__);
  51533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEventFromHandle", function() { return isEventFromHandle; });
  51534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValueOutOfRange", function() { return isValueOutOfRange; });
  51535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNotTouchEvent", function() { return isNotTouchEvent; });
  51536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClosestPoint", function() { return getClosestPoint; });
  51537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPrecision", function() { return getPrecision; });
  51538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMousePosition", function() { return getMousePosition; });
  51539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTouchPosition", function() { return getTouchPosition; });
  51540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHandleCenterPosition", function() { return getHandleCenterPosition; });
  51541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ensureValueInRange", function() { return ensureValueInRange; });
  51542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ensureValuePrecision", function() { return ensureValuePrecision; });
  51543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pauseEvent", function() { return pauseEvent; });
  51544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateNextValue", function() { return calculateNextValue; });
  51545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getKeyboardValueMutator", function() { return getKeyboardValueMutator; });
  51546. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  51547. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  51548. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
  51549. function isEventFromHandle(e, handles) {
  51550. try {
  51551. return Object.keys(handles).some(function (key) {
  51552. return e.target === handles[key].$el || e.target === handles[key];
  51553. });
  51554. } catch (error) {
  51555. return false;
  51556. }
  51557. }
  51558. function isValueOutOfRange(value, _ref) {
  51559. var min = _ref.min,
  51560. max = _ref.max;
  51561. return value < min || value > max;
  51562. }
  51563. function isNotTouchEvent(e) {
  51564. return e.touches.length > 1 || e.type.toLowerCase() === 'touchend' && e.touches.length > 0;
  51565. }
  51566. function getClosestPoint(val, _ref2) {
  51567. var marks = _ref2.marks,
  51568. step = _ref2.step,
  51569. min = _ref2.min,
  51570. max = _ref2.max;
  51571. var points = Object.keys(marks).map(parseFloat);
  51572. if (step !== null) {
  51573. var base = Math.pow(10, getPrecision(step));
  51574. var maxSteps = Math.floor((max * base - min * base) / (step * base));
  51575. var steps = Math.min((val - min) / step, maxSteps);
  51576. var closestStep = Math.round(steps) * step + min;
  51577. points.push(closestStep);
  51578. }
  51579. var diffs = points.map(function (point) {
  51580. return Math.abs(val - point);
  51581. });
  51582. return points[diffs.indexOf(Math.min.apply(Math, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(diffs)))];
  51583. }
  51584. function getPrecision(step) {
  51585. var stepString = step.toString();
  51586. var precision = 0;
  51587. if (stepString.indexOf('.') >= 0) {
  51588. precision = stepString.length - stepString.indexOf('.') - 1;
  51589. }
  51590. return precision;
  51591. }
  51592. function getMousePosition(vertical, e) {
  51593. var zoom = 1;
  51594. if (window.visualViewport) {
  51595. zoom = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2);
  51596. }
  51597. return (vertical ? e.clientY : e.pageX) / zoom;
  51598. }
  51599. function getTouchPosition(vertical, e) {
  51600. var zoom = 1;
  51601. if (window.visualViewport) {
  51602. zoom = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2);
  51603. }
  51604. return (vertical ? e.touches[0].clientY : e.touches[0].pageX) / zoom;
  51605. }
  51606. function getHandleCenterPosition(vertical, handle) {
  51607. var coords = handle.getBoundingClientRect();
  51608. return vertical ? coords.top + coords.height * 0.5 : window.pageXOffset + coords.left + coords.width * 0.5;
  51609. }
  51610. function ensureValueInRange(val, _ref3) {
  51611. var max = _ref3.max,
  51612. min = _ref3.min;
  51613. if (val <= min) {
  51614. return min;
  51615. }
  51616. if (val >= max) {
  51617. return max;
  51618. }
  51619. return val;
  51620. }
  51621. function ensureValuePrecision(val, props) {
  51622. var step = props.step;
  51623. var closestPoint = isFinite(getClosestPoint(val, props)) ? getClosestPoint(val, props) : 0; // eslint-disable-line
  51624. return step === null ? closestPoint : parseFloat(closestPoint.toFixed(getPrecision(step)));
  51625. }
  51626. function pauseEvent(e) {
  51627. e.stopPropagation();
  51628. e.preventDefault();
  51629. }
  51630. function calculateNextValue(func, value, props) {
  51631. var operations = {
  51632. increase: function increase(a, b) {
  51633. return a + b;
  51634. },
  51635. decrease: function decrease(a, b) {
  51636. return a - b;
  51637. }
  51638. };
  51639. var indexToGet = operations[func](Object.keys(props.marks).indexOf(JSON.stringify(value)), 1);
  51640. var keyToGet = Object.keys(props.marks)[indexToGet];
  51641. if (props.step) {
  51642. return operations[func](value, props.step);
  51643. } else if (!!Object.keys(props.marks).length && !!props.marks[keyToGet]) {
  51644. return props.marks[keyToGet];
  51645. }
  51646. return value;
  51647. }
  51648. function getKeyboardValueMutator(e, vertical, reverse) {
  51649. var increase = 'increase';
  51650. var decrease = 'decrease';
  51651. var method = increase;
  51652. switch (e.keyCode) {
  51653. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].UP:
  51654. method = vertical && reverse ? decrease : increase;
  51655. break;
  51656. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].RIGHT:
  51657. method = !vertical && reverse ? decrease : increase;
  51658. break;
  51659. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].DOWN:
  51660. method = vertical && reverse ? increase : decrease;
  51661. break;
  51662. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].LEFT:
  51663. method = !vertical && reverse ? increase : decrease;
  51664. break;
  51665. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].END:
  51666. return function (value, props) {
  51667. return props.max;
  51668. };
  51669. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].HOME:
  51670. return function (value, props) {
  51671. return props.min;
  51672. };
  51673. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].PAGE_UP:
  51674. return function (value, props) {
  51675. return value + props.step * 2;
  51676. };
  51677. case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].PAGE_DOWN:
  51678. return function (value, props) {
  51679. return value - props.step * 2;
  51680. };
  51681. default:
  51682. return undefined;
  51683. }
  51684. return function (value, props) {
  51685. return calculateNextValue(method, value, props);
  51686. };
  51687. }
  51688. /***/ }),
  51689. /***/ "./components/vc-steps/Step.jsx":
  51690. /*!**************************************!*\
  51691. !*** ./components/vc-steps/Step.jsx ***!
  51692. \**************************************/
  51693. /*! exports provided: default */
  51694. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51695. "use strict";
  51696. __webpack_require__.r(__webpack_exports__);
  51697. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  51698. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  51699. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  51700. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  51701. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  51702. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
  51703. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  51704. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  51705. function isString(str) {
  51706. return typeof str === 'string';
  51707. }
  51708. function noop() {}
  51709. /* harmony default export */ __webpack_exports__["default"] = ({
  51710. name: 'Step',
  51711. props: {
  51712. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  51713. wrapperStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  51714. itemWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  51715. active: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  51716. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  51717. status: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  51718. iconPrefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  51719. icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  51720. adjustMarginRight: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  51721. stepNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  51722. stepIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  51723. description: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  51724. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  51725. subTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  51726. progressDot: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func]),
  51727. tailContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  51728. icons: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
  51729. finish: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  51730. error: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
  51731. }).loose
  51732. },
  51733. methods: {
  51734. onClick: function onClick() {
  51735. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  51736. args[_key] = arguments[_key];
  51737. }
  51738. this.$emit.apply(this, ['click'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(args)));
  51739. this.$emit('stepClick', this.stepIndex);
  51740. },
  51741. renderIconNode: function renderIconNode() {
  51742. var _iconClassName;
  51743. var h = this.$createElement;
  51744. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
  51745. prefixCls = _getOptionProps.prefixCls,
  51746. stepNumber = _getOptionProps.stepNumber,
  51747. status = _getOptionProps.status,
  51748. iconPrefix = _getOptionProps.iconPrefix,
  51749. icons = _getOptionProps.icons;
  51750. var progressDot = this.progressDot;
  51751. if (progressDot === undefined) {
  51752. progressDot = this.$scopedSlots.progressDot;
  51753. }
  51754. var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'icon');
  51755. var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'title');
  51756. var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'description');
  51757. var iconNode = void 0;
  51758. var iconClassName = (_iconClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, prefixCls + '-icon', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, iconPrefix + 'icon', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, iconPrefix + 'icon-' + icon, icon && isString(icon)), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, iconPrefix + 'icon-check', !icon && status === 'finish' && icons && !icons.finish), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, iconPrefix + 'icon-close', !icon && status === 'error' && icons && !icons.error), _iconClassName);
  51759. var iconDot = h('span', { 'class': prefixCls + '-icon-dot' });
  51760. // `progressDot` enjoy the highest priority
  51761. if (progressDot) {
  51762. if (typeof progressDot === 'function') {
  51763. iconNode = h(
  51764. 'span',
  51765. { 'class': prefixCls + '-icon' },
  51766. [progressDot({ index: stepNumber - 1, status: status, title: title, description: description, prefixCls: prefixCls })]
  51767. );
  51768. } else {
  51769. iconNode = h(
  51770. 'span',
  51771. { 'class': prefixCls + '-icon' },
  51772. [iconDot]
  51773. );
  51774. }
  51775. } else if (icon && !isString(icon)) {
  51776. iconNode = h(
  51777. 'span',
  51778. { 'class': prefixCls + '-icon' },
  51779. [icon]
  51780. );
  51781. } else if (icons && icons.finish && status === 'finish') {
  51782. iconNode = h(
  51783. 'span',
  51784. { 'class': prefixCls + '-icon' },
  51785. [icons.finish]
  51786. );
  51787. } else if (icons && icons.error && status === 'error') {
  51788. iconNode = h(
  51789. 'span',
  51790. { 'class': prefixCls + '-icon' },
  51791. [icons.error]
  51792. );
  51793. } else if (icon || status === 'finish' || status === 'error') {
  51794. iconNode = h('span', { 'class': iconClassName });
  51795. } else {
  51796. iconNode = h(
  51797. 'span',
  51798. { 'class': prefixCls + '-icon' },
  51799. [stepNumber]
  51800. );
  51801. }
  51802. return iconNode;
  51803. }
  51804. },
  51805. render: function render() {
  51806. var _classString;
  51807. var h = arguments[0];
  51808. var _getOptionProps2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
  51809. prefixCls = _getOptionProps2.prefixCls,
  51810. itemWidth = _getOptionProps2.itemWidth,
  51811. active = _getOptionProps2.active,
  51812. _getOptionProps2$stat = _getOptionProps2.status,
  51813. status = _getOptionProps2$stat === undefined ? 'wait' : _getOptionProps2$stat,
  51814. tailContent = _getOptionProps2.tailContent,
  51815. adjustMarginRight = _getOptionProps2.adjustMarginRight,
  51816. disabled = _getOptionProps2.disabled;
  51817. var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'title');
  51818. var subTitle = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'subTitle');
  51819. var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'description');
  51820. var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item-' + status, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item-custom', Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'icon')), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item-active', active), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item-disabled', disabled === true), _classString);
  51821. var stepProps = {
  51822. 'class': classString,
  51823. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
  51824. };
  51825. var stepItemStyle = {};
  51826. if (itemWidth) {
  51827. stepItemStyle.width = itemWidth;
  51828. }
  51829. if (adjustMarginRight) {
  51830. stepItemStyle.marginRight = adjustMarginRight;
  51831. }
  51832. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this);
  51833. var accessibilityProps = {
  51834. attrs: {},
  51835. on: {
  51836. click: listeners.click || noop
  51837. }
  51838. };
  51839. if (listeners.stepClick && !disabled) {
  51840. accessibilityProps.attrs.role = 'button';
  51841. accessibilityProps.attrs.tabIndex = 0;
  51842. accessibilityProps.on.click = this.onClick;
  51843. }
  51844. return h(
  51845. 'div',
  51846. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([stepProps, { style: stepItemStyle }]),
  51847. [h(
  51848. 'div',
  51849. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([accessibilityProps, { 'class': prefixCls + '-item-container' }]),
  51850. [h(
  51851. 'div',
  51852. { 'class': prefixCls + '-item-tail' },
  51853. [tailContent]
  51854. ), h(
  51855. 'div',
  51856. { 'class': prefixCls + '-item-icon' },
  51857. [this.renderIconNode()]
  51858. ), h(
  51859. 'div',
  51860. { 'class': prefixCls + '-item-content' },
  51861. [h(
  51862. 'div',
  51863. { 'class': prefixCls + '-item-title' },
  51864. [title, subTitle && h(
  51865. 'div',
  51866. {
  51867. attrs: { title: subTitle },
  51868. 'class': prefixCls + '-item-subtitle' },
  51869. [subTitle]
  51870. )]
  51871. ), description && h(
  51872. 'div',
  51873. { 'class': prefixCls + '-item-description' },
  51874. [description]
  51875. )]
  51876. )]
  51877. )]
  51878. );
  51879. }
  51880. });
  51881. /***/ }),
  51882. /***/ "./components/vc-steps/Steps.jsx":
  51883. /*!***************************************!*\
  51884. !*** ./components/vc-steps/Steps.jsx ***!
  51885. \***************************************/
  51886. /*! exports provided: default */
  51887. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  51888. "use strict";
  51889. __webpack_require__.r(__webpack_exports__);
  51890. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  51891. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  51892. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  51893. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  51894. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  51895. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  51896. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
  51897. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_4__);
  51898. /* harmony import */ var _util_isFlexSupported__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/isFlexSupported */ "./components/_util/isFlexSupported.js");
  51899. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  51900. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  51901. /* harmony default export */ __webpack_exports__["default"] = ({
  51902. name: 'Steps',
  51903. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  51904. props: {
  51905. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('default'),
  51906. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc-steps'),
  51907. iconPrefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc'),
  51908. direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('horizontal'),
  51909. labelPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('horizontal'),
  51910. status: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('process'),
  51911. size: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def(''),
  51912. progressDot: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
  51913. initial: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0),
  51914. current: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0),
  51915. icons: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape({
  51916. finish: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  51917. error: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any
  51918. }).loose
  51919. },
  51920. data: function data() {
  51921. this.calcStepOffsetWidth = lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default()(this.calcStepOffsetWidth, 150);
  51922. return {
  51923. flexSupported: true,
  51924. lastStepOffsetWidth: 0
  51925. };
  51926. },
  51927. mounted: function mounted() {
  51928. var _this = this;
  51929. this.$nextTick(function () {
  51930. _this.calcStepOffsetWidth();
  51931. if (!Object(_util_isFlexSupported__WEBPACK_IMPORTED_MODULE_5__["default"])()) {
  51932. _this.setState({
  51933. flexSupported: false
  51934. });
  51935. }
  51936. });
  51937. },
  51938. updated: function updated() {
  51939. var _this2 = this;
  51940. this.$nextTick(function () {
  51941. _this2.calcStepOffsetWidth();
  51942. });
  51943. },
  51944. beforeDestroy: function beforeDestroy() {
  51945. if (this.calcTimeout) {
  51946. clearTimeout(this.calcTimeout);
  51947. }
  51948. if (this.calcStepOffsetWidth && this.calcStepOffsetWidth.cancel) {
  51949. this.calcStepOffsetWidth.cancel();
  51950. }
  51951. },
  51952. methods: {
  51953. onStepClick: function onStepClick(next) {
  51954. var current = this.$props.current;
  51955. if (current !== next) {
  51956. this.$emit('change', next);
  51957. }
  51958. },
  51959. calcStepOffsetWidth: function calcStepOffsetWidth() {
  51960. var _this3 = this;
  51961. if (Object(_util_isFlexSupported__WEBPACK_IMPORTED_MODULE_5__["default"])()) {
  51962. return;
  51963. }
  51964. var lastStepOffsetWidth = this.$data.lastStepOffsetWidth;
  51965. // Just for IE9
  51966. var domNode = this.$refs.vcStepsRef;
  51967. if (domNode.children.length > 0) {
  51968. if (this.calcTimeout) {
  51969. clearTimeout(this.calcTimeout);
  51970. }
  51971. this.calcTimeout = setTimeout(function () {
  51972. // +1 for fit edge bug of digit width, like 35.4px
  51973. var offsetWidth = (domNode.lastChild.offsetWidth || 0) + 1;
  51974. // Reduce shake bug
  51975. if (lastStepOffsetWidth === offsetWidth || Math.abs(lastStepOffsetWidth - offsetWidth) <= 3) {
  51976. return;
  51977. }
  51978. _this3.setState({ lastStepOffsetWidth: offsetWidth });
  51979. });
  51980. }
  51981. }
  51982. },
  51983. render: function render() {
  51984. var _classString,
  51985. _this4 = this;
  51986. var h = arguments[0];
  51987. var prefixCls = this.prefixCls,
  51988. direction = this.direction,
  51989. type = this.type,
  51990. labelPlacement = this.labelPlacement,
  51991. iconPrefix = this.iconPrefix,
  51992. status = this.status,
  51993. size = this.size,
  51994. current = this.current,
  51995. $scopedSlots = this.$scopedSlots,
  51996. initial = this.initial,
  51997. icons = this.icons;
  51998. var isNav = type === 'navigation';
  51999. var progressDot = this.progressDot;
  52000. if (progressDot === undefined) {
  52001. progressDot = $scopedSlots.progressDot;
  52002. }
  52003. var lastStepOffsetWidth = this.lastStepOffsetWidth,
  52004. flexSupported = this.flexSupported;
  52005. var filteredChildren = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(this.$slots['default']);
  52006. var lastIndex = filteredChildren.length - 1;
  52007. var adjustedlabelPlacement = progressDot ? 'vertical' : labelPlacement;
  52008. var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-' + direction, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-' + size, size), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-label-' + adjustedlabelPlacement, direction === 'horizontal'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-dot', !!progressDot), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-navigation', isNav), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-flex-not-supported', !flexSupported), _classString);
  52009. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this);
  52010. var stepsProps = {
  52011. 'class': classString,
  52012. ref: 'vcStepsRef',
  52013. on: listeners
  52014. };
  52015. return h(
  52016. 'div',
  52017. stepsProps,
  52018. [filteredChildren.map(function (child, index) {
  52019. var childProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getPropsData"])(child);
  52020. var stepNumber = initial + index;
  52021. var stepProps = {
  52022. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  52023. stepNumber: '' + (stepNumber + 1),
  52024. stepIndex: stepNumber,
  52025. prefixCls: prefixCls,
  52026. iconPrefix: iconPrefix,
  52027. progressDot: _this4.progressDot,
  52028. icons: icons
  52029. }, childProps),
  52030. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getEvents"])(child),
  52031. scopedSlots: $scopedSlots
  52032. };
  52033. if (listeners.change) {
  52034. stepProps.on.stepClick = _this4.onStepClick;
  52035. }
  52036. if (!flexSupported && direction !== 'vertical') {
  52037. if (isNav) {
  52038. stepProps.props.itemWidth = 100 / (lastIndex + 1) + '%';
  52039. stepProps.props.adjustMarginRight = 0;
  52040. } else if (index !== lastIndex) {
  52041. stepProps.props.itemWidth = 100 / lastIndex + '%';
  52042. stepProps.props.adjustMarginRight = -Math.round(lastStepOffsetWidth / lastIndex + 1) + 'px';
  52043. }
  52044. }
  52045. // fix tail color
  52046. if (status === 'error' && index === current - 1) {
  52047. stepProps['class'] = prefixCls + '-next-error';
  52048. }
  52049. if (!childProps.status) {
  52050. if (stepNumber === current) {
  52051. stepProps.props.status = status;
  52052. } else if (stepNumber < current) {
  52053. stepProps.props.status = 'finish';
  52054. } else {
  52055. stepProps.props.status = 'wait';
  52056. }
  52057. }
  52058. stepProps.props.active = stepNumber === current;
  52059. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(child, stepProps);
  52060. })]
  52061. );
  52062. }
  52063. });
  52064. /***/ }),
  52065. /***/ "./components/vc-steps/index.js":
  52066. /*!**************************************!*\
  52067. !*** ./components/vc-steps/index.js ***!
  52068. \**************************************/
  52069. /*! exports provided: Step, default */
  52070. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52071. "use strict";
  52072. __webpack_require__.r(__webpack_exports__);
  52073. /* harmony import */ var _Steps__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Steps */ "./components/vc-steps/Steps.jsx");
  52074. /* harmony import */ var _Step__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Step */ "./components/vc-steps/Step.jsx");
  52075. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Step", function() { return _Step__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  52076. // base rc-steps 3.5.0
  52077. _Steps__WEBPACK_IMPORTED_MODULE_0__["default"].Step = _Step__WEBPACK_IMPORTED_MODULE_1__["default"];
  52078. /* harmony default export */ __webpack_exports__["default"] = (_Steps__WEBPACK_IMPORTED_MODULE_0__["default"]);
  52079. /***/ }),
  52080. /***/ "./components/vc-switch/PropTypes.js":
  52081. /*!*******************************************!*\
  52082. !*** ./components/vc-switch/PropTypes.js ***!
  52083. \*******************************************/
  52084. /*! exports provided: switchPropTypes */
  52085. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52086. "use strict";
  52087. __webpack_require__.r(__webpack_exports__);
  52088. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchPropTypes", function() { return switchPropTypes; });
  52089. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  52090. var switchPropTypes = {
  52091. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  52092. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  52093. checkedChildren: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  52094. unCheckedChildren: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  52095. // onChange: PropTypes.func,
  52096. // onMouseUp: PropTypes.func,
  52097. // onClick: PropTypes.func,
  52098. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
  52099. checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  52100. defaultChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  52101. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
  52102. loadingIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
  52103. };
  52104. /***/ }),
  52105. /***/ "./components/vc-switch/Switch.jsx":
  52106. /*!*****************************************!*\
  52107. !*** ./components/vc-switch/Switch.jsx ***!
  52108. \*****************************************/
  52109. /*! exports provided: default */
  52110. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52111. "use strict";
  52112. __webpack_require__.r(__webpack_exports__);
  52113. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  52114. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  52115. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  52116. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  52117. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  52118. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  52119. /* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PropTypes */ "./components/vc-switch/PropTypes.js");
  52120. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  52121. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  52122. // function noop () {
  52123. // }
  52124. /* harmony default export */ __webpack_exports__["default"] = ({
  52125. name: 'VcSwitch',
  52126. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  52127. model: {
  52128. prop: 'checked',
  52129. event: 'change'
  52130. },
  52131. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _PropTypes__WEBPACK_IMPORTED_MODULE_3__["switchPropTypes"], {
  52132. prefixCls: _PropTypes__WEBPACK_IMPORTED_MODULE_3__["switchPropTypes"].prefixCls.def('rc-switch')
  52133. // onChange: switchPropTypes.onChange.def(noop),
  52134. // onClick: switchPropTypes.onClick.def(noop),
  52135. }),
  52136. data: function data() {
  52137. var checked = false;
  52138. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'checked')) {
  52139. checked = !!this.checked;
  52140. } else {
  52141. checked = !!this.defaultChecked;
  52142. }
  52143. return {
  52144. stateChecked: checked
  52145. };
  52146. },
  52147. watch: {
  52148. checked: function checked(val) {
  52149. this.stateChecked = val;
  52150. }
  52151. },
  52152. mounted: function mounted() {
  52153. var _this = this;
  52154. this.$nextTick(function () {
  52155. var autoFocus = _this.autoFocus,
  52156. disabled = _this.disabled;
  52157. if (autoFocus && !disabled) {
  52158. _this.focus();
  52159. }
  52160. });
  52161. },
  52162. methods: {
  52163. setChecked: function setChecked(checked, e) {
  52164. if (this.disabled) {
  52165. return;
  52166. }
  52167. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'checked')) {
  52168. this.stateChecked = checked;
  52169. }
  52170. this.$emit('change', checked, e);
  52171. },
  52172. handleClick: function handleClick(e) {
  52173. var checked = !this.stateChecked;
  52174. this.setChecked(checked, e);
  52175. this.$emit('click', checked, e);
  52176. },
  52177. handleKeyDown: function handleKeyDown(e) {
  52178. if (e.keyCode === 37) {
  52179. // Left
  52180. this.setChecked(false, e);
  52181. } else if (e.keyCode === 39) {
  52182. // Right
  52183. this.setChecked(true, e);
  52184. }
  52185. },
  52186. handleMouseUp: function handleMouseUp(e) {
  52187. if (this.$refs.refSwitchNode) {
  52188. this.$refs.refSwitchNode.blur();
  52189. }
  52190. this.$emit('mouseup', e);
  52191. },
  52192. focus: function focus() {
  52193. this.$refs.refSwitchNode.focus();
  52194. },
  52195. blur: function blur() {
  52196. this.$refs.refSwitchNode.blur();
  52197. }
  52198. },
  52199. render: function render() {
  52200. var _switchClassName;
  52201. var h = arguments[0];
  52202. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this),
  52203. prefixCls = _getOptionProps.prefixCls,
  52204. disabled = _getOptionProps.disabled,
  52205. loadingIcon = _getOptionProps.loadingIcon,
  52206. tabIndex = _getOptionProps.tabIndex,
  52207. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls', 'disabled', 'loadingIcon', 'tabIndex']);
  52208. var checked = this.stateChecked;
  52209. var switchClassName = (_switchClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_switchClassName, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_switchClassName, prefixCls + '-checked', checked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_switchClassName, prefixCls + '-disabled', disabled), _switchClassName);
  52210. var spanProps = {
  52211. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps),
  52212. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), {
  52213. keydown: this.handleKeyDown,
  52214. click: this.handleClick,
  52215. mouseup: this.handleMouseUp
  52216. }),
  52217. attrs: {
  52218. type: 'button',
  52219. role: 'switch',
  52220. 'aria-checked': checked,
  52221. disabled: disabled,
  52222. tabIndex: tabIndex
  52223. },
  52224. 'class': switchClassName,
  52225. ref: 'refSwitchNode'
  52226. };
  52227. return h(
  52228. 'button',
  52229. spanProps,
  52230. [loadingIcon, h(
  52231. 'span',
  52232. { 'class': prefixCls + '-inner' },
  52233. [checked ? Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'checkedChildren') : Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'unCheckedChildren')]
  52234. )]
  52235. );
  52236. }
  52237. });
  52238. /***/ }),
  52239. /***/ "./components/vc-switch/index.js":
  52240. /*!***************************************!*\
  52241. !*** ./components/vc-switch/index.js ***!
  52242. \***************************************/
  52243. /*! exports provided: default */
  52244. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52245. "use strict";
  52246. __webpack_require__.r(__webpack_exports__);
  52247. /* harmony import */ var _Switch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Switch */ "./components/vc-switch/Switch.jsx");
  52248. // base rc-switch 1.9.0
  52249. /* harmony default export */ __webpack_exports__["default"] = (_Switch__WEBPACK_IMPORTED_MODULE_0__["default"]);
  52250. /***/ }),
  52251. /***/ "./components/vc-table/index.js":
  52252. /*!**************************************!*\
  52253. !*** ./components/vc-table/index.js ***!
  52254. \**************************************/
  52255. /*! exports provided: default, Column, ColumnGroup, INTERNAL_COL_DEFINE */
  52256. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52257. "use strict";
  52258. __webpack_require__.r(__webpack_exports__);
  52259. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  52260. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  52261. /* harmony import */ var _src_Table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Table */ "./components/vc-table/src/Table.jsx");
  52262. /* harmony import */ var _src_Column__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/Column */ "./components/vc-table/src/Column.jsx");
  52263. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Column", function() { return _src_Column__WEBPACK_IMPORTED_MODULE_2__["default"]; });
  52264. /* harmony import */ var _src_ColumnGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./src/ColumnGroup */ "./components/vc-table/src/ColumnGroup.jsx");
  52265. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColumnGroup", function() { return _src_ColumnGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  52266. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  52267. /* harmony import */ var _src_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./src/utils */ "./components/vc-table/src/utils.js");
  52268. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_COL_DEFINE", function() { return _src_utils__WEBPACK_IMPORTED_MODULE_5__["INTERNAL_COL_DEFINE"]; });
  52269. // base rc-table 6.10.9
  52270. var Table = {
  52271. name: 'Table',
  52272. Column: _src_Column__WEBPACK_IMPORTED_MODULE_2__["default"],
  52273. ColumnGroup: _src_ColumnGroup__WEBPACK_IMPORTED_MODULE_3__["default"],
  52274. props: _src_Table__WEBPACK_IMPORTED_MODULE_1__["default"].props,
  52275. methods: {
  52276. getTableNode: function getTableNode() {
  52277. return this.$refs.table.tableNode;
  52278. },
  52279. getBodyTable: function getBodyTable() {
  52280. return this.$refs.table.ref_bodyTable;
  52281. },
  52282. normalize: function normalize() {
  52283. var _this = this;
  52284. var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  52285. var columns = [];
  52286. elements.forEach(function (element) {
  52287. if (!element.tag) {
  52288. return;
  52289. }
  52290. var key = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getKey"])(element);
  52291. var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getStyle"])(element);
  52292. var cls = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getClass"])(element);
  52293. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(element);
  52294. var events = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getEvents"])(element);
  52295. var listeners = {};
  52296. Object.keys(events).forEach(function (e) {
  52297. var k = 'on-' + e;
  52298. listeners[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["camelize"])(k)] = events[e];
  52299. });
  52300. var _getSlots = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getSlots"])(element),
  52301. children = _getSlots['default'],
  52302. title = _getSlots.title;
  52303. var column = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ title: title }, props, { style: style, 'class': cls }, listeners);
  52304. if (key) {
  52305. column.key = key;
  52306. }
  52307. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getSlotOptions"])(element).isTableColumnGroup) {
  52308. column.children = _this.normalize(typeof children === 'function' ? children() : children);
  52309. } else {
  52310. var customRender = element.data && element.data.scopedSlots && element.data.scopedSlots['default'];
  52311. column.customRender = column.customRender || customRender;
  52312. }
  52313. columns.push(column);
  52314. });
  52315. return columns;
  52316. }
  52317. },
  52318. render: function render() {
  52319. var h = arguments[0];
  52320. var $slots = this.$slots,
  52321. normalize = this.normalize;
  52322. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
  52323. var columns = props.columns || normalize($slots['default']);
  52324. var tProps = {
  52325. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
  52326. columns: columns
  52327. }),
  52328. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
  52329. ref: 'table'
  52330. };
  52331. return h(_src_Table__WEBPACK_IMPORTED_MODULE_1__["default"], tProps);
  52332. }
  52333. };
  52334. /* harmony default export */ __webpack_exports__["default"] = (Table);
  52335. /***/ }),
  52336. /***/ "./components/vc-table/src/BaseTable.jsx":
  52337. /*!***********************************************!*\
  52338. !*** ./components/vc-table/src/BaseTable.jsx ***!
  52339. \***********************************************/
  52340. /*! exports provided: default */
  52341. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52342. "use strict";
  52343. __webpack_require__.r(__webpack_exports__);
  52344. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  52345. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  52346. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  52347. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  52348. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  52349. /* harmony import */ var _ColGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ColGroup */ "./components/vc-table/src/ColGroup.jsx");
  52350. /* harmony import */ var _TableHeader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TableHeader */ "./components/vc-table/src/TableHeader.jsx");
  52351. /* harmony import */ var _TableRow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TableRow */ "./components/vc-table/src/TableRow.jsx");
  52352. /* harmony import */ var _ExpandableRow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ExpandableRow */ "./components/vc-table/src/ExpandableRow.jsx");
  52353. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  52354. function noop() {}
  52355. var BaseTable = {
  52356. name: 'BaseTable',
  52357. props: {
  52358. fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
  52359. columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array.isRequired,
  52360. tableClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.isRequired,
  52361. hasHead: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.isRequired,
  52362. hasBody: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.isRequired,
  52363. expander: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.isRequired,
  52364. getRowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  52365. isAnyColumnsFixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
  52366. },
  52367. inject: {
  52368. table: { 'default': function _default() {
  52369. return {};
  52370. } },
  52371. store: { from: 'table-store', 'default': function _default() {
  52372. return {};
  52373. } }
  52374. },
  52375. methods: {
  52376. getColumns: function getColumns(cols) {
  52377. var _$props = this.$props,
  52378. _$props$columns = _$props.columns,
  52379. columns = _$props$columns === undefined ? [] : _$props$columns,
  52380. fixed = _$props.fixed;
  52381. var table = this.table;
  52382. var prefixCls = table.$props.prefixCls;
  52383. return (cols || columns).map(function (column) {
  52384. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, column, {
  52385. className: !!column.fixed && !fixed ? classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls + '-fixed-columns-in-body', column.className || column['class']) : column.className || column['class']
  52386. });
  52387. });
  52388. },
  52389. handleRowHover: function handleRowHover(isHover, key) {
  52390. this.store.currentHoverKey = isHover ? key : null;
  52391. },
  52392. renderRows: function renderRows(renderData, indent) {
  52393. var _this = this;
  52394. var ancestorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  52395. var h = this.$createElement;
  52396. var _table = this.table,
  52397. columnManager = _table.columnManager,
  52398. components = _table.sComponents,
  52399. prefixCls = _table.prefixCls,
  52400. childrenColumnName = _table.childrenColumnName,
  52401. rowClassName = _table.rowClassName,
  52402. _table$customRow = _table.customRow,
  52403. customRow = _table$customRow === undefined ? noop : _table$customRow;
  52404. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this.table),
  52405. _getListeners$rowClic = _getListeners.rowClick,
  52406. onRowClick = _getListeners$rowClic === undefined ? noop : _getListeners$rowClic,
  52407. _getListeners$rowDoub = _getListeners.rowDoubleclick,
  52408. onRowDoubleClick = _getListeners$rowDoub === undefined ? noop : _getListeners$rowDoub,
  52409. _getListeners$rowCont = _getListeners.rowContextmenu,
  52410. onRowContextMenu = _getListeners$rowCont === undefined ? noop : _getListeners$rowCont,
  52411. _getListeners$rowMous = _getListeners.rowMouseenter,
  52412. onRowMouseEnter = _getListeners$rowMous === undefined ? noop : _getListeners$rowMous,
  52413. _getListeners$rowMous2 = _getListeners.rowMouseleave,
  52414. onRowMouseLeave = _getListeners$rowMous2 === undefined ? noop : _getListeners$rowMous2;
  52415. var getRowKey = this.getRowKey,
  52416. fixed = this.fixed,
  52417. expander = this.expander,
  52418. isAnyColumnsFixed = this.isAnyColumnsFixed;
  52419. var rows = [];
  52420. var _loop = function _loop(i) {
  52421. var record = renderData[i];
  52422. var key = getRowKey(record, i);
  52423. var className = typeof rowClassName === 'string' ? rowClassName : rowClassName(record, i, indent);
  52424. var onHoverProps = {};
  52425. if (columnManager.isAnyColumnsFixed()) {
  52426. onHoverProps.hover = _this.handleRowHover;
  52427. }
  52428. var leafColumns = void 0;
  52429. if (fixed === 'left') {
  52430. leafColumns = columnManager.leftLeafColumns();
  52431. } else if (fixed === 'right') {
  52432. leafColumns = columnManager.rightLeafColumns();
  52433. } else {
  52434. leafColumns = _this.getColumns(columnManager.leafColumns());
  52435. }
  52436. var rowPrefixCls = prefixCls + '-row';
  52437. var expandableRowProps = {
  52438. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, expander.props, {
  52439. fixed: fixed,
  52440. index: i,
  52441. prefixCls: rowPrefixCls,
  52442. record: record,
  52443. rowKey: key,
  52444. needIndentSpaced: expander.needIndentSpaced
  52445. }),
  52446. key: key,
  52447. on: {
  52448. // ...expander.on,
  52449. rowClick: onRowClick,
  52450. expandedChange: expander.handleExpandChange
  52451. },
  52452. scopedSlots: {
  52453. 'default': function _default(expandableRow) {
  52454. var tableRowProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["mergeProps"])({
  52455. props: {
  52456. fixed: fixed,
  52457. indent: indent,
  52458. record: record,
  52459. index: i,
  52460. prefixCls: rowPrefixCls,
  52461. childrenColumnName: childrenColumnName,
  52462. columns: leafColumns,
  52463. rowKey: key,
  52464. ancestorKeys: ancestorKeys,
  52465. components: components,
  52466. isAnyColumnsFixed: isAnyColumnsFixed,
  52467. customRow: customRow
  52468. },
  52469. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  52470. rowDoubleclick: onRowDoubleClick,
  52471. rowContextmenu: onRowContextMenu,
  52472. rowMouseenter: onRowMouseEnter,
  52473. rowMouseleave: onRowMouseLeave
  52474. }, onHoverProps),
  52475. 'class': className,
  52476. ref: 'row_' + i + '_' + indent
  52477. }, expandableRow);
  52478. return h(_TableRow__WEBPACK_IMPORTED_MODULE_5__["default"], tableRowProps);
  52479. }
  52480. }
  52481. };
  52482. var row = h(_ExpandableRow__WEBPACK_IMPORTED_MODULE_6__["default"], expandableRowProps);
  52483. rows.push(row);
  52484. expander.renderRows(_this.renderRows, rows, record, i, indent, fixed, key, ancestorKeys);
  52485. };
  52486. for (var i = 0; i < renderData.length; i += 1) {
  52487. _loop(i);
  52488. }
  52489. return rows;
  52490. }
  52491. },
  52492. render: function render() {
  52493. var h = arguments[0];
  52494. var _table2 = this.table,
  52495. components = _table2.sComponents,
  52496. prefixCls = _table2.prefixCls,
  52497. scroll = _table2.scroll,
  52498. data = _table2.data,
  52499. getBodyWrapper = _table2.getBodyWrapper;
  52500. var _$props2 = this.$props,
  52501. expander = _$props2.expander,
  52502. tableClassName = _$props2.tableClassName,
  52503. hasHead = _$props2.hasHead,
  52504. hasBody = _$props2.hasBody,
  52505. fixed = _$props2.fixed,
  52506. isAnyColumnsFixed = _$props2.isAnyColumnsFixed;
  52507. var columns = this.getColumns();
  52508. var tableStyle = {};
  52509. if (!fixed && scroll.x) {
  52510. // 当有固定列时,width auto 会导致 body table 的宽度撑不开,从而固定列无法对齐
  52511. // 详情见:https://github.com/ant-design/ant-design/issues/22160
  52512. var tableWidthScrollX = isAnyColumnsFixed ? 'max-content' : 'auto';
  52513. // not set width, then use content fixed width
  52514. tableStyle.width = scroll.x === true ? tableWidthScrollX : scroll.x;
  52515. tableStyle.width = typeof tableStyle.width === 'number' ? tableStyle.width + 'px' : tableStyle.width;
  52516. }
  52517. if (fixed) {
  52518. var width = columns.reduce(function (sum, _ref) {
  52519. var w = _ref.width;
  52520. return sum + parseFloat(w, 10);
  52521. }, 0);
  52522. if (width > 0) {
  52523. tableStyle.width = width + 'px';
  52524. }
  52525. }
  52526. var Table = hasBody ? components.table : 'table';
  52527. var BodyWrapper = components.body.wrapper;
  52528. var body = void 0;
  52529. if (hasBody) {
  52530. body = h(
  52531. BodyWrapper,
  52532. { 'class': prefixCls + '-tbody' },
  52533. [this.renderRows(data, 0)]
  52534. );
  52535. if (getBodyWrapper) {
  52536. body = getBodyWrapper(body);
  52537. }
  52538. }
  52539. return h(
  52540. Table,
  52541. { 'class': tableClassName, style: tableStyle, key: 'table' },
  52542. [h(_ColGroup__WEBPACK_IMPORTED_MODULE_3__["default"], {
  52543. attrs: { columns: columns, fixed: fixed }
  52544. }), hasHead && h(_TableHeader__WEBPACK_IMPORTED_MODULE_4__["default"], {
  52545. attrs: { expander: expander, columns: columns, fixed: fixed }
  52546. }), body]
  52547. );
  52548. }
  52549. };
  52550. /* harmony default export */ __webpack_exports__["default"] = (BaseTable);
  52551. /***/ }),
  52552. /***/ "./components/vc-table/src/BodyTable.jsx":
  52553. /*!***********************************************!*\
  52554. !*** ./components/vc-table/src/BodyTable.jsx ***!
  52555. \***********************************************/
  52556. /*! exports provided: default */
  52557. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52558. "use strict";
  52559. __webpack_require__.r(__webpack_exports__);
  52560. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  52561. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  52562. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  52563. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  52564. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  52565. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
  52566. /* harmony import */ var _BaseTable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BaseTable */ "./components/vc-table/src/BaseTable.jsx");
  52567. /* harmony default export */ __webpack_exports__["default"] = ({
  52568. name: 'BodyTable',
  52569. props: {
  52570. fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool]),
  52571. columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.isRequired,
  52572. tableClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.isRequired,
  52573. handleBodyScroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.isRequired,
  52574. handleWheel: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.isRequired,
  52575. getRowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.isRequired,
  52576. expander: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired,
  52577. isAnyColumnsFixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
  52578. },
  52579. inject: {
  52580. table: { 'default': function _default() {
  52581. return {};
  52582. } }
  52583. },
  52584. render: function render() {
  52585. var h = arguments[0];
  52586. var _table = this.table,
  52587. prefixCls = _table.prefixCls,
  52588. scroll = _table.scroll;
  52589. var columns = this.columns,
  52590. fixed = this.fixed,
  52591. tableClassName = this.tableClassName,
  52592. getRowKey = this.getRowKey,
  52593. handleBodyScroll = this.handleBodyScroll,
  52594. handleWheel = this.handleWheel,
  52595. expander = this.expander,
  52596. isAnyColumnsFixed = this.isAnyColumnsFixed;
  52597. var _table2 = this.table,
  52598. useFixedHeader = _table2.useFixedHeader,
  52599. saveRef = _table2.saveRef;
  52600. var bodyStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.table.bodyStyle);
  52601. var innerBodyStyle = {};
  52602. if (scroll.x || fixed) {
  52603. bodyStyle.overflowX = bodyStyle.overflowX || 'scroll';
  52604. // Fix weired webkit render bug
  52605. // https://github.com/ant-design/ant-design/issues/7783
  52606. bodyStyle.WebkitTransform = 'translate3d (0, 0, 0)';
  52607. }
  52608. if (scroll.y) {
  52609. // maxHeight will make fixed-Table scrolling not working
  52610. // so we only set maxHeight to body-Table here
  52611. var maxHeight = bodyStyle.maxHeight || scroll.y;
  52612. maxHeight = typeof maxHeight === 'number' ? maxHeight + 'px' : maxHeight;
  52613. if (fixed) {
  52614. innerBodyStyle.maxHeight = maxHeight;
  52615. innerBodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
  52616. } else {
  52617. bodyStyle.maxHeight = maxHeight;
  52618. }
  52619. bodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
  52620. useFixedHeader = true;
  52621. // Add negative margin bottom for scroll bar overflow bug
  52622. var scrollbarWidth = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["measureScrollbar"])({ direction: 'vertical' });
  52623. if (scrollbarWidth > 0 && fixed) {
  52624. bodyStyle.marginBottom = '-' + scrollbarWidth + 'px';
  52625. bodyStyle.paddingBottom = '0px';
  52626. }
  52627. }
  52628. var baseTable = h(_BaseTable__WEBPACK_IMPORTED_MODULE_4__["default"], {
  52629. attrs: {
  52630. tableClassName: tableClassName,
  52631. hasHead: !useFixedHeader,
  52632. hasBody: true,
  52633. fixed: fixed,
  52634. columns: columns,
  52635. expander: expander,
  52636. getRowKey: getRowKey,
  52637. isAnyColumnsFixed: isAnyColumnsFixed
  52638. }
  52639. });
  52640. if (fixed && columns.length) {
  52641. var refName = void 0;
  52642. if (columns[0].fixed === 'left' || columns[0].fixed === true) {
  52643. refName = 'fixedColumnsBodyLeft';
  52644. } else if (columns[0].fixed === 'right') {
  52645. refName = 'fixedColumnsBodyRight';
  52646. }
  52647. delete bodyStyle.overflowX;
  52648. delete bodyStyle.overflowY;
  52649. return h(
  52650. 'div',
  52651. { key: 'bodyTable', 'class': prefixCls + '-body-outer', style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, bodyStyle) },
  52652. [h(
  52653. 'div',
  52654. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  52655. 'class': prefixCls + '-body-inner',
  52656. style: innerBodyStyle
  52657. }, {
  52658. directives: [{
  52659. name: 'ant-ref',
  52660. value: saveRef(refName)
  52661. }]
  52662. }, {
  52663. on: {
  52664. 'wheel': handleWheel,
  52665. 'scroll': handleBodyScroll
  52666. }
  52667. }]),
  52668. [baseTable]
  52669. )]
  52670. );
  52671. }
  52672. // Should provides `tabIndex` if use scroll to enable keyboard scroll
  52673. var useTabIndex = scroll && (scroll.x || scroll.y);
  52674. return h(
  52675. 'div',
  52676. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  52677. attrs: {
  52678. tabIndex: useTabIndex ? -1 : undefined
  52679. },
  52680. key: 'bodyTable',
  52681. 'class': prefixCls + '-body',
  52682. style: bodyStyle
  52683. }, {
  52684. directives: [{
  52685. name: 'ant-ref',
  52686. value: saveRef('bodyTable')
  52687. }]
  52688. }, {
  52689. on: {
  52690. 'wheel': handleWheel,
  52691. 'scroll': handleBodyScroll
  52692. }
  52693. }]),
  52694. [baseTable]
  52695. );
  52696. }
  52697. });
  52698. /***/ }),
  52699. /***/ "./components/vc-table/src/ColGroup.jsx":
  52700. /*!**********************************************!*\
  52701. !*** ./components/vc-table/src/ColGroup.jsx ***!
  52702. \**********************************************/
  52703. /*! exports provided: default */
  52704. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52705. "use strict";
  52706. __webpack_require__.r(__webpack_exports__);
  52707. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  52708. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  52709. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  52710. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
  52711. /* harmony default export */ __webpack_exports__["default"] = ({
  52712. name: 'ColGroup',
  52713. props: {
  52714. fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  52715. columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
  52716. },
  52717. inject: {
  52718. table: { 'default': function _default() {
  52719. return {};
  52720. } }
  52721. },
  52722. render: function render() {
  52723. var h = arguments[0];
  52724. var fixed = this.fixed,
  52725. table = this.table;
  52726. var prefixCls = table.prefixCls,
  52727. expandIconAsCell = table.expandIconAsCell,
  52728. columnManager = table.columnManager;
  52729. var cols = [];
  52730. if (expandIconAsCell && fixed !== 'right') {
  52731. cols.push(h('col', { 'class': prefixCls + '-expand-icon-col', key: 'rc-table-expand-icon-col' }));
  52732. }
  52733. var leafColumns = void 0;
  52734. if (fixed === 'left') {
  52735. leafColumns = columnManager.leftLeafColumns();
  52736. } else if (fixed === 'right') {
  52737. leafColumns = columnManager.rightLeafColumns();
  52738. } else {
  52739. leafColumns = columnManager.leafColumns();
  52740. }
  52741. cols = cols.concat(leafColumns.map(function (_ref) {
  52742. var key = _ref.key,
  52743. dataIndex = _ref.dataIndex,
  52744. width = _ref.width,
  52745. additionalProps = _ref[_utils__WEBPACK_IMPORTED_MODULE_2__["INTERNAL_COL_DEFINE"]];
  52746. var mergedKey = key !== undefined ? key : dataIndex;
  52747. var w = typeof width === 'number' ? width + 'px' : width;
  52748. return h('col', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: mergedKey, style: { width: w, minWidth: w } }, additionalProps]));
  52749. }));
  52750. return h('colgroup', [cols]);
  52751. }
  52752. });
  52753. /***/ }),
  52754. /***/ "./components/vc-table/src/Column.jsx":
  52755. /*!********************************************!*\
  52756. !*** ./components/vc-table/src/Column.jsx ***!
  52757. \********************************************/
  52758. /*! exports provided: default */
  52759. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52760. "use strict";
  52761. __webpack_require__.r(__webpack_exports__);
  52762. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  52763. /* harmony default export */ __webpack_exports__["default"] = ({
  52764. name: 'Column',
  52765. props: {
  52766. rowSpan: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  52767. colSpan: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  52768. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  52769. dataIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  52770. width: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string]),
  52771. ellipsis: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  52772. fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf([true, 'left', 'right']),
  52773. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['left', 'center', 'right']),
  52774. customRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  52775. className: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  52776. // onCellClick: PropTypes.func,
  52777. customCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  52778. customHeaderCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
  52779. }
  52780. });
  52781. /***/ }),
  52782. /***/ "./components/vc-table/src/ColumnGroup.jsx":
  52783. /*!*************************************************!*\
  52784. !*** ./components/vc-table/src/ColumnGroup.jsx ***!
  52785. \*************************************************/
  52786. /*! exports provided: default */
  52787. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52788. "use strict";
  52789. __webpack_require__.r(__webpack_exports__);
  52790. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  52791. /* harmony default export */ __webpack_exports__["default"] = ({
  52792. name: 'ColumnGroup',
  52793. props: {
  52794. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
  52795. },
  52796. isTableColumnGroup: true
  52797. });
  52798. /***/ }),
  52799. /***/ "./components/vc-table/src/ColumnManager.jsx":
  52800. /*!***************************************************!*\
  52801. !*** ./components/vc-table/src/ColumnManager.jsx ***!
  52802. \***************************************************/
  52803. /*! exports provided: default */
  52804. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52805. "use strict";
  52806. __webpack_require__.r(__webpack_exports__);
  52807. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  52808. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  52809. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  52810. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  52811. /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");
  52812. /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
  52813. /* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/createClass */ "./node_modules/babel-runtime/helpers/createClass.js");
  52814. /* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
  52815. var ColumnManager = function () {
  52816. function ColumnManager(columns) {
  52817. babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, ColumnManager);
  52818. this.columns = columns;
  52819. this._cached = {};
  52820. }
  52821. babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ColumnManager, [{
  52822. key: 'isAnyColumnsFixed',
  52823. value: function isAnyColumnsFixed() {
  52824. var _this = this;
  52825. return this._cache('isAnyColumnsFixed', function () {
  52826. return _this.columns.some(function (column) {
  52827. return !!column.fixed;
  52828. });
  52829. });
  52830. }
  52831. }, {
  52832. key: 'isAnyColumnsLeftFixed',
  52833. value: function isAnyColumnsLeftFixed() {
  52834. var _this2 = this;
  52835. return this._cache('isAnyColumnsLeftFixed', function () {
  52836. return _this2.columns.some(function (column) {
  52837. return column.fixed === 'left' || column.fixed === true;
  52838. });
  52839. });
  52840. }
  52841. }, {
  52842. key: 'isAnyColumnsRightFixed',
  52843. value: function isAnyColumnsRightFixed() {
  52844. var _this3 = this;
  52845. return this._cache('isAnyColumnsRightFixed', function () {
  52846. return _this3.columns.some(function (column) {
  52847. return column.fixed === 'right';
  52848. });
  52849. });
  52850. }
  52851. }, {
  52852. key: 'leftColumns',
  52853. value: function leftColumns() {
  52854. var _this4 = this;
  52855. return this._cache('leftColumns', function () {
  52856. return _this4.groupedColumns().filter(function (column) {
  52857. return column.fixed === 'left' || column.fixed === true;
  52858. });
  52859. });
  52860. }
  52861. }, {
  52862. key: 'rightColumns',
  52863. value: function rightColumns() {
  52864. var _this5 = this;
  52865. return this._cache('rightColumns', function () {
  52866. return _this5.groupedColumns().filter(function (column) {
  52867. return column.fixed === 'right';
  52868. });
  52869. });
  52870. }
  52871. }, {
  52872. key: 'leafColumns',
  52873. value: function leafColumns() {
  52874. var _this6 = this;
  52875. return this._cache('leafColumns', function () {
  52876. return _this6._leafColumns(_this6.columns);
  52877. });
  52878. }
  52879. }, {
  52880. key: 'leftLeafColumns',
  52881. value: function leftLeafColumns() {
  52882. var _this7 = this;
  52883. return this._cache('leftLeafColumns', function () {
  52884. return _this7._leafColumns(_this7.leftColumns());
  52885. });
  52886. }
  52887. }, {
  52888. key: 'rightLeafColumns',
  52889. value: function rightLeafColumns() {
  52890. var _this8 = this;
  52891. return this._cache('rightLeafColumns', function () {
  52892. return _this8._leafColumns(_this8.rightColumns());
  52893. });
  52894. }
  52895. // add appropriate rowspan and colspan to column
  52896. }, {
  52897. key: 'groupedColumns',
  52898. value: function groupedColumns() {
  52899. var _this9 = this;
  52900. return this._cache('groupedColumns', function () {
  52901. var _groupColumns = function _groupColumns(columns) {
  52902. var currentRow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  52903. var parentColumn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  52904. var rows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  52905. // track how many rows we got
  52906. rows[currentRow] = rows[currentRow] || [];
  52907. var grouped = [];
  52908. var setRowSpan = function setRowSpan(column) {
  52909. var rowSpan = rows.length - currentRow;
  52910. if (column && !column.children && // parent columns are supposed to be one row
  52911. rowSpan > 1 && (!column.rowSpan || column.rowSpan < rowSpan)) {
  52912. column.rowSpan = rowSpan;
  52913. }
  52914. };
  52915. columns.forEach(function (column, index) {
  52916. var newColumn = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, column);
  52917. rows[currentRow].push(newColumn);
  52918. parentColumn.colSpan = parentColumn.colSpan || 0;
  52919. if (newColumn.children && newColumn.children.length > 0) {
  52920. newColumn.children = _groupColumns(newColumn.children, currentRow + 1, newColumn, rows);
  52921. parentColumn.colSpan += newColumn.colSpan;
  52922. } else {
  52923. parentColumn.colSpan += 1;
  52924. }
  52925. // update rowspan to all same row columns
  52926. for (var i = 0; i < rows[currentRow].length - 1; i += 1) {
  52927. setRowSpan(rows[currentRow][i]);
  52928. }
  52929. // last column, update rowspan immediately
  52930. if (index + 1 === columns.length) {
  52931. setRowSpan(newColumn);
  52932. }
  52933. grouped.push(newColumn);
  52934. });
  52935. return grouped;
  52936. };
  52937. return _groupColumns(_this9.columns);
  52938. });
  52939. }
  52940. }, {
  52941. key: 'reset',
  52942. value: function reset(columns) {
  52943. this.columns = columns;
  52944. this._cached = {};
  52945. }
  52946. }, {
  52947. key: '_cache',
  52948. value: function _cache(name, fn) {
  52949. if (name in this._cached) {
  52950. return this._cached[name];
  52951. }
  52952. this._cached[name] = fn();
  52953. return this._cached[name];
  52954. }
  52955. }, {
  52956. key: '_leafColumns',
  52957. value: function _leafColumns(columns) {
  52958. var _this10 = this;
  52959. var leafColumns = [];
  52960. columns.forEach(function (column) {
  52961. if (!column.children) {
  52962. leafColumns.push(column);
  52963. } else {
  52964. leafColumns.push.apply(leafColumns, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(_this10._leafColumns(column.children)));
  52965. }
  52966. });
  52967. return leafColumns;
  52968. }
  52969. }]);
  52970. return ColumnManager;
  52971. }();
  52972. /* harmony default export */ __webpack_exports__["default"] = (ColumnManager);
  52973. /***/ }),
  52974. /***/ "./components/vc-table/src/ExpandIcon.jsx":
  52975. /*!************************************************!*\
  52976. !*** ./components/vc-table/src/ExpandIcon.jsx ***!
  52977. \************************************************/
  52978. /*! exports provided: default */
  52979. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  52980. "use strict";
  52981. __webpack_require__.r(__webpack_exports__);
  52982. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  52983. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  52984. /* harmony default export */ __webpack_exports__["default"] = ({
  52985. name: 'ExpandIcon',
  52986. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
  52987. props: {
  52988. record: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  52989. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  52990. expandable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  52991. expanded: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  52992. needIndentSpaced: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
  52993. },
  52994. methods: {
  52995. onExpand: function onExpand(e) {
  52996. this.__emit('expand', this.record, e);
  52997. }
  52998. },
  52999. render: function render() {
  53000. var h = arguments[0];
  53001. var expandable = this.expandable,
  53002. prefixCls = this.prefixCls,
  53003. onExpand = this.onExpand,
  53004. needIndentSpaced = this.needIndentSpaced,
  53005. expanded = this.expanded;
  53006. if (expandable) {
  53007. var expandClassName = expanded ? 'expanded' : 'collapsed';
  53008. return h('span', {
  53009. 'class': prefixCls + '-expand-icon ' + prefixCls + '-' + expandClassName,
  53010. on: {
  53011. 'click': onExpand
  53012. }
  53013. });
  53014. }
  53015. if (needIndentSpaced) {
  53016. return h('span', { 'class': prefixCls + '-expand-icon ' + prefixCls + '-spaced' });
  53017. }
  53018. return null;
  53019. }
  53020. });
  53021. /***/ }),
  53022. /***/ "./components/vc-table/src/ExpandableRow.jsx":
  53023. /*!***************************************************!*\
  53024. !*** ./components/vc-table/src/ExpandableRow.jsx ***!
  53025. \***************************************************/
  53026. /*! exports provided: default */
  53027. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53028. "use strict";
  53029. __webpack_require__.r(__webpack_exports__);
  53030. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  53031. /* harmony import */ var _ExpandIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ExpandIcon */ "./components/vc-table/src/ExpandIcon.jsx");
  53032. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  53033. var ExpandableRow = {
  53034. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
  53035. name: 'ExpandableRow',
  53036. props: {
  53037. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.isRequired,
  53038. rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]).isRequired,
  53039. fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool]),
  53040. record: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array]).isRequired,
  53041. indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  53042. needIndentSpaced: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.isRequired,
  53043. expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  53044. expandIconAsCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  53045. expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
  53046. childrenColumnName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  53047. expandedRowRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  53048. expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
  53049. // onExpandedChange: PropTypes.func.isRequired,
  53050. // onRowClick: PropTypes.func,
  53051. // children: PropTypes.func.isRequired,
  53052. },
  53053. inject: {
  53054. store: { from: 'table-store', 'default': function _default() {
  53055. return {};
  53056. } }
  53057. },
  53058. computed: {
  53059. expanded: function expanded() {
  53060. return this.store.expandedRowKeys.includes(this.$props.rowKey);
  53061. }
  53062. },
  53063. beforeDestroy: function beforeDestroy() {
  53064. this.handleDestroy();
  53065. },
  53066. methods: {
  53067. hasExpandIcon: function hasExpandIcon(columnIndex) {
  53068. var _$props = this.$props,
  53069. expandRowByClick = _$props.expandRowByClick,
  53070. expandIcon = _$props.expandIcon;
  53071. if (this.tempExpandIconAsCell || columnIndex !== this.tempExpandIconColumnIndex) {
  53072. return false;
  53073. }
  53074. return !!expandIcon || !expandRowByClick;
  53075. },
  53076. handleExpandChange: function handleExpandChange(record, event) {
  53077. var expanded = this.expanded,
  53078. rowKey = this.rowKey;
  53079. this.__emit('expandedChange', !expanded, record, event, rowKey);
  53080. },
  53081. handleDestroy: function handleDestroy() {
  53082. var rowKey = this.rowKey,
  53083. record = this.record;
  53084. this.__emit('expandedChange', false, record, null, rowKey, true);
  53085. },
  53086. handleRowClick: function handleRowClick(record, index, event) {
  53087. var expandRowByClick = this.expandRowByClick;
  53088. if (expandRowByClick) {
  53089. this.handleExpandChange(record, event);
  53090. }
  53091. this.__emit('rowClick', record, index, event);
  53092. },
  53093. renderExpandIcon: function renderExpandIcon() {
  53094. var h = this.$createElement;
  53095. var prefixCls = this.prefixCls,
  53096. expanded = this.expanded,
  53097. record = this.record,
  53098. needIndentSpaced = this.needIndentSpaced,
  53099. expandIcon = this.expandIcon;
  53100. if (expandIcon) {
  53101. return expandIcon({
  53102. prefixCls: prefixCls,
  53103. expanded: expanded,
  53104. record: record,
  53105. needIndentSpaced: needIndentSpaced,
  53106. expandable: this.expandable,
  53107. onExpand: this.handleExpandChange
  53108. });
  53109. }
  53110. return h(_ExpandIcon__WEBPACK_IMPORTED_MODULE_1__["default"], {
  53111. attrs: {
  53112. expandable: this.expandable,
  53113. prefixCls: prefixCls,
  53114. needIndentSpaced: needIndentSpaced,
  53115. expanded: expanded,
  53116. record: record
  53117. },
  53118. on: {
  53119. 'expand': this.handleExpandChange
  53120. }
  53121. });
  53122. },
  53123. renderExpandIconCell: function renderExpandIconCell(cells) {
  53124. var h = this.$createElement;
  53125. if (!this.tempExpandIconAsCell) {
  53126. return;
  53127. }
  53128. var prefixCls = this.prefixCls;
  53129. cells.push(h(
  53130. 'td',
  53131. { 'class': prefixCls + '-expand-icon-cell', key: 'rc-table-expand-icon-cell' },
  53132. [this.renderExpandIcon()]
  53133. ));
  53134. }
  53135. },
  53136. render: function render() {
  53137. var childrenColumnName = this.childrenColumnName,
  53138. expandedRowRender = this.expandedRowRender,
  53139. indentSize = this.indentSize,
  53140. record = this.record,
  53141. fixed = this.fixed,
  53142. $scopedSlots = this.$scopedSlots,
  53143. expanded = this.expanded;
  53144. this.tempExpandIconAsCell = fixed !== 'right' ? this.expandIconAsCell : false;
  53145. this.tempExpandIconColumnIndex = fixed !== 'right' ? this.expandIconColumnIndex : -1;
  53146. var childrenData = record[childrenColumnName];
  53147. this.expandable = !!(childrenData || expandedRowRender);
  53148. var expandableRowProps = {
  53149. props: {
  53150. indentSize: indentSize,
  53151. expanded: expanded, // not used in TableRow, but it's required to re-render TableRow when `expanded` changes
  53152. hasExpandIcon: this.hasExpandIcon,
  53153. renderExpandIcon: this.renderExpandIcon,
  53154. renderExpandIconCell: this.renderExpandIconCell
  53155. },
  53156. on: {
  53157. rowClick: this.handleRowClick
  53158. }
  53159. };
  53160. return $scopedSlots['default'] && $scopedSlots['default'](expandableRowProps);
  53161. }
  53162. };
  53163. /* harmony default export */ __webpack_exports__["default"] = (ExpandableRow);
  53164. /***/ }),
  53165. /***/ "./components/vc-table/src/ExpandableTable.jsx":
  53166. /*!*****************************************************!*\
  53167. !*** ./components/vc-table/src/ExpandableTable.jsx ***!
  53168. \*****************************************************/
  53169. /*! exports provided: ExpandableTableProps, default */
  53170. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53171. "use strict";
  53172. __webpack_require__.r(__webpack_exports__);
  53173. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpandableTableProps", function() { return ExpandableTableProps; });
  53174. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  53175. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  53176. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  53177. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
  53178. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  53179. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  53180. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
  53181. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_4__);
  53182. /* harmony import */ var _TableRow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TableRow */ "./components/vc-table/src/TableRow.jsx");
  53183. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
  53184. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  53185. var ExpandableTableProps = function ExpandableTableProps() {
  53186. return {
  53187. expandIconAsCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  53188. expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  53189. expandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
  53190. expandedRowClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  53191. defaultExpandAllRows: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  53192. defaultExpandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
  53193. expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  53194. expandedRowRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  53195. expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  53196. childrenColumnName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  53197. indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  53198. // onExpand: PropTypes.func,
  53199. // onExpandedRowsChange: PropTypes.func,
  53200. columnManager: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired,
  53201. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.isRequired,
  53202. data: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
  53203. getRowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
  53204. };
  53205. };
  53206. var ExpandableTable = {
  53207. name: 'ExpandableTable',
  53208. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  53209. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(ExpandableTableProps(), {
  53210. expandIconAsCell: false,
  53211. expandedRowClassName: function expandedRowClassName() {
  53212. return '';
  53213. },
  53214. expandIconColumnIndex: 0,
  53215. defaultExpandAllRows: false,
  53216. defaultExpandedRowKeys: [],
  53217. childrenColumnName: 'children',
  53218. indentSize: 15
  53219. }),
  53220. inject: {
  53221. store: { from: 'table-store', 'default': function _default() {
  53222. return {};
  53223. } }
  53224. },
  53225. data: function data() {
  53226. var data = this.data,
  53227. childrenColumnName = this.childrenColumnName,
  53228. defaultExpandAllRows = this.defaultExpandAllRows,
  53229. expandedRowKeys = this.expandedRowKeys,
  53230. defaultExpandedRowKeys = this.defaultExpandedRowKeys,
  53231. getRowKey = this.getRowKey;
  53232. var finalExpandedRowKeys = [];
  53233. var rows = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(data));
  53234. if (defaultExpandAllRows) {
  53235. for (var i = 0; i < rows.length; i += 1) {
  53236. var row = rows[i];
  53237. finalExpandedRowKeys.push(getRowKey(row, i));
  53238. rows = rows.concat(row[childrenColumnName] || []);
  53239. }
  53240. } else {
  53241. finalExpandedRowKeys = expandedRowKeys || defaultExpandedRowKeys;
  53242. }
  53243. // this.columnManager = props.columnManager
  53244. // this.store = props.store
  53245. this.store.expandedRowsHeight = {};
  53246. this.store.expandedRowKeys = finalExpandedRowKeys;
  53247. return {};
  53248. },
  53249. mounted: function mounted() {
  53250. this.handleUpdated();
  53251. },
  53252. updated: function updated() {
  53253. this.handleUpdated();
  53254. },
  53255. watch: {
  53256. expandedRowKeys: function expandedRowKeys(val) {
  53257. var _this = this;
  53258. this.$nextTick(function () {
  53259. _this.store.expandedRowKeys = val;
  53260. });
  53261. }
  53262. },
  53263. methods: {
  53264. handleUpdated: function handleUpdated() {
  53265. // We should record latest expanded rows to avoid multiple rows remove cause `onExpandedRowsChange` trigger many times
  53266. this.latestExpandedRows = null;
  53267. },
  53268. handleExpandChange: function handleExpandChange(expanded, record, event, rowKey) {
  53269. var destroy = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  53270. if (event) {
  53271. event.preventDefault();
  53272. event.stopPropagation();
  53273. }
  53274. var expandedRowKeys = this.store.expandedRowKeys;
  53275. if (expanded) {
  53276. // row was expaned
  53277. expandedRowKeys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(expandedRowKeys), [rowKey]);
  53278. } else {
  53279. // row was collapse
  53280. var expandedRowIndex = expandedRowKeys.indexOf(rowKey);
  53281. if (expandedRowIndex !== -1) {
  53282. expandedRowKeys = Object(_utils__WEBPACK_IMPORTED_MODULE_6__["remove"])(expandedRowKeys, rowKey);
  53283. }
  53284. }
  53285. if (!this.expandedRowKeys) {
  53286. this.store.expandedRowKeys = expandedRowKeys;
  53287. }
  53288. // De-dup of repeat call
  53289. if (!this.latestExpandedRows || !shallowequal__WEBPACK_IMPORTED_MODULE_4___default()(this.latestExpandedRows, expandedRowKeys)) {
  53290. this.latestExpandedRows = expandedRowKeys;
  53291. this.__emit('expandedRowsChange', expandedRowKeys);
  53292. this.__emit('update:expandedRowKeys', expandedRowKeys);
  53293. }
  53294. if (!destroy) {
  53295. this.__emit('expand', expanded, record);
  53296. }
  53297. },
  53298. renderExpandIndentCell: function renderExpandIndentCell(rows, fixed) {
  53299. var prefixCls = this.prefixCls,
  53300. expandIconAsCell = this.expandIconAsCell;
  53301. if (!expandIconAsCell || fixed === 'right' || !rows.length) {
  53302. return;
  53303. }
  53304. var iconColumn = {
  53305. key: 'rc-table-expand-icon-cell',
  53306. className: prefixCls + '-expand-icon-th',
  53307. title: '',
  53308. rowSpan: rows.length
  53309. };
  53310. rows[0].unshift(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, iconColumn, { column: iconColumn }));
  53311. },
  53312. renderExpandedRow: function renderExpandedRow(record, index, expandedRowRender, className, ancestorKeys, indent, fixed) {
  53313. var _this2 = this;
  53314. var h = this.$createElement;
  53315. var prefixCls = this.prefixCls,
  53316. expandIconAsCell = this.expandIconAsCell,
  53317. indentSize = this.indentSize;
  53318. var parentKey = ancestorKeys[ancestorKeys.length - 1];
  53319. var rowKey = parentKey + '-extra-row';
  53320. var components = {
  53321. body: {
  53322. row: 'tr',
  53323. cell: 'td'
  53324. }
  53325. };
  53326. var colCount = void 0;
  53327. if (fixed === 'left') {
  53328. colCount = this.columnManager.leftLeafColumns().length;
  53329. } else if (fixed === 'right') {
  53330. colCount = this.columnManager.rightLeafColumns().length;
  53331. } else {
  53332. colCount = this.columnManager.leafColumns().length;
  53333. }
  53334. var columns = [{
  53335. key: 'extra-row',
  53336. customRender: function customRender() {
  53337. var expandedRowKeys = _this2.store.expandedRowKeys;
  53338. var expanded = expandedRowKeys.includes(parentKey);
  53339. return {
  53340. attrs: {
  53341. colSpan: colCount
  53342. },
  53343. children: fixed !== 'right' ? expandedRowRender(record, index, indent, expanded) : '&nbsp;'
  53344. };
  53345. }
  53346. }];
  53347. if (expandIconAsCell && fixed !== 'right') {
  53348. columns.unshift({
  53349. key: 'expand-icon-placeholder',
  53350. customRender: function customRender() {
  53351. return null;
  53352. }
  53353. });
  53354. }
  53355. return h(_TableRow__WEBPACK_IMPORTED_MODULE_5__["default"], {
  53356. key: rowKey,
  53357. attrs: { columns: columns,
  53358. rowKey: rowKey,
  53359. ancestorKeys: ancestorKeys,
  53360. prefixCls: prefixCls + '-expanded-row',
  53361. indentSize: indentSize,
  53362. indent: indent,
  53363. fixed: fixed,
  53364. components: components,
  53365. expandedRow: true,
  53366. hasExpandIcon: function hasExpandIcon() {}
  53367. },
  53368. 'class': className });
  53369. },
  53370. renderRows: function renderRows(_renderRows, rows, record, index, indent, fixed, parentKey, ancestorKeys) {
  53371. var expandedRowClassName = this.expandedRowClassName,
  53372. expandedRowRender = this.expandedRowRender,
  53373. childrenColumnName = this.childrenColumnName;
  53374. var childrenData = record[childrenColumnName];
  53375. var nextAncestorKeys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(ancestorKeys), [parentKey]);
  53376. var nextIndent = indent + 1;
  53377. if (expandedRowRender) {
  53378. rows.push(this.renderExpandedRow(record, index, expandedRowRender, expandedRowClassName(record, index, indent), nextAncestorKeys, nextIndent, fixed));
  53379. }
  53380. if (childrenData) {
  53381. rows.push.apply(rows, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(_renderRows(childrenData, nextIndent, nextAncestorKeys)));
  53382. }
  53383. }
  53384. },
  53385. render: function render() {
  53386. var data = this.data,
  53387. childrenColumnName = this.childrenColumnName,
  53388. $scopedSlots = this.$scopedSlots;
  53389. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
  53390. var needIndentSpaced = data.some(function (record) {
  53391. return record[childrenColumnName];
  53392. });
  53393. return $scopedSlots['default'] && $scopedSlots['default']({
  53394. props: props,
  53395. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
  53396. needIndentSpaced: needIndentSpaced,
  53397. renderRows: this.renderRows,
  53398. handleExpandChange: this.handleExpandChange,
  53399. renderExpandIndentCell: this.renderExpandIndentCell
  53400. });
  53401. }
  53402. };
  53403. /* harmony default export */ __webpack_exports__["default"] = (ExpandableTable);
  53404. /***/ }),
  53405. /***/ "./components/vc-table/src/HeadTable.jsx":
  53406. /*!***********************************************!*\
  53407. !*** ./components/vc-table/src/HeadTable.jsx ***!
  53408. \***********************************************/
  53409. /*! exports provided: default */
  53410. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53411. "use strict";
  53412. __webpack_require__.r(__webpack_exports__);
  53413. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  53414. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  53415. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  53416. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  53417. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  53418. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
  53419. /* harmony import */ var _BaseTable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BaseTable */ "./components/vc-table/src/BaseTable.jsx");
  53420. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  53421. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
  53422. /* harmony default export */ __webpack_exports__["default"] = ({
  53423. name: 'HeadTable',
  53424. props: {
  53425. fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool]),
  53426. columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.isRequired,
  53427. tableClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.isRequired,
  53428. handleBodyScrollLeft: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.isRequired,
  53429. expander: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired
  53430. },
  53431. inject: {
  53432. table: { 'default': function _default() {
  53433. return {};
  53434. } }
  53435. },
  53436. render: function render() {
  53437. var h = arguments[0];
  53438. var columns = this.columns,
  53439. fixed = this.fixed,
  53440. tableClassName = this.tableClassName,
  53441. handleBodyScrollLeft = this.handleBodyScrollLeft,
  53442. expander = this.expander,
  53443. table = this.table;
  53444. var prefixCls = table.prefixCls,
  53445. scroll = table.scroll,
  53446. showHeader = table.showHeader,
  53447. saveRef = table.saveRef;
  53448. var useFixedHeader = table.useFixedHeader;
  53449. var headStyle = {};
  53450. var scrollbarWidth = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["measureScrollbar"])({ direction: 'vertical' });
  53451. if (scroll.y) {
  53452. useFixedHeader = true;
  53453. // https://github.com/ant-design/ant-design/issues/17051
  53454. var scrollbarWidthOfHeader = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["measureScrollbar"])({ direction: 'horizontal', prefixCls: prefixCls });
  53455. // Add negative margin bottom for scroll bar overflow bug
  53456. if (scrollbarWidthOfHeader > 0 && !fixed) {
  53457. headStyle.marginBottom = '-' + scrollbarWidthOfHeader + 'px';
  53458. headStyle.paddingBottom = '0px';
  53459. // https://github.com/ant-design/ant-design/pull/19986
  53460. headStyle.minWidth = scrollbarWidth + 'px';
  53461. // https://github.com/ant-design/ant-design/issues/17051
  53462. headStyle.overflowX = 'scroll';
  53463. headStyle.overflowY = scrollbarWidth === 0 ? 'hidden' : 'scroll';
  53464. }
  53465. }
  53466. if (!useFixedHeader || !showHeader) {
  53467. return null;
  53468. }
  53469. return h(
  53470. 'div',
  53471. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  53472. key: 'headTable'
  53473. }, {
  53474. directives: [{
  53475. name: 'ant-ref',
  53476. value: fixed ? function () {} : saveRef('headTable')
  53477. }]
  53478. }, {
  53479. 'class': classnames__WEBPACK_IMPORTED_MODULE_5___default()(prefixCls + '-header', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-hide-scrollbar', scrollbarWidth > 0)),
  53480. style: headStyle,
  53481. on: {
  53482. 'scroll': handleBodyScrollLeft
  53483. }
  53484. }]),
  53485. [h(_BaseTable__WEBPACK_IMPORTED_MODULE_4__["default"], {
  53486. attrs: {
  53487. tableClassName: tableClassName,
  53488. hasHead: true,
  53489. hasBody: false,
  53490. fixed: fixed,
  53491. columns: columns,
  53492. expander: expander
  53493. }
  53494. })]
  53495. );
  53496. }
  53497. });
  53498. /***/ }),
  53499. /***/ "./components/vc-table/src/Table.jsx":
  53500. /*!*******************************************!*\
  53501. !*** ./components/vc-table/src/Table.jsx ***!
  53502. \*******************************************/
  53503. /*! exports provided: default */
  53504. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  53505. "use strict";
  53506. __webpack_require__.r(__webpack_exports__);
  53507. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  53508. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  53509. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  53510. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  53511. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  53512. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  53513. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  53514. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__);
  53515. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
  53516. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_4__);
  53517. /* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/merge */ "./node_modules/lodash/merge.js");
  53518. /* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_merge__WEBPACK_IMPORTED_MODULE_5__);
  53519. /* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! component-classes */ "./node_modules/component-classes/index.js");
  53520. /* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(component_classes__WEBPACK_IMPORTED_MODULE_6__);
  53521. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  53522. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
  53523. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  53524. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
  53525. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
  53526. /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
  53527. /* harmony import */ var _ColumnManager__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ColumnManager */ "./components/vc-table/src/ColumnManager.jsx");
  53528. /* harmony import */ var _HeadTable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./HeadTable */ "./components/vc-table/src/HeadTable.jsx");
  53529. /* harmony import */ var _BodyTable__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./BodyTable */ "./components/vc-table/src/BodyTable.jsx");
  53530. /* harmony import */ var _ExpandableTable__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ExpandableTable */ "./components/vc-table/src/ExpandableTable.jsx");
  53531. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  53532. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  53533. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! vue */ "vue");
  53534. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_18__);
  53535. /* eslint-disable camelcase */
  53536. /* harmony default export */ __webpack_exports__["default"] = ({
  53537. name: 'Table',
  53538. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_17__["default"]],
  53539. provide: function provide() {
  53540. return { 'table-store': this.store, table: this };
  53541. },
  53542. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_16__["initDefaultProps"])({
  53543. data: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].array,
  53544. useFixedHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
  53545. columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].array,
  53546. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
  53547. bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].object,
  53548. rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func]),
  53549. rowClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func]),
  53550. customRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
  53551. customHeaderRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
  53552. // onRowClick: PropTypes.func,
  53553. // onRowDoubleClick: PropTypes.func,
  53554. // onRowContextMenu: PropTypes.func,
  53555. // onRowMouseEnter: PropTypes.func,
  53556. // onRowMouseLeave: PropTypes.func,
  53557. showHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
  53558. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
  53559. id: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
  53560. footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
  53561. emptyText: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
  53562. scroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].object,
  53563. rowRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
  53564. getBodyWrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
  53565. components: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].shape({
  53566. table: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
  53567. header: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].shape({
  53568. wrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
  53569. row: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
  53570. cell: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any
  53571. }),
  53572. body: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].shape({
  53573. wrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
  53574. row: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
  53575. cell: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any
  53576. })
  53577. }),
  53578. expandIconAsCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
  53579. expandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].array,
  53580. expandedRowClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
  53581. defaultExpandAllRows: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
  53582. defaultExpandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].array,
  53583. expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number,
  53584. expandedRowRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
  53585. childrenColumnName: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
  53586. indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number,
  53587. expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
  53588. expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
  53589. tableLayout: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
  53590. transformCellText: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func
  53591. }, {
  53592. data: [],
  53593. useFixedHeader: false,
  53594. rowKey: 'key',
  53595. rowClassName: function rowClassName() {
  53596. return '';
  53597. },
  53598. prefixCls: 'rc-table',
  53599. bodyStyle: {},
  53600. showHeader: true,
  53601. scroll: {},
  53602. rowRef: function rowRef() {
  53603. return null;
  53604. },
  53605. emptyText: function emptyText() {
  53606. return 'No Data';
  53607. },
  53608. customHeaderRow: function customHeaderRow() {}
  53609. }),
  53610. data: function data() {
  53611. this.preData = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3___default()(this.data));
  53612. this.store = vue__WEBPACK_IMPORTED_MODULE_18___default.a.observable({
  53613. currentHoverKey: null,
  53614. fixedColumnsHeadRowsHeight: [],
  53615. fixedColumnsBodyRowsHeight: {},
  53616. expandedRowsHeight: {},
  53617. expandedRowKeys: []
  53618. });
  53619. return {
  53620. columnManager: new _ColumnManager__WEBPACK_IMPORTED_MODULE_12__["default"](this.columns),
  53621. sComponents: lodash_merge__WEBPACK_IMPORTED_MODULE_5___default()({
  53622. table: 'table',
  53623. header: {
  53624. wrapper: 'thead',
  53625. row: 'tr',
  53626. cell: 'th'
  53627. },
  53628. body: {
  53629. wrapper: 'tbody',
  53630. row: 'tr',
  53631. cell: 'td'
  53632. }
  53633. }, this.components)
  53634. };
  53635. },
  53636. watch: {
  53637. components: function components() {
  53638. this._components = lodash_merge__WEBPACK_IMPORTED_MODULE_5___default()({
  53639. table: 'table',
  53640. header: {
  53641. wrapper: 'thead',
  53642. row: 'tr',
  53643. cell: 'th'
  53644. },
  53645. body: {
  53646. wrapper: 'tbody',
  53647. row: 'tr',
  53648. cell: 'td'
  53649. }
  53650. }, this.components);
  53651. },
  53652. columns: function columns(val) {
  53653. if (val) {
  53654. this.columnManager.reset(val);
  53655. }
  53656. },
  53657. data: function data(val) {
  53658. var _this = this;
  53659. if (val.length === 0 && this.hasScrollX()) {
  53660. this.$nextTick(function () {
  53661. _this.resetScrollX();
  53662. });
  53663. }
  53664. }
  53665. },
  53666. // static childContextTypes = {
  53667. // table: PropTypes.any,
  53668. // components: PropTypes.any,
  53669. // },
  53670. created: function created() {
  53671. var _this2 = this;
  53672. ['rowClick', 'rowDoubleclick', 'rowContextmenu', 'rowMouseenter', 'rowMouseleave'].forEach(function (name) {
  53673. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_16__["getListeners"])(_this2)[name] === undefined, name + ' is deprecated, please use customRow instead.');
  53674. });
  53675. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(this.getBodyWrapper === undefined, 'getBodyWrapper is deprecated, please use custom components instead.');
  53676. this.setScrollPosition('left');
  53677. this.debouncedWindowResize = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["debounce"])(this.handleWindowResize, 150);
  53678. },
  53679. mounted: function mounted() {
  53680. var _this3 = this;
  53681. this.$nextTick(function () {
  53682. if (_this3.columnManager.isAnyColumnsFixed()) {
  53683. _this3.handleWindowResize();
  53684. _this3.resizeEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_11__["default"])(window, 'resize', _this3.debouncedWindowResize);
  53685. }
  53686. // https://github.com/ant-design/ant-design/issues/11635
  53687. if (_this3.ref_headTable) {
  53688. _this3.ref_headTable.scrollLeft = 0;
  53689. }
  53690. if (_this3.ref_bodyTable) {
  53691. _this3.ref_bodyTable.scrollLeft = 0;
  53692. }
  53693. });
  53694. },
  53695. updated: function updated() {
  53696. var _this4 = this;
  53697. this.$nextTick(function () {
  53698. if (_this4.columnManager.isAnyColumnsFixed()) {
  53699. _this4.handleWindowResize();
  53700. if (!_this4.resizeEvent) {
  53701. _this4.resizeEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_11__["default"])(window, 'resize', _this4.debouncedWindowResize);
  53702. }
  53703. }
  53704. });
  53705. },
  53706. beforeDestroy: function beforeDestroy() {
  53707. if (this.resizeEvent) {
  53708. this.resizeEvent.remove();
  53709. }
  53710. if (this.debouncedWindowResize) {
  53711. this.debouncedWindowResize.cancel();
  53712. }
  53713. },
  53714. methods: {
  53715. getRowKey: function getRowKey(record, index) {
  53716. var rowKey = this.rowKey;
  53717. var key = typeof rowKey === 'function' ? rowKey(record, index) : record[rowKey];
  53718. Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(key !== undefined, 'Each record in table should have a unique `key` prop,' + 'or set `rowKey` to an unique primary key.');
  53719. return key === undefined ? index : key;
  53720. },
  53721. setScrollPosition: function setScrollPosition(position) {
  53722. this.scrollPosition = position;
  53723. if (this.tableNode) {
  53724. var prefixCls = this.prefixCls;
  53725. if (position === 'both') {
  53726. component_classes__WEBPACK_IMPORTED_MODULE_6___default()(this.tableNode).remove(new RegExp('^' + prefixCls + '-scroll-position-.+$')).add(prefixCls + '-scroll-position-left').add(prefixCls + '-scroll-position-right');
  53727. } else {
  53728. component_classes__WEBPACK_IMPORTED_MODULE_6___default()(this.tableNode).remove(new RegExp('^' + prefixCls + '-scroll-position-.+$')).add(prefixCls + '-scroll-position-' + position);
  53729. }
  53730. }
  53731. },
  53732. setScrollPositionClassName: function setScrollPositionClassName() {
  53733. var node = this.ref_bodyTable;
  53734. var scrollToLeft = node.scrollLeft === 0;
  53735. var scrollToRight = node.scrollLeft + 1 >= node.children[0].getBoundingClientRect().width - node.getBoundingClientRect().width;
  53736. if (scrollToLeft && scrollToRight) {
  53737. this.setScrollPosition('both');
  53738. } else if (scrollToLeft) {
  53739. this.setScrollPosition('left');
  53740. } else if (scrollToRight) {
  53741. this.setScrollPosition('right');
  53742. } else if (this.scrollPosition !== 'middle') {
  53743. this.setScrollPosition('middle');
  53744. }
  53745. },
  53746. isTableLayoutFixed: function isTableLayoutFixed() {
  53747. var _$props = this.$props,
  53748. tableLayout = _$props.tableLayout,
  53749. _$props$columns = _$props.columns,
  53750. columns = _$props$columns === undefined ? [] : _$props$columns,
  53751. useFixedHeader = _$props.useFixedHeader,
  53752. _$props$scroll = _$props.scroll,
  53753. scroll = _$props$scroll === undefined ? {} : _$props$scroll;
  53754. if (typeof tableLayout !== 'undefined') {
  53755. return tableLayout === 'fixed';
  53756. }
  53757. // if one column is ellipsis, use fixed table layout to fix align issue
  53758. if (columns.some(function (_ref) {
  53759. var ellipsis = _ref.ellipsis;
  53760. return !!ellipsis;
  53761. })) {
  53762. return true;
  53763. }
  53764. // if header fixed, use fixed table layout to fix align issue
  53765. if (useFixedHeader || scroll.y) {
  53766. return true;
  53767. }
  53768. // if scroll.x is number/px/% width value, we should fixed table layout
  53769. // to avoid long word layout broken issue
  53770. if (scroll.x && scroll.x !== true && scroll.x !== 'max-content') {
  53771. return true;
  53772. }
  53773. return false;
  53774. },
  53775. handleWindowResize: function handleWindowResize() {
  53776. this.syncFixedTableRowHeight();
  53777. this.setScrollPositionClassName();
  53778. },
  53779. syncFixedTableRowHeight: function syncFixedTableRowHeight() {
  53780. var tableRect = this.tableNode.getBoundingClientRect();
  53781. // If tableNode's height less than 0, suppose it is hidden and don't recalculate rowHeight.
  53782. // see: https://github.com/ant-design/ant-design/issues/4836
  53783. if (tableRect.height !== undefined && tableRect.height <= 0) {
  53784. return;
  53785. }
  53786. var prefixCls = this.prefixCls;
  53787. var headRows = this.ref_headTable ? this.ref_headTable.querySelectorAll('thead') : this.ref_bodyTable.querySelectorAll('thead');
  53788. var bodyRows = this.ref_bodyTable.querySelectorAll('.' + prefixCls + '-row') || [];
  53789. var fixedColumnsHeadRowsHeight = [].map.call(headRows, function (row) {
  53790. return row.getBoundingClientRect().height ? row.getBoundingClientRect().height - 0.5 : 'auto';
  53791. });
  53792. var state = this.store;
  53793. var fixedColumnsBodyRowsHeight = [].reduce.call(bodyRows, function (acc, row) {
  53794. var rowKey = row.getAttribute('data-row-key');
  53795. var height = row.getBoundingClientRect().height || state.fixedColumnsBodyRowsHeight[rowKey] || 'auto';
  53796. acc[rowKey] = height;
  53797. return acc;
  53798. }, {});
  53799. if (shallowequal__WEBPACK_IMPORTED_MODULE_4___default()(state.fixedColumnsHeadRowsHeight, fixedColumnsHeadRowsHeight) && shallowequal__WEBPACK_IMPORTED_MODULE_4___default()(state.fixedColumnsBodyRowsHeight, fixedColumnsBodyRowsHeight)) {
  53800. return;
  53801. }
  53802. this.store.fixedColumnsHeadRowsHeight = fixedColumnsHeadRowsHeight;
  53803. this.store.fixedColumnsBodyRowsHeight = fixedColumnsBodyRowsHeight;
  53804. },
  53805. resetScrollX: function resetScrollX() {
  53806. if (this.ref_headTable) {
  53807. this.ref_headTable.scrollLeft = 0;
  53808. }
  53809. if (this.ref_bodyTable) {
  53810. this.ref_bodyTable.scrollLeft = 0;
  53811. }
  53812. },
  53813. hasScrollX: function hasScrollX() {
  53814. var _scroll = this.scroll,
  53815. scroll = _scroll === undefined ? {} : _scroll;
  53816. return 'x' in scroll;
  53817. },
  53818. handleBodyScrollLeft: function handleBodyScrollLeft(e) {
  53819. // Fix https://github.com/ant-design/ant-design/issues/7635
  53820. if (e.currentTarget !== e.target) {
  53821. return;
  53822. }
  53823. var target = e.target;
  53824. var _scroll2 = this.scroll,
  53825. scroll = _scroll2 === undefined ? {} : _scroll2;
  53826. var ref_headTable = this.ref_headTable,
  53827. ref_bodyTable = this.ref_bodyTable;
  53828. if (target.scrollLeft !== this.lastScrollLeft && scroll.x) {
  53829. if (target === ref_bodyTable && ref_headTable) {
  53830. ref_headTable.scrollLeft = target.scrollLeft;
  53831. } else if (target === ref_headTable && ref_bodyTable) {
  53832. ref_bodyTable.scrollLeft = target.scrollLeft;
  53833. }
  53834. this.setScrollPositionClassName();
  53835. }
  53836. // Remember last scrollLeft for scroll direction detecting.
  53837. this.lastScrollLeft = target.scrollLeft;
  53838. },
  53839. handleBodyScrollTop: function handleBodyScrollTop(e) {
  53840. var target = e.target;
  53841. // Fix https://github.com/ant-design/ant-design/issues/9033
  53842. if (e.currentTarget !== target) {
  53843. return;
  53844. }
  53845. var _scroll3 = this.scroll,
  53846. scroll = _scroll3 === undefined ? {} : _scroll3;
  53847. var ref_headTable = this.ref_headTable,
  53848. ref_bodyTable = this.ref_bodyTable,
  53849. ref_fixedColumnsBodyLeft = this.ref_fixedColumnsBodyLeft,
  53850. ref_fixedColumnsBodyRight = this.ref_fixedColumnsBodyRight;
  53851. if (target.scrollTop !== this.lastScrollTop && scroll.y && target !== ref_headTable) {
  53852. var scrollTop = target.scrollTop;
  53853. if (ref_fixedColumnsBodyLeft && target !== ref_fixedColumnsBodyLeft) {
  53854. ref_fixedColumnsBodyLeft.scrollTop = scrollTop;
  53855. }
  53856. if (ref_fixedColumnsBodyRight && target !== ref_fixedColumnsBodyRight) {
  53857. ref_fixedColumnsBodyRight.scrollTop = scrollTop;
  53858. }
  53859. if (ref_bodyTable && target !== ref_bodyTable) {
  53860. ref_bodyTable.scrollTop = scrollTop;
  53861. }
  53862. }
  53863. // Remember last scrollTop for scroll direction detecting.
  53864. this.lastScrollTop = target.scrollTop;
  53865. },
  53866. handleBodyScroll: function handleBodyScroll(e) {
  53867. this.handleBodyScrollLeft(e);
  53868. this.handleBodyScrollTop(e);
  53869. },
  53870. handleWheel: function handleWheel(event) {
  53871. var _$props$scroll2 = this.$props.scroll,
  53872. scroll = _$props$scroll2 === undefined ? {} : _$props$scroll2;
  53873. if (window.navigator.userAgent.match(/Trident\/7\./) && scroll.y) {
  53874. event.preventDefault();
  53875. var wd = event.deltaY;
  53876. var target = event.target;
  53877. var bodyTable = this.ref_bodyTable,
  53878. fixedColumnsBodyLeft = this.ref_fixedColumnsBodyLeft,
  53879. fixedColumnsBodyRight = this.ref_fixedColumnsBodyRight;
  53880. var scrollTop = 0;
  53881. if (this.lastScrollTop) {
  53882. scrollTop = this.lastScrollTop + wd;
  53883. } else {
  53884. scrollTop = wd;
  53885. }
  53886. if (fixedColumnsBodyLeft && target !== fixedColumnsBodyLeft) {
  53887. fixedColumnsBodyLeft.scrollTop = scrollTop;
  53888. }
  53889. if (fixedColumnsBodyRight && target !== fixedColumnsBodyRight) {
  53890. fixedColumnsBodyRight.scrollTop = scrollTop;
  53891. }
  53892. if (bodyTable && target !== bodyTable) {
  53893. bodyTable.scrollTop = scrollTop;
  53894. }
  53895. }
  53896. },
  53897. // saveChildrenRef(name, node) {
  53898. // this[`ref_${name}`] = node;
  53899. // },
  53900. saveRef: function saveRef(name) {
  53901. var _this5 = this;
  53902. return function (node) {
  53903. _this5['ref_' + name] = node;
  53904. };
  53905. },
  53906. saveTableNodeRef: function saveTableNodeRef(node) {
  53907. this.tableNode = node;
  53908. },
  53909. renderMainTable: function renderMainTable() {
  53910. var h = this.$createElement;
  53911. var scroll = this.scroll,
  53912. prefixCls = this.prefixCls;
  53913. var isAnyColumnsFixed = this.columnManager.isAnyColumnsFixed();
  53914. var scrollable = isAnyColumnsFixed || scroll.x || scroll.y;
  53915. var table = [this.renderTable({
  53916. columns: this.columnManager.groupedColumns(),
  53917. isAnyColumnsFixed: isAnyColumnsFixed
  53918. }), this.renderEmptyText(), this.renderFooter()];
  53919. return scrollable ? h(
  53920. 'div',
  53921. { 'class': prefixCls + '-scroll' },
  53922. [table]
  53923. ) : table;
  53924. },
  53925. renderLeftFixedTable: function renderLeftFixedTable() {
  53926. var h = this.$createElement;
  53927. var prefixCls = this.prefixCls;
  53928. return h(
  53929. 'div',
  53930. { 'class': prefixCls + '-fixed-left' },
  53931. [this.renderTable({
  53932. columns: this.columnManager.leftColumns(),
  53933. fixed: 'left'
  53934. })]
  53935. );
  53936. },
  53937. renderRightFixedTable: function renderRightFixedTable() {
  53938. var h = this.$createElement;
  53939. var prefixCls = this.prefixCls;
  53940. return h(
  53941. 'div',
  53942. { 'class': prefixCls + '-fixed-right' },
  53943. [this.renderTable({
  53944. columns: this.columnManager.rightColumns(),
  53945. fixed: 'right'
  53946. })]
  53947. );
  53948. },
  53949. renderTable: function renderTable(options) {
  53950. var h = this.$createElement;
  53951. var columns = options.columns,
  53952. fixed = options.fixed,
  53953. isAnyColumnsFixed = options.isAnyColumnsFixed;
  53954. var prefixCls = this.prefixCls,
  53955. _scroll4 = this.scroll,
  53956. scroll = _scroll4 === undefined ? {} : _scroll4;
  53957. var tableClassName = scroll.x || fixed ? prefixCls + '-fixed' : '';
  53958. var headTable = h(_HeadTable__WEBPACK_IMPORTED_MODULE_13__["default"], {
  53959. key: 'head',
  53960. attrs: { columns: columns,
  53961. fixed: fixed,
  53962. tableClassName: tableClassName,
  53963. handleBodyScrollLeft: this.handleBodyScrollLeft,
  53964. expander: this.expander
  53965. }
  53966. });
  53967. var bodyTable = h(_BodyTable__WEBPACK_IMPORTED_MODULE_14__["default"], {
  53968. key: 'body',
  53969. attrs: { columns: columns,
  53970. fixed: fixed,
  53971. tableClassName: tableClassName,
  53972. getRowKey: this.getRowKey,
  53973. handleWheel: this.handleWheel,
  53974. handleBodyScroll: this.handleBodyScroll,
  53975. expander: this.expander,
  53976. isAnyColumnsFixed: isAnyColumnsFixed
  53977. }
  53978. });
  53979. return [headTable, bodyTable];
  53980. },
  53981. renderTitle: function renderTitle() {
  53982. var h = this.$createElement;
  53983. var title = this.title,
  53984. prefixCls = this.prefixCls,
  53985. data = this.data;
  53986. return title ? h(
  53987. 'div',
  53988. { 'class': prefixCls + '-title', key: 'title' },
  53989. [title(data)]
  53990. ) : null;
  53991. },
  53992. renderFooter: function renderFooter() {
  53993. var h = this.$createElement;
  53994. var footer = this.footer,
  53995. prefixCls = this.prefixCls,
  53996. data = this.data;
  53997. return footer ? h(
  53998. 'div',
  53999. { 'class': prefixCls + '-footer', key: 'footer' },
  54000. [footer(data)]
  54001. ) : null;
  54002. },
  54003. renderEmptyText: function renderEmptyText() {
  54004. var h = this.$createElement;
  54005. var emptyText = this.emptyText,
  54006. prefixCls = this.prefixCls,
  54007. data = this.data;
  54008. if (data.length) {
  54009. return null;
  54010. }
  54011. var emptyClassName = prefixCls + '-placeholder';
  54012. return h(
  54013. 'div',
  54014. { 'class': emptyClassName, key: 'emptyText' },
  54015. [typeof emptyText === 'function' ? emptyText() : emptyText]
  54016. );
  54017. }
  54018. },
  54019. render: function render() {
  54020. var _classNames,
  54021. _this6 = this;
  54022. var h = arguments[0];
  54023. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_16__["getOptionProps"])(this);
  54024. var columnManager = this.columnManager,
  54025. getRowKey = this.getRowKey;
  54026. var prefixCls = props.prefixCls;
  54027. var tableClassName = classnames__WEBPACK_IMPORTED_MODULE_7___default()(props.prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-fixed-header', props.useFixedHeader || props.scroll && props.scroll.y), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-scroll-position-left ' + prefixCls + '-scroll-position-right', this.scrollPosition === 'both'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-scroll-position-' + this.scrollPosition, this.scrollPosition !== 'both'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-layout-fixed', this.isTableLayoutFixed()), _classNames));
  54028. var hasLeftFixed = columnManager.isAnyColumnsLeftFixed();
  54029. var hasRightFixed = columnManager.isAnyColumnsRightFixed();
  54030. var expandableTableProps = {
  54031. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
  54032. columnManager: columnManager,
  54033. getRowKey: getRowKey
  54034. }),
  54035. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_16__["getListeners"])(this),
  54036. scopedSlots: {
  54037. 'default': function _default(expander) {
  54038. _this6.expander = expander;
  54039. return h(
  54040. 'div',
  54041. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  54042. directives: [{
  54043. name: 'ant-ref',
  54044. value: _this6.saveTableNodeRef
  54045. }]
  54046. }, {
  54047. 'class': tableClassName
  54048. // style={props.style}
  54049. // id={props.id}
  54050. }]),
  54051. [_this6.renderTitle(), h(
  54052. 'div',
  54053. { 'class': prefixCls + '-content' },
  54054. [_this6.renderMainTable(), hasLeftFixed && _this6.renderLeftFixedTable(), hasRightFixed && _this6.renderRightFixedTable()]
  54055. )]
  54056. );
  54057. }
  54058. }
  54059. };
  54060. return h(_ExpandableTable__WEBPACK_IMPORTED_MODULE_15__["default"], expandableTableProps);
  54061. }
  54062. });
  54063. /***/ }),
  54064. /***/ "./components/vc-table/src/TableCell.jsx":
  54065. /*!***********************************************!*\
  54066. !*** ./components/vc-table/src/TableCell.jsx ***!
  54067. \***********************************************/
  54068. /*! exports provided: default */
  54069. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54070. "use strict";
  54071. __webpack_require__.r(__webpack_exports__);
  54072. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  54073. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  54074. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  54075. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  54076. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  54077. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  54078. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  54079. /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");
  54080. /* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_4__);
  54081. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  54082. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
  54083. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  54084. function isInvalidRenderCellText(text) {
  54085. return text && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(text) && Object.prototype.toString.call(text) === '[object Object]';
  54086. }
  54087. /* harmony default export */ __webpack_exports__["default"] = ({
  54088. name: 'TableCell',
  54089. props: {
  54090. record: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  54091. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  54092. index: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  54093. indent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  54094. indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  54095. column: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  54096. expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  54097. component: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
  54098. },
  54099. inject: {
  54100. table: { 'default': function _default() {
  54101. return {};
  54102. } }
  54103. },
  54104. methods: {
  54105. handleClick: function handleClick(e) {
  54106. var record = this.record,
  54107. onCellClick = this.column.onCellClick;
  54108. if (onCellClick) {
  54109. onCellClick(record, e);
  54110. }
  54111. }
  54112. },
  54113. render: function render() {
  54114. var _classNames;
  54115. var h = arguments[0];
  54116. var record = this.record,
  54117. indentSize = this.indentSize,
  54118. prefixCls = this.prefixCls,
  54119. indent = this.indent,
  54120. index = this.index,
  54121. expandIcon = this.expandIcon,
  54122. column = this.column,
  54123. BodyCell = this.component;
  54124. var dataIndex = column.dataIndex,
  54125. customRender = column.customRender,
  54126. _column$className = column.className,
  54127. className = _column$className === undefined ? '' : _column$className;
  54128. var transformCellText = this.table.transformCellText;
  54129. // We should return undefined if no dataIndex is specified, but in order to
  54130. // be compatible with object-path's behavior, we return the record object instead.
  54131. var text = void 0;
  54132. if (typeof dataIndex === 'number') {
  54133. text = lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(record, dataIndex);
  54134. } else if (!dataIndex || dataIndex.length === 0) {
  54135. text = record;
  54136. } else {
  54137. text = lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(record, dataIndex);
  54138. }
  54139. var tdProps = {
  54140. props: {},
  54141. attrs: {},
  54142. on: {
  54143. click: this.handleClick
  54144. }
  54145. };
  54146. var colSpan = void 0;
  54147. var rowSpan = void 0;
  54148. if (customRender) {
  54149. text = customRender(text, record, index, column);
  54150. if (isInvalidRenderCellText(text)) {
  54151. tdProps.attrs = text.attrs || {};
  54152. tdProps.props = text.props || {};
  54153. tdProps['class'] = text['class'];
  54154. tdProps.style = text.style;
  54155. colSpan = tdProps.attrs.colSpan;
  54156. rowSpan = tdProps.attrs.rowSpan;
  54157. text = text.children;
  54158. }
  54159. }
  54160. if (column.customCell) {
  54161. tdProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(tdProps, column.customCell(record, index));
  54162. }
  54163. // Fix https://github.com/ant-design/ant-design/issues/1202
  54164. if (isInvalidRenderCellText(text)) {
  54165. text = null;
  54166. }
  54167. if (transformCellText) {
  54168. text = transformCellText({ text: text, column: column, record: record, index: index });
  54169. }
  54170. var indentText = expandIcon ? h('span', {
  54171. style: { paddingLeft: indentSize * indent + 'px' },
  54172. 'class': prefixCls + '-indent indent-level-' + indent
  54173. }) : null;
  54174. if (rowSpan === 0 || colSpan === 0) {
  54175. return null;
  54176. }
  54177. if (column.align) {
  54178. tdProps.style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({ textAlign: column.align }, tdProps.style);
  54179. }
  54180. var cellClassName = classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, column['class'], (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-cell-ellipsis', !!column.ellipsis), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-cell-break-word', !!column.width), _classNames));
  54181. if (column.ellipsis) {
  54182. if (typeof text === 'string') {
  54183. tdProps.attrs.title = text;
  54184. } else if (text) {
  54185. // const { props: textProps } = text;
  54186. // if (textProps && textProps.children && typeof textProps.children === 'string') {
  54187. // tdProps.attrs.title = textProps.children;
  54188. // }
  54189. }
  54190. }
  54191. return h(
  54192. BodyCell,
  54193. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': cellClassName }, tdProps]),
  54194. [indentText, expandIcon, text]
  54195. );
  54196. }
  54197. });
  54198. /***/ }),
  54199. /***/ "./components/vc-table/src/TableHeader.jsx":
  54200. /*!*************************************************!*\
  54201. !*** ./components/vc-table/src/TableHeader.jsx ***!
  54202. \*************************************************/
  54203. /*! exports provided: default */
  54204. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54205. "use strict";
  54206. __webpack_require__.r(__webpack_exports__);
  54207. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  54208. /* harmony import */ var _TableHeaderRow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TableHeaderRow */ "./components/vc-table/src/TableHeaderRow.jsx");
  54209. function getHeaderRows(_ref) {
  54210. var _ref$columns = _ref.columns,
  54211. columns = _ref$columns === undefined ? [] : _ref$columns,
  54212. _ref$currentRow = _ref.currentRow,
  54213. currentRow = _ref$currentRow === undefined ? 0 : _ref$currentRow,
  54214. _ref$rows = _ref.rows,
  54215. rows = _ref$rows === undefined ? [] : _ref$rows,
  54216. _ref$isLast = _ref.isLast,
  54217. isLast = _ref$isLast === undefined ? true : _ref$isLast;
  54218. rows = rows || [];
  54219. rows[currentRow] = rows[currentRow] || [];
  54220. columns.forEach(function (column, i) {
  54221. if (column.rowSpan && rows.length < column.rowSpan) {
  54222. while (rows.length < column.rowSpan) {
  54223. rows.push([]);
  54224. }
  54225. }
  54226. var cellIsLast = isLast && i === columns.length - 1;
  54227. var cell = {
  54228. key: column.key,
  54229. className: column.className || column['class'] || '',
  54230. children: column.title,
  54231. isLast: cellIsLast,
  54232. column: column
  54233. };
  54234. if (column.children) {
  54235. getHeaderRows({
  54236. columns: column.children,
  54237. currentRow: currentRow + 1,
  54238. rows: rows,
  54239. isLast: cellIsLast
  54240. });
  54241. }
  54242. if ('colSpan' in column) {
  54243. cell.colSpan = column.colSpan;
  54244. }
  54245. if ('rowSpan' in column) {
  54246. cell.rowSpan = column.rowSpan;
  54247. }
  54248. if (cell.colSpan !== 0) {
  54249. rows[currentRow].push(cell);
  54250. }
  54251. });
  54252. return rows.filter(function (row) {
  54253. return row.length > 0;
  54254. });
  54255. }
  54256. /* harmony default export */ __webpack_exports__["default"] = ({
  54257. name: 'TableHeader',
  54258. props: {
  54259. fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  54260. columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array.isRequired,
  54261. expander: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.isRequired
  54262. },
  54263. inject: {
  54264. table: { 'default': function _default() {
  54265. return {};
  54266. } }
  54267. },
  54268. render: function render() {
  54269. var h = arguments[0];
  54270. var _table = this.table,
  54271. components = _table.sComponents,
  54272. prefixCls = _table.prefixCls,
  54273. showHeader = _table.showHeader,
  54274. customHeaderRow = _table.customHeaderRow;
  54275. var expander = this.expander,
  54276. columns = this.columns,
  54277. fixed = this.fixed;
  54278. if (!showHeader) {
  54279. return null;
  54280. }
  54281. var rows = getHeaderRows({ columns: columns });
  54282. expander.renderExpandIndentCell(rows, fixed);
  54283. var HeaderWrapper = components.header.wrapper;
  54284. return h(
  54285. HeaderWrapper,
  54286. { 'class': prefixCls + '-thead' },
  54287. [rows.map(function (row, index) {
  54288. return h(_TableHeaderRow__WEBPACK_IMPORTED_MODULE_1__["default"], {
  54289. attrs: {
  54290. prefixCls: prefixCls,
  54291. index: index,
  54292. fixed: fixed,
  54293. columns: columns,
  54294. rows: rows,
  54295. row: row,
  54296. components: components,
  54297. customHeaderRow: customHeaderRow
  54298. },
  54299. key: index });
  54300. })]
  54301. );
  54302. }
  54303. });
  54304. /***/ }),
  54305. /***/ "./components/vc-table/src/TableHeaderRow.jsx":
  54306. /*!****************************************************!*\
  54307. !*** ./components/vc-table/src/TableHeaderRow.jsx ***!
  54308. \****************************************************/
  54309. /*! exports provided: default */
  54310. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54311. "use strict";
  54312. __webpack_require__.r(__webpack_exports__);
  54313. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  54314. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  54315. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  54316. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  54317. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  54318. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
  54319. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  54320. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
  54321. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  54322. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
  54323. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  54324. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  54325. var TableHeaderRow = {
  54326. inject: {
  54327. store: { from: 'table-store', 'default': function _default() {
  54328. return {};
  54329. } }
  54330. },
  54331. props: {
  54332. index: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number,
  54333. fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
  54334. columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
  54335. rows: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
  54336. row: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
  54337. components: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
  54338. customHeaderRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func,
  54339. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string
  54340. },
  54341. name: 'TableHeaderRow',
  54342. computed: {
  54343. height: function height() {
  54344. var fixedColumnsHeadRowsHeight = this.store.fixedColumnsHeadRowsHeight;
  54345. var _$props = this.$props,
  54346. columns = _$props.columns,
  54347. rows = _$props.rows,
  54348. fixed = _$props.fixed;
  54349. var headerHeight = fixedColumnsHeadRowsHeight[0];
  54350. if (!fixed) {
  54351. return null;
  54352. }
  54353. if (headerHeight && columns) {
  54354. if (headerHeight === 'auto') {
  54355. return 'auto';
  54356. }
  54357. return headerHeight / rows.length + 'px';
  54358. }
  54359. return null;
  54360. }
  54361. },
  54362. render: function render(h) {
  54363. var row = this.row,
  54364. index = this.index,
  54365. height = this.height,
  54366. components = this.components,
  54367. customHeaderRow = this.customHeaderRow,
  54368. prefixCls = this.prefixCls;
  54369. var HeaderRow = components.header.row;
  54370. var HeaderCell = components.header.cell;
  54371. var rowProps = customHeaderRow(row.map(function (cell) {
  54372. return cell.column;
  54373. }), index);
  54374. var customStyle = rowProps ? rowProps.style : {};
  54375. var style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({ height: height }, customStyle);
  54376. if (style.height === null) {
  54377. delete style.height;
  54378. }
  54379. return h(
  54380. HeaderRow,
  54381. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([rowProps, { style: style }]),
  54382. [row.map(function (cell, i) {
  54383. var _classNames;
  54384. var column = cell.column,
  54385. isLast = cell.isLast,
  54386. children = cell.children,
  54387. className = cell.className,
  54388. cellProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(cell, ['column', 'isLast', 'children', 'className']);
  54389. var customProps = column.customHeaderCell ? column.customHeaderCell(column) : {};
  54390. var headerCellProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])({
  54391. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, cellProps)
  54392. }, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, customProps, {
  54393. key: column.key || column.dataIndex || i
  54394. }));
  54395. if (column.align) {
  54396. headerCellProps.style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, customProps.style, { textAlign: column.align });
  54397. }
  54398. headerCellProps['class'] = classnames__WEBPACK_IMPORTED_MODULE_4___default()(customProps['class'], customProps.className, column['class'], column.className, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-align-' + column.align, !!column.align), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-cell-ellipsis', !!column.ellipsis), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-cell-break-word', !!column.width), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-cell-last', isLast), _classNames));
  54399. if (typeof HeaderCell === 'function') {
  54400. return HeaderCell(h, headerCellProps, children);
  54401. }
  54402. return h(
  54403. HeaderCell,
  54404. headerCellProps,
  54405. [children]
  54406. );
  54407. })]
  54408. );
  54409. }
  54410. };
  54411. /* harmony default export */ __webpack_exports__["default"] = (TableHeaderRow);
  54412. /***/ }),
  54413. /***/ "./components/vc-table/src/TableRow.jsx":
  54414. /*!**********************************************!*\
  54415. !*** ./components/vc-table/src/TableRow.jsx ***!
  54416. \**********************************************/
  54417. /*! exports provided: default */
  54418. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54419. "use strict";
  54420. __webpack_require__.r(__webpack_exports__);
  54421. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  54422. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
  54423. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  54424. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  54425. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  54426. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  54427. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  54428. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  54429. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  54430. /* harmony import */ var _TableCell__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TableCell */ "./components/vc-table/src/TableCell.jsx");
  54431. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  54432. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  54433. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
  54434. function noop() {}
  54435. var TableRow = {
  54436. name: 'TableRow',
  54437. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
  54438. inject: {
  54439. store: { from: 'table-store', 'default': function _default() {
  54440. return {};
  54441. } }
  54442. },
  54443. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])({
  54444. customRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
  54445. // onRowClick: PropTypes.func,
  54446. // onRowDoubleClick: PropTypes.func,
  54447. // onRowContextMenu: PropTypes.func,
  54448. // onRowMouseEnter: PropTypes.func,
  54449. // onRowMouseLeave: PropTypes.func,
  54450. record: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
  54451. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  54452. // onHover: PropTypes.func,
  54453. columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
  54454. index: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  54455. rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]).isRequired,
  54456. className: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  54457. indent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  54458. indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  54459. hasExpandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
  54460. fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool]),
  54461. renderExpandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
  54462. renderExpandIconCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
  54463. components: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  54464. expandedRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  54465. isAnyColumnsFixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  54466. ancestorKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array.isRequired,
  54467. expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
  54468. expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
  54469. // visible: PropTypes.bool,
  54470. // hovered: PropTypes.bool,
  54471. // height: PropTypes.any,
  54472. }, {
  54473. // expandIconColumnIndex: 0,
  54474. // expandRowByClick: false,
  54475. hasExpandIcon: function hasExpandIcon() {},
  54476. renderExpandIcon: function renderExpandIcon() {},
  54477. renderExpandIconCell: function renderExpandIconCell() {}
  54478. }),
  54479. computed: {
  54480. visible: function visible() {
  54481. var expandedRowKeys = this.store.expandedRowKeys;
  54482. var ancestorKeys = this.$props.ancestorKeys;
  54483. return !!(ancestorKeys.length === 0 || ancestorKeys.every(function (k) {
  54484. return expandedRowKeys.includes(k);
  54485. }));
  54486. },
  54487. height: function height() {
  54488. var _store = this.store,
  54489. expandedRowsHeight = _store.expandedRowsHeight,
  54490. fixedColumnsBodyRowsHeight = _store.fixedColumnsBodyRowsHeight;
  54491. var _$props = this.$props,
  54492. fixed = _$props.fixed,
  54493. rowKey = _$props.rowKey;
  54494. if (!fixed) {
  54495. return null;
  54496. }
  54497. if (expandedRowsHeight[rowKey]) {
  54498. return expandedRowsHeight[rowKey];
  54499. }
  54500. if (fixedColumnsBodyRowsHeight[rowKey]) {
  54501. return fixedColumnsBodyRowsHeight[rowKey];
  54502. }
  54503. return null;
  54504. },
  54505. hovered: function hovered() {
  54506. var currentHoverKey = this.store.currentHoverKey;
  54507. var rowKey = this.$props.rowKey;
  54508. return currentHoverKey === rowKey;
  54509. }
  54510. },
  54511. data: function data() {
  54512. // this.shouldRender = this.visible
  54513. return {
  54514. shouldRender: this.visible
  54515. };
  54516. },
  54517. mounted: function mounted() {
  54518. var _this = this;
  54519. if (this.shouldRender) {
  54520. this.$nextTick(function () {
  54521. _this.saveRowRef();
  54522. });
  54523. }
  54524. },
  54525. watch: {
  54526. visible: {
  54527. handler: function handler(val) {
  54528. if (val) {
  54529. this.shouldRender = true;
  54530. }
  54531. },
  54532. immediate: true
  54533. }
  54534. },
  54535. updated: function updated() {
  54536. var _this2 = this;
  54537. if (this.shouldRender && !this.rowRef) {
  54538. this.$nextTick(function () {
  54539. _this2.saveRowRef();
  54540. });
  54541. }
  54542. },
  54543. methods: {
  54544. onRowClick: function onRowClick(event) {
  54545. var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
  54546. var record = this.record,
  54547. index = this.index;
  54548. this.__emit('rowClick', record, index, event);
  54549. rowPropFunc(event);
  54550. },
  54551. onRowDoubleClick: function onRowDoubleClick(event) {
  54552. var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
  54553. var record = this.record,
  54554. index = this.index;
  54555. this.__emit('rowDoubleClick', record, index, event);
  54556. rowPropFunc(event);
  54557. },
  54558. onContextMenu: function onContextMenu(event) {
  54559. var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
  54560. var record = this.record,
  54561. index = this.index;
  54562. this.__emit('rowContextmenu', record, index, event);
  54563. rowPropFunc(event);
  54564. },
  54565. onMouseEnter: function onMouseEnter(event) {
  54566. var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
  54567. var record = this.record,
  54568. index = this.index,
  54569. rowKey = this.rowKey;
  54570. this.__emit('hover', true, rowKey);
  54571. this.__emit('rowMouseenter', record, index, event);
  54572. rowPropFunc(event);
  54573. },
  54574. onMouseLeave: function onMouseLeave(event) {
  54575. var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
  54576. var record = this.record,
  54577. index = this.index,
  54578. rowKey = this.rowKey;
  54579. this.__emit('hover', false, rowKey);
  54580. this.__emit('rowMouseleave', record, index, event);
  54581. rowPropFunc(event);
  54582. },
  54583. setExpandedRowHeight: function setExpandedRowHeight() {
  54584. var store = this.store,
  54585. rowKey = this.rowKey;
  54586. var expandedRowsHeight = store.expandedRowsHeight;
  54587. var height = this.rowRef.getBoundingClientRect().height;
  54588. expandedRowsHeight = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, expandedRowsHeight, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, rowKey, height));
  54589. store.expandedRowsHeight = expandedRowsHeight;
  54590. },
  54591. setRowHeight: function setRowHeight() {
  54592. var store = this.store,
  54593. rowKey = this.rowKey;
  54594. var fixedColumnsBodyRowsHeight = store.fixedColumnsBodyRowsHeight;
  54595. var height = this.rowRef.getBoundingClientRect().height;
  54596. store.fixedColumnsBodyRowsHeight = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, fixedColumnsBodyRowsHeight, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, rowKey, height));
  54597. },
  54598. getStyle: function getStyle() {
  54599. var height = this.height,
  54600. visible = this.visible;
  54601. var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getStyle"])(this);
  54602. if (height) {
  54603. style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, style, { height: height });
  54604. }
  54605. if (!visible && !style.display) {
  54606. style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, style, { display: 'none' });
  54607. }
  54608. return style;
  54609. },
  54610. saveRowRef: function saveRowRef() {
  54611. this.rowRef = this.$el;
  54612. var isAnyColumnsFixed = this.isAnyColumnsFixed,
  54613. fixed = this.fixed,
  54614. expandedRow = this.expandedRow,
  54615. ancestorKeys = this.ancestorKeys;
  54616. if (!isAnyColumnsFixed) {
  54617. return;
  54618. }
  54619. if (!fixed && expandedRow) {
  54620. this.setExpandedRowHeight();
  54621. }
  54622. if (!fixed && ancestorKeys.length >= 0) {
  54623. this.setRowHeight();
  54624. }
  54625. }
  54626. },
  54627. render: function render() {
  54628. var _this3 = this;
  54629. var h = arguments[0];
  54630. if (!this.shouldRender) {
  54631. return null;
  54632. }
  54633. var prefixCls = this.prefixCls,
  54634. columns = this.columns,
  54635. record = this.record,
  54636. rowKey = this.rowKey,
  54637. index = this.index,
  54638. _customRow = this.customRow,
  54639. customRow = _customRow === undefined ? noop : _customRow,
  54640. indent = this.indent,
  54641. indentSize = this.indentSize,
  54642. hovered = this.hovered,
  54643. height = this.height,
  54644. visible = this.visible,
  54645. components = this.components,
  54646. hasExpandIcon = this.hasExpandIcon,
  54647. renderExpandIcon = this.renderExpandIcon,
  54648. renderExpandIconCell = this.renderExpandIconCell;
  54649. var BodyRow = components.body.row;
  54650. var BodyCell = components.body.cell;
  54651. var className = '';
  54652. if (hovered) {
  54653. className += ' ' + prefixCls + '-hover';
  54654. }
  54655. var cells = [];
  54656. renderExpandIconCell(cells);
  54657. for (var i = 0; i < columns.length; i += 1) {
  54658. var column = columns[i];
  54659. Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(column.onCellClick === undefined, 'column[onCellClick] is deprecated, please use column[customCell] instead.');
  54660. cells.push(h(_TableCell__WEBPACK_IMPORTED_MODULE_5__["default"], {
  54661. attrs: {
  54662. prefixCls: prefixCls,
  54663. record: record,
  54664. indentSize: indentSize,
  54665. indent: indent,
  54666. index: index,
  54667. column: column,
  54668. expandIcon: hasExpandIcon(i) && renderExpandIcon(),
  54669. component: BodyCell
  54670. },
  54671. key: column.key || column.dataIndex }));
  54672. }
  54673. var _ref = customRow(record, index) || {},
  54674. customClass = _ref['class'],
  54675. customClassName = _ref.className,
  54676. customStyle = _ref.style,
  54677. rowProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_ref, ['class', 'className', 'style']);
  54678. var style = { height: typeof height === 'number' ? height + 'px' : height };
  54679. if (!visible) {
  54680. style.display = 'none';
  54681. }
  54682. style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, style, customStyle);
  54683. var rowClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, className, prefixCls + '-level-' + indent, customClassName, customClass);
  54684. var rowPropEvents = rowProps.on || {};
  54685. var bodyRowProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, rowProps, { style: style }), {
  54686. on: {
  54687. click: function click(e) {
  54688. _this3.onRowClick(e, rowPropEvents.click);
  54689. },
  54690. dblclick: function dblclick(e) {
  54691. _this3.onRowDoubleClick(e, rowPropEvents.dblclick);
  54692. },
  54693. mouseenter: function mouseenter(e) {
  54694. _this3.onMouseEnter(e, rowPropEvents.mouseenter);
  54695. },
  54696. mouseleave: function mouseleave(e) {
  54697. _this3.onMouseLeave(e, rowPropEvents.mouseleave);
  54698. },
  54699. contextmenu: function contextmenu(e) {
  54700. _this3.onContextMenu(e, rowPropEvents.contextmenu);
  54701. }
  54702. },
  54703. 'class': rowClassName
  54704. }, {
  54705. attrs: {
  54706. 'data-row-key': rowKey
  54707. }
  54708. });
  54709. return h(
  54710. BodyRow,
  54711. bodyRowProps,
  54712. [cells]
  54713. );
  54714. }
  54715. };
  54716. /* harmony default export */ __webpack_exports__["default"] = (TableRow);
  54717. /***/ }),
  54718. /***/ "./components/vc-table/src/utils.js":
  54719. /*!******************************************!*\
  54720. !*** ./components/vc-table/src/utils.js ***!
  54721. \******************************************/
  54722. /*! exports provided: INTERNAL_COL_DEFINE, measureScrollbar, debounce, remove */
  54723. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54724. "use strict";
  54725. __webpack_require__.r(__webpack_exports__);
  54726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_COL_DEFINE", function() { return INTERNAL_COL_DEFINE; });
  54727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "measureScrollbar", function() { return measureScrollbar; });
  54728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return debounce; });
  54729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "remove", function() { return remove; });
  54730. var scrollbarVerticalSize = void 0;
  54731. var scrollbarHorizontalSize = void 0;
  54732. // Measure scrollbar width for padding body during modal show/hide
  54733. var scrollbarMeasure = {
  54734. position: 'absolute',
  54735. top: '-9999px',
  54736. width: '50px',
  54737. height: '50px'
  54738. };
  54739. var INTERNAL_COL_DEFINE = 'RC_TABLE_INTERNAL_COL_DEFINE';
  54740. function measureScrollbar(_ref) {
  54741. var _ref$direction = _ref.direction,
  54742. direction = _ref$direction === undefined ? 'vertical' : _ref$direction,
  54743. prefixCls = _ref.prefixCls;
  54744. if (typeof document === 'undefined' || typeof window === 'undefined') {
  54745. return 0;
  54746. }
  54747. var isVertical = direction === 'vertical';
  54748. if (isVertical && scrollbarVerticalSize) {
  54749. return scrollbarVerticalSize;
  54750. }
  54751. if (!isVertical && scrollbarHorizontalSize) {
  54752. return scrollbarHorizontalSize;
  54753. }
  54754. var scrollDiv = document.createElement('div');
  54755. Object.keys(scrollbarMeasure).forEach(function (scrollProp) {
  54756. scrollDiv.style[scrollProp] = scrollbarMeasure[scrollProp];
  54757. });
  54758. // apply hide scrollbar className ahead
  54759. scrollDiv.className = prefixCls + '-hide-scrollbar scroll-div-append-to-body';
  54760. // Append related overflow style
  54761. if (isVertical) {
  54762. scrollDiv.style.overflowY = 'scroll';
  54763. } else {
  54764. scrollDiv.style.overflowX = 'scroll';
  54765. }
  54766. document.body.appendChild(scrollDiv);
  54767. var size = 0;
  54768. if (isVertical) {
  54769. size = scrollDiv.offsetWidth - scrollDiv.clientWidth;
  54770. scrollbarVerticalSize = size;
  54771. } else {
  54772. size = scrollDiv.offsetHeight - scrollDiv.clientHeight;
  54773. scrollbarHorizontalSize = size;
  54774. }
  54775. document.body.removeChild(scrollDiv);
  54776. return size;
  54777. }
  54778. function debounce(func, wait, immediate) {
  54779. var timeout = void 0;
  54780. function debounceFunc() {
  54781. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  54782. args[_key] = arguments[_key];
  54783. }
  54784. var context = this;
  54785. // https://fb.me/react-event-pooling
  54786. if (args[0] && args[0].persist) {
  54787. args[0].persist();
  54788. }
  54789. var later = function later() {
  54790. timeout = null;
  54791. if (!immediate) {
  54792. func.apply(context, args);
  54793. }
  54794. };
  54795. var callNow = immediate && !timeout;
  54796. clearTimeout(timeout);
  54797. timeout = setTimeout(later, wait);
  54798. if (callNow) {
  54799. func.apply(context, args);
  54800. }
  54801. }
  54802. debounceFunc.cancel = function cancel() {
  54803. if (timeout) {
  54804. clearTimeout(timeout);
  54805. timeout = null;
  54806. }
  54807. };
  54808. return debounceFunc;
  54809. }
  54810. function remove(array, item) {
  54811. var index = array.indexOf(item);
  54812. var front = array.slice(0, index);
  54813. var last = array.slice(index + 1, array.length);
  54814. return front.concat(last);
  54815. }
  54816. /***/ }),
  54817. /***/ "./components/vc-tabs/src/InkTabBarNode.jsx":
  54818. /*!**************************************************!*\
  54819. !*** ./components/vc-tabs/src/InkTabBarNode.jsx ***!
  54820. \**************************************************/
  54821. /*! exports provided: default */
  54822. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54823. "use strict";
  54824. __webpack_require__.r(__webpack_exports__);
  54825. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  54826. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  54827. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  54828. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  54829. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  54830. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/vc-tabs/src/utils.js");
  54831. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  54832. function componentDidUpdate(component, init) {
  54833. var _component$$props = component.$props,
  54834. _component$$props$sty = _component$$props.styles,
  54835. styles = _component$$props$sty === undefined ? {} : _component$$props$sty,
  54836. panels = _component$$props.panels,
  54837. activeKey = _component$$props.activeKey,
  54838. direction = _component$$props.direction;
  54839. var rootNode = component.getRef('root');
  54840. var wrapNode = component.getRef('nav') || rootNode;
  54841. var inkBarNode = component.getRef('inkBar');
  54842. var activeTab = component.getRef('activeTab');
  54843. var inkBarNodeStyle = inkBarNode.style;
  54844. var tabBarPosition = component.$props.tabBarPosition;
  54845. var activeIndex = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getActiveIndex"])(panels, activeKey);
  54846. if (init) {
  54847. // prevent mount animation
  54848. inkBarNodeStyle.display = 'none';
  54849. }
  54850. if (activeTab) {
  54851. var tabNode = activeTab;
  54852. var transformSupported = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["isTransform3dSupported"])(inkBarNodeStyle);
  54853. // Reset current style
  54854. Object(_utils__WEBPACK_IMPORTED_MODULE_3__["setTransform"])(inkBarNodeStyle, '');
  54855. inkBarNodeStyle.width = '';
  54856. inkBarNodeStyle.height = '';
  54857. inkBarNodeStyle.left = '';
  54858. inkBarNodeStyle.top = '';
  54859. inkBarNodeStyle.bottom = '';
  54860. inkBarNodeStyle.right = '';
  54861. if (tabBarPosition === 'top' || tabBarPosition === 'bottom') {
  54862. var left = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getLeft"])(tabNode, wrapNode);
  54863. var width = tabNode.offsetWidth;
  54864. // If tabNode'width width equal to wrapNode'width when tabBarPosition is top or bottom
  54865. // It means no css working, then ink bar should not have width until css is loaded
  54866. // Fix https://github.com/ant-design/ant-design/issues/7564
  54867. if (width === rootNode.offsetWidth) {
  54868. width = 0;
  54869. } else if (styles.inkBar && styles.inkBar.width !== undefined) {
  54870. width = parseFloat(styles.inkBar.width, 10);
  54871. if (width) {
  54872. left += (tabNode.offsetWidth - width) / 2;
  54873. }
  54874. }
  54875. if (direction === 'rtl') {
  54876. left = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getStyle"])(tabNode, 'margin-left') - left;
  54877. }
  54878. // use 3d gpu to optimize render
  54879. if (transformSupported) {
  54880. Object(_utils__WEBPACK_IMPORTED_MODULE_3__["setTransform"])(inkBarNodeStyle, 'translate3d(' + left + 'px,0,0)');
  54881. } else {
  54882. inkBarNodeStyle.left = left + 'px';
  54883. }
  54884. inkBarNodeStyle.width = width + 'px';
  54885. } else {
  54886. var top = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getTop"])(tabNode, wrapNode, true);
  54887. var height = tabNode.offsetHeight;
  54888. if (styles.inkBar && styles.inkBar.height !== undefined) {
  54889. height = parseFloat(styles.inkBar.height, 10);
  54890. if (height) {
  54891. top += (tabNode.offsetHeight - height) / 2;
  54892. }
  54893. }
  54894. if (transformSupported) {
  54895. Object(_utils__WEBPACK_IMPORTED_MODULE_3__["setTransform"])(inkBarNodeStyle, 'translate3d(0,' + top + 'px,0)');
  54896. inkBarNodeStyle.top = '0';
  54897. } else {
  54898. inkBarNodeStyle.top = top + 'px';
  54899. }
  54900. inkBarNodeStyle.height = height + 'px';
  54901. }
  54902. }
  54903. inkBarNodeStyle.display = activeIndex !== -1 ? 'block' : 'none';
  54904. }
  54905. /* harmony default export */ __webpack_exports__["default"] = ({
  54906. name: 'InkTabBarNode',
  54907. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  54908. props: {
  54909. inkBarAnimated: {
  54910. type: Boolean,
  54911. 'default': true
  54912. },
  54913. direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  54914. prefixCls: String,
  54915. styles: Object,
  54916. tabBarPosition: String,
  54917. saveRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {}),
  54918. getRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {}),
  54919. panels: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
  54920. activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number])
  54921. },
  54922. updated: function updated() {
  54923. this.$nextTick(function () {
  54924. componentDidUpdate(this);
  54925. });
  54926. },
  54927. mounted: function mounted() {
  54928. this.$nextTick(function () {
  54929. componentDidUpdate(this, true);
  54930. });
  54931. },
  54932. render: function render() {
  54933. var _classes;
  54934. var h = arguments[0];
  54935. var prefixCls = this.prefixCls,
  54936. _styles = this.styles,
  54937. styles = _styles === undefined ? {} : _styles,
  54938. inkBarAnimated = this.inkBarAnimated;
  54939. var className = prefixCls + '-ink-bar';
  54940. var classes = (_classes = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classes, className, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classes, inkBarAnimated ? className + '-animated' : className + '-no-animated', true), _classes);
  54941. return h('div', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  54942. style: styles.inkBar,
  54943. 'class': classes,
  54944. key: 'inkBar'
  54945. }, {
  54946. directives: [{
  54947. name: 'ant-ref',
  54948. value: this.saveRef('inkBar')
  54949. }]
  54950. }]));
  54951. }
  54952. });
  54953. /***/ }),
  54954. /***/ "./components/vc-tabs/src/KeyCode.js":
  54955. /*!*******************************************!*\
  54956. !*** ./components/vc-tabs/src/KeyCode.js ***!
  54957. \*******************************************/
  54958. /*! exports provided: default */
  54959. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54960. "use strict";
  54961. __webpack_require__.r(__webpack_exports__);
  54962. /* harmony default export */ __webpack_exports__["default"] = ({
  54963. /**
  54964. * LEFT
  54965. */
  54966. LEFT: 37, // also NUM_WEST
  54967. /**
  54968. * UP
  54969. */
  54970. UP: 38, // also NUM_NORTH
  54971. /**
  54972. * RIGHT
  54973. */
  54974. RIGHT: 39, // also NUM_EAST
  54975. /**
  54976. * DOWN
  54977. */
  54978. DOWN: 40 // also NUM_SOUTH
  54979. });
  54980. /***/ }),
  54981. /***/ "./components/vc-tabs/src/SaveRef.jsx":
  54982. /*!********************************************!*\
  54983. !*** ./components/vc-tabs/src/SaveRef.jsx ***!
  54984. \********************************************/
  54985. /*! exports provided: default */
  54986. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  54987. "use strict";
  54988. __webpack_require__.r(__webpack_exports__);
  54989. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  54990. /* harmony default export */ __webpack_exports__["default"] = ({
  54991. props: {
  54992. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.def(function () {
  54993. return null;
  54994. })
  54995. },
  54996. methods: {
  54997. getRef: function getRef(name) {
  54998. return this[name];
  54999. },
  55000. saveRef: function saveRef(name) {
  55001. var _this = this;
  55002. return function (node) {
  55003. if (node) {
  55004. _this[name] = node;
  55005. }
  55006. };
  55007. }
  55008. },
  55009. render: function render() {
  55010. var _this2 = this;
  55011. // 每次都new一个新的function,避免子节点不能重新渲染
  55012. var saveRef = function saveRef(name) {
  55013. return _this2.saveRef(name);
  55014. };
  55015. var getRef = function getRef(name) {
  55016. return _this2.getRef(name);
  55017. };
  55018. return this.children(saveRef, getRef);
  55019. }
  55020. });
  55021. /***/ }),
  55022. /***/ "./components/vc-tabs/src/ScrollableInkTabBar.jsx":
  55023. /*!********************************************************!*\
  55024. !*** ./components/vc-tabs/src/ScrollableInkTabBar.jsx ***!
  55025. \********************************************************/
  55026. /*! exports provided: default */
  55027. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55028. "use strict";
  55029. __webpack_require__.r(__webpack_exports__);
  55030. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  55031. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  55032. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  55033. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  55034. /* harmony import */ var _InkTabBarNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InkTabBarNode */ "./components/vc-tabs/src/InkTabBarNode.jsx");
  55035. /* harmony import */ var _TabBarTabsNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabBarTabsNode */ "./components/vc-tabs/src/TabBarTabsNode.jsx");
  55036. /* harmony import */ var _TabBarRootNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TabBarRootNode */ "./components/vc-tabs/src/TabBarRootNode.jsx");
  55037. /* harmony import */ var _ScrollableTabBarNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ScrollableTabBarNode */ "./components/vc-tabs/src/ScrollableTabBarNode.jsx");
  55038. /* harmony import */ var _SaveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SaveRef */ "./components/vc-tabs/src/SaveRef.jsx");
  55039. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  55040. /* harmony default export */ __webpack_exports__["default"] = ({
  55041. name: 'ScrollableInkTabBar',
  55042. inheritAttrs: false,
  55043. props: ['extraContent', 'inkBarAnimated', 'tabBarGutter', 'prefixCls', 'navWrapper', 'tabBarPosition', 'panels', 'activeKey', 'prevIcon', 'nextIcon'],
  55044. render: function render() {
  55045. var h = arguments[0];
  55046. var props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props);
  55047. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this);
  55048. var renderTabBarNode = this.$scopedSlots['default'];
  55049. return h(_SaveRef__WEBPACK_IMPORTED_MODULE_6__["default"], {
  55050. attrs: {
  55051. children: function children(saveRef, getRef) {
  55052. return h(
  55053. _TabBarRootNode__WEBPACK_IMPORTED_MODULE_4__["default"],
  55054. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  55055. attrs: { saveRef: saveRef }
  55056. }, { props: props, on: listeners }]),
  55057. [h(
  55058. _ScrollableTabBarNode__WEBPACK_IMPORTED_MODULE_5__["default"],
  55059. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  55060. attrs: { saveRef: saveRef, getRef: getRef }
  55061. }, { props: props, on: listeners }]),
  55062. [h(_TabBarTabsNode__WEBPACK_IMPORTED_MODULE_3__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  55063. attrs: {
  55064. saveRef: saveRef
  55065. }
  55066. }, { props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, { renderTabBarNode: renderTabBarNode }), on: listeners }])), h(_InkTabBarNode__WEBPACK_IMPORTED_MODULE_2__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  55067. attrs: { saveRef: saveRef, getRef: getRef }
  55068. }, { props: props, on: listeners }]))]
  55069. )]
  55070. );
  55071. }
  55072. }
  55073. });
  55074. }
  55075. });
  55076. /***/ }),
  55077. /***/ "./components/vc-tabs/src/ScrollableTabBarNode.jsx":
  55078. /*!*********************************************************!*\
  55079. !*** ./components/vc-tabs/src/ScrollableTabBarNode.jsx ***!
  55080. \*********************************************************/
  55081. /*! exports provided: default */
  55082. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55083. "use strict";
  55084. __webpack_require__.r(__webpack_exports__);
  55085. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  55086. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  55087. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  55088. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  55089. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  55090. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  55091. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
  55092. /* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_3__);
  55093. /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
  55094. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  55095. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  55096. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  55097. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils */ "./components/vc-tabs/src/utils.js");
  55098. function noop() {}
  55099. /* harmony default export */ __webpack_exports__["default"] = ({
  55100. name: 'ScrollableTabBarNode',
  55101. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
  55102. props: {
  55103. activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  55104. getRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(function () {}),
  55105. saveRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(function () {}),
  55106. tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['left', 'right', 'top', 'bottom']).def('left'),
  55107. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string.def(''),
  55108. scrollAnimated: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool.def(true),
  55109. navWrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(function (arg) {
  55110. return arg;
  55111. }),
  55112. prevIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  55113. nextIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
  55114. direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string
  55115. },
  55116. data: function data() {
  55117. this.offset = 0;
  55118. this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props);
  55119. return {
  55120. next: false,
  55121. prev: false
  55122. };
  55123. },
  55124. watch: {
  55125. tabBarPosition: function tabBarPosition() {
  55126. var _this = this;
  55127. this.tabBarPositionChange = true;
  55128. this.$nextTick(function () {
  55129. _this.setOffset(0);
  55130. });
  55131. }
  55132. },
  55133. mounted: function mounted() {
  55134. var _this2 = this;
  55135. this.$nextTick(function () {
  55136. _this2.updatedCal();
  55137. _this2.debouncedResize = lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default()(function () {
  55138. _this2.setNextPrev();
  55139. _this2.scrollToActiveTab();
  55140. }, 200);
  55141. _this2.resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__["default"](_this2.debouncedResize);
  55142. _this2.resizeObserver.observe(_this2.$props.getRef('container'));
  55143. });
  55144. },
  55145. updated: function updated() {
  55146. var _this3 = this;
  55147. this.$nextTick(function () {
  55148. _this3.updatedCal(_this3.prevProps);
  55149. _this3.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _this3.$props);
  55150. });
  55151. },
  55152. beforeDestroy: function beforeDestroy() {
  55153. if (this.resizeObserver) {
  55154. this.resizeObserver.disconnect();
  55155. }
  55156. if (this.debouncedResize && this.debouncedResize.cancel) {
  55157. this.debouncedResize.cancel();
  55158. }
  55159. },
  55160. methods: {
  55161. updatedCal: function updatedCal(prevProps) {
  55162. var _this4 = this;
  55163. var props = this.$props;
  55164. if (prevProps && prevProps.tabBarPosition !== props.tabBarPosition) {
  55165. this.setOffset(0);
  55166. return;
  55167. }
  55168. // wait next, prev show hide
  55169. if (this.isNextPrevShown(this.$data) !== this.isNextPrevShown(this.setNextPrev())) {
  55170. this.$forceUpdate();
  55171. this.$nextTick(function () {
  55172. _this4.scrollToActiveTab();
  55173. });
  55174. } else if (!prevProps || props.activeKey !== prevProps.activeKey) {
  55175. // can not use props.activeKey
  55176. this.scrollToActiveTab();
  55177. }
  55178. },
  55179. setNextPrev: function setNextPrev() {
  55180. var navNode = this.$props.getRef('nav');
  55181. var navTabsContainer = this.$props.getRef('navTabsContainer');
  55182. var navNodeWH = this.getScrollWH(navTabsContainer || navNode);
  55183. // Add 1px to fix `offsetWidth` with decimal in Chrome not correct handle
  55184. // https://github.com/ant-design/ant-design/issues/13423
  55185. var containerWH = this.getOffsetWH(this.$props.getRef('container')) + 1;
  55186. var navWrapNodeWH = this.getOffsetWH(this.$props.getRef('navWrap'));
  55187. var offset = this.offset;
  55188. var minOffset = containerWH - navNodeWH;
  55189. var next = this.next,
  55190. prev = this.prev;
  55191. if (minOffset >= 0) {
  55192. next = false;
  55193. this.setOffset(0, false);
  55194. offset = 0;
  55195. } else if (minOffset < offset) {
  55196. next = true;
  55197. } else {
  55198. next = false;
  55199. // Fix https://github.com/ant-design/ant-design/issues/8861
  55200. // Test with container offset which is stable
  55201. // and set the offset of the nav wrap node
  55202. var realOffset = navWrapNodeWH - navNodeWH;
  55203. this.setOffset(realOffset, false);
  55204. offset = realOffset;
  55205. }
  55206. if (offset < 0) {
  55207. prev = true;
  55208. } else {
  55209. prev = false;
  55210. }
  55211. this.setNext(next);
  55212. this.setPrev(prev);
  55213. return {
  55214. next: next,
  55215. prev: prev
  55216. };
  55217. },
  55218. getOffsetWH: function getOffsetWH(node) {
  55219. var tabBarPosition = this.$props.tabBarPosition;
  55220. var prop = 'offsetWidth';
  55221. if (tabBarPosition === 'left' || tabBarPosition === 'right') {
  55222. prop = 'offsetHeight';
  55223. }
  55224. return node[prop];
  55225. },
  55226. getScrollWH: function getScrollWH(node) {
  55227. var tabBarPosition = this.tabBarPosition;
  55228. var prop = 'scrollWidth';
  55229. if (tabBarPosition === 'left' || tabBarPosition === 'right') {
  55230. prop = 'scrollHeight';
  55231. }
  55232. return node[prop];
  55233. },
  55234. getOffsetLT: function getOffsetLT(node) {
  55235. var tabBarPosition = this.$props.tabBarPosition;
  55236. var prop = 'left';
  55237. if (tabBarPosition === 'left' || tabBarPosition === 'right') {
  55238. prop = 'top';
  55239. }
  55240. return node.getBoundingClientRect()[prop];
  55241. },
  55242. setOffset: function setOffset(offset) {
  55243. var checkNextPrev = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  55244. var target = Math.min(0, offset);
  55245. if (this.offset !== target) {
  55246. this.offset = target;
  55247. var navOffset = {};
  55248. var tabBarPosition = this.$props.tabBarPosition;
  55249. var navStyle = this.$props.getRef('nav').style;
  55250. var transformSupported = Object(_utils__WEBPACK_IMPORTED_MODULE_8__["isTransform3dSupported"])(navStyle);
  55251. if (tabBarPosition === 'left' || tabBarPosition === 'right') {
  55252. if (transformSupported) {
  55253. navOffset = {
  55254. value: 'translate3d(0,' + target + 'px,0)'
  55255. };
  55256. } else {
  55257. navOffset = {
  55258. name: 'top',
  55259. value: target + 'px'
  55260. };
  55261. }
  55262. } else if (transformSupported) {
  55263. if (this.$props.direction === 'rtl') {
  55264. target = -target;
  55265. }
  55266. navOffset = {
  55267. value: 'translate3d(' + target + 'px,0,0)'
  55268. };
  55269. } else {
  55270. navOffset = {
  55271. name: 'left',
  55272. value: target + 'px'
  55273. };
  55274. }
  55275. if (transformSupported) {
  55276. Object(_utils__WEBPACK_IMPORTED_MODULE_8__["setTransform"])(navStyle, navOffset.value);
  55277. } else {
  55278. navStyle[navOffset.name] = navOffset.value;
  55279. }
  55280. if (checkNextPrev) {
  55281. this.setNextPrev();
  55282. }
  55283. }
  55284. },
  55285. setPrev: function setPrev(v) {
  55286. if (this.prev !== v) {
  55287. this.prev = v;
  55288. }
  55289. },
  55290. setNext: function setNext(v) {
  55291. if (!v) {
  55292. // debugger
  55293. }
  55294. if (this.next !== v) {
  55295. this.next = v;
  55296. }
  55297. },
  55298. isNextPrevShown: function isNextPrevShown(state) {
  55299. if (state) {
  55300. return state.next || state.prev;
  55301. }
  55302. return this.next || this.prev;
  55303. },
  55304. prevTransitionEnd: function prevTransitionEnd(e) {
  55305. if (e.propertyName !== 'opacity') {
  55306. return;
  55307. }
  55308. var container = this.$props.getRef('container');
  55309. this.scrollToActiveTab({
  55310. target: container,
  55311. currentTarget: container
  55312. });
  55313. },
  55314. scrollToActiveTab: function scrollToActiveTab(e) {
  55315. var activeTab = this.$props.getRef('activeTab');
  55316. var navWrap = this.$props.getRef('navWrap');
  55317. if (e && e.target !== e.currentTarget || !activeTab) {
  55318. return;
  55319. }
  55320. // when not scrollable or enter scrollable first time, don't emit scrolling
  55321. var needToSroll = this.isNextPrevShown() && this.lastNextPrevShown;
  55322. this.lastNextPrevShown = this.isNextPrevShown();
  55323. if (!needToSroll) {
  55324. return;
  55325. }
  55326. var activeTabWH = this.getScrollWH(activeTab);
  55327. var navWrapNodeWH = this.getOffsetWH(navWrap);
  55328. var offset = this.offset;
  55329. var wrapOffset = this.getOffsetLT(navWrap);
  55330. var activeTabOffset = this.getOffsetLT(activeTab);
  55331. if (wrapOffset > activeTabOffset) {
  55332. offset += wrapOffset - activeTabOffset;
  55333. this.setOffset(offset);
  55334. } else if (wrapOffset + navWrapNodeWH < activeTabOffset + activeTabWH) {
  55335. offset -= activeTabOffset + activeTabWH - (wrapOffset + navWrapNodeWH);
  55336. this.setOffset(offset);
  55337. }
  55338. },
  55339. prevClick: function prevClick(e) {
  55340. this.__emit('prevClick', e);
  55341. var navWrapNode = this.$props.getRef('navWrap');
  55342. var navWrapNodeWH = this.getOffsetWH(navWrapNode);
  55343. var offset = this.offset;
  55344. this.setOffset(offset + navWrapNodeWH);
  55345. },
  55346. nextClick: function nextClick(e) {
  55347. this.__emit('nextClick', e);
  55348. var navWrapNode = this.$props.getRef('navWrap');
  55349. var navWrapNodeWH = this.getOffsetWH(navWrapNode);
  55350. var offset = this.offset;
  55351. this.setOffset(offset - navWrapNodeWH);
  55352. }
  55353. },
  55354. render: function render() {
  55355. var _ref, _ref2, _navClasses, _ref3;
  55356. var h = arguments[0];
  55357. var next = this.next,
  55358. prev = this.prev;
  55359. var _$props = this.$props,
  55360. prefixCls = _$props.prefixCls,
  55361. scrollAnimated = _$props.scrollAnimated,
  55362. navWrapper = _$props.navWrapper;
  55363. var prevIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'prevIcon');
  55364. var nextIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'nextIcon');
  55365. var showNextPrev = prev || next;
  55366. var prevButton = h(
  55367. 'span',
  55368. {
  55369. on: {
  55370. 'click': prev ? this.prevClick : noop,
  55371. 'transitionend': this.prevTransitionEnd
  55372. },
  55373. attrs: {
  55374. unselectable: 'unselectable'
  55375. },
  55376. 'class': (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-tab-prev', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-tab-btn-disabled', !prev), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-tab-arrow-show', showNextPrev), _ref)
  55377. },
  55378. [prevIcon || h('span', { 'class': prefixCls + '-tab-prev-icon' })]
  55379. );
  55380. var nextButton = h(
  55381. 'span',
  55382. {
  55383. on: {
  55384. 'click': next ? this.nextClick : noop
  55385. },
  55386. attrs: {
  55387. unselectable: 'unselectable'
  55388. },
  55389. 'class': (_ref2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, prefixCls + '-tab-next', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, prefixCls + '-tab-btn-disabled', !next), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, prefixCls + '-tab-arrow-show', showNextPrev), _ref2)
  55390. },
  55391. [nextIcon || h('span', { 'class': prefixCls + '-tab-next-icon' })]
  55392. );
  55393. var navClassName = prefixCls + '-nav';
  55394. var navClasses = (_navClasses = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_navClasses, navClassName, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_navClasses, scrollAnimated ? navClassName + '-animated' : navClassName + '-no-animated', true), _navClasses);
  55395. return h(
  55396. 'div',
  55397. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  55398. 'class': (_ref3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref3, prefixCls + '-nav-container', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref3, prefixCls + '-nav-container-scrolling', showNextPrev), _ref3),
  55399. key: 'container'
  55400. }, {
  55401. directives: [{
  55402. name: 'ant-ref',
  55403. value: this.saveRef('container')
  55404. }]
  55405. }]),
  55406. [prevButton, nextButton, h(
  55407. 'div',
  55408. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  55409. 'class': prefixCls + '-nav-wrap'
  55410. }, {
  55411. directives: [{
  55412. name: 'ant-ref',
  55413. value: this.saveRef('navWrap')
  55414. }]
  55415. }]),
  55416. [h(
  55417. 'div',
  55418. { 'class': prefixCls + '-nav-scroll' },
  55419. [h(
  55420. 'div',
  55421. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  55422. 'class': navClasses
  55423. }, {
  55424. directives: [{
  55425. name: 'ant-ref',
  55426. value: this.saveRef('nav')
  55427. }]
  55428. }]),
  55429. [navWrapper(this.$slots['default'])]
  55430. )]
  55431. )]
  55432. )]
  55433. );
  55434. }
  55435. });
  55436. /***/ }),
  55437. /***/ "./components/vc-tabs/src/Sentinel.jsx":
  55438. /*!*********************************************!*\
  55439. !*** ./components/vc-tabs/src/Sentinel.jsx ***!
  55440. \*********************************************/
  55441. /*! exports provided: default */
  55442. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55443. "use strict";
  55444. __webpack_require__.r(__webpack_exports__);
  55445. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  55446. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  55447. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  55448. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
  55449. var sentinelStyle = { width: 0, height: 0, overflow: 'hidden', position: 'absolute' };
  55450. /* harmony default export */ __webpack_exports__["default"] = ({
  55451. name: 'Sentinel',
  55452. props: {
  55453. setRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  55454. prevElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  55455. nextElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  55456. },
  55457. methods: {
  55458. onKeyDown: function onKeyDown(_ref) {
  55459. var target = _ref.target,
  55460. which = _ref.which,
  55461. shiftKey = _ref.shiftKey;
  55462. var _$props = this.$props,
  55463. nextElement = _$props.nextElement,
  55464. prevElement = _$props.prevElement;
  55465. if (which !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].TAB || document.activeElement !== target) return;
  55466. // Tab next
  55467. if (!shiftKey && nextElement) {
  55468. nextElement.focus();
  55469. }
  55470. // Tab prev
  55471. if (shiftKey && prevElement) {
  55472. prevElement.focus();
  55473. }
  55474. }
  55475. },
  55476. render: function render() {
  55477. var h = arguments[0];
  55478. var setRef = this.$props.setRef;
  55479. return h(
  55480. 'div',
  55481. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  55482. attrs: {
  55483. tabIndex: 0
  55484. }
  55485. }, {
  55486. directives: [{
  55487. name: 'ant-ref',
  55488. value: setRef
  55489. }]
  55490. }, {
  55491. style: sentinelStyle,
  55492. on: {
  55493. 'keydown': this.onKeyDown
  55494. },
  55495. attrs: {
  55496. role: 'presentation'
  55497. }
  55498. }]),
  55499. [this.$slots['default']]
  55500. );
  55501. }
  55502. });
  55503. /***/ }),
  55504. /***/ "./components/vc-tabs/src/TabBarRootNode.jsx":
  55505. /*!***************************************************!*\
  55506. !*** ./components/vc-tabs/src/TabBarRootNode.jsx ***!
  55507. \***************************************************/
  55508. /*! exports provided: default */
  55509. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55510. "use strict";
  55511. __webpack_require__.r(__webpack_exports__);
  55512. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  55513. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  55514. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  55515. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  55516. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  55517. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
  55518. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  55519. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  55520. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  55521. function noop() {}
  55522. /* harmony default export */ __webpack_exports__["default"] = ({
  55523. name: 'TabBarRootNode',
  55524. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
  55525. props: {
  55526. saveRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
  55527. getRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
  55528. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def(''),
  55529. tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('top'),
  55530. extraContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any
  55531. },
  55532. methods: {
  55533. onKeyDown: function onKeyDown(e) {
  55534. this.__emit('keydown', e);
  55535. }
  55536. },
  55537. render: function render() {
  55538. var h = arguments[0];
  55539. var prefixCls = this.prefixCls,
  55540. onKeyDown = this.onKeyDown,
  55541. tabBarPosition = this.tabBarPosition,
  55542. extraContent = this.extraContent;
  55543. var cls = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, prefixCls + '-bar', true);
  55544. var topOrBottom = tabBarPosition === 'top' || tabBarPosition === 'bottom';
  55545. var tabBarExtraContentStyle = topOrBottom ? { float: 'right' } : {};
  55546. var children = this.$slots['default'];
  55547. var newChildren = children;
  55548. if (extraContent) {
  55549. newChildren = [Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(extraContent, {
  55550. key: 'extra',
  55551. style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, tabBarExtraContentStyle)
  55552. }), Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(children, { key: 'content' })];
  55553. newChildren = topOrBottom ? newChildren : newChildren.reverse();
  55554. }
  55555. return h(
  55556. 'div',
  55557. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  55558. attrs: {
  55559. role: 'tablist',
  55560. tabIndex: '0'
  55561. },
  55562. 'class': cls, on: {
  55563. 'keydown': onKeyDown
  55564. }
  55565. }, {
  55566. directives: [{
  55567. name: 'ant-ref',
  55568. value: this.saveRef('root')
  55569. }]
  55570. }]),
  55571. [newChildren]
  55572. );
  55573. }
  55574. });
  55575. /***/ }),
  55576. /***/ "./components/vc-tabs/src/TabBarTabsNode.jsx":
  55577. /*!***************************************************!*\
  55578. !*** ./components/vc-tabs/src/TabBarTabsNode.jsx ***!
  55579. \***************************************************/
  55580. /*! exports provided: default */
  55581. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55582. "use strict";
  55583. __webpack_require__.r(__webpack_exports__);
  55584. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  55585. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  55586. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  55587. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  55588. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
  55589. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_2__);
  55590. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  55591. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  55592. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  55593. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./components/vc-tabs/src/utils.js");
  55594. function noop() {}
  55595. /* harmony default export */ __webpack_exports__["default"] = ({
  55596. name: 'TabBarTabsNode',
  55597. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  55598. props: {
  55599. activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
  55600. panels: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def([]),
  55601. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def(''),
  55602. tabBarGutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def(null),
  55603. onTabClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  55604. saveRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(noop),
  55605. getRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(noop),
  55606. renderTabBarNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  55607. tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  55608. direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
  55609. },
  55610. render: function render() {
  55611. var _this = this;
  55612. var h = arguments[0];
  55613. var _$props = this.$props,
  55614. children = _$props.panels,
  55615. activeKey = _$props.activeKey,
  55616. prefixCls = _$props.prefixCls,
  55617. tabBarGutter = _$props.tabBarGutter,
  55618. saveRef = _$props.saveRef,
  55619. tabBarPosition = _$props.tabBarPosition,
  55620. direction = _$props.direction;
  55621. var rst = [];
  55622. var renderTabBarNode = this.renderTabBarNode || this.$scopedSlots.renderTabBarNode;
  55623. children.forEach(function (child, index) {
  55624. if (!child) {
  55625. return;
  55626. }
  55627. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(child);
  55628. var key = child.key;
  55629. var cls = activeKey === key ? prefixCls + '-tab-active' : '';
  55630. cls += ' ' + prefixCls + '-tab';
  55631. var events = { on: {} };
  55632. var disabled = props.disabled || props.disabled === '';
  55633. if (disabled) {
  55634. cls += ' ' + prefixCls + '-tab-disabled';
  55635. } else {
  55636. events.on.click = function () {
  55637. _this.__emit('tabClick', key);
  55638. };
  55639. }
  55640. var directives = [];
  55641. if (activeKey === key) {
  55642. directives.push({
  55643. name: 'ant-ref',
  55644. value: saveRef('activeTab')
  55645. });
  55646. }
  55647. var tab = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(child, 'tab');
  55648. var gutter = tabBarGutter && index === children.length - 1 ? 0 : tabBarGutter;
  55649. gutter = typeof gutter === 'number' ? gutter + 'px' : gutter;
  55650. var marginProperty = direction === 'rtl' ? 'marginLeft' : 'marginRight';
  55651. var style = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_utils__WEBPACK_IMPORTED_MODULE_6__["isVertical"])(tabBarPosition) ? 'marginBottom' : marginProperty, gutter);
  55652. warning__WEBPACK_IMPORTED_MODULE_2___default()(tab !== undefined, 'There must be `tab` property or slot on children of Tabs.');
  55653. var node = h(
  55654. 'div',
  55655. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  55656. attrs: {
  55657. role: 'tab',
  55658. 'aria-disabled': disabled ? 'true' : 'false',
  55659. 'aria-selected': activeKey === key ? 'true' : 'false'
  55660. }
  55661. }, events, {
  55662. 'class': cls,
  55663. key: key,
  55664. style: style
  55665. }, { directives: directives }]),
  55666. [tab]
  55667. );
  55668. if (renderTabBarNode) {
  55669. node = renderTabBarNode(node);
  55670. }
  55671. rst.push(node);
  55672. });
  55673. return h(
  55674. 'div',
  55675. {
  55676. directives: [{
  55677. name: 'ant-ref',
  55678. value: this.saveRef('navTabsContainer')
  55679. }]
  55680. },
  55681. [rst]
  55682. );
  55683. }
  55684. });
  55685. /***/ }),
  55686. /***/ "./components/vc-tabs/src/TabContent.jsx":
  55687. /*!***********************************************!*\
  55688. !*** ./components/vc-tabs/src/TabContent.jsx ***!
  55689. \***********************************************/
  55690. /*! exports provided: default */
  55691. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55692. "use strict";
  55693. __webpack_require__.r(__webpack_exports__);
  55694. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  55695. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  55696. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  55697. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  55698. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/vc-tabs/src/utils.js");
  55699. /* harmony default export */ __webpack_exports__["default"] = ({
  55700. name: 'TabContent',
  55701. props: {
  55702. animated: { type: Boolean, 'default': true },
  55703. animatedWithMargin: { type: Boolean, 'default': true },
  55704. prefixCls: {
  55705. 'default': 'ant-tabs',
  55706. type: String
  55707. },
  55708. activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
  55709. tabBarPosition: String,
  55710. direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  55711. destroyInactiveTabPane: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
  55712. },
  55713. computed: {
  55714. classes: function classes() {
  55715. var _ref;
  55716. var animated = this.animated,
  55717. prefixCls = this.prefixCls;
  55718. return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-content', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, animated ? prefixCls + '-content-animated' : prefixCls + '-content-no-animated', true), _ref;
  55719. }
  55720. },
  55721. methods: {
  55722. getTabPanes: function getTabPanes() {
  55723. var props = this.$props;
  55724. var activeKey = props.activeKey;
  55725. var children = this.$slots['default'] || [];
  55726. var newChildren = [];
  55727. children.forEach(function (child) {
  55728. if (!child) {
  55729. return;
  55730. }
  55731. var key = child.key;
  55732. var active = activeKey === key;
  55733. newChildren.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, {
  55734. props: {
  55735. active: active,
  55736. destroyInactiveTabPane: props.destroyInactiveTabPane,
  55737. rootPrefixCls: props.prefixCls
  55738. }
  55739. }));
  55740. });
  55741. return newChildren;
  55742. }
  55743. },
  55744. render: function render() {
  55745. var h = arguments[0];
  55746. var activeKey = this.activeKey,
  55747. tabBarPosition = this.tabBarPosition,
  55748. animated = this.animated,
  55749. animatedWithMargin = this.animatedWithMargin,
  55750. direction = this.direction,
  55751. classes = this.classes;
  55752. var style = {};
  55753. if (animated && this.$slots['default']) {
  55754. var activeIndex = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getActiveIndex"])(this.$slots['default'], activeKey);
  55755. if (activeIndex !== -1) {
  55756. var animatedStyle = animatedWithMargin ? Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getMarginStyle"])(activeIndex, tabBarPosition) : Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getTransformPropValue"])(Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getTransformByIndex"])(activeIndex, tabBarPosition, direction));
  55757. style = animatedStyle;
  55758. } else {
  55759. style = {
  55760. display: 'none'
  55761. };
  55762. }
  55763. }
  55764. return h(
  55765. 'div',
  55766. { 'class': classes, style: style },
  55767. [this.getTabPanes()]
  55768. );
  55769. }
  55770. });
  55771. /***/ }),
  55772. /***/ "./components/vc-tabs/src/TabPane.jsx":
  55773. /*!********************************************!*\
  55774. !*** ./components/vc-tabs/src/TabPane.jsx ***!
  55775. \********************************************/
  55776. /*! exports provided: default */
  55777. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55778. "use strict";
  55779. __webpack_require__.r(__webpack_exports__);
  55780. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  55781. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  55782. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  55783. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  55784. /* harmony import */ var _Sentinel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Sentinel */ "./components/vc-tabs/src/Sentinel.jsx");
  55785. /* harmony default export */ __webpack_exports__["default"] = ({
  55786. name: 'TabPane',
  55787. props: {
  55788. active: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  55789. destroyInactiveTabPane: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  55790. forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  55791. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  55792. rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  55793. tab: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  55794. closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  55795. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
  55796. },
  55797. inject: {
  55798. sentinelContext: { 'default': function _default() {
  55799. return {};
  55800. } }
  55801. },
  55802. render: function render() {
  55803. var _cls;
  55804. var h = arguments[0];
  55805. var _$props = this.$props,
  55806. destroyInactiveTabPane = _$props.destroyInactiveTabPane,
  55807. active = _$props.active,
  55808. forceRender = _$props.forceRender,
  55809. rootPrefixCls = _$props.rootPrefixCls;
  55810. var children = this.$slots['default'];
  55811. var placeholder = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'placeholder');
  55812. this._isActived = this._isActived || active;
  55813. var prefixCls = rootPrefixCls + '-tabpane';
  55814. var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-inactive', !active), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-active', active), _cls);
  55815. var isRender = destroyInactiveTabPane ? active : this._isActived;
  55816. var shouldRender = isRender || forceRender;
  55817. var _sentinelContext = this.sentinelContext,
  55818. sentinelStart = _sentinelContext.sentinelStart,
  55819. sentinelEnd = _sentinelContext.sentinelEnd,
  55820. setPanelSentinelStart = _sentinelContext.setPanelSentinelStart,
  55821. setPanelSentinelEnd = _sentinelContext.setPanelSentinelEnd;
  55822. var panelSentinelStart = void 0;
  55823. var panelSentinelEnd = void 0;
  55824. if (active && shouldRender) {
  55825. panelSentinelStart = h(_Sentinel__WEBPACK_IMPORTED_MODULE_3__["default"], {
  55826. attrs: { setRef: setPanelSentinelStart, prevElement: sentinelStart }
  55827. });
  55828. panelSentinelEnd = h(_Sentinel__WEBPACK_IMPORTED_MODULE_3__["default"], {
  55829. attrs: { setRef: setPanelSentinelEnd, nextElement: sentinelEnd }
  55830. });
  55831. }
  55832. return h(
  55833. 'div',
  55834. { 'class': cls, attrs: { role: 'tabpanel', 'aria-hidden': active ? 'false' : 'true' }
  55835. },
  55836. [panelSentinelStart, shouldRender ? children : placeholder, panelSentinelEnd]
  55837. );
  55838. }
  55839. });
  55840. /***/ }),
  55841. /***/ "./components/vc-tabs/src/Tabs.jsx":
  55842. /*!*****************************************!*\
  55843. !*** ./components/vc-tabs/src/Tabs.jsx ***!
  55844. \*****************************************/
  55845. /*! exports provided: default */
  55846. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  55847. "use strict";
  55848. __webpack_require__.r(__webpack_exports__);
  55849. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  55850. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  55851. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  55852. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  55853. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  55854. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  55855. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  55856. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
  55857. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_5__);
  55858. /* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./KeyCode */ "./components/vc-tabs/src/KeyCode.js");
  55859. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  55860. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  55861. /* harmony import */ var _Sentinel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Sentinel */ "./components/vc-tabs/src/Sentinel.jsx");
  55862. /* harmony import */ var _util_isValid__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../_util/isValid */ "./components/_util/isValid.js");
  55863. function getDefaultActiveKey(props) {
  55864. var activeKey = void 0;
  55865. var children = props.children;
  55866. children.forEach(function (child) {
  55867. if (child && !Object(_util_isValid__WEBPACK_IMPORTED_MODULE_10__["default"])(activeKey) && !child.disabled) {
  55868. activeKey = child.key;
  55869. }
  55870. });
  55871. return activeKey;
  55872. }
  55873. function activeKeyIsValid(props, key) {
  55874. var children = props.children;
  55875. var keys = children.map(function (child) {
  55876. return child && child.key;
  55877. });
  55878. return keys.indexOf(key) >= 0;
  55879. }
  55880. /* harmony default export */ __webpack_exports__["default"] = ({
  55881. name: 'Tabs',
  55882. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  55883. model: {
  55884. prop: 'activeKey',
  55885. event: 'change'
  55886. },
  55887. props: {
  55888. destroyInactiveTabPane: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  55889. renderTabBar: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.isRequired,
  55890. renderTabContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.isRequired,
  55891. navWrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(function (arg) {
  55892. return arg;
  55893. }),
  55894. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def([]),
  55895. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('ant-tabs'),
  55896. tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('top'),
  55897. activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
  55898. defaultActiveKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
  55899. __propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  55900. direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('ltr'),
  55901. tabBarGutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number
  55902. },
  55903. data: function data() {
  55904. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
  55905. var activeKey = void 0;
  55906. if ('activeKey' in props) {
  55907. activeKey = props.activeKey;
  55908. } else if ('defaultActiveKey' in props) {
  55909. activeKey = props.defaultActiveKey;
  55910. } else {
  55911. activeKey = getDefaultActiveKey(props);
  55912. }
  55913. return {
  55914. _activeKey: activeKey
  55915. };
  55916. },
  55917. provide: function provide() {
  55918. return {
  55919. sentinelContext: this
  55920. };
  55921. },
  55922. watch: {
  55923. __propsSymbol__: function __propsSymbol__() {
  55924. var nextProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
  55925. if ('activeKey' in nextProps) {
  55926. this.setState({
  55927. _activeKey: nextProps.activeKey
  55928. });
  55929. } else if (!activeKeyIsValid(nextProps, this.$data._activeKey)) {
  55930. // https://github.com/ant-design/ant-design/issues/7093
  55931. this.setState({
  55932. _activeKey: getDefaultActiveKey(nextProps)
  55933. });
  55934. }
  55935. }
  55936. },
  55937. beforeDestroy: function beforeDestroy() {
  55938. this.destroy = true;
  55939. raf__WEBPACK_IMPORTED_MODULE_5___default.a.cancel(this.sentinelId);
  55940. },
  55941. methods: {
  55942. onTabClick: function onTabClick(activeKey, e) {
  55943. if (this.tabBar.componentOptions && this.tabBar.componentOptions.listeners && this.tabBar.componentOptions.listeners.tabClick) {
  55944. this.tabBar.componentOptions.listeners.tabClick(activeKey, e);
  55945. }
  55946. this.setActiveKey(activeKey);
  55947. },
  55948. onNavKeyDown: function onNavKeyDown(e) {
  55949. var eventKeyCode = e.keyCode;
  55950. if (eventKeyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].RIGHT || eventKeyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].DOWN) {
  55951. e.preventDefault();
  55952. var nextKey = this.getNextActiveKey(true);
  55953. this.onTabClick(nextKey);
  55954. } else if (eventKeyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].LEFT || eventKeyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].UP) {
  55955. e.preventDefault();
  55956. var previousKey = this.getNextActiveKey(false);
  55957. this.onTabClick(previousKey);
  55958. }
  55959. },
  55960. onScroll: function onScroll(_ref) {
  55961. var target = _ref.target,
  55962. currentTarget = _ref.currentTarget;
  55963. if (target === currentTarget && target.scrollLeft > 0) {
  55964. target.scrollLeft = 0;
  55965. }
  55966. },
  55967. // Sentinel for tab index
  55968. setSentinelStart: function setSentinelStart(node) {
  55969. this.sentinelStart = node;
  55970. },
  55971. setSentinelEnd: function setSentinelEnd(node) {
  55972. this.sentinelEnd = node;
  55973. },
  55974. setPanelSentinelStart: function setPanelSentinelStart(node) {
  55975. if (node !== this.panelSentinelStart) {
  55976. this.updateSentinelContext();
  55977. }
  55978. this.panelSentinelStart = node;
  55979. },
  55980. setPanelSentinelEnd: function setPanelSentinelEnd(node) {
  55981. if (node !== this.panelSentinelEnd) {
  55982. this.updateSentinelContext();
  55983. }
  55984. this.panelSentinelEnd = node;
  55985. },
  55986. setActiveKey: function setActiveKey(activeKey) {
  55987. if (this.$data._activeKey !== activeKey) {
  55988. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
  55989. if (!('activeKey' in props)) {
  55990. this.setState({
  55991. _activeKey: activeKey
  55992. });
  55993. }
  55994. this.__emit('change', activeKey);
  55995. }
  55996. },
  55997. getNextActiveKey: function getNextActiveKey(next) {
  55998. var activeKey = this.$data._activeKey;
  55999. var children = [];
  56000. this.$props.children.forEach(function (c) {
  56001. var disabled = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getValueByProp"])(c, 'disabled');
  56002. if (c && !disabled && disabled !== '') {
  56003. if (next) {
  56004. children.push(c);
  56005. } else {
  56006. children.unshift(c);
  56007. }
  56008. }
  56009. });
  56010. var length = children.length;
  56011. var ret = length && children[0].key;
  56012. children.forEach(function (child, i) {
  56013. if (child.key === activeKey) {
  56014. if (i === length - 1) {
  56015. ret = children[0].key;
  56016. } else {
  56017. ret = children[i + 1].key;
  56018. }
  56019. }
  56020. });
  56021. return ret;
  56022. },
  56023. updateSentinelContext: function updateSentinelContext() {
  56024. var _this = this;
  56025. if (this.destroy) return;
  56026. raf__WEBPACK_IMPORTED_MODULE_5___default.a.cancel(this.sentinelId);
  56027. this.sentinelId = raf__WEBPACK_IMPORTED_MODULE_5___default()(function () {
  56028. if (_this.destroy) return;
  56029. _this.$forceUpdate();
  56030. });
  56031. }
  56032. },
  56033. render: function render() {
  56034. var _cls;
  56035. var h = arguments[0];
  56036. var props = this.$props;
  56037. var prefixCls = props.prefixCls,
  56038. navWrapper = props.navWrapper,
  56039. tabBarPosition = props.tabBarPosition,
  56040. renderTabContent = props.renderTabContent,
  56041. renderTabBar = props.renderTabBar,
  56042. destroyInactiveTabPane = props.destroyInactiveTabPane,
  56043. direction = props.direction,
  56044. tabBarGutter = props.tabBarGutter;
  56045. var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-' + tabBarPosition, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-rtl', direction === 'rtl'), _cls);
  56046. this.tabBar = renderTabBar();
  56047. var tabBar = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(this.tabBar, {
  56048. props: {
  56049. prefixCls: prefixCls,
  56050. navWrapper: navWrapper,
  56051. tabBarPosition: tabBarPosition,
  56052. panels: props.children,
  56053. activeKey: this.$data._activeKey,
  56054. direction: direction,
  56055. tabBarGutter: tabBarGutter
  56056. },
  56057. on: {
  56058. keydown: this.onNavKeyDown,
  56059. tabClick: this.onTabClick
  56060. },
  56061. key: 'tabBar'
  56062. });
  56063. var tabContent = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(renderTabContent(), {
  56064. props: {
  56065. prefixCls: prefixCls,
  56066. tabBarPosition: tabBarPosition,
  56067. activeKey: this.$data._activeKey,
  56068. destroyInactiveTabPane: destroyInactiveTabPane,
  56069. direction: direction
  56070. },
  56071. on: {
  56072. change: this.setActiveKey
  56073. },
  56074. children: props.children,
  56075. key: 'tabContent'
  56076. });
  56077. var sentinelStart = h(_Sentinel__WEBPACK_IMPORTED_MODULE_9__["default"], {
  56078. key: 'sentinelStart',
  56079. attrs: { setRef: this.setSentinelStart,
  56080. nextElement: this.panelSentinelStart
  56081. }
  56082. });
  56083. var sentinelEnd = h(_Sentinel__WEBPACK_IMPORTED_MODULE_9__["default"], {
  56084. key: 'sentinelEnd',
  56085. attrs: { setRef: this.setSentinelEnd,
  56086. prevElement: this.panelSentinelEnd
  56087. }
  56088. });
  56089. var contents = [];
  56090. if (tabBarPosition === 'bottom') {
  56091. contents.push(sentinelStart, tabContent, sentinelEnd, tabBar);
  56092. } else {
  56093. contents.push(tabBar, sentinelStart, tabContent, sentinelEnd);
  56094. }
  56095. var listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), ['change']), {
  56096. scroll: this.onScroll
  56097. });
  56098. return h(
  56099. 'div',
  56100. { on: listeners, 'class': cls },
  56101. [contents]
  56102. );
  56103. }
  56104. });
  56105. /***/ }),
  56106. /***/ "./components/vc-tabs/src/index.js":
  56107. /*!*****************************************!*\
  56108. !*** ./components/vc-tabs/src/index.js ***!
  56109. \*****************************************/
  56110. /*! exports provided: default, TabPane, TabContent */
  56111. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56112. "use strict";
  56113. __webpack_require__.r(__webpack_exports__);
  56114. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  56115. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_0__);
  56116. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "vue");
  56117. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
  56118. /* harmony import */ var _Tabs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Tabs */ "./components/vc-tabs/src/Tabs.jsx");
  56119. /* harmony import */ var _TabPane__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabPane */ "./components/vc-tabs/src/TabPane.jsx");
  56120. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPane", function() { return _TabPane__WEBPACK_IMPORTED_MODULE_3__["default"]; });
  56121. /* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TabContent */ "./components/vc-tabs/src/TabContent.jsx");
  56122. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContent", function() { return _TabContent__WEBPACK_IMPORTED_MODULE_4__["default"]; });
  56123. // based on rc-tabs 9.7.0
  56124. vue__WEBPACK_IMPORTED_MODULE_1___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_0___default.a, { name: 'ant-ref' });
  56125. /* harmony default export */ __webpack_exports__["default"] = (_Tabs__WEBPACK_IMPORTED_MODULE_2__["default"]);
  56126. /***/ }),
  56127. /***/ "./components/vc-tabs/src/utils.js":
  56128. /*!*****************************************!*\
  56129. !*** ./components/vc-tabs/src/utils.js ***!
  56130. \*****************************************/
  56131. /*! exports provided: toArray, getActiveIndex, getActiveKey, setTransform, isTransform3dSupported, setTransition, getTransformPropValue, isVertical, getTransformByIndex, getMarginStyle, getStyle, setPxStyle, getDataAttr, getLeft, getTop */
  56132. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56133. "use strict";
  56134. __webpack_require__.r(__webpack_exports__);
  56135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; });
  56136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActiveIndex", function() { return getActiveIndex; });
  56137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActiveKey", function() { return getActiveKey; });
  56138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTransform", function() { return setTransform; });
  56139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTransform3dSupported", function() { return isTransform3dSupported; });
  56140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTransition", function() { return setTransition; });
  56141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTransformPropValue", function() { return getTransformPropValue; });
  56142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isVertical", function() { return isVertical; });
  56143. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTransformByIndex", function() { return getTransformByIndex; });
  56144. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMarginStyle", function() { return getMarginStyle; });
  56145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyle", function() { return getStyle; });
  56146. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setPxStyle", function() { return setPxStyle; });
  56147. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDataAttr", function() { return getDataAttr; });
  56148. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLeft", function() { return getLeft; });
  56149. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTop", function() { return getTop; });
  56150. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  56151. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  56152. function toArray(children) {
  56153. var c = [];
  56154. children.forEach(function (child) {
  56155. if (child.data) {
  56156. c.push(child);
  56157. }
  56158. });
  56159. return c;
  56160. }
  56161. function getActiveIndex(children, activeKey) {
  56162. var c = toArray(children);
  56163. for (var i = 0; i < c.length; i++) {
  56164. if (c[i].key === activeKey) {
  56165. return i;
  56166. }
  56167. }
  56168. return -1;
  56169. }
  56170. function getActiveKey(children, index) {
  56171. var c = toArray(children);
  56172. return c[index].key;
  56173. }
  56174. function setTransform(style, v) {
  56175. style.transform = v;
  56176. style.webkitTransform = v;
  56177. style.mozTransform = v;
  56178. }
  56179. function isTransform3dSupported(style) {
  56180. return ('transform' in style || 'webkitTransform' in style || 'MozTransform' in style) && window.atob;
  56181. }
  56182. function setTransition(style, v) {
  56183. style.transition = v;
  56184. style.webkitTransition = v;
  56185. style.MozTransition = v;
  56186. }
  56187. function getTransformPropValue(v) {
  56188. return {
  56189. transform: v,
  56190. WebkitTransform: v,
  56191. MozTransform: v
  56192. };
  56193. }
  56194. function isVertical(tabBarPosition) {
  56195. return tabBarPosition === 'left' || tabBarPosition === 'right';
  56196. }
  56197. function getTransformByIndex(index, tabBarPosition) {
  56198. var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'ltr';
  56199. var translate = isVertical(tabBarPosition) ? 'translateY' : 'translateX';
  56200. if (!isVertical(tabBarPosition) && direction === 'rtl') {
  56201. return translate + '(' + index * 100 + '%) translateZ(0)';
  56202. }
  56203. return translate + '(' + -index * 100 + '%) translateZ(0)';
  56204. }
  56205. function getMarginStyle(index, tabBarPosition) {
  56206. var marginDirection = isVertical(tabBarPosition) ? 'marginTop' : 'marginLeft';
  56207. return babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, marginDirection, -index * 100 + '%');
  56208. }
  56209. function getStyle(el, property) {
  56210. return +window.getComputedStyle(el).getPropertyValue(property).replace('px', '');
  56211. }
  56212. function setPxStyle(el, value, vertical) {
  56213. value = vertical ? '0px, ' + value + 'px, 0px' : value + 'px, 0px, 0px';
  56214. setTransform(el.style, 'translate3d(' + value + ')');
  56215. }
  56216. function getDataAttr(props) {
  56217. return Object.keys(props).reduce(function (prev, key) {
  56218. if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
  56219. prev[key] = props[key];
  56220. }
  56221. return prev;
  56222. }, {});
  56223. }
  56224. function toNum(style, property) {
  56225. return +style.getPropertyValue(property).replace('px', '');
  56226. }
  56227. function getTypeValue(start, current, end, tabNode, wrapperNode) {
  56228. var total = getStyle(wrapperNode, 'padding-' + start);
  56229. if (!tabNode || !tabNode.parentNode) {
  56230. return total;
  56231. }
  56232. var childNodes = tabNode.parentNode.childNodes;
  56233. Array.prototype.some.call(childNodes, function (node) {
  56234. var style = window.getComputedStyle(node);
  56235. if (node !== tabNode) {
  56236. total += toNum(style, 'margin-' + start);
  56237. total += node[current];
  56238. total += toNum(style, 'margin-' + end);
  56239. if (style.boxSizing === 'content-box') {
  56240. total += toNum(style, 'border-' + start + '-width') + toNum(style, 'border-' + end + '-width');
  56241. }
  56242. return false;
  56243. }
  56244. // We need count current node margin
  56245. // ref: https://github.com/react-component/tabs/pull/139#issuecomment-431005262
  56246. total += toNum(style, 'margin-' + start);
  56247. return true;
  56248. });
  56249. return total;
  56250. }
  56251. function getLeft(tabNode, wrapperNode) {
  56252. return getTypeValue('left', 'offsetWidth', 'right', tabNode, wrapperNode);
  56253. }
  56254. function getTop(tabNode, wrapperNode) {
  56255. return getTypeValue('top', 'offsetHeight', 'bottom', tabNode, wrapperNode);
  56256. }
  56257. /***/ }),
  56258. /***/ "./components/vc-time-picker/Combobox.jsx":
  56259. /*!************************************************!*\
  56260. !*** ./components/vc-time-picker/Combobox.jsx ***!
  56261. \************************************************/
  56262. /*! exports provided: default */
  56263. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56264. "use strict";
  56265. __webpack_require__.r(__webpack_exports__);
  56266. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  56267. /* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Select */ "./components/vc-time-picker/Select.jsx");
  56268. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  56269. var formatOption = function formatOption(option, disabledOptions) {
  56270. var value = '' + option;
  56271. if (option < 10) {
  56272. value = '0' + option;
  56273. }
  56274. var disabled = false;
  56275. if (disabledOptions && disabledOptions.indexOf(option) >= 0) {
  56276. disabled = true;
  56277. }
  56278. return {
  56279. value: value,
  56280. disabled: disabled
  56281. };
  56282. };
  56283. var Combobox = {
  56284. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
  56285. name: 'Combobox',
  56286. props: {
  56287. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  56288. defaultOpenValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  56289. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  56290. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
  56291. // onChange: PropTypes.func,
  56292. // onAmPmChange: PropTypes.func,
  56293. showHour: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  56294. showMinute: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  56295. showSecond: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  56296. hourOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
  56297. minuteOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
  56298. secondOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
  56299. disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  56300. disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  56301. disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
  56302. // onCurrentSelectPanelChange: PropTypes.func,
  56303. use12Hours: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  56304. isAM: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
  56305. },
  56306. methods: {
  56307. onItemChange: function onItemChange(type, itemValue) {
  56308. var defaultOpenValue = this.defaultOpenValue,
  56309. use12Hours = this.use12Hours,
  56310. propValue = this.value,
  56311. isAM = this.isAM;
  56312. var value = (propValue || defaultOpenValue).clone();
  56313. if (type === 'hour') {
  56314. if (use12Hours) {
  56315. if (isAM) {
  56316. value.hour(+itemValue % 12);
  56317. } else {
  56318. value.hour(+itemValue % 12 + 12);
  56319. }
  56320. } else {
  56321. value.hour(+itemValue);
  56322. }
  56323. } else if (type === 'minute') {
  56324. value.minute(+itemValue);
  56325. } else if (type === 'ampm') {
  56326. var ampm = itemValue.toUpperCase();
  56327. if (use12Hours) {
  56328. if (ampm === 'PM' && value.hour() < 12) {
  56329. value.hour(value.hour() % 12 + 12);
  56330. }
  56331. if (ampm === 'AM') {
  56332. if (value.hour() >= 12) {
  56333. value.hour(value.hour() - 12);
  56334. }
  56335. }
  56336. }
  56337. this.__emit('amPmChange', ampm);
  56338. } else {
  56339. value.second(+itemValue);
  56340. }
  56341. this.__emit('change', value);
  56342. },
  56343. onEnterSelectPanel: function onEnterSelectPanel(range) {
  56344. this.__emit('currentSelectPanelChange', range);
  56345. },
  56346. onEsc: function onEsc(e) {
  56347. this.__emit('esc', e);
  56348. },
  56349. getHourSelect: function getHourSelect(hour) {
  56350. var _this = this;
  56351. var h = this.$createElement;
  56352. var prefixCls = this.prefixCls,
  56353. hourOptions = this.hourOptions,
  56354. disabledHours = this.disabledHours,
  56355. showHour = this.showHour,
  56356. use12Hours = this.use12Hours;
  56357. if (!showHour) {
  56358. return null;
  56359. }
  56360. var disabledOptions = disabledHours();
  56361. var hourOptionsAdj = void 0;
  56362. var hourAdj = void 0;
  56363. if (use12Hours) {
  56364. hourOptionsAdj = [12].concat(hourOptions.filter(function (h) {
  56365. return h < 12 && h > 0;
  56366. }));
  56367. hourAdj = hour % 12 || 12;
  56368. } else {
  56369. hourOptionsAdj = hourOptions;
  56370. hourAdj = hour;
  56371. }
  56372. return h(_Select__WEBPACK_IMPORTED_MODULE_1__["default"], {
  56373. attrs: {
  56374. prefixCls: prefixCls,
  56375. options: hourOptionsAdj.map(function (option) {
  56376. return formatOption(option, disabledOptions);
  56377. }),
  56378. selectedIndex: hourOptionsAdj.indexOf(hourAdj),
  56379. type: 'hour'
  56380. },
  56381. on: {
  56382. 'select': this.onItemChange,
  56383. 'mouseenter': function mouseenter() {
  56384. return _this.onEnterSelectPanel('hour');
  56385. },
  56386. 'esc': this.onEsc
  56387. }
  56388. });
  56389. },
  56390. getMinuteSelect: function getMinuteSelect(minute) {
  56391. var _this2 = this;
  56392. var h = this.$createElement;
  56393. var prefixCls = this.prefixCls,
  56394. minuteOptions = this.minuteOptions,
  56395. disabledMinutes = this.disabledMinutes,
  56396. defaultOpenValue = this.defaultOpenValue,
  56397. showMinute = this.showMinute,
  56398. propValue = this.value;
  56399. if (!showMinute) {
  56400. return null;
  56401. }
  56402. var value = propValue || defaultOpenValue;
  56403. var disabledOptions = disabledMinutes(value.hour());
  56404. return h(_Select__WEBPACK_IMPORTED_MODULE_1__["default"], {
  56405. attrs: {
  56406. prefixCls: prefixCls,
  56407. options: minuteOptions.map(function (option) {
  56408. return formatOption(option, disabledOptions);
  56409. }),
  56410. selectedIndex: minuteOptions.indexOf(minute),
  56411. type: 'minute'
  56412. },
  56413. on: {
  56414. 'select': this.onItemChange,
  56415. 'mouseenter': function mouseenter() {
  56416. return _this2.onEnterSelectPanel('minute');
  56417. },
  56418. 'esc': this.onEsc
  56419. }
  56420. });
  56421. },
  56422. getSecondSelect: function getSecondSelect(second) {
  56423. var _this3 = this;
  56424. var h = this.$createElement;
  56425. var prefixCls = this.prefixCls,
  56426. secondOptions = this.secondOptions,
  56427. disabledSeconds = this.disabledSeconds,
  56428. showSecond = this.showSecond,
  56429. defaultOpenValue = this.defaultOpenValue,
  56430. propValue = this.value;
  56431. if (!showSecond) {
  56432. return null;
  56433. }
  56434. var value = propValue || defaultOpenValue;
  56435. var disabledOptions = disabledSeconds(value.hour(), value.minute());
  56436. return h(_Select__WEBPACK_IMPORTED_MODULE_1__["default"], {
  56437. attrs: {
  56438. prefixCls: prefixCls,
  56439. options: secondOptions.map(function (option) {
  56440. return formatOption(option, disabledOptions);
  56441. }),
  56442. selectedIndex: secondOptions.indexOf(second),
  56443. type: 'second'
  56444. },
  56445. on: {
  56446. 'select': this.onItemChange,
  56447. 'mouseenter': function mouseenter() {
  56448. return _this3.onEnterSelectPanel('second');
  56449. },
  56450. 'esc': this.onEsc
  56451. }
  56452. });
  56453. },
  56454. getAMPMSelect: function getAMPMSelect() {
  56455. var _this4 = this;
  56456. var h = this.$createElement;
  56457. var prefixCls = this.prefixCls,
  56458. use12Hours = this.use12Hours,
  56459. format = this.format,
  56460. isAM = this.isAM;
  56461. if (!use12Hours) {
  56462. return null;
  56463. }
  56464. var AMPMOptions = ['am', 'pm'] // If format has A char, then we should uppercase AM/PM
  56465. .map(function (c) {
  56466. return format.match(/\sA/) ? c.toUpperCase() : c;
  56467. }).map(function (c) {
  56468. return { value: c };
  56469. });
  56470. var selected = isAM ? 0 : 1;
  56471. return h(_Select__WEBPACK_IMPORTED_MODULE_1__["default"], {
  56472. attrs: {
  56473. prefixCls: prefixCls,
  56474. options: AMPMOptions,
  56475. selectedIndex: selected,
  56476. type: 'ampm'
  56477. },
  56478. on: {
  56479. 'select': this.onItemChange,
  56480. 'mouseenter': function mouseenter() {
  56481. return _this4.onEnterSelectPanel('ampm');
  56482. },
  56483. 'esc': this.onEsc
  56484. }
  56485. });
  56486. }
  56487. },
  56488. render: function render() {
  56489. var h = arguments[0];
  56490. var prefixCls = this.prefixCls,
  56491. defaultOpenValue = this.defaultOpenValue,
  56492. propValue = this.value;
  56493. var value = propValue || defaultOpenValue;
  56494. return h(
  56495. 'div',
  56496. { 'class': prefixCls + '-combobox' },
  56497. [this.getHourSelect(value.hour()), this.getMinuteSelect(value.minute()), this.getSecondSelect(value.second()), this.getAMPMSelect(value.hour())]
  56498. );
  56499. }
  56500. };
  56501. /* harmony default export */ __webpack_exports__["default"] = (Combobox);
  56502. /***/ }),
  56503. /***/ "./components/vc-time-picker/Header.jsx":
  56504. /*!**********************************************!*\
  56505. !*** ./components/vc-time-picker/Header.jsx ***!
  56506. \**********************************************/
  56507. /*! exports provided: default */
  56508. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56509. "use strict";
  56510. __webpack_require__.r(__webpack_exports__);
  56511. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  56512. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  56513. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  56514. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  56515. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "moment");
  56516. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
  56517. var Header = {
  56518. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
  56519. props: {
  56520. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  56521. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  56522. disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  56523. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  56524. clearText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  56525. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  56526. inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(false),
  56527. hourOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  56528. minuteOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  56529. secondOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  56530. disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  56531. disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  56532. disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  56533. // onChange: PropTypes.func,
  56534. // onClear: PropTypes.func,
  56535. // onEsc: PropTypes.func,
  56536. allowEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  56537. defaultOpenValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  56538. currentSelectPanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  56539. focusOnOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  56540. // onKeyDown: PropTypes.func,
  56541. clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  56542. },
  56543. data: function data() {
  56544. var value = this.value,
  56545. format = this.format;
  56546. return {
  56547. str: value && value.format(format) || '',
  56548. invalid: false
  56549. };
  56550. },
  56551. mounted: function mounted() {
  56552. var _this = this;
  56553. if (this.focusOnOpen) {
  56554. // Wait one frame for the panel to be positioned before focusing
  56555. var requestAnimationFrame = window.requestAnimationFrame || window.setTimeout;
  56556. requestAnimationFrame(function () {
  56557. _this.$refs.input.focus();
  56558. _this.$refs.input.select();
  56559. });
  56560. }
  56561. },
  56562. watch: {
  56563. value: function value(val) {
  56564. var _this2 = this;
  56565. this.$nextTick(function () {
  56566. _this2.setState({
  56567. str: val && val.format(_this2.format) || '',
  56568. invalid: false
  56569. });
  56570. });
  56571. }
  56572. },
  56573. methods: {
  56574. onInputChange: function onInputChange(e) {
  56575. var _e$target = e.target,
  56576. str = _e$target.value,
  56577. composing = _e$target.composing;
  56578. var _str = this.str,
  56579. oldStr = _str === undefined ? '' : _str;
  56580. if (e.isComposing || composing || oldStr === str) return;
  56581. this.setState({
  56582. str: str
  56583. });
  56584. var format = this.format,
  56585. hourOptions = this.hourOptions,
  56586. minuteOptions = this.minuteOptions,
  56587. secondOptions = this.secondOptions,
  56588. disabledHours = this.disabledHours,
  56589. disabledMinutes = this.disabledMinutes,
  56590. disabledSeconds = this.disabledSeconds,
  56591. originalValue = this.value;
  56592. if (str) {
  56593. var value = this.getProtoValue().clone();
  56594. var parsed = moment__WEBPACK_IMPORTED_MODULE_3___default()(str, format, true);
  56595. if (!parsed.isValid()) {
  56596. this.setState({
  56597. invalid: true
  56598. });
  56599. return;
  56600. }
  56601. value.hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
  56602. // if time value not allowed, response warning.
  56603. if (hourOptions.indexOf(value.hour()) < 0 || minuteOptions.indexOf(value.minute()) < 0 || secondOptions.indexOf(value.second()) < 0) {
  56604. this.setState({
  56605. invalid: true
  56606. });
  56607. return;
  56608. }
  56609. // if time value is disabled, response warning.
  56610. var disabledHourOptions = disabledHours();
  56611. var disabledMinuteOptions = disabledMinutes(value.hour());
  56612. var disabledSecondOptions = disabledSeconds(value.hour(), value.minute());
  56613. if (disabledHourOptions && disabledHourOptions.indexOf(value.hour()) >= 0 || disabledMinuteOptions && disabledMinuteOptions.indexOf(value.minute()) >= 0 || disabledSecondOptions && disabledSecondOptions.indexOf(value.second()) >= 0) {
  56614. this.setState({
  56615. invalid: true
  56616. });
  56617. return;
  56618. }
  56619. if (originalValue) {
  56620. if (originalValue.hour() !== value.hour() || originalValue.minute() !== value.minute() || originalValue.second() !== value.second()) {
  56621. // keep other fields for rc-calendar
  56622. var changedValue = originalValue.clone();
  56623. changedValue.hour(value.hour());
  56624. changedValue.minute(value.minute());
  56625. changedValue.second(value.second());
  56626. this.__emit('change', changedValue);
  56627. }
  56628. } else if (originalValue !== value) {
  56629. this.__emit('change', value);
  56630. }
  56631. } else {
  56632. this.__emit('change', null);
  56633. }
  56634. this.setState({
  56635. invalid: false
  56636. });
  56637. },
  56638. onKeyDown: function onKeyDown(e) {
  56639. if (e.keyCode === 27) {
  56640. this.__emit('esc');
  56641. }
  56642. this.__emit('keydown', e);
  56643. },
  56644. getProtoValue: function getProtoValue() {
  56645. return this.value || this.defaultOpenValue;
  56646. },
  56647. getInput: function getInput() {
  56648. var h = this.$createElement;
  56649. var prefixCls = this.prefixCls,
  56650. placeholder = this.placeholder,
  56651. inputReadOnly = this.inputReadOnly,
  56652. invalid = this.invalid,
  56653. str = this.str;
  56654. var invalidClass = invalid ? prefixCls + '-input-invalid' : '';
  56655. return h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  56656. 'class': prefixCls + '-input ' + invalidClass,
  56657. ref: 'input',
  56658. on: {
  56659. 'keydown': this.onKeyDown,
  56660. 'input': this.onInputChange
  56661. },
  56662. domProps: {
  56663. 'value': str
  56664. },
  56665. attrs: {
  56666. placeholder: placeholder,
  56667. readOnly: !!inputReadOnly
  56668. }
  56669. }, {
  56670. directives: [{
  56671. name: 'ant-input'
  56672. }]
  56673. }]));
  56674. }
  56675. },
  56676. render: function render() {
  56677. var h = arguments[0];
  56678. var prefixCls = this.prefixCls;
  56679. return h(
  56680. 'div',
  56681. { 'class': prefixCls + '-input-wrap' },
  56682. [this.getInput()]
  56683. );
  56684. }
  56685. };
  56686. /* harmony default export */ __webpack_exports__["default"] = (Header);
  56687. /***/ }),
  56688. /***/ "./components/vc-time-picker/Panel.jsx":
  56689. /*!*********************************************!*\
  56690. !*** ./components/vc-time-picker/Panel.jsx ***!
  56691. \*********************************************/
  56692. /*! exports provided: default */
  56693. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56694. "use strict";
  56695. __webpack_require__.r(__webpack_exports__);
  56696. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "moment");
  56697. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
  56698. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  56699. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  56700. /* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Header */ "./components/vc-time-picker/Header.jsx");
  56701. /* harmony import */ var _Combobox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Combobox */ "./components/vc-time-picker/Combobox.jsx");
  56702. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  56703. function noop() {}
  56704. function generateOptions(length, disabledOptions, hideDisabledOptions) {
  56705. var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
  56706. var arr = [];
  56707. for (var value = 0; value < length; value += step) {
  56708. if (!disabledOptions || disabledOptions.indexOf(value) < 0 || !hideDisabledOptions) {
  56709. arr.push(value);
  56710. }
  56711. }
  56712. return arr;
  56713. }
  56714. function toNearestValidTime(time, hourOptions, minuteOptions, secondOptions) {
  56715. var hour = hourOptions.slice().sort(function (a, b) {
  56716. return Math.abs(time.hour() - a) - Math.abs(time.hour() - b);
  56717. })[0];
  56718. var minute = minuteOptions.slice().sort(function (a, b) {
  56719. return Math.abs(time.minute() - a) - Math.abs(time.minute() - b);
  56720. })[0];
  56721. var second = secondOptions.slice().sort(function (a, b) {
  56722. return Math.abs(time.second() - a) - Math.abs(time.second() - b);
  56723. })[0];
  56724. return moment__WEBPACK_IMPORTED_MODULE_0___default()(hour + ':' + minute + ':' + second, 'HH:mm:ss');
  56725. }
  56726. var Panel = {
  56727. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
  56728. props: {
  56729. clearText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  56730. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('rc-time-picker-panel'),
  56731. defaultOpenValue: {
  56732. type: Object,
  56733. 'default': function _default() {
  56734. return moment__WEBPACK_IMPORTED_MODULE_0___default()();
  56735. }
  56736. },
  56737. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  56738. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  56739. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  56740. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  56741. inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(false),
  56742. disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(noop),
  56743. disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(noop),
  56744. disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(noop),
  56745. hideDisabledOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  56746. // onChange: PropTypes.func,
  56747. // onEsc: PropTypes.func,
  56748. allowEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  56749. showHour: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  56750. showMinute: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  56751. showSecond: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  56752. // onClear: PropTypes.func,
  56753. use12Hours: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(false),
  56754. hourStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  56755. minuteStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  56756. secondStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  56757. addon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(noop),
  56758. focusOnOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  56759. // onKeydown: PropTypes.func,
  56760. clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  56761. },
  56762. data: function data() {
  56763. return {
  56764. sValue: this.value,
  56765. selectionRange: [],
  56766. currentSelectPanel: ''
  56767. };
  56768. },
  56769. watch: {
  56770. value: function value(val) {
  56771. this.setState({
  56772. sValue: val
  56773. });
  56774. }
  56775. },
  56776. methods: {
  56777. onChange: function onChange(newValue) {
  56778. this.setState({ sValue: newValue });
  56779. this.__emit('change', newValue);
  56780. },
  56781. onAmPmChange: function onAmPmChange(ampm) {
  56782. this.__emit('amPmChange', ampm);
  56783. },
  56784. onCurrentSelectPanelChange: function onCurrentSelectPanelChange(currentSelectPanel) {
  56785. this.setState({ currentSelectPanel: currentSelectPanel });
  56786. },
  56787. // https://github.com/ant-design/ant-design/issues/5829
  56788. close: function close() {
  56789. this.__emit('esc');
  56790. },
  56791. onEsc: function onEsc(e) {
  56792. this.__emit('esc', e);
  56793. },
  56794. disabledHours2: function disabledHours2() {
  56795. var use12Hours = this.use12Hours,
  56796. disabledHours = this.disabledHours;
  56797. var disabledOptions = disabledHours();
  56798. if (use12Hours && Array.isArray(disabledOptions)) {
  56799. if (this.isAM()) {
  56800. disabledOptions = disabledOptions.filter(function (h) {
  56801. return h < 12;
  56802. }).map(function (h) {
  56803. return h === 0 ? 12 : h;
  56804. });
  56805. } else {
  56806. disabledOptions = disabledOptions.map(function (h) {
  56807. return h === 12 ? 12 : h - 12;
  56808. });
  56809. }
  56810. }
  56811. return disabledOptions;
  56812. },
  56813. isAM: function isAM() {
  56814. var value = this.sValue || this.defaultOpenValue;
  56815. return value.hour() >= 0 && value.hour() < 12;
  56816. }
  56817. },
  56818. render: function render() {
  56819. var h = arguments[0];
  56820. var prefixCls = this.prefixCls,
  56821. placeholder = this.placeholder,
  56822. disabledMinutes = this.disabledMinutes,
  56823. addon = this.addon,
  56824. disabledSeconds = this.disabledSeconds,
  56825. hideDisabledOptions = this.hideDisabledOptions,
  56826. showHour = this.showHour,
  56827. showMinute = this.showMinute,
  56828. showSecond = this.showSecond,
  56829. format = this.format,
  56830. defaultOpenValue = this.defaultOpenValue,
  56831. clearText = this.clearText,
  56832. use12Hours = this.use12Hours,
  56833. focusOnOpen = this.focusOnOpen,
  56834. hourStep = this.hourStep,
  56835. minuteStep = this.minuteStep,
  56836. secondStep = this.secondStep,
  56837. inputReadOnly = this.inputReadOnly,
  56838. sValue = this.sValue,
  56839. currentSelectPanel = this.currentSelectPanel;
  56840. var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'clearIcon');
  56841. var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
  56842. _getListeners$esc = _getListeners.esc,
  56843. esc = _getListeners$esc === undefined ? noop : _getListeners$esc,
  56844. _getListeners$keydown = _getListeners.keydown,
  56845. keydown = _getListeners$keydown === undefined ? noop : _getListeners$keydown;
  56846. var disabledHourOptions = this.disabledHours2();
  56847. var disabledMinuteOptions = disabledMinutes(sValue ? sValue.hour() : null);
  56848. var disabledSecondOptions = disabledSeconds(sValue ? sValue.hour() : null, sValue ? sValue.minute() : null);
  56849. var hourOptions = generateOptions(24, disabledHourOptions, hideDisabledOptions, hourStep);
  56850. var minuteOptions = generateOptions(60, disabledMinuteOptions, hideDisabledOptions, minuteStep);
  56851. var secondOptions = generateOptions(60, disabledSecondOptions, hideDisabledOptions, secondStep);
  56852. var validDefaultOpenValue = toNearestValidTime(defaultOpenValue, hourOptions, minuteOptions, secondOptions);
  56853. return h(
  56854. 'div',
  56855. { 'class': prefixCls + '-inner' },
  56856. [h(_Header__WEBPACK_IMPORTED_MODULE_3__["default"], {
  56857. attrs: {
  56858. clearText: clearText,
  56859. prefixCls: prefixCls,
  56860. defaultOpenValue: validDefaultOpenValue,
  56861. value: sValue,
  56862. currentSelectPanel: currentSelectPanel,
  56863. format: format,
  56864. placeholder: placeholder,
  56865. hourOptions: hourOptions,
  56866. minuteOptions: minuteOptions,
  56867. secondOptions: secondOptions,
  56868. disabledHours: this.disabledHours2,
  56869. disabledMinutes: disabledMinutes,
  56870. disabledSeconds: disabledSeconds,
  56871. focusOnOpen: focusOnOpen,
  56872. inputReadOnly: inputReadOnly,
  56873. clearIcon: clearIcon
  56874. },
  56875. on: {
  56876. 'esc': esc,
  56877. 'change': this.onChange,
  56878. 'keydown': keydown
  56879. }
  56880. }), h(_Combobox__WEBPACK_IMPORTED_MODULE_4__["default"], {
  56881. attrs: {
  56882. prefixCls: prefixCls,
  56883. value: sValue,
  56884. defaultOpenValue: validDefaultOpenValue,
  56885. format: format,
  56886. showHour: showHour,
  56887. showMinute: showMinute,
  56888. showSecond: showSecond,
  56889. hourOptions: hourOptions,
  56890. minuteOptions: minuteOptions,
  56891. secondOptions: secondOptions,
  56892. disabledHours: this.disabledHours2,
  56893. disabledMinutes: disabledMinutes,
  56894. disabledSeconds: disabledSeconds,
  56895. use12Hours: use12Hours,
  56896. isAM: this.isAM()
  56897. },
  56898. on: {
  56899. 'change': this.onChange,
  56900. 'amPmChange': this.onAmPmChange,
  56901. 'currentSelectPanelChange': this.onCurrentSelectPanelChange,
  56902. 'esc': this.onEsc
  56903. }
  56904. }), addon(this)]
  56905. );
  56906. }
  56907. };
  56908. /* harmony default export */ __webpack_exports__["default"] = (Panel);
  56909. /***/ }),
  56910. /***/ "./components/vc-time-picker/Select.jsx":
  56911. /*!**********************************************!*\
  56912. !*** ./components/vc-time-picker/Select.jsx ***!
  56913. \**********************************************/
  56914. /*! exports provided: default */
  56915. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  56916. "use strict";
  56917. __webpack_require__.r(__webpack_exports__);
  56918. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  56919. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  56920. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  56921. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  56922. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  56923. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
  56924. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
  56925. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_4__);
  56926. function noop() {}
  56927. var scrollTo = function scrollTo(element, to, duration) {
  56928. // jump to target if duration zero
  56929. if (duration <= 0) {
  56930. raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
  56931. element.scrollTop = to;
  56932. });
  56933. return;
  56934. }
  56935. var difference = to - element.scrollTop;
  56936. var perTick = difference / duration * 10;
  56937. raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
  56938. element.scrollTop += perTick;
  56939. if (element.scrollTop === to) return;
  56940. scrollTo(element, to, duration - 10);
  56941. });
  56942. };
  56943. var Select = {
  56944. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
  56945. props: {
  56946. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  56947. options: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
  56948. selectedIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  56949. type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
  56950. // onSelect: PropTypes.func,
  56951. // onMouseEnter: PropTypes.func,
  56952. },
  56953. data: function data() {
  56954. return {
  56955. active: false
  56956. };
  56957. },
  56958. mounted: function mounted() {
  56959. var _this = this;
  56960. this.$nextTick(function () {
  56961. // jump to selected option
  56962. _this.scrollToSelected(0);
  56963. });
  56964. },
  56965. watch: {
  56966. selectedIndex: function selectedIndex() {
  56967. var _this2 = this;
  56968. this.$nextTick(function () {
  56969. // smooth scroll to selected option
  56970. _this2.scrollToSelected(120);
  56971. });
  56972. }
  56973. },
  56974. methods: {
  56975. onSelect: function onSelect(value) {
  56976. var type = this.type;
  56977. this.__emit('select', type, value);
  56978. },
  56979. onEsc: function onEsc(e) {
  56980. this.__emit('esc', e);
  56981. },
  56982. getOptions: function getOptions() {
  56983. var _this3 = this;
  56984. var h = this.$createElement;
  56985. var options = this.options,
  56986. selectedIndex = this.selectedIndex,
  56987. prefixCls = this.prefixCls;
  56988. return options.map(function (item, index) {
  56989. var _classnames;
  56990. var cls = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classnames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classnames, prefixCls + '-select-option-selected', selectedIndex === index), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classnames, prefixCls + '-select-option-disabled', item.disabled), _classnames));
  56991. var onClick = item.disabled ? noop : function () {
  56992. _this3.onSelect(item.value);
  56993. };
  56994. var onKeyDown = function onKeyDown(e) {
  56995. if (e.keyCode === 13) onClick();else if (e.keyCode === 27) _this3.onEsc();
  56996. };
  56997. return h(
  56998. 'li',
  56999. {
  57000. attrs: {
  57001. role: 'button',
  57002. disabled: item.disabled,
  57003. tabIndex: '0'
  57004. },
  57005. on: {
  57006. 'click': onClick,
  57007. 'keydown': onKeyDown
  57008. },
  57009. 'class': cls,
  57010. key: index },
  57011. [item.value]
  57012. );
  57013. });
  57014. },
  57015. handleMouseEnter: function handleMouseEnter(e) {
  57016. this.setState({ active: true });
  57017. this.__emit('mouseenter', e);
  57018. },
  57019. handleMouseLeave: function handleMouseLeave() {
  57020. this.setState({ active: false });
  57021. },
  57022. scrollToSelected: function scrollToSelected(duration) {
  57023. // move to selected item
  57024. var select = this.$el;
  57025. var list = this.$refs.list;
  57026. if (!list) {
  57027. return;
  57028. }
  57029. var index = this.selectedIndex;
  57030. if (index < 0) {
  57031. index = 0;
  57032. }
  57033. var topOption = list.children[index];
  57034. var to = topOption.offsetTop;
  57035. scrollTo(select, to, duration);
  57036. }
  57037. },
  57038. render: function render() {
  57039. var _cls;
  57040. var h = arguments[0];
  57041. var prefixCls = this.prefixCls,
  57042. options = this.options,
  57043. active = this.active;
  57044. if (options.length === 0) {
  57045. return null;
  57046. }
  57047. var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-select', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-select-active', active), _cls);
  57048. return h(
  57049. 'div',
  57050. { 'class': cls, on: {
  57051. 'mouseenter': this.handleMouseEnter,
  57052. 'mouseleave': this.handleMouseLeave
  57053. }
  57054. },
  57055. [h(
  57056. 'ul',
  57057. { ref: 'list' },
  57058. [this.getOptions()]
  57059. )]
  57060. );
  57061. }
  57062. };
  57063. /* harmony default export */ __webpack_exports__["default"] = (Select);
  57064. /***/ }),
  57065. /***/ "./components/vc-time-picker/TimePicker.jsx":
  57066. /*!**************************************************!*\
  57067. !*** ./components/vc-time-picker/TimePicker.jsx ***!
  57068. \**************************************************/
  57069. /*! exports provided: default */
  57070. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57071. "use strict";
  57072. __webpack_require__.r(__webpack_exports__);
  57073. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  57074. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  57075. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
  57076. /* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
  57077. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  57078. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
  57079. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  57080. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  57081. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  57082. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  57083. /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
  57084. /* harmony import */ var _Panel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Panel */ "./components/vc-time-picker/Panel.jsx");
  57085. /* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./placements */ "./components/vc-time-picker/placements.js");
  57086. function noop() {}
  57087. /* harmony default export */ __webpack_exports__["default"] = ({
  57088. name: 'VcTimePicker',
  57089. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  57090. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])({
  57091. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57092. clearText: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57093. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  57094. defaultOpenValue: {
  57095. type: Object,
  57096. 'default': function _default() {
  57097. return moment__WEBPACK_IMPORTED_MODULE_1___default()();
  57098. }
  57099. },
  57100. inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57101. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57102. allowEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57103. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  57104. open: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57105. defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57106. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  57107. placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  57108. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57109. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  57110. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57111. format: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57112. showHour: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57113. showMinute: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57114. showSecond: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57115. popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57116. popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  57117. disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  57118. disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  57119. disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  57120. hideDisabledOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57121. // onChange: PropTypes.func,
  57122. // onAmPmChange: PropTypes.func,
  57123. // onOpen: PropTypes.func,
  57124. // onClose: PropTypes.func,
  57125. // onFocus: PropTypes.func,
  57126. // onBlur: PropTypes.func,
  57127. name: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57128. autoComplete: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57129. use12Hours: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57130. hourStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  57131. minuteStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  57132. secondStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  57133. focusOnOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57134. // onKeyDown: PropTypes.func,
  57135. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57136. id: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57137. inputIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  57138. clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  57139. addon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func
  57140. }, {
  57141. clearText: 'clear',
  57142. prefixCls: 'rc-time-picker',
  57143. defaultOpen: false,
  57144. inputReadOnly: false,
  57145. popupClassName: '',
  57146. popupStyle: {},
  57147. align: {},
  57148. allowEmpty: true,
  57149. showHour: true,
  57150. showMinute: true,
  57151. showSecond: true,
  57152. disabledHours: noop,
  57153. disabledMinutes: noop,
  57154. disabledSeconds: noop,
  57155. hideDisabledOptions: false,
  57156. placement: 'bottomLeft',
  57157. use12Hours: false,
  57158. focusOnOpen: false
  57159. }),
  57160. data: function data() {
  57161. var defaultOpen = this.defaultOpen,
  57162. defaultValue = this.defaultValue,
  57163. _open = this.open,
  57164. open = _open === undefined ? defaultOpen : _open,
  57165. _value = this.value,
  57166. value = _value === undefined ? defaultValue : _value;
  57167. return {
  57168. sOpen: open,
  57169. sValue: value
  57170. };
  57171. },
  57172. watch: {
  57173. value: function value(val) {
  57174. this.setState({
  57175. sValue: val
  57176. });
  57177. },
  57178. open: function open(val) {
  57179. if (val !== undefined) {
  57180. this.setState({
  57181. sOpen: val
  57182. });
  57183. }
  57184. }
  57185. },
  57186. mounted: function mounted() {
  57187. var _this = this;
  57188. this.$nextTick(function () {
  57189. if (_this.autoFocus) {
  57190. _this.focus();
  57191. }
  57192. });
  57193. },
  57194. methods: {
  57195. onPanelChange: function onPanelChange(value) {
  57196. this.setValue(value);
  57197. },
  57198. onAmPmChange: function onAmPmChange(ampm) {
  57199. this.__emit('amPmChange', ampm);
  57200. },
  57201. onClear: function onClear(event) {
  57202. event.stopPropagation();
  57203. this.setValue(null);
  57204. this.setOpen(false);
  57205. },
  57206. onVisibleChange: function onVisibleChange(open) {
  57207. this.setOpen(open);
  57208. },
  57209. onEsc: function onEsc() {
  57210. this.setOpen(false);
  57211. this.focus();
  57212. },
  57213. onKeyDown: function onKeyDown(e) {
  57214. if (e.keyCode === 40) {
  57215. this.setOpen(true);
  57216. }
  57217. },
  57218. onKeyDown2: function onKeyDown2(e) {
  57219. this.__emit('keydown', e);
  57220. },
  57221. setValue: function setValue(value) {
  57222. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'value')) {
  57223. this.setState({
  57224. sValue: value
  57225. });
  57226. }
  57227. this.__emit('change', value);
  57228. },
  57229. getFormat: function getFormat() {
  57230. var format = this.format,
  57231. showHour = this.showHour,
  57232. showMinute = this.showMinute,
  57233. showSecond = this.showSecond,
  57234. use12Hours = this.use12Hours;
  57235. if (format) {
  57236. return format;
  57237. }
  57238. if (use12Hours) {
  57239. var fmtString = [showHour ? 'h' : '', showMinute ? 'mm' : '', showSecond ? 'ss' : ''].filter(function (item) {
  57240. return !!item;
  57241. }).join(':');
  57242. return fmtString.concat(' a');
  57243. }
  57244. return [showHour ? 'HH' : '', showMinute ? 'mm' : '', showSecond ? 'ss' : ''].filter(function (item) {
  57245. return !!item;
  57246. }).join(':');
  57247. },
  57248. getPanelElement: function getPanelElement() {
  57249. var h = this.$createElement;
  57250. var prefixCls = this.prefixCls,
  57251. placeholder = this.placeholder,
  57252. disabledHours = this.disabledHours,
  57253. addon = this.addon,
  57254. disabledMinutes = this.disabledMinutes,
  57255. disabledSeconds = this.disabledSeconds,
  57256. hideDisabledOptions = this.hideDisabledOptions,
  57257. inputReadOnly = this.inputReadOnly,
  57258. showHour = this.showHour,
  57259. showMinute = this.showMinute,
  57260. showSecond = this.showSecond,
  57261. defaultOpenValue = this.defaultOpenValue,
  57262. clearText = this.clearText,
  57263. use12Hours = this.use12Hours,
  57264. focusOnOpen = this.focusOnOpen,
  57265. onKeyDown2 = this.onKeyDown2,
  57266. hourStep = this.hourStep,
  57267. minuteStep = this.minuteStep,
  57268. secondStep = this.secondStep,
  57269. sValue = this.sValue;
  57270. var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'clearIcon');
  57271. return h(_Panel__WEBPACK_IMPORTED_MODULE_8__["default"], {
  57272. attrs: {
  57273. clearText: clearText,
  57274. prefixCls: prefixCls + '-panel',
  57275. value: sValue,
  57276. inputReadOnly: inputReadOnly,
  57277. defaultOpenValue: defaultOpenValue,
  57278. showHour: showHour,
  57279. showMinute: showMinute,
  57280. showSecond: showSecond,
  57281. format: this.getFormat(),
  57282. placeholder: placeholder,
  57283. disabledHours: disabledHours,
  57284. disabledMinutes: disabledMinutes,
  57285. disabledSeconds: disabledSeconds,
  57286. hideDisabledOptions: hideDisabledOptions,
  57287. use12Hours: use12Hours,
  57288. hourStep: hourStep,
  57289. minuteStep: minuteStep,
  57290. secondStep: secondStep,
  57291. focusOnOpen: focusOnOpen,
  57292. clearIcon: clearIcon,
  57293. addon: addon
  57294. },
  57295. ref: 'panel', on: {
  57296. 'change': this.onPanelChange,
  57297. 'amPmChange': this.onAmPmChange,
  57298. 'esc': this.onEsc,
  57299. 'keydown': onKeyDown2
  57300. }
  57301. });
  57302. },
  57303. getPopupClassName: function getPopupClassName() {
  57304. var showHour = this.showHour,
  57305. showMinute = this.showMinute,
  57306. showSecond = this.showSecond,
  57307. use12Hours = this.use12Hours,
  57308. prefixCls = this.prefixCls,
  57309. popupClassName = this.popupClassName;
  57310. var selectColumnCount = 0;
  57311. if (showHour) {
  57312. selectColumnCount += 1;
  57313. }
  57314. if (showMinute) {
  57315. selectColumnCount += 1;
  57316. }
  57317. if (showSecond) {
  57318. selectColumnCount += 1;
  57319. }
  57320. if (use12Hours) {
  57321. selectColumnCount += 1;
  57322. }
  57323. // Keep it for old compatibility
  57324. return classnames__WEBPACK_IMPORTED_MODULE_2___default()(popupClassName, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-panel-narrow', (!showHour || !showMinute || !showSecond) && !use12Hours), prefixCls + '-panel-column-' + selectColumnCount);
  57325. },
  57326. setOpen: function setOpen(open) {
  57327. if (this.sOpen !== open) {
  57328. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'open')) {
  57329. this.setState({ sOpen: open });
  57330. }
  57331. if (open) {
  57332. this.__emit('open', { open: open });
  57333. } else {
  57334. this.__emit('close', { open: open });
  57335. }
  57336. }
  57337. },
  57338. focus: function focus() {
  57339. this.$refs.picker.focus();
  57340. },
  57341. blur: function blur() {
  57342. this.$refs.picker.blur();
  57343. },
  57344. onFocus: function onFocus(e) {
  57345. this.__emit('focus', e);
  57346. },
  57347. onBlur: function onBlur(e) {
  57348. this.__emit('blur', e);
  57349. },
  57350. renderClearButton: function renderClearButton() {
  57351. var _this2 = this;
  57352. var h = this.$createElement;
  57353. var sValue = this.sValue;
  57354. var _$props = this.$props,
  57355. prefixCls = _$props.prefixCls,
  57356. allowEmpty = _$props.allowEmpty,
  57357. clearText = _$props.clearText,
  57358. disabled = _$props.disabled;
  57359. if (!allowEmpty || !sValue || disabled) {
  57360. return null;
  57361. }
  57362. var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'clearIcon');
  57363. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["isValidElement"])(clearIcon)) {
  57364. var _ref = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getEvents"])(clearIcon) || {},
  57365. _click = _ref.click;
  57366. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(clearIcon, {
  57367. on: {
  57368. click: function click() {
  57369. if (_click) _click.apply(undefined, arguments);
  57370. _this2.onClear.apply(_this2, arguments);
  57371. }
  57372. }
  57373. });
  57374. }
  57375. return h(
  57376. 'a',
  57377. {
  57378. attrs: {
  57379. role: 'button',
  57380. title: clearText,
  57381. tabIndex: 0
  57382. },
  57383. 'class': prefixCls + '-clear', on: {
  57384. 'click': this.onClear
  57385. }
  57386. },
  57387. [clearIcon || h('i', { 'class': prefixCls + '-clear-icon' })]
  57388. );
  57389. }
  57390. },
  57391. render: function render() {
  57392. var h = arguments[0];
  57393. var prefixCls = this.prefixCls,
  57394. placeholder = this.placeholder,
  57395. placement = this.placement,
  57396. align = this.align,
  57397. id = this.id,
  57398. disabled = this.disabled,
  57399. transitionName = this.transitionName,
  57400. getPopupContainer = this.getPopupContainer,
  57401. name = this.name,
  57402. autoComplete = this.autoComplete,
  57403. autoFocus = this.autoFocus,
  57404. inputReadOnly = this.inputReadOnly,
  57405. sOpen = this.sOpen,
  57406. sValue = this.sValue,
  57407. onFocus = this.onFocus,
  57408. onBlur = this.onBlur,
  57409. popupStyle = this.popupStyle;
  57410. var popupClassName = this.getPopupClassName();
  57411. var inputIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'inputIcon');
  57412. return h(
  57413. _vc_trigger__WEBPACK_IMPORTED_MODULE_7__["default"],
  57414. {
  57415. attrs: {
  57416. prefixCls: prefixCls + '-panel',
  57417. popupClassName: popupClassName,
  57418. popupStyle: popupStyle,
  57419. popupAlign: align,
  57420. builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_9__["default"],
  57421. popupPlacement: placement,
  57422. action: disabled ? [] : ['click'],
  57423. destroyPopupOnHide: true,
  57424. getPopupContainer: getPopupContainer,
  57425. popupTransitionName: transitionName,
  57426. popupVisible: sOpen
  57427. },
  57428. on: {
  57429. 'popupVisibleChange': this.onVisibleChange
  57430. }
  57431. },
  57432. [h(
  57433. 'template',
  57434. { slot: 'popup' },
  57435. [this.getPanelElement()]
  57436. ), h(
  57437. 'span',
  57438. { 'class': '' + prefixCls },
  57439. [h('input', {
  57440. 'class': prefixCls + '-input',
  57441. ref: 'picker',
  57442. attrs: { type: 'text',
  57443. placeholder: placeholder,
  57444. name: name,
  57445. disabled: disabled,
  57446. autoComplete: autoComplete,
  57447. autoFocus: autoFocus,
  57448. readOnly: !!inputReadOnly,
  57449. id: id
  57450. },
  57451. on: {
  57452. 'keydown': this.onKeyDown,
  57453. 'focus': onFocus,
  57454. 'blur': onBlur
  57455. },
  57456. domProps: {
  57457. 'value': sValue && sValue.format(this.getFormat()) || ''
  57458. }
  57459. }), inputIcon || h('span', { 'class': prefixCls + '-icon' }), this.renderClearButton()]
  57460. )]
  57461. );
  57462. }
  57463. });
  57464. /***/ }),
  57465. /***/ "./components/vc-time-picker/index.js":
  57466. /*!********************************************!*\
  57467. !*** ./components/vc-time-picker/index.js ***!
  57468. \********************************************/
  57469. /*! exports provided: default */
  57470. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57471. "use strict";
  57472. __webpack_require__.r(__webpack_exports__);
  57473. /* harmony import */ var _TimePicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TimePicker */ "./components/vc-time-picker/TimePicker.jsx");
  57474. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _TimePicker__WEBPACK_IMPORTED_MODULE_0__["default"]; });
  57475. // based on rc-time-picker 3.7.3
  57476. /***/ }),
  57477. /***/ "./components/vc-time-picker/placements.js":
  57478. /*!*************************************************!*\
  57479. !*** ./components/vc-time-picker/placements.js ***!
  57480. \*************************************************/
  57481. /*! exports provided: default */
  57482. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57483. "use strict";
  57484. __webpack_require__.r(__webpack_exports__);
  57485. var autoAdjustOverflow = {
  57486. adjustX: 1,
  57487. adjustY: 1
  57488. };
  57489. var targetOffset = [0, 0];
  57490. var placements = {
  57491. bottomLeft: {
  57492. points: ['tl', 'tl'],
  57493. overflow: autoAdjustOverflow,
  57494. offset: [0, -3],
  57495. targetOffset: targetOffset
  57496. },
  57497. bottomRight: {
  57498. points: ['tr', 'tr'],
  57499. overflow: autoAdjustOverflow,
  57500. offset: [0, -3],
  57501. targetOffset: targetOffset
  57502. },
  57503. topRight: {
  57504. points: ['br', 'br'],
  57505. overflow: autoAdjustOverflow,
  57506. offset: [0, 3],
  57507. targetOffset: targetOffset
  57508. },
  57509. topLeft: {
  57510. points: ['bl', 'bl'],
  57511. overflow: autoAdjustOverflow,
  57512. offset: [0, 3],
  57513. targetOffset: targetOffset
  57514. }
  57515. };
  57516. /* harmony default export */ __webpack_exports__["default"] = (placements);
  57517. /***/ }),
  57518. /***/ "./components/vc-tooltip/Content.jsx":
  57519. /*!*******************************************!*\
  57520. !*** ./components/vc-tooltip/Content.jsx ***!
  57521. \*******************************************/
  57522. /*! exports provided: default */
  57523. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57524. "use strict";
  57525. __webpack_require__.r(__webpack_exports__);
  57526. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  57527. /* harmony default export */ __webpack_exports__["default"] = ({
  57528. props: {
  57529. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
  57530. overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
  57531. trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
  57532. },
  57533. updated: function updated() {
  57534. var trigger = this.trigger;
  57535. if (trigger) {
  57536. trigger.forcePopupAlign();
  57537. }
  57538. },
  57539. render: function render() {
  57540. var h = arguments[0];
  57541. var overlay = this.overlay,
  57542. prefixCls = this.prefixCls;
  57543. return h(
  57544. 'div',
  57545. { 'class': prefixCls + '-inner', attrs: { role: 'tooltip' }
  57546. },
  57547. [typeof overlay === 'function' ? overlay() : overlay]
  57548. );
  57549. }
  57550. });
  57551. /***/ }),
  57552. /***/ "./components/vc-tooltip/Tooltip.jsx":
  57553. /*!*******************************************!*\
  57554. !*** ./components/vc-tooltip/Tooltip.jsx ***!
  57555. \*******************************************/
  57556. /*! exports provided: default */
  57557. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57558. "use strict";
  57559. __webpack_require__.r(__webpack_exports__);
  57560. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  57561. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  57562. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  57563. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
  57564. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  57565. /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
  57566. /* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placements */ "./components/vc-tooltip/placements.js");
  57567. /* harmony import */ var _Content__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Content */ "./components/vc-tooltip/Content.jsx");
  57568. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  57569. function noop() {}
  57570. /* harmony default export */ __webpack_exports__["default"] = ({
  57571. props: {
  57572. trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any.def(['hover']),
  57573. defaultVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  57574. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  57575. placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('right'),
  57576. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object]),
  57577. animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  57578. afterVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {}),
  57579. overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  57580. overlayStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  57581. overlayClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  57582. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc-tooltip'),
  57583. mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0),
  57584. mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0.1),
  57585. getTooltipContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  57586. destroyTooltipOnHide: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
  57587. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.def(function () {
  57588. return {};
  57589. }),
  57590. arrowContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any.def(null),
  57591. tipId: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  57592. builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object
  57593. },
  57594. methods: {
  57595. getPopupElement: function getPopupElement() {
  57596. var h = this.$createElement;
  57597. var _$props = this.$props,
  57598. prefixCls = _$props.prefixCls,
  57599. tipId = _$props.tipId;
  57600. return [h(
  57601. 'div',
  57602. { 'class': prefixCls + '-arrow', key: 'arrow' },
  57603. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'arrowContent')]
  57604. ), h(_Content__WEBPACK_IMPORTED_MODULE_5__["default"], {
  57605. key: 'content',
  57606. attrs: { trigger: this.$refs.trigger,
  57607. prefixCls: prefixCls,
  57608. id: tipId,
  57609. overlay: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'overlay')
  57610. }
  57611. })];
  57612. },
  57613. getPopupDomNode: function getPopupDomNode() {
  57614. return this.$refs.trigger.getPopupDomNode();
  57615. }
  57616. },
  57617. render: function render(h) {
  57618. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
  57619. overlayClassName = _getOptionProps.overlayClassName,
  57620. trigger = _getOptionProps.trigger,
  57621. mouseEnterDelay = _getOptionProps.mouseEnterDelay,
  57622. mouseLeaveDelay = _getOptionProps.mouseLeaveDelay,
  57623. overlayStyle = _getOptionProps.overlayStyle,
  57624. prefixCls = _getOptionProps.prefixCls,
  57625. afterVisibleChange = _getOptionProps.afterVisibleChange,
  57626. transitionName = _getOptionProps.transitionName,
  57627. animation = _getOptionProps.animation,
  57628. placement = _getOptionProps.placement,
  57629. align = _getOptionProps.align,
  57630. destroyTooltipOnHide = _getOptionProps.destroyTooltipOnHide,
  57631. defaultVisible = _getOptionProps.defaultVisible,
  57632. getTooltipContainer = _getOptionProps.getTooltipContainer,
  57633. restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['overlayClassName', 'trigger', 'mouseEnterDelay', 'mouseLeaveDelay', 'overlayStyle', 'prefixCls', 'afterVisibleChange', 'transitionName', 'animation', 'placement', 'align', 'destroyTooltipOnHide', 'defaultVisible', 'getTooltipContainer']);
  57634. var extraProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps);
  57635. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'visible')) {
  57636. extraProps.popupVisible = this.$props.visible;
  57637. }
  57638. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this);
  57639. var triggerProps = {
  57640. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  57641. popupClassName: overlayClassName,
  57642. prefixCls: prefixCls,
  57643. action: trigger,
  57644. builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_4__["placements"],
  57645. popupPlacement: placement,
  57646. popupAlign: align,
  57647. getPopupContainer: getTooltipContainer,
  57648. afterPopupVisibleChange: afterVisibleChange,
  57649. popupTransitionName: transitionName,
  57650. popupAnimation: animation,
  57651. defaultPopupVisible: defaultVisible,
  57652. destroyPopupOnHide: destroyTooltipOnHide,
  57653. mouseLeaveDelay: mouseLeaveDelay,
  57654. popupStyle: overlayStyle,
  57655. mouseEnterDelay: mouseEnterDelay
  57656. }, extraProps),
  57657. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, {
  57658. popupVisibleChange: listeners.visibleChange || noop,
  57659. popupAlign: listeners.popupAlign || noop
  57660. }),
  57661. ref: 'trigger'
  57662. };
  57663. return h(
  57664. _vc_trigger__WEBPACK_IMPORTED_MODULE_3__["default"],
  57665. triggerProps,
  57666. [h(
  57667. 'template',
  57668. { slot: 'popup' },
  57669. [this.getPopupElement(h)]
  57670. ), this.$slots['default']]
  57671. );
  57672. }
  57673. });
  57674. /***/ }),
  57675. /***/ "./components/vc-tooltip/index.js":
  57676. /*!****************************************!*\
  57677. !*** ./components/vc-tooltip/index.js ***!
  57678. \****************************************/
  57679. /*! exports provided: default */
  57680. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57681. "use strict";
  57682. __webpack_require__.r(__webpack_exports__);
  57683. /* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tooltip */ "./components/vc-tooltip/Tooltip.jsx");
  57684. // based on rc-tooltip 3.7.3
  57685. /* harmony default export */ __webpack_exports__["default"] = (_Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);
  57686. /***/ }),
  57687. /***/ "./components/vc-tooltip/placements.js":
  57688. /*!*********************************************!*\
  57689. !*** ./components/vc-tooltip/placements.js ***!
  57690. \*********************************************/
  57691. /*! exports provided: placements, default */
  57692. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57693. "use strict";
  57694. __webpack_require__.r(__webpack_exports__);
  57695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return placements; });
  57696. var autoAdjustOverflow = {
  57697. adjustX: 1,
  57698. adjustY: 1
  57699. };
  57700. var targetOffset = [0, 0];
  57701. var placements = {
  57702. left: {
  57703. points: ['cr', 'cl'],
  57704. overflow: autoAdjustOverflow,
  57705. offset: [-4, 0],
  57706. targetOffset: targetOffset
  57707. },
  57708. right: {
  57709. points: ['cl', 'cr'],
  57710. overflow: autoAdjustOverflow,
  57711. offset: [4, 0],
  57712. targetOffset: targetOffset
  57713. },
  57714. top: {
  57715. points: ['bc', 'tc'],
  57716. overflow: autoAdjustOverflow,
  57717. offset: [0, -4],
  57718. targetOffset: targetOffset
  57719. },
  57720. bottom: {
  57721. points: ['tc', 'bc'],
  57722. overflow: autoAdjustOverflow,
  57723. offset: [0, 4],
  57724. targetOffset: targetOffset
  57725. },
  57726. topLeft: {
  57727. points: ['bl', 'tl'],
  57728. overflow: autoAdjustOverflow,
  57729. offset: [0, -4],
  57730. targetOffset: targetOffset
  57731. },
  57732. leftTop: {
  57733. points: ['tr', 'tl'],
  57734. overflow: autoAdjustOverflow,
  57735. offset: [-4, 0],
  57736. targetOffset: targetOffset
  57737. },
  57738. topRight: {
  57739. points: ['br', 'tr'],
  57740. overflow: autoAdjustOverflow,
  57741. offset: [0, -4],
  57742. targetOffset: targetOffset
  57743. },
  57744. rightTop: {
  57745. points: ['tl', 'tr'],
  57746. overflow: autoAdjustOverflow,
  57747. offset: [4, 0],
  57748. targetOffset: targetOffset
  57749. },
  57750. bottomRight: {
  57751. points: ['tr', 'br'],
  57752. overflow: autoAdjustOverflow,
  57753. offset: [0, 4],
  57754. targetOffset: targetOffset
  57755. },
  57756. rightBottom: {
  57757. points: ['bl', 'br'],
  57758. overflow: autoAdjustOverflow,
  57759. offset: [4, 0],
  57760. targetOffset: targetOffset
  57761. },
  57762. bottomLeft: {
  57763. points: ['tl', 'bl'],
  57764. overflow: autoAdjustOverflow,
  57765. offset: [0, 4],
  57766. targetOffset: targetOffset
  57767. },
  57768. leftBottom: {
  57769. points: ['br', 'bl'],
  57770. overflow: autoAdjustOverflow,
  57771. offset: [-4, 0],
  57772. targetOffset: targetOffset
  57773. }
  57774. };
  57775. /* harmony default export */ __webpack_exports__["default"] = (placements);
  57776. /***/ }),
  57777. /***/ "./components/vc-tree-select/index.js":
  57778. /*!********************************************!*\
  57779. !*** ./components/vc-tree-select/index.js ***!
  57780. \********************************************/
  57781. /*! exports provided: default, TreeNode, SHOW_ALL, SHOW_PARENT, SHOW_CHILD */
  57782. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57783. "use strict";
  57784. __webpack_require__.r(__webpack_exports__);
  57785. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
  57786. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
  57787. /* harmony import */ var _src__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src */ "./components/vc-tree-select/src/index.js");
  57788. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  57789. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_2__);
  57790. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeNode", function() { return _src__WEBPACK_IMPORTED_MODULE_1__["TreeNode"]; });
  57791. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_ALL", function() { return _src__WEBPACK_IMPORTED_MODULE_1__["SHOW_ALL"]; });
  57792. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_PARENT", function() { return _src__WEBPACK_IMPORTED_MODULE_1__["SHOW_PARENT"]; });
  57793. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_CHILD", function() { return _src__WEBPACK_IMPORTED_MODULE_1__["SHOW_CHILD"]; });
  57794. // export this package's api
  57795. // base 2.9.3
  57796. vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_2___default.a, { name: 'ant-ref' });
  57797. /* harmony default export */ __webpack_exports__["default"] = (_src__WEBPACK_IMPORTED_MODULE_1__["default"]);
  57798. /***/ }),
  57799. /***/ "./components/vc-tree-select/src/Base/BasePopup.jsx":
  57800. /*!**********************************************************!*\
  57801. !*** ./components/vc-tree-select/src/Base/BasePopup.jsx ***!
  57802. \**********************************************************/
  57803. /*! exports provided: default */
  57804. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  57805. "use strict";
  57806. __webpack_require__.r(__webpack_exports__);
  57807. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  57808. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  57809. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  57810. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  57811. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
  57812. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_2__);
  57813. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  57814. /* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../vc-tree */ "./components/vc-tree/index.js");
  57815. /* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_vc_tree__WEBPACK_IMPORTED_MODULE_4__);
  57816. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  57817. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./components/vc-tree-select/src/util.js");
  57818. // export const popupContextTypes = {
  57819. // onPopupKeyDown: PropTypes.func.isRequired,
  57820. // onTreeNodeSelect: PropTypes.func.isRequired,
  57821. // onTreeNodeCheck: PropTypes.func.isRequired,
  57822. // }
  57823. function getDerivedState(nextProps, prevState) {
  57824. var _ref = prevState || {},
  57825. _ref$_prevProps = _ref._prevProps,
  57826. prevProps = _ref$_prevProps === undefined ? {} : _ref$_prevProps,
  57827. loadedKeys = _ref._loadedKeys,
  57828. expandedKeyList = _ref._expandedKeyList,
  57829. cachedExpandedKeyList = _ref._cachedExpandedKeyList;
  57830. var valueList = nextProps.valueList,
  57831. valueEntities = nextProps.valueEntities,
  57832. keyEntities = nextProps.keyEntities,
  57833. treeExpandedKeys = nextProps.treeExpandedKeys,
  57834. filteredTreeNodes = nextProps.filteredTreeNodes,
  57835. upperSearchValue = nextProps.upperSearchValue;
  57836. var newState = {
  57837. _prevProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, nextProps)
  57838. };
  57839. // Check value update
  57840. if (valueList !== prevProps.valueList) {
  57841. newState._keyList = valueList.map(function (_ref2) {
  57842. var value = _ref2.value;
  57843. return valueEntities[value];
  57844. }).filter(function (entity) {
  57845. return entity;
  57846. }).map(function (_ref3) {
  57847. var key = _ref3.key;
  57848. return key;
  57849. });
  57850. }
  57851. // Show all when tree is in filter mode
  57852. if (!treeExpandedKeys && filteredTreeNodes && filteredTreeNodes.length && filteredTreeNodes !== prevProps.filteredTreeNodes) {
  57853. newState._expandedKeyList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keyEntities.keys()));
  57854. }
  57855. // Cache `expandedKeyList` when filter set
  57856. if (upperSearchValue && !prevProps.upperSearchValue) {
  57857. newState._cachedExpandedKeyList = expandedKeyList;
  57858. } else if (!upperSearchValue && prevProps.upperSearchValue && !treeExpandedKeys) {
  57859. newState._expandedKeyList = cachedExpandedKeyList || [];
  57860. newState._cachedExpandedKeyList = [];
  57861. }
  57862. // Use expandedKeys if provided
  57863. if (prevProps.treeExpandedKeys !== treeExpandedKeys) {
  57864. newState._expandedKeyList = treeExpandedKeys;
  57865. }
  57866. // Clean loadedKeys if key not exist in keyEntities anymore
  57867. if (nextProps.loadData) {
  57868. newState._loadedKeys = loadedKeys.filter(function (key) {
  57869. return keyEntities.has(key);
  57870. });
  57871. }
  57872. return newState;
  57873. }
  57874. var BasePopup = {
  57875. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
  57876. name: 'BasePopup',
  57877. props: {
  57878. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57879. upperSearchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57880. valueList: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  57881. searchHalfCheckedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  57882. valueEntities: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  57883. keyEntities: Map,
  57884. treeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57885. treeLine: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57886. treeNodeFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57887. treeCheckable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  57888. treeCheckStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57889. treeDefaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57890. treeDefaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  57891. treeExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  57892. loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  57893. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  57894. // onTreeExpand: PropTypes.func,
  57895. searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57896. treeNodes: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  57897. filteredTreeNodes: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  57898. notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  57899. ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  57900. switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  57901. // HOC
  57902. renderSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  57903. // onTreeExpanded: PropTypes.func,
  57904. __propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
  57905. },
  57906. inject: {
  57907. vcTreeSelect: { 'default': function _default() {
  57908. return {};
  57909. } }
  57910. },
  57911. watch: {
  57912. __propsSymbol__: function __propsSymbol__() {
  57913. var state = getDerivedState(this.$props, this.$data);
  57914. this.setState(state);
  57915. }
  57916. },
  57917. data: function data() {
  57918. this.treeRef = Object(_util__WEBPACK_IMPORTED_MODULE_6__["createRef"])();
  57919. warning__WEBPACK_IMPORTED_MODULE_2___default()(this.$props.__propsSymbol__, 'must pass __propsSymbol__');
  57920. var _$props = this.$props,
  57921. treeDefaultExpandAll = _$props.treeDefaultExpandAll,
  57922. treeDefaultExpandedKeys = _$props.treeDefaultExpandedKeys,
  57923. keyEntities = _$props.keyEntities;
  57924. // TODO: make `expandedKeyList` control
  57925. var expandedKeyList = treeDefaultExpandedKeys;
  57926. if (treeDefaultExpandAll) {
  57927. expandedKeyList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keyEntities.keys()));
  57928. }
  57929. var state = {
  57930. _keyList: [],
  57931. _expandedKeyList: expandedKeyList,
  57932. // Cache `expandedKeyList` when tree is in filter. This is used in `getDerivedState`
  57933. _cachedExpandedKeyList: [],
  57934. _loadedKeys: [],
  57935. _prevProps: {}
  57936. };
  57937. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, state, getDerivedState(this.$props, state));
  57938. },
  57939. methods: {
  57940. onTreeExpand: function onTreeExpand(expandedKeyList) {
  57941. var _this = this;
  57942. var treeExpandedKeys = this.$props.treeExpandedKeys;
  57943. // Set uncontrolled state
  57944. if (!treeExpandedKeys) {
  57945. this.setState({ _expandedKeyList: expandedKeyList }, function () {
  57946. _this.__emit('treeExpanded');
  57947. });
  57948. }
  57949. this.__emit('update:treeExpandedKeys', expandedKeyList);
  57950. this.__emit('treeExpand', expandedKeyList);
  57951. },
  57952. onLoad: function onLoad(loadedKeys) {
  57953. this.setState({ _loadedKeys: loadedKeys });
  57954. },
  57955. getTree: function getTree() {
  57956. return this.treeRef.current;
  57957. },
  57958. /**
  57959. * Not pass `loadData` when searching. To avoid loop ajax call makes browser crash.
  57960. */
  57961. getLoadData: function getLoadData() {
  57962. var _$props2 = this.$props,
  57963. loadData = _$props2.loadData,
  57964. upperSearchValue = _$props2.upperSearchValue;
  57965. if (upperSearchValue) return null;
  57966. return loadData;
  57967. },
  57968. /**
  57969. * This method pass to Tree component which is used for add filtered class
  57970. * in TreeNode > li
  57971. */
  57972. filterTreeNode: function filterTreeNode(treeNode) {
  57973. var _$props3 = this.$props,
  57974. upperSearchValue = _$props3.upperSearchValue,
  57975. treeNodeFilterProp = _$props3.treeNodeFilterProp;
  57976. var filterVal = treeNode[treeNodeFilterProp];
  57977. if (typeof filterVal === 'string') {
  57978. return upperSearchValue && filterVal.toUpperCase().indexOf(upperSearchValue) !== -1;
  57979. }
  57980. return false;
  57981. },
  57982. renderNotFound: function renderNotFound() {
  57983. var h = this.$createElement;
  57984. var _$props4 = this.$props,
  57985. prefixCls = _$props4.prefixCls,
  57986. notFoundContent = _$props4.notFoundContent;
  57987. return h(
  57988. 'span',
  57989. { 'class': prefixCls + '-not-found' },
  57990. [notFoundContent]
  57991. );
  57992. }
  57993. },
  57994. render: function render() {
  57995. var h = arguments[0];
  57996. var _$data = this.$data,
  57997. keyList = _$data._keyList,
  57998. expandedKeyList = _$data._expandedKeyList,
  57999. loadedKeys = _$data._loadedKeys;
  58000. var _$props5 = this.$props,
  58001. prefixCls = _$props5.prefixCls,
  58002. treeNodes = _$props5.treeNodes,
  58003. filteredTreeNodes = _$props5.filteredTreeNodes,
  58004. treeIcon = _$props5.treeIcon,
  58005. treeLine = _$props5.treeLine,
  58006. treeCheckable = _$props5.treeCheckable,
  58007. treeCheckStrictly = _$props5.treeCheckStrictly,
  58008. multiple = _$props5.multiple,
  58009. ariaId = _$props5.ariaId,
  58010. renderSearch = _$props5.renderSearch,
  58011. switcherIcon = _$props5.switcherIcon,
  58012. searchHalfCheckedKeys = _$props5.searchHalfCheckedKeys;
  58013. var _vcTreeSelect = this.vcTreeSelect,
  58014. onPopupKeyDown = _vcTreeSelect.onPopupKeyDown,
  58015. onTreeNodeSelect = _vcTreeSelect.onTreeNodeSelect,
  58016. onTreeNodeCheck = _vcTreeSelect.onTreeNodeCheck;
  58017. var loadData = this.getLoadData();
  58018. var treeProps = {};
  58019. if (treeCheckable) {
  58020. treeProps.checkedKeys = keyList;
  58021. } else {
  58022. treeProps.selectedKeys = keyList;
  58023. }
  58024. var $notFound = void 0;
  58025. var $treeNodes = void 0;
  58026. if (filteredTreeNodes) {
  58027. if (filteredTreeNodes.length) {
  58028. treeProps.checkStrictly = true;
  58029. $treeNodes = filteredTreeNodes;
  58030. // Fill halfCheckedKeys
  58031. if (treeCheckable && !treeCheckStrictly) {
  58032. treeProps.checkedKeys = {
  58033. checked: keyList,
  58034. halfChecked: searchHalfCheckedKeys
  58035. };
  58036. }
  58037. } else {
  58038. $notFound = this.renderNotFound();
  58039. }
  58040. } else if (!treeNodes || !treeNodes.length) {
  58041. $notFound = this.renderNotFound();
  58042. } else {
  58043. $treeNodes = treeNodes;
  58044. }
  58045. var $tree = void 0;
  58046. if ($notFound) {
  58047. $tree = $notFound;
  58048. } else {
  58049. var treeAllProps = {
  58050. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
  58051. prefixCls: prefixCls + '-tree',
  58052. showIcon: treeIcon,
  58053. showLine: treeLine,
  58054. selectable: !treeCheckable,
  58055. checkable: treeCheckable,
  58056. checkStrictly: treeCheckStrictly,
  58057. multiple: multiple,
  58058. loadData: loadData,
  58059. loadedKeys: loadedKeys,
  58060. expandedKeys: expandedKeyList,
  58061. filterTreeNode: this.filterTreeNode,
  58062. switcherIcon: switcherIcon
  58063. }, treeProps, {
  58064. __propsSymbol__: Symbol(),
  58065. children: $treeNodes
  58066. }),
  58067. on: {
  58068. select: onTreeNodeSelect,
  58069. check: onTreeNodeCheck,
  58070. expand: this.onTreeExpand,
  58071. load: this.onLoad
  58072. },
  58073. directives: [{
  58074. name: 'ant-ref',
  58075. value: this.treeRef
  58076. }]
  58077. };
  58078. $tree = h(_vc_tree__WEBPACK_IMPORTED_MODULE_4__["Tree"], treeAllProps);
  58079. }
  58080. return h(
  58081. 'div',
  58082. {
  58083. attrs: { role: 'listbox', id: ariaId, tabIndex: -1 },
  58084. on: {
  58085. 'keydown': onPopupKeyDown
  58086. }
  58087. },
  58088. [renderSearch ? renderSearch() : null, $tree]
  58089. );
  58090. }
  58091. };
  58092. /* harmony default export */ __webpack_exports__["default"] = (BasePopup);
  58093. /***/ }),
  58094. /***/ "./components/vc-tree-select/src/Base/BaseSelector.jsx":
  58095. /*!*************************************************************!*\
  58096. !*** ./components/vc-tree-select/src/Base/BaseSelector.jsx ***!
  58097. \*************************************************************/
  58098. /*! exports provided: selectorPropTypes, default */
  58099. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58100. "use strict";
  58101. __webpack_require__.r(__webpack_exports__);
  58102. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectorPropTypes", function() { return selectorPropTypes; });
  58103. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  58104. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  58105. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  58106. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  58107. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  58108. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  58109. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./components/vc-tree-select/src/util.js");
  58110. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  58111. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  58112. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
  58113. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
  58114. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  58115. /**
  58116. * Input Box is in different position for different mode.
  58117. * This not the same design as `Select` cause it's followed by antd 0.x `Select`.
  58118. * We will not follow the new design immediately since antd 3.x is already released.
  58119. *
  58120. * So this file named as Selector to avoid confuse.
  58121. */
  58122. var selectorPropTypes = function selectorPropTypes() {
  58123. return {
  58124. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  58125. className: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  58126. open: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  58127. selectorValueList: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
  58128. allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  58129. showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  58130. // onClick: PropTypes.func,
  58131. // onBlur: PropTypes.func,
  58132. // onFocus: PropTypes.func,
  58133. removeSelected: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
  58134. choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  58135. // Pass by component
  58136. ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
  58137. inputIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  58138. clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  58139. removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  58140. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
  58141. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
  58142. focused: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
  58143. };
  58144. };
  58145. function noop() {}
  58146. /* harmony default export */ __webpack_exports__["default"] = (function (modeName) {
  58147. var BaseSelector = {
  58148. name: 'BaseSelector',
  58149. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
  58150. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, selectorPropTypes(), {
  58151. // Pass by HOC
  58152. renderSelection: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.isRequired,
  58153. renderPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
  58154. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number
  58155. }), {
  58156. tabIndex: 0
  58157. }),
  58158. inject: {
  58159. vcTreeSelect: { 'default': function _default() {
  58160. return {};
  58161. } }
  58162. },
  58163. created: function created() {
  58164. this.domRef = Object(_util__WEBPACK_IMPORTED_MODULE_3__["createRef"])();
  58165. },
  58166. methods: {
  58167. onFocus: function onFocus(e) {
  58168. var focused = this.$props.focused;
  58169. var onSelectorFocus = this.vcTreeSelect.onSelectorFocus;
  58170. if (!focused) {
  58171. onSelectorFocus();
  58172. }
  58173. this.__emit('focus', e);
  58174. },
  58175. onBlur: function onBlur(e) {
  58176. var onSelectorBlur = this.vcTreeSelect.onSelectorBlur;
  58177. // TODO: Not trigger when is inner component get focused
  58178. onSelectorBlur();
  58179. this.__emit('blur', e);
  58180. },
  58181. focus: function focus() {
  58182. this.domRef.current.focus();
  58183. },
  58184. blur: function blur() {
  58185. this.domRef.current.blur();
  58186. },
  58187. renderClear: function renderClear() {
  58188. var h = this.$createElement;
  58189. var _$props = this.$props,
  58190. prefixCls = _$props.prefixCls,
  58191. allowClear = _$props.allowClear,
  58192. selectorValueList = _$props.selectorValueList;
  58193. var onSelectorClear = this.vcTreeSelect.onSelectorClear;
  58194. if (!allowClear || !selectorValueList.length || !selectorValueList[0].value) {
  58195. return null;
  58196. }
  58197. var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'clearIcon');
  58198. return h(
  58199. 'span',
  58200. { key: 'clear', 'class': prefixCls + '-selection__clear', on: {
  58201. 'click': onSelectorClear
  58202. }
  58203. },
  58204. [clearIcon]
  58205. );
  58206. },
  58207. renderArrow: function renderArrow() {
  58208. var h = this.$createElement;
  58209. var _$props2 = this.$props,
  58210. prefixCls = _$props2.prefixCls,
  58211. showArrow = _$props2.showArrow;
  58212. if (!showArrow) {
  58213. return null;
  58214. }
  58215. var inputIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'inputIcon');
  58216. return h(
  58217. 'span',
  58218. { key: 'arrow', 'class': prefixCls + '-arrow', style: { outline: 'none' } },
  58219. [inputIcon]
  58220. );
  58221. }
  58222. },
  58223. render: function render() {
  58224. var _classNames;
  58225. var h = arguments[0];
  58226. var _$props3 = this.$props,
  58227. prefixCls = _$props3.prefixCls,
  58228. className = _$props3.className,
  58229. style = _$props3.style,
  58230. open = _$props3.open,
  58231. focused = _$props3.focused,
  58232. disabled = _$props3.disabled,
  58233. allowClear = _$props3.allowClear,
  58234. ariaId = _$props3.ariaId,
  58235. renderSelection = _$props3.renderSelection,
  58236. renderPlaceholder = _$props3.renderPlaceholder,
  58237. tabIndex = _$props3.tabIndex;
  58238. var onSelectorKeyDown = this.vcTreeSelect.onSelectorKeyDown;
  58239. var myTabIndex = tabIndex;
  58240. if (disabled) {
  58241. myTabIndex = null;
  58242. }
  58243. return h(
  58244. 'span',
  58245. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  58246. style: style,
  58247. on: {
  58248. 'click': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this).click || noop
  58249. },
  58250. 'class': classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-open', open), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-focused', open || focused), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-enabled', !disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-allow-clear', allowClear), _classNames))
  58251. }, {
  58252. directives: [{
  58253. name: 'ant-ref',
  58254. value: this.domRef
  58255. }]
  58256. }, {
  58257. attrs: {
  58258. role: 'combobox',
  58259. 'aria-expanded': open,
  58260. 'aria-owns': open ? ariaId : undefined,
  58261. 'aria-controls': open ? ariaId : undefined,
  58262. 'aria-haspopup': 'listbox',
  58263. 'aria-disabled': disabled,
  58264. tabIndex: myTabIndex
  58265. },
  58266. on: {
  58267. 'focus': this.onFocus,
  58268. 'blur': this.onBlur,
  58269. 'keydown': onSelectorKeyDown
  58270. }
  58271. }]),
  58272. [h(
  58273. 'span',
  58274. {
  58275. key: 'selection',
  58276. 'class': classnames__WEBPACK_IMPORTED_MODULE_5___default()(prefixCls + '-selection', prefixCls + '-selection--' + modeName)
  58277. },
  58278. [renderSelection(), this.renderClear(), this.renderArrow(), renderPlaceholder && renderPlaceholder()]
  58279. )]
  58280. );
  58281. }
  58282. };
  58283. return BaseSelector;
  58284. });
  58285. /***/ }),
  58286. /***/ "./components/vc-tree-select/src/Popup/MultiplePopup.jsx":
  58287. /*!***************************************************************!*\
  58288. !*** ./components/vc-tree-select/src/Popup/MultiplePopup.jsx ***!
  58289. \***************************************************************/
  58290. /*! exports provided: default */
  58291. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58292. "use strict";
  58293. __webpack_require__.r(__webpack_exports__);
  58294. /* harmony import */ var _Base_BasePopup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Base/BasePopup */ "./components/vc-tree-select/src/Base/BasePopup.jsx");
  58295. /* harmony default export */ __webpack_exports__["default"] = (_Base_BasePopup__WEBPACK_IMPORTED_MODULE_0__["default"]);
  58296. /***/ }),
  58297. /***/ "./components/vc-tree-select/src/Popup/SinglePopup.jsx":
  58298. /*!*************************************************************!*\
  58299. !*** ./components/vc-tree-select/src/Popup/SinglePopup.jsx ***!
  58300. \*************************************************************/
  58301. /*! exports provided: default */
  58302. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58303. "use strict";
  58304. __webpack_require__.r(__webpack_exports__);
  58305. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  58306. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  58307. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  58308. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  58309. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  58310. /* harmony import */ var _Base_BasePopup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Base/BasePopup */ "./components/vc-tree-select/src/Base/BasePopup.jsx");
  58311. /* harmony import */ var _SearchInput__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../SearchInput */ "./components/vc-tree-select/src/SearchInput.jsx");
  58312. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./components/vc-tree-select/src/util.js");
  58313. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
  58314. var SinglePopup = {
  58315. name: 'SinglePopup',
  58316. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _Base_BasePopup__WEBPACK_IMPORTED_MODULE_3__["default"].props, _SearchInput__WEBPACK_IMPORTED_MODULE_4__["default"].props, {
  58317. searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  58318. showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  58319. dropdownPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  58320. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  58321. searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
  58322. }),
  58323. created: function created() {
  58324. this.inputRef = Object(_util__WEBPACK_IMPORTED_MODULE_5__["createRef"])();
  58325. this.searchRef = Object(_util__WEBPACK_IMPORTED_MODULE_5__["createRef"])();
  58326. this.popupRef = Object(_util__WEBPACK_IMPORTED_MODULE_5__["createRef"])();
  58327. },
  58328. methods: {
  58329. onPlaceholderClick: function onPlaceholderClick() {
  58330. this.inputRef.current.focus();
  58331. },
  58332. getTree: function getTree() {
  58333. return this.popupRef.current && this.popupRef.current.getTree();
  58334. },
  58335. _renderPlaceholder: function _renderPlaceholder() {
  58336. var h = this.$createElement;
  58337. var _$props = this.$props,
  58338. searchPlaceholder = _$props.searchPlaceholder,
  58339. searchValue = _$props.searchValue,
  58340. prefixCls = _$props.prefixCls;
  58341. if (!searchPlaceholder) {
  58342. return null;
  58343. }
  58344. return h(
  58345. 'span',
  58346. {
  58347. style: {
  58348. display: searchValue ? 'none' : 'block'
  58349. },
  58350. on: {
  58351. 'click': this.onPlaceholderClick
  58352. },
  58353. 'class': prefixCls + '-search__field__placeholder'
  58354. },
  58355. [searchPlaceholder]
  58356. );
  58357. },
  58358. _renderSearch: function _renderSearch() {
  58359. var h = this.$createElement;
  58360. var _$props2 = this.$props,
  58361. showSearch = _$props2.showSearch,
  58362. dropdownPrefixCls = _$props2.dropdownPrefixCls;
  58363. if (!showSearch) {
  58364. return null;
  58365. }
  58366. return h(
  58367. 'span',
  58368. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  58369. 'class': dropdownPrefixCls + '-search'
  58370. }, {
  58371. directives: [{
  58372. name: 'ant-ref',
  58373. value: this.searchRef
  58374. }]
  58375. }]),
  58376. [h(_SearchInput__WEBPACK_IMPORTED_MODULE_4__["default"], {
  58377. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, { renderPlaceholder: this._renderPlaceholder }),
  58378. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this),
  58379. directives: [{
  58380. name: 'ant-ref',
  58381. value: this.inputRef
  58382. }]
  58383. })]
  58384. );
  58385. }
  58386. },
  58387. render: function render() {
  58388. var h = arguments[0];
  58389. return h(_Base_BasePopup__WEBPACK_IMPORTED_MODULE_3__["default"], {
  58390. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, { renderSearch: this._renderSearch, __propsSymbol__: Symbol() }),
  58391. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this),
  58392. directives: [{
  58393. name: 'ant-ref',
  58394. value: this.popupRef
  58395. }]
  58396. });
  58397. }
  58398. };
  58399. /* harmony default export */ __webpack_exports__["default"] = (SinglePopup);
  58400. /***/ }),
  58401. /***/ "./components/vc-tree-select/src/SearchInput.jsx":
  58402. /*!*******************************************************!*\
  58403. !*** ./components/vc-tree-select/src/SearchInput.jsx ***!
  58404. \*******************************************************/
  58405. /*! exports provided: default */
  58406. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58407. "use strict";
  58408. __webpack_require__.r(__webpack_exports__);
  58409. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  58410. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  58411. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  58412. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  58413. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  58414. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./components/vc-tree-select/src/util.js");
  58415. /**
  58416. * Since search box is in different position with different mode.
  58417. * - Single: in the popup box
  58418. * - multiple: in the selector
  58419. * Move the code as a SearchInput for easy management.
  58420. */
  58421. var SearchInput = {
  58422. name: 'SearchInput',
  58423. props: {
  58424. open: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  58425. searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  58426. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  58427. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  58428. renderPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  58429. needAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  58430. ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
  58431. },
  58432. inject: {
  58433. vcTreeSelect: { 'default': function _default() {
  58434. return {};
  58435. } }
  58436. },
  58437. data: function data() {
  58438. return {
  58439. mirrorSearchValue: this.searchValue
  58440. };
  58441. },
  58442. watch: {
  58443. searchValue: function searchValue(val) {
  58444. this.mirrorSearchValue = val;
  58445. }
  58446. },
  58447. created: function created() {
  58448. this.inputRef = Object(_util__WEBPACK_IMPORTED_MODULE_3__["createRef"])();
  58449. this.mirrorInputRef = Object(_util__WEBPACK_IMPORTED_MODULE_3__["createRef"])();
  58450. this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props);
  58451. },
  58452. mounted: function mounted() {
  58453. var _this = this;
  58454. this.$nextTick(function () {
  58455. var _$props = _this.$props,
  58456. open = _$props.open,
  58457. needAlign = _$props.needAlign;
  58458. if (needAlign) {
  58459. _this.alignInputWidth();
  58460. }
  58461. if (open) {
  58462. _this.focus(true);
  58463. }
  58464. });
  58465. },
  58466. updated: function updated() {
  58467. var _this2 = this;
  58468. var _$props2 = this.$props,
  58469. open = _$props2.open,
  58470. searchValue = _$props2.searchValue,
  58471. needAlign = _$props2.needAlign;
  58472. var prevProps = this.prevProps;
  58473. this.$nextTick(function () {
  58474. if (open && prevProps.open !== open) {
  58475. _this2.focus();
  58476. }
  58477. if (needAlign && searchValue !== prevProps.searchValue) {
  58478. _this2.alignInputWidth();
  58479. }
  58480. _this2.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _this2.$props);
  58481. });
  58482. },
  58483. methods: {
  58484. /**
  58485. * `scrollWidth` is not correct in IE, do the workaround.
  58486. * ref: https://github.com/react-component/tree-select/issues/65
  58487. * clientWidth 0 when mounted in vue. why?
  58488. */
  58489. alignInputWidth: function alignInputWidth() {
  58490. this.inputRef.current.style.width = (this.mirrorInputRef.current.clientWidth || this.mirrorInputRef.current.offsetWidth) + 'px';
  58491. },
  58492. /**
  58493. * Need additional timeout for focus cause parent dom is not ready when didMount trigger
  58494. */
  58495. focus: function focus(isDidMount) {
  58496. var _this3 = this;
  58497. if (this.inputRef.current) {
  58498. if (isDidMount) {
  58499. setTimeout(function () {
  58500. _this3.inputRef.current.focus();
  58501. }, 0);
  58502. } else {
  58503. // set it into else, Avoid scrolling when focus
  58504. this.inputRef.current.focus();
  58505. }
  58506. }
  58507. },
  58508. blur: function blur() {
  58509. if (this.inputRef.current) {
  58510. this.inputRef.current.blur();
  58511. }
  58512. },
  58513. handleInputChange: function handleInputChange(e) {
  58514. var _e$target = e.target,
  58515. value = _e$target.value,
  58516. composing = _e$target.composing;
  58517. var _searchValue = this.searchValue,
  58518. searchValue = _searchValue === undefined ? '' : _searchValue;
  58519. if (e.isComposing || composing || searchValue === value) {
  58520. this.mirrorSearchValue = value;
  58521. return;
  58522. }
  58523. this.vcTreeSelect.onSearchInputChange(e);
  58524. }
  58525. },
  58526. render: function render() {
  58527. var h = arguments[0];
  58528. var _$props3 = this.$props,
  58529. searchValue = _$props3.searchValue,
  58530. prefixCls = _$props3.prefixCls,
  58531. disabled = _$props3.disabled,
  58532. renderPlaceholder = _$props3.renderPlaceholder,
  58533. open = _$props3.open,
  58534. ariaId = _$props3.ariaId;
  58535. var onSearchInputKeyDown = this.vcTreeSelect.onSearchInputKeyDown,
  58536. handleInputChange = this.handleInputChange,
  58537. mirrorSearchValue = this.mirrorSearchValue;
  58538. return h(
  58539. 'span',
  58540. { 'class': prefixCls + '-search__field__wrap' },
  58541. [h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  58542. attrs: {
  58543. type: 'text'
  58544. }
  58545. }, {
  58546. directives: [{
  58547. name: 'ant-ref',
  58548. value: this.inputRef
  58549. }, {
  58550. name: 'ant-input'
  58551. }]
  58552. }, {
  58553. on: {
  58554. 'input': handleInputChange,
  58555. 'keydown': onSearchInputKeyDown
  58556. },
  58557. domProps: {
  58558. 'value': searchValue
  58559. },
  58560. attrs: {
  58561. disabled: disabled,
  58562. 'aria-label': 'filter select',
  58563. 'aria-autocomplete': 'list',
  58564. 'aria-controls': open ? ariaId : undefined,
  58565. 'aria-multiline': 'false'
  58566. },
  58567. 'class': prefixCls + '-search__field' }])), h(
  58568. 'span',
  58569. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  58570. directives: [{
  58571. name: 'ant-ref',
  58572. value: this.mirrorInputRef
  58573. }]
  58574. }, {
  58575. 'class': prefixCls + '-search__field__mirror'
  58576. }]),
  58577. [mirrorSearchValue, '\xA0']
  58578. ), renderPlaceholder && !mirrorSearchValue ? renderPlaceholder() : null]
  58579. );
  58580. }
  58581. };
  58582. /* harmony default export */ __webpack_exports__["default"] = (SearchInput);
  58583. /***/ }),
  58584. /***/ "./components/vc-tree-select/src/Select.jsx":
  58585. /*!**************************************************!*\
  58586. !*** ./components/vc-tree-select/src/Select.jsx ***!
  58587. \**************************************************/
  58588. /*! exports provided: default */
  58589. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  58590. "use strict";
  58591. __webpack_require__.r(__webpack_exports__);
  58592. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  58593. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  58594. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  58595. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
  58596. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  58597. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  58598. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
  58599. /* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_3__);
  58600. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
  58601. /* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_4__);
  58602. /* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-scroll-into-view */ "./node_modules/dom-scroll-into-view/dist-web/index.js");
  58603. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
  58604. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_6__);
  58605. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  58606. /* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
  58607. /* harmony import */ var _SelectTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SelectTrigger */ "./components/vc-tree-select/src/SelectTrigger.jsx");
  58608. /* harmony import */ var _Selector_SingleSelector__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Selector/SingleSelector */ "./components/vc-tree-select/src/Selector/SingleSelector.jsx");
  58609. /* harmony import */ var _Selector_MultipleSelector__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Selector/MultipleSelector */ "./components/vc-tree-select/src/Selector/MultipleSelector/index.jsx");
  58610. /* harmony import */ var _Popup_SinglePopup__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Popup/SinglePopup */ "./components/vc-tree-select/src/Popup/SinglePopup.jsx");
  58611. /* harmony import */ var _Popup_MultiplePopup__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Popup/MultiplePopup */ "./components/vc-tree-select/src/Popup/MultiplePopup.jsx");
  58612. /* harmony import */ var _strategies__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./strategies */ "./components/vc-tree-select/src/strategies.js");
  58613. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  58614. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./util */ "./components/vc-tree-select/src/util.js");
  58615. /* harmony import */ var _SelectNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./SelectNode */ "./components/vc-tree-select/src/SelectNode.jsx");
  58616. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  58617. /**
  58618. * ARIA: https://www.w3.org/TR/wai-aria/#combobox
  58619. * Sample 1: https://www.w3.org/TR/2017/NOTE-wai-aria-practices-1.1-20171214/examples/combobox/aria1.1pattern/listbox-combo.html
  58620. * Sample 2: https://www.w3.org/blog/wai-components-gallery/widget/combobox-with-aria-autocompleteinline/
  58621. *
  58622. * Tab logic:
  58623. * Popup is close
  58624. * 1. Focus input (mark component as focused)
  58625. * 2. Press enter to show the popup
  58626. * 3. If popup has input, focus it
  58627. *
  58628. * Popup is open
  58629. * 1. press tab to close the popup
  58630. * 2. Focus back to the selection input box
  58631. * 3. Let the native tab going on
  58632. *
  58633. * TreeSelect use 2 design type.
  58634. * In single mode, we should focus on the `span`
  58635. * In multiple mode, we should focus on the `input`
  58636. */
  58637. function getWatch() {
  58638. var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  58639. var watch = {};
  58640. keys.forEach(function (k) {
  58641. watch[k] = function () {
  58642. this.needSyncKeys[k] = true;
  58643. };
  58644. });
  58645. return watch;
  58646. }
  58647. var Select = {
  58648. name: 'Select',
  58649. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_15__["default"]],
  58650. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["initDefaultProps"])({
  58651. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  58652. prefixAria: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  58653. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58654. showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58655. open: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58656. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  58657. autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58658. defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58659. defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  58660. showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58661. placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  58662. inputValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string, // [Legacy] Deprecated. Use `searchValue` instead.
  58663. searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  58664. autoClearSearchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58665. searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any, // [Legacy] Confuse with placeholder
  58666. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58667. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  58668. labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58669. maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].number,
  58670. maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func]),
  58671. maxTagTextLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].number,
  58672. showCheckedStrategy: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOf([_strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_ALL"], _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_PARENT"], _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_CHILD"]]),
  58673. dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  58674. dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
  58675. dropdownVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func,
  58676. dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58677. treeData: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
  58678. treeDataSimpleMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object]),
  58679. treeNodeFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  58680. treeNodeLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  58681. treeCheckable: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool]),
  58682. // treeCheckable: PropTypes.any,
  58683. treeCheckStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58684. treeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58685. treeLine: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58686. treeDefaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58687. treeDefaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
  58688. treeExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
  58689. loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func,
  58690. filterTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool]),
  58691. notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  58692. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func,
  58693. // onSearch: PropTypes.func,
  58694. // onSelect: PropTypes.func,
  58695. // onDeselect: PropTypes.func,
  58696. // onChange: PropTypes.func,
  58697. // onDropdownVisibleChange: PropTypes.func,
  58698. // onTreeExpand: PropTypes.func,
  58699. allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
  58700. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  58701. animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  58702. choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
  58703. inputIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  58704. clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  58705. removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  58706. switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
  58707. __propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any
  58708. }, {
  58709. prefixCls: 'rc-tree-select',
  58710. prefixAria: 'rc-tree-select',
  58711. showArrow: true,
  58712. showSearch: true,
  58713. autoClearSearchValue: true,
  58714. showCheckedStrategy: _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_CHILD"],
  58715. // dropdownMatchSelectWidth change the origin design, set to false now
  58716. // ref: https://github.com/react-component/select/blob/4cad95e098a341a09de239ad6981067188842020/src/Select.jsx#L344
  58717. // ref: https://github.com/react-component/select/pull/71
  58718. treeNodeFilterProp: 'value',
  58719. treeNodeLabelProp: 'title',
  58720. treeIcon: false,
  58721. notFoundContent: 'Not Found',
  58722. dropdownStyle: {},
  58723. dropdownVisibleChange: function dropdownVisibleChange() {
  58724. return true;
  58725. }
  58726. }),
  58727. data: function data() {
  58728. warning__WEBPACK_IMPORTED_MODULE_6___default()(this.$props.__propsSymbol__, 'must pass __propsSymbol__');
  58729. var _$props = this.$props,
  58730. prefixAria = _$props.prefixAria,
  58731. defaultOpen = _$props.defaultOpen,
  58732. open = _$props.open;
  58733. this.needSyncKeys = {};
  58734. this.selectorRef = Object(_util__WEBPACK_IMPORTED_MODULE_16__["createRef"])();
  58735. this.selectTriggerRef = Object(_util__WEBPACK_IMPORTED_MODULE_16__["createRef"])();
  58736. // ARIA need `aria-controls` props mapping
  58737. // Since this need user input. Let's generate ourselves
  58738. this.ariaId = Object(_util__WEBPACK_IMPORTED_MODULE_16__["generateAriaId"])(prefixAria + '-list');
  58739. var state = {
  58740. _open: open || defaultOpen,
  58741. _valueList: [],
  58742. _searchHalfCheckedKeys: [],
  58743. _missValueList: [], // Contains the value not in the tree
  58744. _selectorValueList: [], // Used for multiple selector
  58745. _valueEntities: {},
  58746. _posEntities: new Map(),
  58747. _keyEntities: new Map(),
  58748. _searchValue: '',
  58749. _prevProps: {},
  58750. _init: true,
  58751. _focused: undefined,
  58752. _treeNodes: undefined,
  58753. _filteredTreeNodes: undefined
  58754. };
  58755. var newState = this.getDerivedState(this.$props, state);
  58756. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, state, newState);
  58757. },
  58758. provide: function provide() {
  58759. return {
  58760. vcTreeSelect: {
  58761. onSelectorFocus: this.onSelectorFocus,
  58762. onSelectorBlur: this.onSelectorBlur,
  58763. onSelectorKeyDown: this.onComponentKeyDown,
  58764. onSelectorClear: this.onSelectorClear,
  58765. onMultipleSelectorRemove: this.onMultipleSelectorRemove,
  58766. onTreeNodeSelect: this.onTreeNodeSelect,
  58767. onTreeNodeCheck: this.onTreeNodeCheck,
  58768. onPopupKeyDown: this.onComponentKeyDown,
  58769. onSearchInputChange: this.onSearchInputChange,
  58770. onSearchInputKeyDown: this.onSearchInputKeyDown
  58771. }
  58772. };
  58773. },
  58774. watch: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, getWatch(['treeData', 'defaultValue', 'value']), {
  58775. __propsSymbol__: function __propsSymbol__() {
  58776. var state = this.getDerivedState(this.$props, this.$data);
  58777. this.setState(state);
  58778. this.needSyncKeys = {};
  58779. },
  58780. '$data._valueList': function $data_valueList() {
  58781. var _this = this;
  58782. this.$nextTick(function () {
  58783. _this.forcePopupAlign();
  58784. });
  58785. },
  58786. '$data._open': function $data_open(open) {
  58787. var _this2 = this;
  58788. setTimeout(function () {
  58789. var prefixCls = _this2.$props.prefixCls;
  58790. var _$data = _this2.$data,
  58791. selectorValueList = _$data._selectorValueList,
  58792. valueEntities = _$data._valueEntities;
  58793. var isMultiple = _this2.isMultiple();
  58794. // Scroll to value position, only need sync on single mode
  58795. if (!isMultiple && selectorValueList.length && open && _this2.popup) {
  58796. var value = selectorValueList[0].value;
  58797. var _popup$getTree = _this2.popup.getTree(),
  58798. domTreeNodes = _popup$getTree.domTreeNodes;
  58799. var _ref = valueEntities[value] || {},
  58800. key = _ref.key;
  58801. var treeNode = domTreeNodes[key];
  58802. if (treeNode) {
  58803. var domNode = treeNode.$el;
  58804. raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
  58805. var popupNode = _this2.popup.$el;
  58806. var triggerContainer = Object(_util__WEBPACK_IMPORTED_MODULE_16__["findPopupContainer"])(popupNode, prefixCls + '-dropdown');
  58807. var searchNode = _this2.popup.searchRef.current;
  58808. if (domNode && triggerContainer && searchNode) {
  58809. Object(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_5__["default"])(domNode, triggerContainer, {
  58810. onlyScrollIfNeeded: true,
  58811. offsetTop: searchNode.offsetHeight
  58812. });
  58813. }
  58814. });
  58815. }
  58816. }
  58817. });
  58818. }
  58819. }),
  58820. mounted: function mounted() {
  58821. var _this3 = this;
  58822. this.$nextTick(function () {
  58823. var _$props2 = _this3.$props,
  58824. autoFocus = _$props2.autoFocus,
  58825. disabled = _$props2.disabled;
  58826. if (autoFocus && !disabled) {
  58827. _this3.focus();
  58828. }
  58829. });
  58830. },
  58831. methods: {
  58832. getDerivedState: function getDerivedState(nextProps, prevState) {
  58833. var h = this.$createElement;
  58834. var _prevState$_prevProps = prevState._prevProps,
  58835. prevProps = _prevState$_prevProps === undefined ? {} : _prevState$_prevProps;
  58836. var treeCheckable = nextProps.treeCheckable,
  58837. treeCheckStrictly = nextProps.treeCheckStrictly,
  58838. filterTreeNode = nextProps.filterTreeNode,
  58839. treeNodeFilterProp = nextProps.treeNodeFilterProp,
  58840. treeDataSimpleMode = nextProps.treeDataSimpleMode;
  58841. var newState = {
  58842. _prevProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, nextProps),
  58843. _init: false
  58844. };
  58845. var self = this;
  58846. // Process the state when props updated
  58847. function processState(propName, updater) {
  58848. if (prevProps[propName] !== nextProps[propName] || self.needSyncKeys[propName]) {
  58849. updater(nextProps[propName], prevProps[propName]);
  58850. return true;
  58851. }
  58852. return false;
  58853. }
  58854. var valueRefresh = false;
  58855. // Open
  58856. processState('open', function (propValue) {
  58857. newState._open = propValue;
  58858. });
  58859. // Tree Nodes
  58860. var treeNodes = void 0;
  58861. var treeDataChanged = false;
  58862. var treeDataModeChanged = false;
  58863. processState('treeData', function (propValue) {
  58864. treeNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["convertDataToTree"])(h, propValue);
  58865. treeDataChanged = true;
  58866. });
  58867. processState('treeDataSimpleMode', function (propValue, prevValue) {
  58868. if (!propValue) return;
  58869. var prev = !prevValue || prevValue === true ? {} : prevValue;
  58870. // Shallow equal to avoid dynamic prop object
  58871. if (!shallowequal__WEBPACK_IMPORTED_MODULE_3___default()(propValue, prev)) {
  58872. treeDataModeChanged = true;
  58873. }
  58874. });
  58875. // Parse by `treeDataSimpleMode`
  58876. if (treeDataSimpleMode && (treeDataChanged || treeDataModeChanged)) {
  58877. var simpleMapper = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  58878. id: 'id',
  58879. pId: 'pId',
  58880. rootPId: null
  58881. }, treeDataSimpleMode !== true ? treeDataSimpleMode : {});
  58882. treeNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["convertDataToTree"])(h, Object(_util__WEBPACK_IMPORTED_MODULE_16__["parseSimpleTreeData"])(nextProps.treeData, simpleMapper));
  58883. }
  58884. // If `treeData` not provide, use children TreeNodes
  58885. if (!nextProps.treeData) {
  58886. // processState('children', (propValue) => {
  58887. // treeNodes = Array.isArray(propValue) ? propValue : [propValue]
  58888. // })
  58889. treeNodes = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["filterEmpty"])(this.$slots['default']);
  58890. }
  58891. // Convert `treeData` to entities
  58892. if (treeNodes) {
  58893. var entitiesMap = Object(_util__WEBPACK_IMPORTED_MODULE_16__["convertTreeToEntities"])(treeNodes);
  58894. newState._treeNodes = treeNodes;
  58895. newState._posEntities = entitiesMap.posEntities;
  58896. newState._valueEntities = entitiesMap.valueEntities;
  58897. newState._keyEntities = entitiesMap.keyEntities;
  58898. valueRefresh = true;
  58899. }
  58900. // Value List
  58901. if (prevState._init) {
  58902. processState('defaultValue', function (propValue) {
  58903. newState._valueList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatInternalValue"])(propValue, nextProps);
  58904. valueRefresh = true;
  58905. });
  58906. }
  58907. processState('value', function (propValue) {
  58908. newState._valueList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatInternalValue"])(propValue, nextProps);
  58909. valueRefresh = true;
  58910. });
  58911. // Selector Value List
  58912. if (valueRefresh) {
  58913. // Find out that value not exist in the tree
  58914. var missValueList = [];
  58915. var filteredValueList = [];
  58916. var keyList = [];
  58917. // Get latest value list
  58918. var latestValueList = newState._valueList;
  58919. if (!latestValueList) {
  58920. // Also need add prev missValueList to avoid new treeNodes contains the value
  58921. latestValueList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(prevState._valueList), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(prevState._missValueList));
  58922. }
  58923. // Get key by value
  58924. var valueLabels = {};
  58925. latestValueList.forEach(function (wrapperValue) {
  58926. var value = wrapperValue.value,
  58927. label = wrapperValue.label;
  58928. var entity = (newState._valueEntities || prevState._valueEntities)[value];
  58929. valueLabels[value] = label;
  58930. if (entity) {
  58931. keyList.push(entity.key);
  58932. filteredValueList.push(wrapperValue);
  58933. return;
  58934. }
  58935. // If not match, it may caused by ajax load. We need keep this
  58936. missValueList.push(wrapperValue);
  58937. });
  58938. // We need calculate the value when tree is checked tree
  58939. if (treeCheckable && !treeCheckStrictly) {
  58940. // Calculate the keys need to be checked
  58941. var _conductCheck = Object(_util__WEBPACK_IMPORTED_MODULE_16__["conductCheck"])(keyList, true, newState._keyEntities || prevState._keyEntities),
  58942. checkedKeys = _conductCheck.checkedKeys;
  58943. // Format value list again for internal usage
  58944. newState._valueList = checkedKeys.map(function (key) {
  58945. var val = (newState._keyEntities || prevState._keyEntities).get(key).value;
  58946. var wrappedValue = {
  58947. value: val
  58948. };
  58949. if (valueLabels[val] !== undefined) {
  58950. wrappedValue.label = valueLabels[val];
  58951. }
  58952. return wrappedValue;
  58953. });
  58954. } else {
  58955. newState._valueList = filteredValueList;
  58956. }
  58957. // Fill the missValueList, we still need display in the selector
  58958. newState._missValueList = missValueList;
  58959. // Calculate the value list for `Selector` usage
  58960. newState._selectorValueList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatSelectorValue"])(newState._valueList, nextProps, newState._valueEntities || prevState._valueEntities);
  58961. }
  58962. // [Legacy] To align with `Select` component,
  58963. // We use `searchValue` instead of `inputValue` but still keep the api
  58964. // `inputValue` support `null` to work as `autoClearSearchValue`
  58965. processState('inputValue', function (propValue) {
  58966. if (propValue !== null) {
  58967. newState._searchValue = propValue;
  58968. }
  58969. });
  58970. // Search value
  58971. processState('searchValue', function (propValue) {
  58972. newState._searchValue = propValue;
  58973. });
  58974. // Do the search logic
  58975. if (newState._searchValue !== undefined || prevState._searchValue && treeNodes) {
  58976. var searchValue = newState._searchValue !== undefined ? newState._searchValue : prevState._searchValue;
  58977. var upperSearchValue = String(searchValue).toUpperCase();
  58978. var filterTreeNodeFn = filterTreeNode;
  58979. if (filterTreeNode === false) {
  58980. // Don't filter if is false
  58981. filterTreeNodeFn = function filterTreeNodeFn() {
  58982. return true;
  58983. };
  58984. } else if (typeof filterTreeNodeFn !== 'function') {
  58985. // When is not function (true or undefined), use inner filter
  58986. filterTreeNodeFn = function filterTreeNodeFn(_, node) {
  58987. var nodeValue = String(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(node)[treeNodeFilterProp]).toUpperCase();
  58988. return nodeValue.indexOf(upperSearchValue) !== -1;
  58989. };
  58990. }
  58991. newState._filteredTreeNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["getFilterTree"])(this.$createElement, newState._treeNodes || prevState._treeNodes, searchValue, filterTreeNodeFn, newState._valueEntities || prevState._valueEntities, _SelectNode__WEBPACK_IMPORTED_MODULE_17__["default"]);
  58992. }
  58993. // We should re-calculate the halfCheckedKeys when in search mode
  58994. if (valueRefresh && treeCheckable && !treeCheckStrictly && (newState._searchValue || prevState._searchValue)) {
  58995. newState._searchHalfCheckedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_16__["getHalfCheckedKeys"])(newState._valueList, newState._valueEntities || prevState._valueEntities);
  58996. }
  58997. // Checked Strategy
  58998. processState('showCheckedStrategy', function () {
  58999. newState._selectorValueList = newState._selectorValueList || Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatSelectorValue"])(newState._valueList || prevState._valueList, nextProps, newState._valueEntities || prevState._valueEntities);
  59000. });
  59001. return newState;
  59002. },
  59003. // ==================== Selector ====================
  59004. onSelectorFocus: function onSelectorFocus() {
  59005. this.setState({ _focused: true });
  59006. },
  59007. onSelectorBlur: function onSelectorBlur() {
  59008. this.setState({ _focused: false });
  59009. // TODO: Close when Popup is also not focused
  59010. // this.setState({ open: false });
  59011. },
  59012. // Handle key board event in both Selector and Popup
  59013. onComponentKeyDown: function onComponentKeyDown(event) {
  59014. var open = this.$data._open;
  59015. var keyCode = event.keyCode;
  59016. if (!open) {
  59017. if ([_util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].ENTER, _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].DOWN].indexOf(keyCode) !== -1) {
  59018. this.setOpenState(true);
  59019. }
  59020. } else if (_util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].ESC === keyCode) {
  59021. this.setOpenState(false);
  59022. } else if ([_util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].UP, _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].DOWN, _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].LEFT, _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].RIGHT].indexOf(keyCode) !== -1) {
  59023. // TODO: Handle `open` state
  59024. event.stopPropagation();
  59025. }
  59026. },
  59027. onDeselect: function onDeselect(wrappedValue, node, nodeEventInfo) {
  59028. this.__emit('deselect', wrappedValue, node, nodeEventInfo);
  59029. },
  59030. onSelectorClear: function onSelectorClear(event) {
  59031. var disabled = this.$props.disabled;
  59032. if (disabled) return;
  59033. this.triggerChange([], []);
  59034. if (!this.isSearchValueControlled()) {
  59035. this.setUncontrolledState({
  59036. _searchValue: '',
  59037. _filteredTreeNodes: null
  59038. });
  59039. }
  59040. event.stopPropagation();
  59041. },
  59042. onMultipleSelectorRemove: function onMultipleSelectorRemove(event, removeValue) {
  59043. event.stopPropagation();
  59044. var _$data2 = this.$data,
  59045. valueList = _$data2._valueList,
  59046. missValueList = _$data2._missValueList,
  59047. valueEntities = _$data2._valueEntities;
  59048. var _$props3 = this.$props,
  59049. treeCheckable = _$props3.treeCheckable,
  59050. treeCheckStrictly = _$props3.treeCheckStrictly,
  59051. treeNodeLabelProp = _$props3.treeNodeLabelProp,
  59052. disabled = _$props3.disabled;
  59053. if (disabled) return;
  59054. // Find trigger entity
  59055. var triggerEntity = valueEntities[removeValue];
  59056. // Clean up value
  59057. var newValueList = valueList;
  59058. if (triggerEntity) {
  59059. // If value is in tree
  59060. if (treeCheckable && !treeCheckStrictly) {
  59061. newValueList = valueList.filter(function (_ref2) {
  59062. var value = _ref2.value;
  59063. var entity = valueEntities[value];
  59064. return !Object(_util__WEBPACK_IMPORTED_MODULE_16__["isPosRelated"])(entity.pos, triggerEntity.pos);
  59065. });
  59066. } else {
  59067. newValueList = valueList.filter(function (_ref3) {
  59068. var value = _ref3.value;
  59069. return value !== removeValue;
  59070. });
  59071. }
  59072. }
  59073. var triggerNode = triggerEntity ? triggerEntity.node : null;
  59074. var extraInfo = {
  59075. triggerValue: removeValue,
  59076. triggerNode: triggerNode
  59077. };
  59078. var deselectInfo = {
  59079. node: triggerNode
  59080. };
  59081. // [Legacy] Little hack on this to make same action as `onCheck` event.
  59082. if (treeCheckable) {
  59083. var filteredEntityList = newValueList.map(function (_ref4) {
  59084. var value = _ref4.value;
  59085. return valueEntities[value];
  59086. });
  59087. deselectInfo.event = 'check';
  59088. deselectInfo.checked = false;
  59089. deselectInfo.checkedNodes = filteredEntityList.map(function (_ref5) {
  59090. var node = _ref5.node;
  59091. return node;
  59092. });
  59093. deselectInfo.checkedNodesPositions = filteredEntityList.map(function (_ref6) {
  59094. var node = _ref6.node,
  59095. pos = _ref6.pos;
  59096. return {
  59097. node: node,
  59098. pos: pos
  59099. };
  59100. });
  59101. if (treeCheckStrictly) {
  59102. extraInfo.allCheckedNodes = deselectInfo.checkedNodes;
  59103. } else {
  59104. // TODO: It's too expansive to get `halfCheckedKeys` in onDeselect. Not pass this.
  59105. extraInfo.allCheckedNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["flatToHierarchy"])(filteredEntityList).map(function (_ref7) {
  59106. var node = _ref7.node;
  59107. return node;
  59108. });
  59109. }
  59110. } else {
  59111. deselectInfo.event = 'select';
  59112. deselectInfo.selected = false;
  59113. deselectInfo.selectedNodes = newValueList.map(function (_ref8) {
  59114. var value = _ref8.value;
  59115. return (valueEntities[value] || {}).node;
  59116. });
  59117. }
  59118. // Some value user pass prop is not in the tree, we also need clean it
  59119. var newMissValueList = missValueList.filter(function (_ref9) {
  59120. var value = _ref9.value;
  59121. return value !== removeValue;
  59122. });
  59123. var wrappedValue = void 0;
  59124. if (this.isLabelInValue()) {
  59125. wrappedValue = {
  59126. label: triggerNode ? Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(triggerNode)[treeNodeLabelProp] : null,
  59127. value: removeValue
  59128. };
  59129. } else {
  59130. wrappedValue = removeValue;
  59131. }
  59132. this.onDeselect(wrappedValue, triggerNode, deselectInfo);
  59133. this.triggerChange(newMissValueList, newValueList, extraInfo);
  59134. },
  59135. // ===================== Popup ======================
  59136. onValueTrigger: function onValueTrigger(isAdd, nodeList, nodeEventInfo, nodeExtraInfo) {
  59137. var node = nodeEventInfo.node;
  59138. var value = node.$props.value;
  59139. var _$data3 = this.$data,
  59140. missValueList = _$data3._missValueList,
  59141. valueEntities = _$data3._valueEntities,
  59142. keyEntities = _$data3._keyEntities,
  59143. searchValue = _$data3._searchValue;
  59144. var _$props4 = this.$props,
  59145. disabled = _$props4.disabled,
  59146. inputValue = _$props4.inputValue,
  59147. treeNodeLabelProp = _$props4.treeNodeLabelProp,
  59148. multiple = _$props4.multiple,
  59149. treeCheckable = _$props4.treeCheckable,
  59150. treeCheckStrictly = _$props4.treeCheckStrictly,
  59151. autoClearSearchValue = _$props4.autoClearSearchValue;
  59152. var label = node.$props[treeNodeLabelProp];
  59153. if (disabled) return;
  59154. // Wrap the return value for user
  59155. var wrappedValue = void 0;
  59156. if (this.isLabelInValue()) {
  59157. wrappedValue = {
  59158. value: value,
  59159. label: label
  59160. };
  59161. } else {
  59162. wrappedValue = value;
  59163. }
  59164. // [Legacy] Origin code not trigger `onDeselect` every time. Let's align the behaviour.
  59165. if (isAdd) {
  59166. this.__emit('select', wrappedValue, node, nodeEventInfo);
  59167. } else {
  59168. this.__emit('deselect', wrappedValue, node, nodeEventInfo);
  59169. }
  59170. // Get wrapped value list.
  59171. // This is a bit hack cause we use key to match the value.
  59172. var newValueList = nodeList.map(function (node) {
  59173. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(node);
  59174. return {
  59175. value: props.value,
  59176. label: props[treeNodeLabelProp]
  59177. };
  59178. });
  59179. // When is `treeCheckable` and with `searchValue`, `valueList` is not full filled.
  59180. // We need calculate the missing nodes.
  59181. if (treeCheckable && !treeCheckStrictly) {
  59182. var keyList = newValueList.map(function (_ref10) {
  59183. var val = _ref10.value;
  59184. return valueEntities[val].key;
  59185. });
  59186. if (isAdd) {
  59187. keyList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["conductCheck"])(keyList, true, keyEntities).checkedKeys;
  59188. } else {
  59189. keyList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["conductCheck"])([valueEntities[value].key], false, keyEntities, {
  59190. checkedKeys: keyList
  59191. }).checkedKeys;
  59192. }
  59193. newValueList = keyList.map(function (key) {
  59194. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(keyEntities.get(key).node);
  59195. return {
  59196. value: props.value,
  59197. label: props[treeNodeLabelProp]
  59198. };
  59199. });
  59200. }
  59201. // Clean up `searchValue` when this prop is set
  59202. if (autoClearSearchValue || inputValue === null) {
  59203. // Clean state `searchValue` if uncontrolled
  59204. if (!this.isSearchValueControlled() && (multiple || treeCheckable)) {
  59205. this.setUncontrolledState({
  59206. _searchValue: '',
  59207. _filteredTreeNodes: null
  59208. });
  59209. }
  59210. // Trigger onSearch if `searchValue` to be empty.
  59211. // We should also trigger onSearch with empty string here
  59212. // since if user use `treeExpandedKeys`, it need user have the ability to reset it.
  59213. if (searchValue && searchValue.length) {
  59214. this.__emit('update:searchValue', '');
  59215. this.__emit('search', '');
  59216. }
  59217. }
  59218. // [Legacy] Provide extra info
  59219. var extraInfo = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, nodeExtraInfo, {
  59220. triggerValue: value,
  59221. triggerNode: node
  59222. });
  59223. this.triggerChange(missValueList, newValueList, extraInfo);
  59224. },
  59225. onTreeNodeSelect: function onTreeNodeSelect(_, nodeEventInfo) {
  59226. var _$data4 = this.$data,
  59227. valueList = _$data4._valueList,
  59228. valueEntities = _$data4._valueEntities;
  59229. var _$props5 = this.$props,
  59230. treeCheckable = _$props5.treeCheckable,
  59231. multiple = _$props5.multiple;
  59232. if (treeCheckable) return;
  59233. if (!multiple) {
  59234. this.setOpenState(false);
  59235. }
  59236. var isAdd = nodeEventInfo.selected;
  59237. var selectedValue = nodeEventInfo.node.$props.value;
  59238. var newValueList = void 0;
  59239. if (!multiple) {
  59240. newValueList = [{ value: selectedValue }];
  59241. } else {
  59242. newValueList = valueList.filter(function (_ref11) {
  59243. var value = _ref11.value;
  59244. return value !== selectedValue;
  59245. });
  59246. if (isAdd) {
  59247. newValueList.push({ value: selectedValue });
  59248. }
  59249. }
  59250. var selectedNodes = newValueList.map(function (_ref12) {
  59251. var value = _ref12.value;
  59252. return valueEntities[value];
  59253. }).filter(function (entity) {
  59254. return entity;
  59255. }).map(function (_ref13) {
  59256. var node = _ref13.node;
  59257. return node;
  59258. });
  59259. this.onValueTrigger(isAdd, selectedNodes, nodeEventInfo, { selected: isAdd });
  59260. },
  59261. onTreeNodeCheck: function onTreeNodeCheck(_, nodeEventInfo) {
  59262. var _$data5 = this.$data,
  59263. searchValue = _$data5._searchValue,
  59264. keyEntities = _$data5._keyEntities,
  59265. valueEntities = _$data5._valueEntities,
  59266. valueList = _$data5._valueList;
  59267. var treeCheckStrictly = this.$props.treeCheckStrictly;
  59268. var checkedNodes = nodeEventInfo.checkedNodes,
  59269. checkedNodesPositions = nodeEventInfo.checkedNodesPositions;
  59270. var isAdd = nodeEventInfo.checked;
  59271. var extraInfo = {
  59272. checked: isAdd
  59273. };
  59274. var checkedNodeList = checkedNodes;
  59275. // [Legacy] Check event provide `allCheckedNodes`.
  59276. // When `treeCheckStrictly` or internal `searchValue` is set, TreeNode will be unrelated:
  59277. // - Related: Show the top checked nodes and has children prop.
  59278. // - Unrelated: Show all the checked nodes.
  59279. if (searchValue) {
  59280. var oriKeyList = valueList.map(function (_ref14) {
  59281. var value = _ref14.value;
  59282. return valueEntities[value];
  59283. }).filter(function (entity) {
  59284. return entity;
  59285. }).map(function (_ref15) {
  59286. var key = _ref15.key;
  59287. return key;
  59288. });
  59289. var keyList = void 0;
  59290. if (isAdd) {
  59291. keyList = Array.from(new Set([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(oriKeyList), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(checkedNodeList.map(function (node) {
  59292. var _getPropsData = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(node),
  59293. value = _getPropsData.value;
  59294. return valueEntities[value].key;
  59295. })))));
  59296. } else {
  59297. keyList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["conductCheck"])([Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(nodeEventInfo.node).eventKey], false, keyEntities, {
  59298. checkedKeys: oriKeyList
  59299. }).checkedKeys;
  59300. }
  59301. checkedNodeList = keyList.map(function (key) {
  59302. return keyEntities.get(key).node;
  59303. });
  59304. // Let's follow as not `treeCheckStrictly` format
  59305. extraInfo.allCheckedNodes = keyList.map(function (key) {
  59306. return Object(_util__WEBPACK_IMPORTED_MODULE_16__["cleanEntity"])(keyEntities.get(key));
  59307. });
  59308. } else if (treeCheckStrictly) {
  59309. extraInfo.allCheckedNodes = nodeEventInfo.checkedNodes;
  59310. } else {
  59311. extraInfo.allCheckedNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["flatToHierarchy"])(checkedNodesPositions);
  59312. }
  59313. this.onValueTrigger(isAdd, checkedNodeList, nodeEventInfo, extraInfo);
  59314. },
  59315. // ==================== Trigger =====================
  59316. onDropdownVisibleChange: function onDropdownVisibleChange(open) {
  59317. var _$props6 = this.$props,
  59318. multiple = _$props6.multiple,
  59319. treeCheckable = _$props6.treeCheckable;
  59320. var _searchValue = this.$data._searchValue;
  59321. // When set open success and single mode,
  59322. // we will reset the input content.
  59323. if (open && !multiple && !treeCheckable && _searchValue) {
  59324. this.setUncontrolledState({
  59325. _searchValue: '',
  59326. _filteredTreeNodes: null
  59327. });
  59328. }
  59329. this.setOpenState(open, true);
  59330. },
  59331. onSearchInputChange: function onSearchInputChange(event) {
  59332. var value = event.target.value;
  59333. var _$data6 = this.$data,
  59334. treeNodes = _$data6._treeNodes,
  59335. valueEntities = _$data6._valueEntities;
  59336. var _$props7 = this.$props,
  59337. filterTreeNode = _$props7.filterTreeNode,
  59338. treeNodeFilterProp = _$props7.treeNodeFilterProp;
  59339. this.__emit('update:searchValue', value);
  59340. this.__emit('search', value);
  59341. var isSet = false;
  59342. if (!this.isSearchValueControlled()) {
  59343. isSet = this.setUncontrolledState({
  59344. _searchValue: value
  59345. });
  59346. this.setOpenState(true);
  59347. }
  59348. if (isSet) {
  59349. // Do the search logic
  59350. var upperSearchValue = String(value).toUpperCase();
  59351. var filterTreeNodeFn = filterTreeNode;
  59352. if (filterTreeNode === false) {
  59353. filterTreeNodeFn = function filterTreeNodeFn() {
  59354. return true;
  59355. };
  59356. } else if (!filterTreeNodeFn) {
  59357. filterTreeNodeFn = function filterTreeNodeFn(_, node) {
  59358. var nodeValue = String(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(node)[treeNodeFilterProp]).toUpperCase();
  59359. return nodeValue.indexOf(upperSearchValue) !== -1;
  59360. };
  59361. }
  59362. this.setState({
  59363. _filteredTreeNodes: Object(_util__WEBPACK_IMPORTED_MODULE_16__["getFilterTree"])(this.$createElement, treeNodes, value, filterTreeNodeFn, valueEntities, _SelectNode__WEBPACK_IMPORTED_MODULE_17__["default"])
  59364. });
  59365. }
  59366. },
  59367. onSearchInputKeyDown: function onSearchInputKeyDown(event) {
  59368. var _$data7 = this.$data,
  59369. searchValue = _$data7._searchValue,
  59370. valueList = _$data7._valueList;
  59371. var keyCode = event.keyCode;
  59372. if (_util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].BACKSPACE === keyCode && this.isMultiple() && !searchValue && valueList.length) {
  59373. var lastValue = valueList[valueList.length - 1].value;
  59374. this.onMultipleSelectorRemove(event, lastValue);
  59375. }
  59376. },
  59377. onChoiceAnimationLeave: function onChoiceAnimationLeave() {
  59378. var _this4 = this;
  59379. raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
  59380. _this4.forcePopupAlign();
  59381. });
  59382. },
  59383. setPopupRef: function setPopupRef(popup) {
  59384. this.popup = popup;
  59385. },
  59386. /**
  59387. * Only update the value which is not in props
  59388. */
  59389. setUncontrolledState: function setUncontrolledState(state) {
  59390. var needSync = false;
  59391. var newState = {};
  59392. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getOptionProps"])(this);
  59393. Object.keys(state).forEach(function (name) {
  59394. if (name.slice(1) in props) return;
  59395. needSync = true;
  59396. newState[name] = state[name];
  59397. });
  59398. if (needSync) {
  59399. this.setState(newState);
  59400. }
  59401. return needSync;
  59402. },
  59403. // [Legacy] Origin provide `documentClickClose` which triggered by `Trigger`
  59404. // Currently `TreeSelect` align the hide popup logic as `Select` which blur to hide.
  59405. // `documentClickClose` is not accurate anymore. Let's just keep the key word.
  59406. setOpenState: function setOpenState(open) {
  59407. var byTrigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  59408. var dropdownVisibleChange = this.$props.dropdownVisibleChange;
  59409. if (dropdownVisibleChange && dropdownVisibleChange(open, { documentClickClose: !open && byTrigger }) === false) {
  59410. return;
  59411. }
  59412. this.setUncontrolledState({ _open: open });
  59413. },
  59414. // Tree checkable is also a multiple case
  59415. isMultiple: function isMultiple() {
  59416. var _$props8 = this.$props,
  59417. multiple = _$props8.multiple,
  59418. treeCheckable = _$props8.treeCheckable;
  59419. return !!(multiple || treeCheckable);
  59420. },
  59421. isLabelInValue: function isLabelInValue() {
  59422. return Object(_util__WEBPACK_IMPORTED_MODULE_16__["isLabelInValue"])(this.$props);
  59423. },
  59424. // [Legacy] To align with `Select` component,
  59425. // We use `searchValue` instead of `inputValue`
  59426. // but currently still need support that.
  59427. // Add this method the check if is controlled
  59428. isSearchValueControlled: function isSearchValueControlled() {
  59429. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getOptionProps"])(this);
  59430. var inputValue = props.inputValue;
  59431. if ('searchValue' in props) return true;
  59432. return 'inputValue' in props && inputValue !== null;
  59433. },
  59434. forcePopupAlign: function forcePopupAlign() {
  59435. var $trigger = this.selectTriggerRef.current;
  59436. if ($trigger) {
  59437. $trigger.forcePopupAlign();
  59438. }
  59439. },
  59440. delayForcePopupAlign: function delayForcePopupAlign() {
  59441. var _this5 = this;
  59442. // Wait 2 frame to avoid dom update & dom algin in the same time
  59443. // https://github.com/ant-design/ant-design/issues/12031
  59444. raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
  59445. raf__WEBPACK_IMPORTED_MODULE_4___default()(_this5.forcePopupAlign);
  59446. });
  59447. },
  59448. /**
  59449. * 1. Update state valueList.
  59450. * 2. Fire `onChange` event to user.
  59451. */
  59452. triggerChange: function triggerChange(missValueList, valueList) {
  59453. var extraInfo = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  59454. var _$data8 = this.$data,
  59455. valueEntities = _$data8._valueEntities,
  59456. searchValue = _$data8._searchValue,
  59457. prevSelectorValueList = _$data8._selectorValueList;
  59458. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getOptionProps"])(this);
  59459. var disabled = props.disabled,
  59460. treeCheckable = props.treeCheckable,
  59461. treeCheckStrictly = props.treeCheckStrictly;
  59462. if (disabled) return;
  59463. // Trigger
  59464. var extra = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
  59465. // [Legacy] Always return as array contains label & value
  59466. preValue: prevSelectorValueList.map(function (_ref16) {
  59467. var label = _ref16.label,
  59468. value = _ref16.value;
  59469. return { label: label, value: value };
  59470. })
  59471. }, extraInfo);
  59472. // Format value by `treeCheckStrictly`
  59473. var selectorValueList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatSelectorValue"])(valueList, props, valueEntities);
  59474. if (!('value' in props)) {
  59475. var newState = {
  59476. _missValueList: missValueList,
  59477. _valueList: valueList,
  59478. _selectorValueList: selectorValueList
  59479. };
  59480. if (searchValue && treeCheckable && !treeCheckStrictly) {
  59481. newState._searchHalfCheckedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_16__["getHalfCheckedKeys"])(valueList, valueEntities);
  59482. }
  59483. this.setState(newState);
  59484. }
  59485. // Only do the logic when `onChange` function provided
  59486. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getListeners"])(this).change) {
  59487. var connectValueList = void 0;
  59488. // Get value by mode
  59489. if (this.isMultiple()) {
  59490. connectValueList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(missValueList), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(selectorValueList));
  59491. } else {
  59492. connectValueList = selectorValueList.slice(0, 1);
  59493. }
  59494. var labelList = null;
  59495. var returnValue = void 0;
  59496. if (this.isLabelInValue()) {
  59497. returnValue = connectValueList.map(function (_ref17) {
  59498. var label = _ref17.label,
  59499. value = _ref17.value;
  59500. return { label: label, value: value };
  59501. });
  59502. } else {
  59503. labelList = [];
  59504. returnValue = connectValueList.map(function (_ref18) {
  59505. var label = _ref18.label,
  59506. value = _ref18.value;
  59507. labelList.push(label);
  59508. return value;
  59509. });
  59510. }
  59511. if (!this.isMultiple()) {
  59512. returnValue = returnValue[0];
  59513. }
  59514. this.__emit('change', returnValue, labelList, extra);
  59515. }
  59516. },
  59517. focus: function focus() {
  59518. this.selectorRef.current.focus();
  59519. },
  59520. blur: function blur() {
  59521. this.selectorRef.current.blur();
  59522. }
  59523. },
  59524. // ===================== Render =====================
  59525. render: function render() {
  59526. var h = arguments[0];
  59527. var _$data9 = this.$data,
  59528. valueList = _$data9._valueList,
  59529. missValueList = _$data9._missValueList,
  59530. selectorValueList = _$data9._selectorValueList,
  59531. searchHalfCheckedKeys = _$data9._searchHalfCheckedKeys,
  59532. valueEntities = _$data9._valueEntities,
  59533. keyEntities = _$data9._keyEntities,
  59534. searchValue = _$data9._searchValue,
  59535. open = _$data9._open,
  59536. focused = _$data9._focused,
  59537. treeNodes = _$data9._treeNodes,
  59538. filteredTreeNodes = _$data9._filteredTreeNodes;
  59539. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getOptionProps"])(this);
  59540. var prefixCls = props.prefixCls,
  59541. treeExpandedKeys = props.treeExpandedKeys;
  59542. var isMultiple = this.isMultiple();
  59543. var passProps = {
  59544. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
  59545. isMultiple: isMultiple,
  59546. valueList: valueList,
  59547. searchHalfCheckedKeys: searchHalfCheckedKeys,
  59548. selectorValueList: [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(missValueList), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(selectorValueList)),
  59549. valueEntities: valueEntities,
  59550. keyEntities: keyEntities,
  59551. searchValue: searchValue,
  59552. upperSearchValue: (searchValue || '').toUpperCase(), // Perf save
  59553. open: open,
  59554. focused: focused,
  59555. dropdownPrefixCls: prefixCls + '-dropdown',
  59556. ariaId: this.ariaId
  59557. }),
  59558. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getListeners"])(this), {
  59559. choiceAnimationLeave: this.onChoiceAnimationLeave
  59560. }),
  59561. scopedSlots: this.$scopedSlots
  59562. };
  59563. var popupProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["mergeProps"])(passProps, {
  59564. props: {
  59565. treeNodes: treeNodes,
  59566. filteredTreeNodes: filteredTreeNodes,
  59567. // Tree expanded control
  59568. treeExpandedKeys: treeExpandedKeys,
  59569. __propsSymbol__: Symbol()
  59570. },
  59571. on: {
  59572. treeExpanded: this.delayForcePopupAlign
  59573. },
  59574. directives: [{
  59575. name: 'ant-ref',
  59576. value: this.setPopupRef
  59577. }]
  59578. });
  59579. var Popup = isMultiple ? _Popup_MultiplePopup__WEBPACK_IMPORTED_MODULE_13__["default"] : _Popup_SinglePopup__WEBPACK_IMPORTED_MODULE_12__["default"];
  59580. var $popup = h(Popup, popupProps);
  59581. var Selector = isMultiple ? _Selector_MultipleSelector__WEBPACK_IMPORTED_MODULE_11__["default"] : _Selector_SingleSelector__WEBPACK_IMPORTED_MODULE_10__["default"];
  59582. var $selector = h(Selector, babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([passProps, {
  59583. directives: [{
  59584. name: 'ant-ref',
  59585. value: this.selectorRef
  59586. }]
  59587. }]));
  59588. var selectTriggerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["mergeProps"])(passProps, {
  59589. props: {
  59590. popupElement: $popup,
  59591. dropdownVisibleChange: this.onDropdownVisibleChange
  59592. },
  59593. directives: [{
  59594. name: 'ant-ref',
  59595. value: this.selectTriggerRef
  59596. }]
  59597. });
  59598. return h(
  59599. _SelectTrigger__WEBPACK_IMPORTED_MODULE_9__["default"],
  59600. selectTriggerProps,
  59601. [$selector]
  59602. );
  59603. }
  59604. };
  59605. Select.TreeNode = _SelectNode__WEBPACK_IMPORTED_MODULE_17__["default"];
  59606. Select.SHOW_ALL = _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_ALL"];
  59607. Select.SHOW_PARENT = _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_PARENT"];
  59608. Select.SHOW_CHILD = _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_CHILD"];
  59609. // Let warning show correct component name
  59610. Select.name = 'TreeSelect';
  59611. /* harmony default export */ __webpack_exports__["default"] = (Select);
  59612. /***/ }),
  59613. /***/ "./components/vc-tree-select/src/SelectNode.jsx":
  59614. /*!******************************************************!*\
  59615. !*** ./components/vc-tree-select/src/SelectNode.jsx ***!
  59616. \******************************************************/
  59617. /*! exports provided: default */
  59618. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59619. "use strict";
  59620. __webpack_require__.r(__webpack_exports__);
  59621. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  59622. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  59623. /* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vc-tree */ "./components/vc-tree/index.js");
  59624. /* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_vc_tree__WEBPACK_IMPORTED_MODULE_1__);
  59625. /**
  59626. * SelectNode wrapped the tree node.
  59627. * Let's use SelectNode instead of TreeNode
  59628. * since TreeNode is so confuse here.
  59629. */
  59630. /* harmony default export */ __webpack_exports__["default"] = ({
  59631. name: 'SelectNode',
  59632. functional: true,
  59633. isTreeNode: true,
  59634. props: _vc_tree__WEBPACK_IMPORTED_MODULE_1__["TreeNode"].props,
  59635. render: function render(h, context) {
  59636. var props = context.props,
  59637. slots = context.slots,
  59638. listeners = context.listeners,
  59639. data = context.data,
  59640. scopedSlots = context.scopedSlots;
  59641. var $slots = slots() || {};
  59642. var children = $slots['default'];
  59643. var slotsKey = Object.keys($slots);
  59644. var scopedSlotsTemp = {}; // for vue 2.5.x
  59645. slotsKey.forEach(function (name) {
  59646. scopedSlotsTemp[name] = function () {
  59647. return $slots[name];
  59648. };
  59649. });
  59650. var treeNodeProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, data, {
  59651. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, data.nativeOn),
  59652. props: props,
  59653. scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, scopedSlotsTemp, scopedSlots)
  59654. });
  59655. return h(
  59656. _vc_tree__WEBPACK_IMPORTED_MODULE_1__["TreeNode"],
  59657. treeNodeProps,
  59658. [children]
  59659. );
  59660. }
  59661. });
  59662. /***/ }),
  59663. /***/ "./components/vc-tree-select/src/SelectTrigger.jsx":
  59664. /*!*********************************************************!*\
  59665. !*** ./components/vc-tree-select/src/SelectTrigger.jsx ***!
  59666. \*********************************************************/
  59667. /*! exports provided: default */
  59668. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59669. "use strict";
  59670. __webpack_require__.r(__webpack_exports__);
  59671. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  59672. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  59673. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  59674. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  59675. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  59676. /* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../vc-trigger */ "./components/vc-trigger/index.js");
  59677. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util */ "./components/vc-tree-select/src/util.js");
  59678. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  59679. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
  59680. var BUILT_IN_PLACEMENTS = {
  59681. bottomLeft: {
  59682. points: ['tl', 'bl'],
  59683. offset: [0, 4],
  59684. overflow: {
  59685. adjustX: 0,
  59686. adjustY: 1
  59687. },
  59688. ignoreShake: true
  59689. },
  59690. topLeft: {
  59691. points: ['bl', 'tl'],
  59692. offset: [0, -4],
  59693. overflow: {
  59694. adjustX: 0,
  59695. adjustY: 1
  59696. },
  59697. ignoreShake: true
  59698. }
  59699. };
  59700. var SelectTrigger = {
  59701. name: 'SelectTrigger',
  59702. props: {
  59703. // Pass by outside user props
  59704. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  59705. showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  59706. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  59707. dropdownPopupAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  59708. dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  59709. dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  59710. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  59711. animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  59712. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  59713. dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  59714. // Pass by Select
  59715. isMultiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  59716. dropdownPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  59717. dropdownVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  59718. popupElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].node,
  59719. open: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
  59720. },
  59721. created: function created() {
  59722. this.triggerRef = Object(_util__WEBPACK_IMPORTED_MODULE_4__["createRef"])();
  59723. },
  59724. methods: {
  59725. getDropdownTransitionName: function getDropdownTransitionName() {
  59726. var _$props = this.$props,
  59727. transitionName = _$props.transitionName,
  59728. animation = _$props.animation,
  59729. dropdownPrefixCls = _$props.dropdownPrefixCls;
  59730. if (!transitionName && animation) {
  59731. return dropdownPrefixCls + '-' + animation;
  59732. }
  59733. return transitionName;
  59734. },
  59735. forcePopupAlign: function forcePopupAlign() {
  59736. var $trigger = this.triggerRef.current;
  59737. if ($trigger) {
  59738. $trigger.forcePopupAlign();
  59739. }
  59740. }
  59741. },
  59742. render: function render() {
  59743. var _classNames;
  59744. var h = arguments[0];
  59745. var _$props2 = this.$props,
  59746. disabled = _$props2.disabled,
  59747. isMultiple = _$props2.isMultiple,
  59748. dropdownPopupAlign = _$props2.dropdownPopupAlign,
  59749. dropdownMatchSelectWidth = _$props2.dropdownMatchSelectWidth,
  59750. dropdownClassName = _$props2.dropdownClassName,
  59751. dropdownStyle = _$props2.dropdownStyle,
  59752. dropdownVisibleChange = _$props2.dropdownVisibleChange,
  59753. getPopupContainer = _$props2.getPopupContainer,
  59754. dropdownPrefixCls = _$props2.dropdownPrefixCls,
  59755. popupElement = _$props2.popupElement,
  59756. open = _$props2.open;
  59757. // TODO: [Legacy] Use new action when trigger fixed: https://github.com/react-component/trigger/pull/86
  59758. // When false do nothing with the width
  59759. // ref: https://github.com/ant-design/ant-design/issues/10927
  59760. var stretch = void 0;
  59761. if (dropdownMatchSelectWidth !== false) {
  59762. stretch = dropdownMatchSelectWidth ? 'width' : 'minWidth';
  59763. }
  59764. return h(
  59765. _vc_trigger__WEBPACK_IMPORTED_MODULE_3__["default"],
  59766. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  59767. directives: [{
  59768. name: 'ant-ref',
  59769. value: this.triggerRef
  59770. }]
  59771. }, {
  59772. attrs: {
  59773. action: disabled ? [] : ['click'],
  59774. popupPlacement: 'bottomLeft',
  59775. builtinPlacements: BUILT_IN_PLACEMENTS,
  59776. popupAlign: dropdownPopupAlign,
  59777. prefixCls: dropdownPrefixCls,
  59778. popupTransitionName: this.getDropdownTransitionName(),
  59779. popup: popupElement,
  59780. popupVisible: open,
  59781. getPopupContainer: getPopupContainer,
  59782. stretch: stretch,
  59783. popupClassName: classnames__WEBPACK_IMPORTED_MODULE_5___default()(dropdownClassName, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, dropdownPrefixCls + '--multiple', isMultiple), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, dropdownPrefixCls + '--single', !isMultiple), _classNames)),
  59784. popupStyle: dropdownStyle
  59785. },
  59786. on: {
  59787. 'popupVisibleChange': dropdownVisibleChange
  59788. }
  59789. }]),
  59790. [this.$slots['default']]
  59791. );
  59792. }
  59793. };
  59794. /* harmony default export */ __webpack_exports__["default"] = (SelectTrigger);
  59795. /***/ }),
  59796. /***/ "./components/vc-tree-select/src/Selector/MultipleSelector/Selection.jsx":
  59797. /*!*******************************************************************************!*\
  59798. !*** ./components/vc-tree-select/src/Selector/MultipleSelector/Selection.jsx ***!
  59799. \*******************************************************************************/
  59800. /*! exports provided: default */
  59801. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59802. "use strict";
  59803. __webpack_require__.r(__webpack_exports__);
  59804. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  59805. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  59806. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  59807. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util */ "./components/vc-tree-select/src/util.js");
  59808. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../_util/props-util */ "./components/_util/props-util.js");
  59809. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  59810. var Selection = {
  59811. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
  59812. props: {
  59813. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  59814. maxTagTextLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
  59815. // onRemove: PropTypes.func,
  59816. label: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
  59817. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
  59818. removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
  59819. },
  59820. methods: {
  59821. onRemove: function onRemove(event) {
  59822. var value = this.$props.value;
  59823. this.__emit('remove', event, value);
  59824. event.stopPropagation();
  59825. }
  59826. },
  59827. render: function render() {
  59828. var h = arguments[0];
  59829. var _$props = this.$props,
  59830. prefixCls = _$props.prefixCls,
  59831. maxTagTextLength = _$props.maxTagTextLength,
  59832. label = _$props.label,
  59833. value = _$props.value;
  59834. var content = label || value;
  59835. if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) {
  59836. content = content.slice(0, maxTagTextLength) + '...';
  59837. }
  59838. return h(
  59839. 'li',
  59840. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  59841. style: _util__WEBPACK_IMPORTED_MODULE_2__["UNSELECTABLE_STYLE"]
  59842. }, { attrs: _util__WEBPACK_IMPORTED_MODULE_2__["UNSELECTABLE_ATTRIBUTE"] }, {
  59843. attrs: {
  59844. role: 'menuitem',
  59845. title: Object(_util__WEBPACK_IMPORTED_MODULE_2__["toTitle"])(label)
  59846. },
  59847. 'class': prefixCls + '-selection__choice' }]),
  59848. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this).remove && h(
  59849. 'span',
  59850. { 'class': prefixCls + '-selection__choice__remove', on: {
  59851. 'click': this.onRemove
  59852. }
  59853. },
  59854. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'removeIcon')]
  59855. ), h(
  59856. 'span',
  59857. { 'class': prefixCls + '-selection__choice__content' },
  59858. [content]
  59859. )]
  59860. );
  59861. }
  59862. };
  59863. /* harmony default export */ __webpack_exports__["default"] = (Selection);
  59864. /***/ }),
  59865. /***/ "./components/vc-tree-select/src/Selector/MultipleSelector/index.jsx":
  59866. /*!***************************************************************************!*\
  59867. !*** ./components/vc-tree-select/src/Selector/MultipleSelector/index.jsx ***!
  59868. \***************************************************************************/
  59869. /*! exports provided: default */
  59870. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  59871. "use strict";
  59872. __webpack_require__.r(__webpack_exports__);
  59873. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  59874. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  59875. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  59876. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
  59877. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  59878. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  59879. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../_util/vue-types */ "./components/_util/vue-types/index.js");
  59880. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ "./components/vc-tree-select/src/util.js");
  59881. /* harmony import */ var _Base_BaseSelector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Base/BaseSelector */ "./components/vc-tree-select/src/Base/BaseSelector.jsx");
  59882. /* harmony import */ var _SearchInput__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../SearchInput */ "./components/vc-tree-select/src/SearchInput.jsx");
  59883. /* harmony import */ var _Selection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Selection */ "./components/vc-tree-select/src/Selector/MultipleSelector/Selection.jsx");
  59884. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../_util/props-util */ "./components/_util/props-util.js");
  59885. /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
  59886. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  59887. var TREE_SELECT_EMPTY_VALUE_KEY = 'RC_TREE_SELECT_EMPTY_VALUE_KEY';
  59888. var Selector = Object(_Base_BaseSelector__WEBPACK_IMPORTED_MODULE_5__["default"])('multiple');
  59889. // export const multipleSelectorContextTypes = {
  59890. // onMultipleSelectorRemove: PropTypes.func.isRequired,
  59891. // }
  59892. var MultipleSelector = {
  59893. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__["default"]],
  59894. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_Base_BaseSelector__WEBPACK_IMPORTED_MODULE_5__["selectorPropTypes"])(), _SearchInput__WEBPACK_IMPORTED_MODULE_6__["default"].props, {
  59895. selectorValueList: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  59896. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  59897. searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  59898. labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  59899. maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  59900. maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
  59901. // onChoiceAnimationLeave: PropTypes.func,
  59902. }),
  59903. inject: {
  59904. vcTreeSelect: { 'default': function _default() {
  59905. return {};
  59906. } }
  59907. },
  59908. created: function created() {
  59909. this.inputRef = Object(_util__WEBPACK_IMPORTED_MODULE_4__["createRef"])();
  59910. },
  59911. methods: {
  59912. onPlaceholderClick: function onPlaceholderClick() {
  59913. this.inputRef.current.focus();
  59914. },
  59915. focus: function focus() {
  59916. this.inputRef.current.focus();
  59917. },
  59918. blur: function blur() {
  59919. this.inputRef.current.blur();
  59920. },
  59921. _renderPlaceholder: function _renderPlaceholder() {
  59922. var h = this.$createElement;
  59923. var _$props = this.$props,
  59924. prefixCls = _$props.prefixCls,
  59925. placeholder = _$props.placeholder,
  59926. searchPlaceholder = _$props.searchPlaceholder,
  59927. searchValue = _$props.searchValue,
  59928. selectorValueList = _$props.selectorValueList;
  59929. var currentPlaceholder = placeholder || searchPlaceholder;
  59930. if (!currentPlaceholder) return null;
  59931. var hidden = searchValue || selectorValueList.length;
  59932. // [Legacy] Not remove the placeholder
  59933. return h(
  59934. 'span',
  59935. {
  59936. style: {
  59937. display: hidden ? 'none' : 'block'
  59938. },
  59939. on: {
  59940. 'click': this.onPlaceholderClick
  59941. },
  59942. 'class': prefixCls + '-search__field__placeholder'
  59943. },
  59944. [currentPlaceholder]
  59945. );
  59946. },
  59947. onChoiceAnimationLeave: function onChoiceAnimationLeave() {
  59948. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  59949. args[_key] = arguments[_key];
  59950. }
  59951. this.__emit.apply(this, ['choiceAnimationLeave'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
  59952. },
  59953. renderSelection: function renderSelection() {
  59954. var _this = this;
  59955. var h = this.$createElement;
  59956. var _$props2 = this.$props,
  59957. selectorValueList = _$props2.selectorValueList,
  59958. choiceTransitionName = _$props2.choiceTransitionName,
  59959. prefixCls = _$props2.prefixCls,
  59960. labelInValue = _$props2.labelInValue,
  59961. maxTagCount = _$props2.maxTagCount;
  59962. var onMultipleSelectorRemove = this.vcTreeSelect.onMultipleSelectorRemove,
  59963. $slots = this.$slots;
  59964. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this);
  59965. // Check if `maxTagCount` is set
  59966. var myValueList = selectorValueList;
  59967. if (maxTagCount >= 0) {
  59968. myValueList = selectorValueList.slice(0, maxTagCount);
  59969. }
  59970. // Selector node list
  59971. var selectedValueNodes = myValueList.map(function (_ref) {
  59972. var label = _ref.label,
  59973. value = _ref.value;
  59974. return h(
  59975. _Selection__WEBPACK_IMPORTED_MODULE_7__["default"],
  59976. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  59977. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _this.$props, {
  59978. label: label,
  59979. value: value
  59980. }),
  59981. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, listeners, { remove: onMultipleSelectorRemove })
  59982. }, {
  59983. key: value || TREE_SELECT_EMPTY_VALUE_KEY
  59984. }]),
  59985. [$slots['default']]
  59986. );
  59987. });
  59988. // Rest node count
  59989. if (maxTagCount >= 0 && maxTagCount < selectorValueList.length) {
  59990. var content = '+ ' + (selectorValueList.length - maxTagCount) + ' ...';
  59991. var maxTagPlaceholder = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'maxTagPlaceholder', {}, false);
  59992. if (typeof maxTagPlaceholder === 'string') {
  59993. content = maxTagPlaceholder;
  59994. } else if (typeof maxTagPlaceholder === 'function') {
  59995. var restValueList = selectorValueList.slice(maxTagCount);
  59996. content = maxTagPlaceholder(labelInValue ? restValueList : restValueList.map(function (_ref2) {
  59997. var value = _ref2.value;
  59998. return value;
  59999. }));
  60000. }
  60001. var restNodeSelect = h(
  60002. _Selection__WEBPACK_IMPORTED_MODULE_7__["default"],
  60003. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
  60004. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, {
  60005. label: content,
  60006. value: null
  60007. }),
  60008. on: listeners
  60009. }, {
  60010. key: 'rc-tree-select-internal-max-tag-counter'
  60011. }]),
  60012. [$slots['default']]
  60013. );
  60014. selectedValueNodes.push(restNodeSelect);
  60015. }
  60016. selectedValueNodes.push(h(
  60017. 'li',
  60018. { 'class': prefixCls + '-search ' + prefixCls + '-search--inline', key: '__input' },
  60019. [h(
  60020. _SearchInput__WEBPACK_IMPORTED_MODULE_6__["default"],
  60021. {
  60022. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, {
  60023. needAlign: true
  60024. }),
  60025. on: listeners,
  60026. directives: [{
  60027. name: 'ant-ref',
  60028. value: this.inputRef
  60029. }]
  60030. },
  60031. [$slots['default']]
  60032. )]
  60033. ));
  60034. var className = prefixCls + '-selection__rendered';
  60035. if (choiceTransitionName) {
  60036. var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_9__["default"])(choiceTransitionName, {
  60037. tag: 'ul',
  60038. afterLeave: this.onChoiceAnimationLeave
  60039. });
  60040. return h(
  60041. 'transition-group',
  60042. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': className }, transitionProps]),
  60043. [selectedValueNodes]
  60044. );
  60045. }
  60046. return h(
  60047. 'ul',
  60048. { 'class': className, attrs: { role: 'menubar' }
  60049. },
  60050. [selectedValueNodes]
  60051. );
  60052. }
  60053. },
  60054. render: function render() {
  60055. var h = arguments[0];
  60056. var $slots = this.$slots;
  60057. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this);
  60058. return h(
  60059. Selector,
  60060. {
  60061. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, {
  60062. tabIndex: -1,
  60063. showArrow: false,
  60064. renderSelection: this.renderSelection,
  60065. renderPlaceholder: this._renderPlaceholder
  60066. }),
  60067. on: listeners
  60068. },
  60069. [$slots['default']]
  60070. );
  60071. }
  60072. };
  60073. /* harmony default export */ __webpack_exports__["default"] = (MultipleSelector);
  60074. /***/ }),
  60075. /***/ "./components/vc-tree-select/src/Selector/SingleSelector.jsx":
  60076. /*!*******************************************************************!*\
  60077. !*** ./components/vc-tree-select/src/Selector/SingleSelector.jsx ***!
  60078. \*******************************************************************/
  60079. /*! exports provided: default */
  60080. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60081. "use strict";
  60082. __webpack_require__.r(__webpack_exports__);
  60083. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  60084. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  60085. /* harmony import */ var _Base_BaseSelector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Base/BaseSelector */ "./components/vc-tree-select/src/Base/BaseSelector.jsx");
  60086. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./components/vc-tree-select/src/util.js");
  60087. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
  60088. var Selector = Object(_Base_BaseSelector__WEBPACK_IMPORTED_MODULE_1__["default"])('single');
  60089. var SingleSelector = {
  60090. name: 'SingleSelector',
  60091. props: Object(_Base_BaseSelector__WEBPACK_IMPORTED_MODULE_1__["selectorPropTypes"])(),
  60092. created: function created() {
  60093. this.selectorRef = Object(_util__WEBPACK_IMPORTED_MODULE_2__["createRef"])();
  60094. },
  60095. methods: {
  60096. focus: function focus() {
  60097. this.selectorRef.current.focus();
  60098. },
  60099. blur: function blur() {
  60100. this.selectorRef.current.blur();
  60101. },
  60102. renderSelection: function renderSelection() {
  60103. var h = this.$createElement;
  60104. var _$props = this.$props,
  60105. selectorValueList = _$props.selectorValueList,
  60106. placeholder = _$props.placeholder,
  60107. prefixCls = _$props.prefixCls;
  60108. var innerNode = void 0;
  60109. if (selectorValueList.length) {
  60110. var _selectorValueList$ = selectorValueList[0],
  60111. label = _selectorValueList$.label,
  60112. value = _selectorValueList$.value;
  60113. innerNode = h(
  60114. 'span',
  60115. { key: 'value', attrs: { title: Object(_util__WEBPACK_IMPORTED_MODULE_2__["toTitle"])(label) },
  60116. 'class': prefixCls + '-selection-selected-value' },
  60117. [label || value]
  60118. );
  60119. } else {
  60120. innerNode = h(
  60121. 'span',
  60122. { key: 'placeholder', 'class': prefixCls + '-selection__placeholder' },
  60123. [placeholder]
  60124. );
  60125. }
  60126. return h(
  60127. 'span',
  60128. { 'class': prefixCls + '-selection__rendered' },
  60129. [innerNode]
  60130. );
  60131. }
  60132. },
  60133. render: function render() {
  60134. var h = arguments[0];
  60135. var props = {
  60136. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this), {
  60137. renderSelection: this.renderSelection
  60138. }),
  60139. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this),
  60140. directives: [{
  60141. name: 'ant-ref',
  60142. value: this.selectorRef
  60143. }]
  60144. };
  60145. return h(Selector, props);
  60146. }
  60147. };
  60148. /* harmony default export */ __webpack_exports__["default"] = (SingleSelector);
  60149. /***/ }),
  60150. /***/ "./components/vc-tree-select/src/index.js":
  60151. /*!************************************************!*\
  60152. !*** ./components/vc-tree-select/src/index.js ***!
  60153. \************************************************/
  60154. /*! exports provided: SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeNode, default */
  60155. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60156. "use strict";
  60157. __webpack_require__.r(__webpack_exports__);
  60158. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeNode", function() { return TreeNode; });
  60159. /* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Select */ "./components/vc-tree-select/src/Select.jsx");
  60160. /* harmony import */ var _SelectNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectNode */ "./components/vc-tree-select/src/SelectNode.jsx");
  60161. /* harmony import */ var _strategies__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./strategies */ "./components/vc-tree-select/src/strategies.js");
  60162. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_ALL", function() { return _strategies__WEBPACK_IMPORTED_MODULE_2__["SHOW_ALL"]; });
  60163. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_CHILD", function() { return _strategies__WEBPACK_IMPORTED_MODULE_2__["SHOW_CHILD"]; });
  60164. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_PARENT", function() { return _strategies__WEBPACK_IMPORTED_MODULE_2__["SHOW_PARENT"]; });
  60165. var TreeNode = _SelectNode__WEBPACK_IMPORTED_MODULE_1__["default"];
  60166. /* harmony default export */ __webpack_exports__["default"] = (_Select__WEBPACK_IMPORTED_MODULE_0__["default"]);
  60167. /***/ }),
  60168. /***/ "./components/vc-tree-select/src/strategies.js":
  60169. /*!*****************************************************!*\
  60170. !*** ./components/vc-tree-select/src/strategies.js ***!
  60171. \*****************************************************/
  60172. /*! exports provided: SHOW_ALL, SHOW_PARENT, SHOW_CHILD */
  60173. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60174. "use strict";
  60175. __webpack_require__.r(__webpack_exports__);
  60176. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHOW_ALL", function() { return SHOW_ALL; });
  60177. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHOW_PARENT", function() { return SHOW_PARENT; });
  60178. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHOW_CHILD", function() { return SHOW_CHILD; });
  60179. var SHOW_ALL = 'SHOW_ALL';
  60180. var SHOW_PARENT = 'SHOW_PARENT';
  60181. var SHOW_CHILD = 'SHOW_CHILD';
  60182. /***/ }),
  60183. /***/ "./components/vc-tree-select/src/util.js":
  60184. /*!***********************************************!*\
  60185. !*** ./components/vc-tree-select/src/util.js ***!
  60186. \***********************************************/
  60187. /*! exports provided: findPopupContainer, toTitle, toArray, createRef, UNSELECTABLE_STYLE, UNSELECTABLE_ATTRIBUTE, flatToHierarchy, resetAriaId, generateAriaId, isLabelInValue, parseSimpleTreeData, isPosRelated, cleanEntity, getFilterTree, formatInternalValue, getLabel, formatSelectorValue, convertDataToTree, convertTreeToEntities, getHalfCheckedKeys, conductCheck */
  60188. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60189. "use strict";
  60190. __webpack_require__.r(__webpack_exports__);
  60191. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findPopupContainer", function() { return findPopupContainer; });
  60192. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toTitle", function() { return toTitle; });
  60193. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; });
  60194. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createRef", function() { return createRef; });
  60195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSELECTABLE_STYLE", function() { return UNSELECTABLE_STYLE; });
  60196. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSELECTABLE_ATTRIBUTE", function() { return UNSELECTABLE_ATTRIBUTE; });
  60197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flatToHierarchy", function() { return flatToHierarchy; });
  60198. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetAriaId", function() { return resetAriaId; });
  60199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateAriaId", function() { return generateAriaId; });
  60200. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isLabelInValue", function() { return isLabelInValue; });
  60201. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseSimpleTreeData", function() { return parseSimpleTreeData; });
  60202. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPosRelated", function() { return isPosRelated; });
  60203. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cleanEntity", function() { return cleanEntity; });
  60204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFilterTree", function() { return getFilterTree; });
  60205. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatInternalValue", function() { return formatInternalValue; });
  60206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLabel", function() { return getLabel; });
  60207. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatSelectorValue", function() { return formatSelectorValue; });
  60208. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertDataToTree", function() { return convertDataToTree; });
  60209. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertTreeToEntities", function() { return convertTreeToEntities; });
  60210. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHalfCheckedKeys", function() { return getHalfCheckedKeys; });
  60211. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conductCheck", function() { return conductCheck; });
  60212. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  60213. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  60214. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  60215. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__);
  60216. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  60217. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  60218. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
  60219. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_3__);
  60220. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  60221. /* harmony import */ var _vc_tree_src_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../vc-tree/src/util */ "./components/vc-tree/src/util.js");
  60222. /* harmony import */ var _vc_util_Dom_class__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../vc-util/Dom/class */ "./components/vc-util/Dom/class.js");
  60223. /* harmony import */ var _strategies__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./strategies */ "./components/vc-tree-select/src/strategies.js");
  60224. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  60225. var warnDeprecatedLabel = false;
  60226. // =================== DOM =====================
  60227. function findPopupContainer(node, prefixClass) {
  60228. var current = node;
  60229. while (current) {
  60230. if (Object(_vc_util_Dom_class__WEBPACK_IMPORTED_MODULE_6__["hasClass"])(current, prefixClass)) {
  60231. return current;
  60232. }
  60233. current = current.parentNode;
  60234. }
  60235. return null;
  60236. }
  60237. // =================== MISC ====================
  60238. function toTitle(title) {
  60239. if (typeof title === 'string') {
  60240. return title;
  60241. }
  60242. return null;
  60243. }
  60244. function toArray(data) {
  60245. if (data === undefined || data === null) return [];
  60246. return Array.isArray(data) ? data : [data];
  60247. }
  60248. function createRef() {
  60249. var func = function setRef(node) {
  60250. func.current = node;
  60251. };
  60252. return func;
  60253. }
  60254. // =============== Legacy ===============
  60255. var UNSELECTABLE_STYLE = {
  60256. userSelect: 'none',
  60257. WebkitUserSelect: 'none'
  60258. };
  60259. var UNSELECTABLE_ATTRIBUTE = {
  60260. unselectable: 'unselectable'
  60261. };
  60262. /**
  60263. * Convert position list to hierarchy structure.
  60264. * This is little hack since use '-' to split the position.
  60265. */
  60266. function flatToHierarchy(positionList) {
  60267. if (!positionList.length) {
  60268. return [];
  60269. }
  60270. var entrances = {};
  60271. // Prepare the position map
  60272. var posMap = {};
  60273. var parsedList = positionList.slice().map(function (entity) {
  60274. var clone = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, entity, {
  60275. fields: entity.pos.split('-')
  60276. });
  60277. delete clone.children;
  60278. return clone;
  60279. });
  60280. parsedList.forEach(function (entity) {
  60281. posMap[entity.pos] = entity;
  60282. });
  60283. parsedList.sort(function (a, b) {
  60284. return a.fields.length - b.fields.length;
  60285. });
  60286. // Create the hierarchy
  60287. parsedList.forEach(function (entity) {
  60288. var parentPos = entity.fields.slice(0, -1).join('-');
  60289. var parentEntity = posMap[parentPos];
  60290. if (!parentEntity) {
  60291. entrances[entity.pos] = entity;
  60292. } else {
  60293. parentEntity.children = parentEntity.children || [];
  60294. parentEntity.children.push(entity);
  60295. }
  60296. // Some time position list provide `key`, we don't need it
  60297. delete entity.key;
  60298. delete entity.fields;
  60299. });
  60300. return Object.keys(entrances).map(function (key) {
  60301. return entrances[key];
  60302. });
  60303. }
  60304. // =============== Accessibility ===============
  60305. var ariaId = 0;
  60306. function resetAriaId() {
  60307. ariaId = 0;
  60308. }
  60309. function generateAriaId(prefix) {
  60310. ariaId += 1;
  60311. return prefix + '_' + ariaId;
  60312. }
  60313. function isLabelInValue(props) {
  60314. var treeCheckable = props.treeCheckable,
  60315. treeCheckStrictly = props.treeCheckStrictly,
  60316. labelInValue = props.labelInValue;
  60317. if (treeCheckable && treeCheckStrictly) {
  60318. return true;
  60319. }
  60320. return labelInValue || false;
  60321. }
  60322. // =================== Tree ====================
  60323. function parseSimpleTreeData(treeData, _ref) {
  60324. var id = _ref.id,
  60325. pId = _ref.pId,
  60326. rootPId = _ref.rootPId;
  60327. var keyNodes = {};
  60328. var rootNodeList = [];
  60329. // Fill in the map
  60330. var nodeList = treeData.map(function (node) {
  60331. var clone = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, node);
  60332. var key = clone[id];
  60333. keyNodes[key] = clone;
  60334. clone.key = clone.key || key;
  60335. return clone;
  60336. });
  60337. // Connect tree
  60338. nodeList.forEach(function (node) {
  60339. var parentKey = node[pId];
  60340. var parent = keyNodes[parentKey];
  60341. // Fill parent
  60342. if (parent) {
  60343. parent.children = parent.children || [];
  60344. parent.children.push(node);
  60345. }
  60346. // Fill root tree node
  60347. if (parentKey === rootPId || !parent && rootPId === null) {
  60348. rootNodeList.push(node);
  60349. }
  60350. });
  60351. return rootNodeList;
  60352. }
  60353. /**
  60354. * Detect if position has relation.
  60355. * e.g. 1-2 related with 1-2-3
  60356. * e.g. 1-3-2 related with 1
  60357. * e.g. 1-2 not related with 1-21
  60358. */
  60359. function isPosRelated(pos1, pos2) {
  60360. var fields1 = pos1.split('-');
  60361. var fields2 = pos2.split('-');
  60362. var minLen = Math.min(fields1.length, fields2.length);
  60363. for (var i = 0; i < minLen; i += 1) {
  60364. if (fields1[i] !== fields2[i]) {
  60365. return false;
  60366. }
  60367. }
  60368. return true;
  60369. }
  60370. /**
  60371. * This function is only used on treeNode check (none treeCheckStrictly but has searchInput).
  60372. * We convert entity to { node, pos, children } format.
  60373. * This is legacy bug but we still need to do with it.
  60374. * @param entity
  60375. */
  60376. function cleanEntity(_ref2) {
  60377. var node = _ref2.node,
  60378. pos = _ref2.pos,
  60379. children = _ref2.children;
  60380. var instance = {
  60381. node: node,
  60382. pos: pos
  60383. };
  60384. if (children) {
  60385. instance.children = children.map(cleanEntity);
  60386. }
  60387. return instance;
  60388. }
  60389. /**
  60390. * Get a filtered TreeNode list by provided treeNodes.
  60391. * [Legacy] Since `Tree` use `key` as map but `key` will changed by React,
  60392. * we have to convert `treeNodes > data > treeNodes` to keep the key.
  60393. * Such performance hungry!
  60394. */
  60395. function getFilterTree(h, treeNodes, searchValue, filterFunc, valueEntities, Component) {
  60396. if (!searchValue) {
  60397. return null;
  60398. }
  60399. function mapFilteredNodeToData(node) {
  60400. if (!node || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["isEmptyElement"])(node)) return null;
  60401. var match = false;
  60402. if (filterFunc(searchValue, node)) {
  60403. match = true;
  60404. }
  60405. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getSlots"])(node)['default'];
  60406. children = ((typeof children === 'function' ? children() : children) || []).map(mapFilteredNodeToData).filter(function (n) {
  60407. return n;
  60408. });
  60409. if (children.length || match) {
  60410. return h(
  60411. Component,
  60412. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([node.data, { key: valueEntities[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(node).value].key }]),
  60413. [children]
  60414. );
  60415. }
  60416. return null;
  60417. }
  60418. return treeNodes.map(mapFilteredNodeToData).filter(function (node) {
  60419. return node;
  60420. });
  60421. }
  60422. // =================== Value ===================
  60423. /**
  60424. * Convert value to array format to make logic simplify.
  60425. */
  60426. function formatInternalValue(value, props) {
  60427. var valueList = toArray(value);
  60428. // Parse label in value
  60429. if (isLabelInValue(props)) {
  60430. return valueList.map(function (val) {
  60431. if ((typeof val === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(val)) !== 'object' || !val) {
  60432. return {
  60433. value: '',
  60434. label: ''
  60435. };
  60436. }
  60437. return val;
  60438. });
  60439. }
  60440. return valueList.map(function (val) {
  60441. return {
  60442. value: val
  60443. };
  60444. });
  60445. }
  60446. function getLabel(wrappedValue, entity, treeNodeLabelProp) {
  60447. if (wrappedValue.label) {
  60448. return wrappedValue.label;
  60449. }
  60450. if (entity) {
  60451. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(entity.node);
  60452. if (Object.keys(props).length) {
  60453. return props[treeNodeLabelProp];
  60454. }
  60455. }
  60456. // Since value without entity will be in missValueList.
  60457. // This code will never reached, but we still need this in case.
  60458. return wrappedValue.value;
  60459. }
  60460. /**
  60461. * Convert internal state `valueList` to user needed value list.
  60462. * This will return an array list. You need check if is not multiple when return.
  60463. *
  60464. * `allCheckedNodes` is used for `treeCheckStrictly`
  60465. */
  60466. function formatSelectorValue(valueList, props, valueEntities) {
  60467. var treeNodeLabelProp = props.treeNodeLabelProp,
  60468. treeCheckable = props.treeCheckable,
  60469. treeCheckStrictly = props.treeCheckStrictly,
  60470. showCheckedStrategy = props.showCheckedStrategy;
  60471. // Will hide some value if `showCheckedStrategy` is set
  60472. if (treeCheckable && !treeCheckStrictly) {
  60473. var values = {};
  60474. valueList.forEach(function (wrappedValue) {
  60475. values[wrappedValue.value] = wrappedValue;
  60476. });
  60477. var hierarchyList = flatToHierarchy(valueList.map(function (_ref3) {
  60478. var value = _ref3.value;
  60479. return valueEntities[value];
  60480. }));
  60481. if (showCheckedStrategy === _strategies__WEBPACK_IMPORTED_MODULE_7__["SHOW_PARENT"]) {
  60482. // Only get the parent checked value
  60483. return hierarchyList.map(function (_ref4) {
  60484. var node = _ref4.node;
  60485. var value = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(node).value;
  60486. return {
  60487. label: getLabel(values[value], valueEntities[value], treeNodeLabelProp),
  60488. value: value
  60489. };
  60490. });
  60491. }
  60492. if (showCheckedStrategy === _strategies__WEBPACK_IMPORTED_MODULE_7__["SHOW_CHILD"]) {
  60493. // Only get the children checked value
  60494. var targetValueList = [];
  60495. // Find the leaf children
  60496. var traverse = function traverse(_ref5) {
  60497. var node = _ref5.node,
  60498. children = _ref5.children;
  60499. var value = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(node).value;
  60500. if (!children || children.length === 0) {
  60501. targetValueList.push({
  60502. label: getLabel(values[value], valueEntities[value], treeNodeLabelProp),
  60503. value: value
  60504. });
  60505. return;
  60506. }
  60507. children.forEach(function (entity) {
  60508. traverse(entity);
  60509. });
  60510. };
  60511. hierarchyList.forEach(function (entity) {
  60512. traverse(entity);
  60513. });
  60514. return targetValueList;
  60515. }
  60516. }
  60517. return valueList.map(function (wrappedValue) {
  60518. return {
  60519. label: getLabel(wrappedValue, valueEntities[wrappedValue.value], treeNodeLabelProp),
  60520. value: wrappedValue.value
  60521. };
  60522. });
  60523. }
  60524. /**
  60525. * Use `rc-tree` convertDataToTree to convert treeData to TreeNodes.
  60526. * This will change the label to title value
  60527. */
  60528. function processProps(props) {
  60529. var title = props.title,
  60530. label = props.label,
  60531. value = props.value,
  60532. cls = props['class'],
  60533. style = props.style,
  60534. _props$on = props.on,
  60535. on = _props$on === undefined ? {} : _props$on;
  60536. var key = props.key;
  60537. if (!key && (key === undefined || key === null)) {
  60538. key = value;
  60539. }
  60540. var p = {
  60541. props: Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(props, ['on', 'key', 'class', 'className', 'style']),
  60542. on: on,
  60543. 'class': cls || props.className,
  60544. style: style,
  60545. key: key
  60546. };
  60547. // Warning user not to use deprecated label prop.
  60548. if (label && !title) {
  60549. if (!warnDeprecatedLabel) {
  60550. warning__WEBPACK_IMPORTED_MODULE_3___default()(false, "'label' in treeData is deprecated. Please use 'title' instead.");
  60551. warnDeprecatedLabel = true;
  60552. }
  60553. p.props.title = label;
  60554. }
  60555. return p;
  60556. }
  60557. function convertDataToTree(h, treeData) {
  60558. return Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_5__["convertDataToTree"])(h, treeData, { processProps: processProps });
  60559. }
  60560. /**
  60561. * Use `rc-tree` convertTreeToEntities for entities calculation.
  60562. * We have additional entities of `valueEntities`
  60563. */
  60564. function initWrapper(wrapper) {
  60565. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, wrapper, {
  60566. valueEntities: {}
  60567. });
  60568. }
  60569. function processEntity(entity, wrapper) {
  60570. var value = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(entity.node).value;
  60571. entity.value = value;
  60572. // This should be empty, or will get error message.
  60573. var currentEntity = wrapper.valueEntities[value];
  60574. if (currentEntity) {
  60575. warning__WEBPACK_IMPORTED_MODULE_3___default()(false, 'Conflict! value of node \'' + entity.key + '\' (' + value + ') has already used by node \'' + currentEntity.key + '\'.');
  60576. }
  60577. wrapper.valueEntities[value] = entity;
  60578. }
  60579. function convertTreeToEntities(treeNodes) {
  60580. return Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_5__["convertTreeToEntities"])(treeNodes, {
  60581. initWrapper: initWrapper,
  60582. processEntity: processEntity
  60583. });
  60584. }
  60585. /**
  60586. * https://github.com/ant-design/ant-design/issues/13328
  60587. * We need calculate the half check key when searchValue is set.
  60588. */
  60589. // TODO: This logic may better move to rc-tree
  60590. function getHalfCheckedKeys(valueList, valueEntities) {
  60591. var values = {};
  60592. // Fill checked keys
  60593. valueList.forEach(function (_ref6) {
  60594. var value = _ref6.value;
  60595. values[value] = false;
  60596. });
  60597. // Fill half checked keys
  60598. valueList.forEach(function (_ref7) {
  60599. var value = _ref7.value;
  60600. var current = valueEntities[value];
  60601. while (current && current.parent) {
  60602. var parentValue = current.parent.value;
  60603. if (parentValue in values) break;
  60604. values[parentValue] = true;
  60605. current = current.parent;
  60606. }
  60607. });
  60608. // Get half keys
  60609. return Object.keys(values).filter(function (value) {
  60610. return values[value];
  60611. }).map(function (value) {
  60612. return valueEntities[value].key;
  60613. });
  60614. }
  60615. var conductCheck = _vc_tree_src_util__WEBPACK_IMPORTED_MODULE_5__["conductCheck"];
  60616. /***/ }),
  60617. /***/ "./components/vc-tree/index.js":
  60618. /*!*************************************!*\
  60619. !*** ./components/vc-tree/index.js ***!
  60620. \*************************************/
  60621. /*! no static exports found */
  60622. /***/ (function(module, exports, __webpack_require__) {
  60623. "use strict";
  60624. // based on rc-tree 2.1.3
  60625. module.exports = __webpack_require__(/*! ./src/ */ "./components/vc-tree/src/index.js");
  60626. /***/ }),
  60627. /***/ "./components/vc-tree/src/Tree.jsx":
  60628. /*!*****************************************!*\
  60629. !*** ./components/vc-tree/src/Tree.jsx ***!
  60630. \*****************************************/
  60631. /*! exports provided: Tree, default */
  60632. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  60633. "use strict";
  60634. __webpack_require__.r(__webpack_exports__);
  60635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tree", function() { return Tree; });
  60636. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  60637. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  60638. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  60639. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
  60640. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  60641. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  60642. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  60643. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  60644. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
  60645. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
  60646. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_5__);
  60647. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  60648. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
  60649. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  60650. /* harmony import */ var _util_proxyComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../_util/proxyComponent */ "./components/_util/proxyComponent.jsx");
  60651. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./util */ "./components/vc-tree/src/util.js");
  60652. /**
  60653. * Thought we still use `cloneElement` to pass `key`,
  60654. * other props can pass with context for future refactor.
  60655. */
  60656. function getWatch() {
  60657. var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  60658. var watch = {};
  60659. keys.forEach(function (k) {
  60660. watch[k] = function () {
  60661. this.needSyncKeys[k] = true;
  60662. };
  60663. });
  60664. return watch;
  60665. }
  60666. var Tree = {
  60667. name: 'Tree',
  60668. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
  60669. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])({
  60670. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  60671. tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
  60672. children: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  60673. treeData: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array, // Generate treeNode by children
  60674. showLine: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  60675. showIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  60676. icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func]),
  60677. focusable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  60678. selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  60679. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  60680. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  60681. checkable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool]),
  60682. checkStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  60683. draggable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  60684. defaultExpandParent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  60685. autoExpandParent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  60686. defaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  60687. defaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  60688. expandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  60689. defaultCheckedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  60690. checkedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
  60691. defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  60692. selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  60693. // onClick: PropTypes.func,
  60694. // onDoubleClick: PropTypes.func,
  60695. // onExpand: PropTypes.func,
  60696. // onCheck: PropTypes.func,
  60697. // onSelect: PropTypes.func,
  60698. loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  60699. loadedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
  60700. // onMouseEnter: PropTypes.func,
  60701. // onMouseLeave: PropTypes.func,
  60702. // onRightClick: PropTypes.func,
  60703. // onDragStart: PropTypes.func,
  60704. // onDragEnter: PropTypes.func,
  60705. // onDragOver: PropTypes.func,
  60706. // onDragLeave: PropTypes.func,
  60707. // onDragEnd: PropTypes.func,
  60708. // onDrop: PropTypes.func,
  60709. filterTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  60710. openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  60711. openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
  60712. switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  60713. _propsSymbol: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
  60714. }, {
  60715. prefixCls: 'rc-tree',
  60716. showLine: false,
  60717. showIcon: true,
  60718. selectable: true,
  60719. multiple: false,
  60720. checkable: false,
  60721. disabled: false,
  60722. checkStrictly: false,
  60723. draggable: false,
  60724. defaultExpandParent: true,
  60725. autoExpandParent: false,
  60726. defaultExpandAll: false,
  60727. defaultExpandedKeys: [],
  60728. defaultCheckedKeys: [],
  60729. defaultSelectedKeys: []
  60730. }),
  60731. data: function data() {
  60732. warning__WEBPACK_IMPORTED_MODULE_5___default()(this.$props.__propsSymbol__, 'must pass __propsSymbol__');
  60733. warning__WEBPACK_IMPORTED_MODULE_5___default()(this.$props.children, 'please use children prop replace slots.default');
  60734. this.needSyncKeys = {};
  60735. this.domTreeNodes = {};
  60736. var state = {
  60737. _posEntities: new Map(),
  60738. _keyEntities: new Map(),
  60739. _expandedKeys: [],
  60740. _selectedKeys: [],
  60741. _checkedKeys: [],
  60742. _halfCheckedKeys: [],
  60743. _loadedKeys: [],
  60744. _loadingKeys: [],
  60745. _treeNode: [],
  60746. _prevProps: null,
  60747. _dragOverNodeKey: '',
  60748. _dropPosition: null,
  60749. _dragNodesKeys: []
  60750. };
  60751. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, state, this.getDerivedState(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this), state));
  60752. },
  60753. provide: function provide() {
  60754. return {
  60755. vcTree: this
  60756. };
  60757. },
  60758. watch: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, getWatch(['treeData', 'children', 'expandedKeys', 'autoExpandParent', 'selectedKeys', 'checkedKeys', 'loadedKeys']), {
  60759. __propsSymbol__: function __propsSymbol__() {
  60760. this.setState(this.getDerivedState(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this), this.$data));
  60761. this.needSyncKeys = {};
  60762. }
  60763. }),
  60764. methods: {
  60765. getDerivedState: function getDerivedState(props, prevState) {
  60766. var _prevProps = prevState._prevProps;
  60767. var newState = {
  60768. _prevProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props)
  60769. };
  60770. var self = this;
  60771. function needSync(name) {
  60772. return !_prevProps && name in props || _prevProps && self.needSyncKeys[name];
  60773. }
  60774. // ================== Tree Node ==================
  60775. var treeNode = null;
  60776. // Check if `treeData` or `children` changed and save into the state.
  60777. if (needSync('treeData')) {
  60778. treeNode = Object(_util__WEBPACK_IMPORTED_MODULE_10__["convertDataToTree"])(this.$createElement, props.treeData);
  60779. } else if (needSync('children')) {
  60780. treeNode = props.children;
  60781. }
  60782. // Tree support filter function which will break the tree structure in the vdm.
  60783. // We cache the treeNodes in state so that we can return the treeNode in event trigger.
  60784. if (treeNode) {
  60785. newState._treeNode = treeNode;
  60786. // Calculate the entities data for quick match
  60787. var entitiesMap = Object(_util__WEBPACK_IMPORTED_MODULE_10__["convertTreeToEntities"])(treeNode);
  60788. newState._keyEntities = entitiesMap.keyEntities;
  60789. }
  60790. var keyEntities = newState._keyEntities || prevState._keyEntities;
  60791. // ================ expandedKeys =================
  60792. if (needSync('expandedKeys') || _prevProps && needSync('autoExpandParent')) {
  60793. newState._expandedKeys = props.autoExpandParent || !_prevProps && props.defaultExpandParent ? Object(_util__WEBPACK_IMPORTED_MODULE_10__["conductExpandParent"])(props.expandedKeys, keyEntities) : props.expandedKeys;
  60794. } else if (!_prevProps && props.defaultExpandAll) {
  60795. newState._expandedKeys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(keyEntities.keys()));
  60796. } else if (!_prevProps && props.defaultExpandedKeys) {
  60797. newState._expandedKeys = props.autoExpandParent || props.defaultExpandParent ? Object(_util__WEBPACK_IMPORTED_MODULE_10__["conductExpandParent"])(props.defaultExpandedKeys, keyEntities) : props.defaultExpandedKeys;
  60798. }
  60799. // ================ selectedKeys =================
  60800. if (props.selectable) {
  60801. if (needSync('selectedKeys')) {
  60802. newState._selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["calcSelectedKeys"])(props.selectedKeys, props);
  60803. } else if (!_prevProps && props.defaultSelectedKeys) {
  60804. newState._selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["calcSelectedKeys"])(props.defaultSelectedKeys, props);
  60805. }
  60806. }
  60807. // ================= checkedKeys =================
  60808. if (props.checkable) {
  60809. var checkedKeyEntity = void 0;
  60810. if (needSync('checkedKeys')) {
  60811. checkedKeyEntity = Object(_util__WEBPACK_IMPORTED_MODULE_10__["parseCheckedKeys"])(props.checkedKeys) || {};
  60812. } else if (!_prevProps && props.defaultCheckedKeys) {
  60813. checkedKeyEntity = Object(_util__WEBPACK_IMPORTED_MODULE_10__["parseCheckedKeys"])(props.defaultCheckedKeys) || {};
  60814. } else if (treeNode) {
  60815. // If treeNode changed, we also need check it
  60816. checkedKeyEntity = Object(_util__WEBPACK_IMPORTED_MODULE_10__["parseCheckedKeys"])(props.checkedKeys) || {
  60817. checkedKeys: prevState._checkedKeys,
  60818. halfCheckedKeys: prevState._halfCheckedKeys
  60819. };
  60820. }
  60821. if (checkedKeyEntity) {
  60822. var _checkedKeyEntity = checkedKeyEntity,
  60823. _checkedKeyEntity$che = _checkedKeyEntity.checkedKeys,
  60824. checkedKeys = _checkedKeyEntity$che === undefined ? [] : _checkedKeyEntity$che,
  60825. _checkedKeyEntity$hal = _checkedKeyEntity.halfCheckedKeys,
  60826. halfCheckedKeys = _checkedKeyEntity$hal === undefined ? [] : _checkedKeyEntity$hal;
  60827. if (!props.checkStrictly) {
  60828. var conductKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["conductCheck"])(checkedKeys, true, keyEntities);
  60829. checkedKeys = conductKeys.checkedKeys;
  60830. halfCheckedKeys = conductKeys.halfCheckedKeys;
  60831. }
  60832. newState._checkedKeys = checkedKeys;
  60833. newState._halfCheckedKeys = halfCheckedKeys;
  60834. }
  60835. }
  60836. // ================= loadedKeys ==================
  60837. if (needSync('loadedKeys')) {
  60838. newState._loadedKeys = props.loadedKeys;
  60839. }
  60840. return newState;
  60841. },
  60842. onNodeDragStart: function onNodeDragStart(event, node) {
  60843. var _expandedKeys = this.$data._expandedKeys;
  60844. var eventKey = node.eventKey;
  60845. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getSlots"])(node)['default'];
  60846. this.dragNode = node;
  60847. this.setState({
  60848. _dragNodesKeys: Object(_util__WEBPACK_IMPORTED_MODULE_10__["getDragNodesKeys"])(typeof children === 'function' ? children() : children, node),
  60849. _expandedKeys: Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(_expandedKeys, eventKey)
  60850. });
  60851. this.__emit('dragstart', { event: event, node: node });
  60852. },
  60853. /**
  60854. * [Legacy] Select handler is less small than node,
  60855. * so that this will trigger when drag enter node or select handler.
  60856. * This is a little tricky if customize css without padding.
  60857. * Better for use mouse move event to refresh drag state.
  60858. * But let's just keep it to avoid event trigger logic change.
  60859. */
  60860. onNodeDragEnter: function onNodeDragEnter(event, node) {
  60861. var _this = this;
  60862. var expandedKeys = this.$data._expandedKeys;
  60863. var pos = node.pos,
  60864. eventKey = node.eventKey;
  60865. if (!this.dragNode || !node.$refs.selectHandle) return;
  60866. var dropPosition = Object(_util__WEBPACK_IMPORTED_MODULE_10__["calcDropPosition"])(event, node);
  60867. // Skip if drag node is self
  60868. if (this.dragNode.eventKey === eventKey && dropPosition === 0) {
  60869. this.setState({
  60870. _dragOverNodeKey: '',
  60871. _dropPosition: null
  60872. });
  60873. return;
  60874. }
  60875. // Ref: https://github.com/react-component/tree/issues/132
  60876. // Add timeout to let onDragLevel fire before onDragEnter,
  60877. // so that we can clean drag props for onDragLeave node.
  60878. // Macro task for this:
  60879. // https://html.spec.whatwg.org/multipage/webappapis.html#clean-up-after-running-script
  60880. setTimeout(function () {
  60881. // Update drag over node
  60882. _this.setState({
  60883. _dragOverNodeKey: eventKey,
  60884. _dropPosition: dropPosition
  60885. });
  60886. // Side effect for delay drag
  60887. if (!_this.delayedDragEnterLogic) {
  60888. _this.delayedDragEnterLogic = {};
  60889. }
  60890. Object.keys(_this.delayedDragEnterLogic).forEach(function (key) {
  60891. clearTimeout(_this.delayedDragEnterLogic[key]);
  60892. });
  60893. _this.delayedDragEnterLogic[pos] = setTimeout(function () {
  60894. var newExpandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(expandedKeys, eventKey);
  60895. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(_this, 'expandedKeys')) {
  60896. _this.setState({
  60897. _expandedKeys: newExpandedKeys
  60898. });
  60899. }
  60900. _this.__emit('dragenter', { event: event, node: node, expandedKeys: newExpandedKeys });
  60901. }, 400);
  60902. }, 0);
  60903. },
  60904. onNodeDragOver: function onNodeDragOver(event, node) {
  60905. var eventKey = node.eventKey;
  60906. var _$data = this.$data,
  60907. _dragOverNodeKey = _$data._dragOverNodeKey,
  60908. _dropPosition = _$data._dropPosition;
  60909. // Update drag position
  60910. if (this.dragNode && eventKey === _dragOverNodeKey && node.$refs.selectHandle) {
  60911. var dropPosition = Object(_util__WEBPACK_IMPORTED_MODULE_10__["calcDropPosition"])(event, node);
  60912. if (dropPosition === _dropPosition) return;
  60913. this.setState({
  60914. _dropPosition: dropPosition
  60915. });
  60916. }
  60917. this.__emit('dragover', { event: event, node: node });
  60918. },
  60919. onNodeDragLeave: function onNodeDragLeave(event, node) {
  60920. this.setState({
  60921. _dragOverNodeKey: ''
  60922. });
  60923. this.__emit('dragleave', { event: event, node: node });
  60924. },
  60925. onNodeDragEnd: function onNodeDragEnd(event, node) {
  60926. this.setState({
  60927. _dragOverNodeKey: ''
  60928. });
  60929. this.__emit('dragend', { event: event, node: node });
  60930. this.dragNode = null;
  60931. },
  60932. onNodeDrop: function onNodeDrop(event, node) {
  60933. var _$data2 = this.$data,
  60934. _$data2$_dragNodesKey = _$data2._dragNodesKeys,
  60935. _dragNodesKeys = _$data2$_dragNodesKey === undefined ? [] : _$data2$_dragNodesKey,
  60936. _dropPosition = _$data2._dropPosition;
  60937. var eventKey = node.eventKey,
  60938. pos = node.pos;
  60939. this.setState({
  60940. _dragOverNodeKey: ''
  60941. });
  60942. if (_dragNodesKeys.indexOf(eventKey) !== -1) {
  60943. warning__WEBPACK_IMPORTED_MODULE_5___default()(false, "Can not drop to dragNode(include it's children node)");
  60944. return;
  60945. }
  60946. var posArr = Object(_util__WEBPACK_IMPORTED_MODULE_10__["posToArr"])(pos);
  60947. var dropResult = {
  60948. event: event,
  60949. node: node,
  60950. dragNode: this.dragNode,
  60951. dragNodesKeys: _dragNodesKeys.slice(),
  60952. dropPosition: _dropPosition + Number(posArr[posArr.length - 1]),
  60953. dropToGap: false
  60954. };
  60955. if (_dropPosition !== 0) {
  60956. dropResult.dropToGap = true;
  60957. }
  60958. this.__emit('drop', dropResult);
  60959. this.dragNode = null;
  60960. },
  60961. onNodeClick: function onNodeClick(e, treeNode) {
  60962. this.__emit('click', e, treeNode);
  60963. },
  60964. onNodeDoubleClick: function onNodeDoubleClick(e, treeNode) {
  60965. this.__emit('dblclick', e, treeNode);
  60966. },
  60967. onNodeSelect: function onNodeSelect(e, treeNode) {
  60968. var selectedKeys = this.$data._selectedKeys;
  60969. var keyEntities = this.$data._keyEntities;
  60970. var multiple = this.$props.multiple;
  60971. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(treeNode),
  60972. selected = _getOptionProps.selected,
  60973. eventKey = _getOptionProps.eventKey;
  60974. var targetSelected = !selected;
  60975. // Update selected keys
  60976. if (!targetSelected) {
  60977. selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(selectedKeys, eventKey);
  60978. } else if (!multiple) {
  60979. selectedKeys = [eventKey];
  60980. } else {
  60981. selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(selectedKeys, eventKey);
  60982. }
  60983. // [Legacy] Not found related usage in doc or upper libs
  60984. var selectedNodes = selectedKeys.map(function (key) {
  60985. var entity = keyEntities.get(key);
  60986. if (!entity) return null;
  60987. return entity.node;
  60988. }).filter(function (node) {
  60989. return node;
  60990. });
  60991. this.setUncontrolledState({ _selectedKeys: selectedKeys });
  60992. var eventObj = {
  60993. event: 'select',
  60994. selected: targetSelected,
  60995. node: treeNode,
  60996. selectedNodes: selectedNodes,
  60997. nativeEvent: e
  60998. };
  60999. this.__emit('update:selectedKeys', selectedKeys);
  61000. this.__emit('select', selectedKeys, eventObj);
  61001. },
  61002. onNodeCheck: function onNodeCheck(e, treeNode, checked) {
  61003. var _$data3 = this.$data,
  61004. keyEntities = _$data3._keyEntities,
  61005. oriCheckedKeys = _$data3._checkedKeys,
  61006. oriHalfCheckedKeys = _$data3._halfCheckedKeys;
  61007. var checkStrictly = this.$props.checkStrictly;
  61008. var _getOptionProps2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(treeNode),
  61009. eventKey = _getOptionProps2.eventKey;
  61010. // Prepare trigger arguments
  61011. var checkedObj = void 0;
  61012. var eventObj = {
  61013. event: 'check',
  61014. node: treeNode,
  61015. checked: checked,
  61016. nativeEvent: e
  61017. };
  61018. if (checkStrictly) {
  61019. var checkedKeys = checked ? Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(oriCheckedKeys, eventKey) : Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(oriCheckedKeys, eventKey);
  61020. var halfCheckedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(oriHalfCheckedKeys, eventKey);
  61021. checkedObj = { checked: checkedKeys, halfChecked: halfCheckedKeys };
  61022. eventObj.checkedNodes = checkedKeys.map(function (key) {
  61023. return keyEntities.get(key);
  61024. }).filter(function (entity) {
  61025. return entity;
  61026. }).map(function (entity) {
  61027. return entity.node;
  61028. });
  61029. this.setUncontrolledState({ _checkedKeys: checkedKeys });
  61030. } else {
  61031. var _conductCheck = Object(_util__WEBPACK_IMPORTED_MODULE_10__["conductCheck"])([eventKey], checked, keyEntities, {
  61032. checkedKeys: oriCheckedKeys,
  61033. halfCheckedKeys: oriHalfCheckedKeys
  61034. }),
  61035. _checkedKeys = _conductCheck.checkedKeys,
  61036. _halfCheckedKeys = _conductCheck.halfCheckedKeys;
  61037. checkedObj = _checkedKeys;
  61038. // [Legacy] This is used for `rc-tree-select`
  61039. eventObj.checkedNodes = [];
  61040. eventObj.checkedNodesPositions = [];
  61041. eventObj.halfCheckedKeys = _halfCheckedKeys;
  61042. _checkedKeys.forEach(function (key) {
  61043. var entity = keyEntities.get(key);
  61044. if (!entity) return;
  61045. var node = entity.node,
  61046. pos = entity.pos;
  61047. eventObj.checkedNodes.push(node);
  61048. eventObj.checkedNodesPositions.push({ node: node, pos: pos });
  61049. });
  61050. this.setUncontrolledState({
  61051. _checkedKeys: _checkedKeys,
  61052. _halfCheckedKeys: _halfCheckedKeys
  61053. });
  61054. }
  61055. this.__emit('check', checkedObj, eventObj);
  61056. },
  61057. onNodeLoad: function onNodeLoad(treeNode) {
  61058. var _this2 = this;
  61059. return new Promise(function (resolve) {
  61060. // We need to get the latest state of loading/loaded keys
  61061. _this2.setState(function (_ref) {
  61062. var _ref$_loadedKeys = _ref._loadedKeys,
  61063. loadedKeys = _ref$_loadedKeys === undefined ? [] : _ref$_loadedKeys,
  61064. _ref$_loadingKeys = _ref._loadingKeys,
  61065. loadingKeys = _ref$_loadingKeys === undefined ? [] : _ref$_loadingKeys;
  61066. var loadData = _this2.$props.loadData;
  61067. var _getOptionProps3 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(treeNode),
  61068. eventKey = _getOptionProps3.eventKey;
  61069. if (!loadData || loadedKeys.indexOf(eventKey) !== -1 || loadingKeys.indexOf(eventKey) !== -1) {
  61070. return {};
  61071. }
  61072. // Process load data
  61073. var promise = loadData(treeNode);
  61074. promise.then(function () {
  61075. var _$data4 = _this2.$data,
  61076. currentLoadedKeys = _$data4._loadedKeys,
  61077. currentLoadingKeys = _$data4._loadingKeys;
  61078. var newLoadedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(currentLoadedKeys, eventKey);
  61079. var newLoadingKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(currentLoadingKeys, eventKey);
  61080. // onLoad should trigger before internal setState to avoid `loadData` trigger twice.
  61081. // https://github.com/ant-design/ant-design/issues/12464
  61082. _this2.__emit('load', newLoadedKeys, {
  61083. event: 'load',
  61084. node: treeNode
  61085. });
  61086. _this2.setUncontrolledState({
  61087. _loadedKeys: newLoadedKeys
  61088. });
  61089. _this2.setState({
  61090. _loadingKeys: newLoadingKeys
  61091. });
  61092. resolve();
  61093. });
  61094. return {
  61095. _loadingKeys: Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(loadingKeys, eventKey)
  61096. };
  61097. });
  61098. });
  61099. },
  61100. onNodeExpand: function onNodeExpand(e, treeNode) {
  61101. var _this3 = this;
  61102. var expandedKeys = this.$data._expandedKeys;
  61103. var loadData = this.$props.loadData;
  61104. var _getOptionProps4 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(treeNode),
  61105. eventKey = _getOptionProps4.eventKey,
  61106. expanded = _getOptionProps4.expanded;
  61107. // Update selected keys
  61108. var index = expandedKeys.indexOf(eventKey);
  61109. var targetExpanded = !expanded;
  61110. warning__WEBPACK_IMPORTED_MODULE_5___default()(expanded && index !== -1 || !expanded && index === -1, 'Expand state not sync with index check');
  61111. if (targetExpanded) {
  61112. expandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(expandedKeys, eventKey);
  61113. } else {
  61114. expandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(expandedKeys, eventKey);
  61115. }
  61116. this.setUncontrolledState({ _expandedKeys: expandedKeys });
  61117. this.__emit('expand', expandedKeys, {
  61118. node: treeNode,
  61119. expanded: targetExpanded,
  61120. nativeEvent: e
  61121. });
  61122. this.__emit('update:expandedKeys', expandedKeys);
  61123. // Async Load data
  61124. if (targetExpanded && loadData) {
  61125. var loadPromise = this.onNodeLoad(treeNode);
  61126. return loadPromise ? loadPromise.then(function () {
  61127. // [Legacy] Refresh logic
  61128. _this3.setUncontrolledState({ _expandedKeys: expandedKeys });
  61129. }) : null;
  61130. }
  61131. return null;
  61132. },
  61133. onNodeMouseEnter: function onNodeMouseEnter(event, node) {
  61134. this.__emit('mouseenter', { event: event, node: node });
  61135. },
  61136. onNodeMouseLeave: function onNodeMouseLeave(event, node) {
  61137. this.__emit('mouseleave', { event: event, node: node });
  61138. },
  61139. onNodeContextMenu: function onNodeContextMenu(event, node) {
  61140. event.preventDefault();
  61141. this.__emit('rightClick', { event: event, node: node });
  61142. },
  61143. /**
  61144. * Only update the value which is not in props
  61145. */
  61146. setUncontrolledState: function setUncontrolledState(state) {
  61147. var needSync = false;
  61148. var newState = {};
  61149. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
  61150. Object.keys(state).forEach(function (name) {
  61151. if (name.replace('_', '') in props) return;
  61152. needSync = true;
  61153. newState[name] = state[name];
  61154. });
  61155. if (needSync) {
  61156. this.setState(newState);
  61157. }
  61158. },
  61159. registerTreeNode: function registerTreeNode(key, node) {
  61160. if (node) {
  61161. this.domTreeNodes[key] = node;
  61162. } else {
  61163. delete this.domTreeNodes[key];
  61164. }
  61165. },
  61166. isKeyChecked: function isKeyChecked(key) {
  61167. var _$data$_checkedKeys = this.$data._checkedKeys,
  61168. checkedKeys = _$data$_checkedKeys === undefined ? [] : _$data$_checkedKeys;
  61169. return checkedKeys.indexOf(key) !== -1;
  61170. },
  61171. /**
  61172. * [Legacy] Original logic use `key` as tracking clue.
  61173. * We have to use `cloneElement` to pass `key`.
  61174. */
  61175. renderTreeNode: function renderTreeNode(child, index) {
  61176. var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  61177. var _$data5 = this.$data,
  61178. keyEntities = _$data5._keyEntities,
  61179. _$data5$_expandedKeys = _$data5._expandedKeys,
  61180. expandedKeys = _$data5$_expandedKeys === undefined ? [] : _$data5$_expandedKeys,
  61181. _$data5$_selectedKeys = _$data5._selectedKeys,
  61182. selectedKeys = _$data5$_selectedKeys === undefined ? [] : _$data5$_selectedKeys,
  61183. _$data5$_halfCheckedK = _$data5._halfCheckedKeys,
  61184. halfCheckedKeys = _$data5$_halfCheckedK === undefined ? [] : _$data5$_halfCheckedK,
  61185. _$data5$_loadedKeys = _$data5._loadedKeys,
  61186. loadedKeys = _$data5$_loadedKeys === undefined ? [] : _$data5$_loadedKeys,
  61187. _$data5$_loadingKeys = _$data5._loadingKeys,
  61188. loadingKeys = _$data5$_loadingKeys === undefined ? [] : _$data5$_loadingKeys,
  61189. dragOverNodeKey = _$data5._dragOverNodeKey,
  61190. dropPosition = _$data5._dropPosition;
  61191. var pos = Object(_util__WEBPACK_IMPORTED_MODULE_10__["getPosition"])(level, index);
  61192. var key = child.key;
  61193. if (!key && (key === undefined || key === null)) {
  61194. key = pos;
  61195. }
  61196. if (!keyEntities.get(key)) {
  61197. Object(_util__WEBPACK_IMPORTED_MODULE_10__["warnOnlyTreeNode"])();
  61198. return null;
  61199. }
  61200. return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(child, {
  61201. props: {
  61202. eventKey: key,
  61203. expanded: expandedKeys.indexOf(key) !== -1,
  61204. selected: selectedKeys.indexOf(key) !== -1,
  61205. loaded: loadedKeys.indexOf(key) !== -1,
  61206. loading: loadingKeys.indexOf(key) !== -1,
  61207. checked: this.isKeyChecked(key),
  61208. halfChecked: halfCheckedKeys.indexOf(key) !== -1,
  61209. pos: pos,
  61210. // [Legacy] Drag props
  61211. dragOver: dragOverNodeKey === key && dropPosition === 0,
  61212. dragOverGapTop: dragOverNodeKey === key && dropPosition === -1,
  61213. dragOverGapBottom: dragOverNodeKey === key && dropPosition === 1
  61214. },
  61215. key: key
  61216. });
  61217. }
  61218. },
  61219. render: function render() {
  61220. var _this4 = this;
  61221. var h = arguments[0];
  61222. var treeNode = this.$data._treeNode;
  61223. var _$props = this.$props,
  61224. prefixCls = _$props.prefixCls,
  61225. focusable = _$props.focusable,
  61226. showLine = _$props.showLine,
  61227. _$props$tabIndex = _$props.tabIndex,
  61228. tabIndex = _$props$tabIndex === undefined ? 0 : _$props$tabIndex;
  61229. return h(
  61230. 'ul',
  61231. {
  61232. 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-show-line', showLine)),
  61233. attrs: { role: 'tree',
  61234. unselectable: 'on',
  61235. tabIndex: focusable ? tabIndex : null
  61236. }
  61237. },
  61238. [Object(_util__WEBPACK_IMPORTED_MODULE_10__["mapChildren"])(treeNode, function (node, index) {
  61239. return _this4.renderTreeNode(node, index);
  61240. })]
  61241. );
  61242. }
  61243. };
  61244. /* harmony default export */ __webpack_exports__["default"] = (Object(_util_proxyComponent__WEBPACK_IMPORTED_MODULE_9__["default"])(Tree));
  61245. /***/ }),
  61246. /***/ "./components/vc-tree/src/TreeNode.jsx":
  61247. /*!*********************************************!*\
  61248. !*** ./components/vc-tree/src/TreeNode.jsx ***!
  61249. \*********************************************/
  61250. /*! exports provided: default */
  61251. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61252. "use strict";
  61253. __webpack_require__.r(__webpack_exports__);
  61254. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  61255. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  61256. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  61257. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
  61258. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  61259. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
  61260. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  61261. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  61262. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
  61263. /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./components/vc-tree/src/util.js");
  61264. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  61265. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  61266. /* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
  61267. function noop() {}
  61268. var ICON_OPEN = 'open';
  61269. var ICON_CLOSE = 'close';
  61270. var defaultTitle = '---';
  61271. var TreeNode = {
  61272. name: 'TreeNode',
  61273. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
  61274. __ANT_TREE_NODE: true,
  61275. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])({
  61276. eventKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]), // Pass by parent `cloneElement`
  61277. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  61278. // className: PropTypes.string,
  61279. root: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  61280. // onSelect: PropTypes.func,
  61281. // By parent
  61282. expanded: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61283. selected: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61284. checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61285. loaded: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61286. loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61287. halfChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61288. title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  61289. pos: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  61290. dragOver: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61291. dragOverGapTop: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61292. dragOverGapBottom: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61293. // By user
  61294. isLeaf: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61295. checkable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61296. selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61297. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61298. disableCheckbox: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  61299. icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  61300. dataRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  61301. switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  61302. label: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  61303. value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
  61304. }, {}),
  61305. data: function data() {
  61306. return {
  61307. dragNodeHighlight: false
  61308. };
  61309. },
  61310. inject: {
  61311. vcTree: { 'default': function _default() {
  61312. return {};
  61313. } },
  61314. vcTreeNode: { 'default': function _default() {
  61315. return {};
  61316. } }
  61317. },
  61318. provide: function provide() {
  61319. return {
  61320. vcTreeNode: this
  61321. };
  61322. },
  61323. // Isomorphic needn't load data in server side
  61324. mounted: function mounted() {
  61325. var eventKey = this.eventKey,
  61326. registerTreeNode = this.vcTree.registerTreeNode;
  61327. this.syncLoadData(this.$props);
  61328. registerTreeNode && registerTreeNode(eventKey, this);
  61329. },
  61330. updated: function updated() {
  61331. this.syncLoadData(this.$props);
  61332. },
  61333. beforeDestroy: function beforeDestroy() {
  61334. var eventKey = this.eventKey,
  61335. registerTreeNode = this.vcTree.registerTreeNode;
  61336. registerTreeNode && registerTreeNode(eventKey, null);
  61337. },
  61338. methods: {
  61339. onSelectorClick: function onSelectorClick(e) {
  61340. // Click trigger before select/check operation
  61341. var onNodeClick = this.vcTree.onNodeClick;
  61342. onNodeClick(e, this);
  61343. if (this.isSelectable()) {
  61344. this.onSelect(e);
  61345. } else {
  61346. this.onCheck(e);
  61347. }
  61348. },
  61349. onSelectorDoubleClick: function onSelectorDoubleClick(e) {
  61350. var onNodeDoubleClick = this.vcTree.onNodeDoubleClick;
  61351. onNodeDoubleClick(e, this);
  61352. },
  61353. onSelect: function onSelect(e) {
  61354. if (this.isDisabled()) return;
  61355. var onNodeSelect = this.vcTree.onNodeSelect;
  61356. e.preventDefault();
  61357. onNodeSelect(e, this);
  61358. },
  61359. onCheck: function onCheck(e) {
  61360. if (this.isDisabled()) return;
  61361. var disableCheckbox = this.disableCheckbox,
  61362. checked = this.checked;
  61363. var onNodeCheck = this.vcTree.onNodeCheck;
  61364. if (!this.isCheckable() || disableCheckbox) return;
  61365. e.preventDefault();
  61366. var targetChecked = !checked;
  61367. onNodeCheck(e, this, targetChecked);
  61368. },
  61369. onMouseEnter: function onMouseEnter(e) {
  61370. var onNodeMouseEnter = this.vcTree.onNodeMouseEnter;
  61371. onNodeMouseEnter(e, this);
  61372. },
  61373. onMouseLeave: function onMouseLeave(e) {
  61374. var onNodeMouseLeave = this.vcTree.onNodeMouseLeave;
  61375. onNodeMouseLeave(e, this);
  61376. },
  61377. onContextMenu: function onContextMenu(e) {
  61378. var onNodeContextMenu = this.vcTree.onNodeContextMenu;
  61379. onNodeContextMenu(e, this);
  61380. },
  61381. onDragStart: function onDragStart(e) {
  61382. var onNodeDragStart = this.vcTree.onNodeDragStart;
  61383. e.stopPropagation();
  61384. this.setState({
  61385. dragNodeHighlight: true
  61386. });
  61387. onNodeDragStart(e, this);
  61388. try {
  61389. // ie throw error
  61390. // firefox-need-it
  61391. e.dataTransfer.setData('text/plain', '');
  61392. } catch (error) {
  61393. // empty
  61394. }
  61395. },
  61396. onDragEnter: function onDragEnter(e) {
  61397. var onNodeDragEnter = this.vcTree.onNodeDragEnter;
  61398. e.preventDefault();
  61399. e.stopPropagation();
  61400. onNodeDragEnter(e, this);
  61401. },
  61402. onDragOver: function onDragOver(e) {
  61403. var onNodeDragOver = this.vcTree.onNodeDragOver;
  61404. e.preventDefault();
  61405. e.stopPropagation();
  61406. onNodeDragOver(e, this);
  61407. },
  61408. onDragLeave: function onDragLeave(e) {
  61409. var onNodeDragLeave = this.vcTree.onNodeDragLeave;
  61410. e.stopPropagation();
  61411. onNodeDragLeave(e, this);
  61412. },
  61413. onDragEnd: function onDragEnd(e) {
  61414. var onNodeDragEnd = this.vcTree.onNodeDragEnd;
  61415. e.stopPropagation();
  61416. this.setState({
  61417. dragNodeHighlight: false
  61418. });
  61419. onNodeDragEnd(e, this);
  61420. },
  61421. onDrop: function onDrop(e) {
  61422. var onNodeDrop = this.vcTree.onNodeDrop;
  61423. e.preventDefault();
  61424. e.stopPropagation();
  61425. this.setState({
  61426. dragNodeHighlight: false
  61427. });
  61428. onNodeDrop(e, this);
  61429. },
  61430. // Disabled item still can be switch
  61431. onExpand: function onExpand(e) {
  61432. var onNodeExpand = this.vcTree.onNodeExpand;
  61433. onNodeExpand(e, this);
  61434. },
  61435. getNodeChildren: function getNodeChildren() {
  61436. var children = this.$slots['default'];
  61437. var originList = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(children);
  61438. var targetList = Object(_util__WEBPACK_IMPORTED_MODULE_5__["getNodeChildren"])(originList);
  61439. if (originList.length !== targetList.length) {
  61440. Object(_util__WEBPACK_IMPORTED_MODULE_5__["warnOnlyTreeNode"])();
  61441. }
  61442. return targetList;
  61443. },
  61444. getNodeState: function getNodeState() {
  61445. var expanded = this.expanded;
  61446. if (this.isLeaf2()) {
  61447. return null;
  61448. }
  61449. return expanded ? ICON_OPEN : ICON_CLOSE;
  61450. },
  61451. isLeaf2: function isLeaf2() {
  61452. var isLeaf = this.isLeaf,
  61453. loaded = this.loaded;
  61454. var loadData = this.vcTree.loadData;
  61455. var hasChildren = this.getNodeChildren().length !== 0;
  61456. if (isLeaf === false) {
  61457. return false;
  61458. }
  61459. return isLeaf || !loadData && !hasChildren || loadData && loaded && !hasChildren;
  61460. },
  61461. isDisabled: function isDisabled() {
  61462. var disabled = this.disabled;
  61463. var treeDisabled = this.vcTree.disabled;
  61464. // Follow the logic of Selectable
  61465. if (disabled === false) {
  61466. return false;
  61467. }
  61468. return !!(treeDisabled || disabled);
  61469. },
  61470. isCheckable: function isCheckable() {
  61471. var checkable = this.$props.checkable;
  61472. var treeCheckable = this.vcTree.checkable;
  61473. // Return false if tree or treeNode is not checkable
  61474. if (!treeCheckable || checkable === false) return false;
  61475. return treeCheckable;
  61476. },
  61477. // Load data to avoid default expanded tree without data
  61478. syncLoadData: function syncLoadData(props) {
  61479. var expanded = props.expanded,
  61480. loading = props.loading,
  61481. loaded = props.loaded;
  61482. var _vcTree = this.vcTree,
  61483. loadData = _vcTree.loadData,
  61484. onNodeLoad = _vcTree.onNodeLoad;
  61485. if (loading) return;
  61486. // read from state to avoid loadData at same time
  61487. if (loadData && expanded && !this.isLeaf2()) {
  61488. // We needn't reload data when has children in sync logic
  61489. // It's only needed in node expanded
  61490. var hasChildren = this.getNodeChildren().length !== 0;
  61491. if (!hasChildren && !loaded) {
  61492. onNodeLoad(this);
  61493. }
  61494. }
  61495. },
  61496. isSelectable: function isSelectable() {
  61497. var selectable = this.selectable;
  61498. var treeSelectable = this.vcTree.selectable;
  61499. // Ignore when selectable is undefined or null
  61500. if (typeof selectable === 'boolean') {
  61501. return selectable;
  61502. }
  61503. return treeSelectable;
  61504. },
  61505. // Switcher
  61506. renderSwitcher: function renderSwitcher() {
  61507. var h = this.$createElement;
  61508. var expanded = this.expanded;
  61509. var prefixCls = this.vcTree.prefixCls;
  61510. var switcherIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'switcherIcon', {}, false) || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this.vcTree, 'switcherIcon', {}, false);
  61511. if (this.isLeaf2()) {
  61512. return h(
  61513. 'span',
  61514. {
  61515. key: 'switcher',
  61516. 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-switcher', prefixCls + '-switcher-noop')
  61517. },
  61518. [typeof switcherIcon === 'function' ? switcherIcon(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$props.dataRef, { isLeaf: true })) : switcherIcon]
  61519. );
  61520. }
  61521. var switcherCls = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-switcher', prefixCls + '-switcher_' + (expanded ? ICON_OPEN : ICON_CLOSE));
  61522. return h(
  61523. 'span',
  61524. { key: 'switcher', on: {
  61525. 'click': this.onExpand
  61526. },
  61527. 'class': switcherCls },
  61528. [typeof switcherIcon === 'function' ? switcherIcon(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$props.dataRef, { isLeaf: false })) : switcherIcon]
  61529. );
  61530. },
  61531. // Checkbox
  61532. renderCheckbox: function renderCheckbox() {
  61533. var h = this.$createElement;
  61534. var checked = this.checked,
  61535. halfChecked = this.halfChecked,
  61536. disableCheckbox = this.disableCheckbox;
  61537. var prefixCls = this.vcTree.prefixCls;
  61538. var disabled = this.isDisabled();
  61539. var checkable = this.isCheckable();
  61540. if (!checkable) return null;
  61541. // [Legacy] Custom element should be separate with `checkable` in future
  61542. var $custom = typeof checkable !== 'boolean' ? checkable : null;
  61543. return h(
  61544. 'span',
  61545. {
  61546. key: 'checkbox',
  61547. 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-checkbox', checked && prefixCls + '-checkbox-checked', !checked && halfChecked && prefixCls + '-checkbox-indeterminate', (disabled || disableCheckbox) && prefixCls + '-checkbox-disabled'),
  61548. on: {
  61549. 'click': this.onCheck
  61550. }
  61551. },
  61552. [$custom]
  61553. );
  61554. },
  61555. renderIcon: function renderIcon() {
  61556. var h = this.$createElement;
  61557. var loading = this.loading;
  61558. var prefixCls = this.vcTree.prefixCls;
  61559. return h('span', {
  61560. key: 'icon',
  61561. 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-iconEle', prefixCls + '-icon__' + (this.getNodeState() || 'docu'), loading && prefixCls + '-icon_loading')
  61562. });
  61563. },
  61564. // Icon + Title
  61565. renderSelector: function renderSelector(h) {
  61566. var selected = this.selected,
  61567. loading = this.loading,
  61568. dragNodeHighlight = this.dragNodeHighlight;
  61569. var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'icon', {}, false);
  61570. var _vcTree2 = this.vcTree,
  61571. prefixCls = _vcTree2.prefixCls,
  61572. showIcon = _vcTree2.showIcon,
  61573. treeIcon = _vcTree2.icon,
  61574. draggable = _vcTree2.draggable,
  61575. loadData = _vcTree2.loadData;
  61576. var disabled = this.isDisabled();
  61577. var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'title', {}, false);
  61578. var wrapClass = prefixCls + '-node-content-wrapper';
  61579. // Icon - Still show loading icon when loading without showIcon
  61580. var $icon = void 0;
  61581. if (showIcon) {
  61582. var currentIcon = icon || treeIcon;
  61583. $icon = currentIcon ? h(
  61584. 'span',
  61585. { 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-iconEle', prefixCls + '-icon__customize') },
  61586. [typeof currentIcon === 'function' ? currentIcon(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$props.dataRef), h) : currentIcon]
  61587. ) : this.renderIcon();
  61588. } else if (loadData && loading) {
  61589. $icon = this.renderIcon();
  61590. }
  61591. var currentTitle = title;
  61592. var $title = currentTitle ? h(
  61593. 'span',
  61594. { 'class': prefixCls + '-title' },
  61595. [typeof currentTitle === 'function' ? currentTitle(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$props.dataRef), h) : currentTitle]
  61596. ) : h(
  61597. 'span',
  61598. { 'class': prefixCls + '-title' },
  61599. [defaultTitle]
  61600. );
  61601. return h(
  61602. 'span',
  61603. {
  61604. key: 'selector',
  61605. ref: 'selectHandle',
  61606. attrs: { title: typeof title === 'string' ? title : '',
  61607. draggable: !disabled && draggable || undefined,
  61608. 'aria-grabbed': !disabled && draggable || undefined
  61609. },
  61610. 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()('' + wrapClass, wrapClass + '-' + (this.getNodeState() || 'normal'), !disabled && (selected || dragNodeHighlight) && prefixCls + '-node-selected', !disabled && draggable && 'draggable'), on: {
  61611. 'mouseenter': this.onMouseEnter,
  61612. 'mouseleave': this.onMouseLeave,
  61613. 'contextmenu': this.onContextMenu,
  61614. 'click': this.onSelectorClick,
  61615. 'dblclick': this.onSelectorDoubleClick,
  61616. 'dragstart': draggable ? this.onDragStart : noop
  61617. }
  61618. },
  61619. [$icon, $title]
  61620. );
  61621. },
  61622. // Children list wrapped with `Animation`
  61623. renderChildren: function renderChildren() {
  61624. var h = this.$createElement;
  61625. var expanded = this.expanded,
  61626. pos = this.pos;
  61627. var _vcTree3 = this.vcTree,
  61628. prefixCls = _vcTree3.prefixCls,
  61629. openTransitionName = _vcTree3.openTransitionName,
  61630. openAnimation = _vcTree3.openAnimation,
  61631. renderTreeNode = _vcTree3.renderTreeNode;
  61632. var animProps = {};
  61633. if (openTransitionName) {
  61634. animProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__["default"])(openTransitionName);
  61635. } else if ((typeof openAnimation === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(openAnimation)) === 'object') {
  61636. animProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, openAnimation);
  61637. animProps.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({ css: false }, animProps.props);
  61638. }
  61639. // Children TreeNode
  61640. var nodeList = this.getNodeChildren();
  61641. if (nodeList.length === 0) {
  61642. return null;
  61643. }
  61644. var $children = void 0;
  61645. if (expanded) {
  61646. $children = h(
  61647. 'ul',
  61648. {
  61649. 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-child-tree', expanded && prefixCls + '-child-tree-open'),
  61650. attrs: { 'data-expanded': expanded,
  61651. role: 'group'
  61652. }
  61653. },
  61654. [Object(_util__WEBPACK_IMPORTED_MODULE_5__["mapChildren"])(nodeList, function (node, index) {
  61655. return renderTreeNode(node, index, pos);
  61656. })]
  61657. );
  61658. }
  61659. return h(
  61660. 'transition',
  61661. animProps,
  61662. [$children]
  61663. );
  61664. }
  61665. },
  61666. render: function render(h) {
  61667. var _ref;
  61668. var _$props = this.$props,
  61669. dragOver = _$props.dragOver,
  61670. dragOverGapTop = _$props.dragOverGapTop,
  61671. dragOverGapBottom = _$props.dragOverGapBottom,
  61672. isLeaf = _$props.isLeaf,
  61673. expanded = _$props.expanded,
  61674. selected = _$props.selected,
  61675. checked = _$props.checked,
  61676. halfChecked = _$props.halfChecked,
  61677. loading = _$props.loading;
  61678. var _vcTree4 = this.vcTree,
  61679. prefixCls = _vcTree4.prefixCls,
  61680. filterTreeNode = _vcTree4.filterTreeNode,
  61681. draggable = _vcTree4.draggable;
  61682. var disabled = this.isDisabled();
  61683. return h(
  61684. 'li',
  61685. {
  61686. 'class': (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-switcher-' + (expanded ? 'open' : 'close'), !isLeaf), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-checkbox-checked', checked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-checkbox-indeterminate', halfChecked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-selected', selected), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-loading', loading), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 'drag-over', !disabled && dragOver), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 'drag-over-gap-top', !disabled && dragOverGapTop), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 'drag-over-gap-bottom', !disabled && dragOverGapBottom), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 'filter-node', filterTreeNode && filterTreeNode(this)), _ref),
  61687. attrs: { role: 'treeitem'
  61688. },
  61689. on: {
  61690. 'dragenter': draggable ? this.onDragEnter : noop,
  61691. 'dragover': draggable ? this.onDragOver : noop,
  61692. 'dragleave': draggable ? this.onDragLeave : noop,
  61693. 'drop': draggable ? this.onDrop : noop,
  61694. 'dragend': draggable ? this.onDragEnd : noop
  61695. }
  61696. },
  61697. [this.renderSwitcher(), this.renderCheckbox(), this.renderSelector(h), this.renderChildren()]
  61698. );
  61699. }
  61700. };
  61701. TreeNode.isTreeNode = 1;
  61702. /* harmony default export */ __webpack_exports__["default"] = (TreeNode);
  61703. /***/ }),
  61704. /***/ "./components/vc-tree/src/index.js":
  61705. /*!*****************************************!*\
  61706. !*** ./components/vc-tree/src/index.js ***!
  61707. \*****************************************/
  61708. /*! exports provided: Tree, TreeNode, default */
  61709. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61710. "use strict";
  61711. __webpack_require__.r(__webpack_exports__);
  61712. /* harmony import */ var _Tree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tree */ "./components/vc-tree/src/Tree.jsx");
  61713. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tree", function() { return _Tree__WEBPACK_IMPORTED_MODULE_0__["Tree"]; });
  61714. /* harmony import */ var _TreeNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TreeNode */ "./components/vc-tree/src/TreeNode.jsx");
  61715. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeNode", function() { return _TreeNode__WEBPACK_IMPORTED_MODULE_1__["default"]; });
  61716. _Tree__WEBPACK_IMPORTED_MODULE_0__["Tree"].TreeNode = _TreeNode__WEBPACK_IMPORTED_MODULE_1__["default"];
  61717. _Tree__WEBPACK_IMPORTED_MODULE_0__["default"].TreeNode = _TreeNode__WEBPACK_IMPORTED_MODULE_1__["default"];
  61718. /* harmony default export */ __webpack_exports__["default"] = (_Tree__WEBPACK_IMPORTED_MODULE_0__["default"]);
  61719. /***/ }),
  61720. /***/ "./components/vc-tree/src/util.js":
  61721. /*!****************************************!*\
  61722. !*** ./components/vc-tree/src/util.js ***!
  61723. \****************************************/
  61724. /*! exports provided: warnOnlyTreeNode, arrDel, arrAdd, posToArr, getPosition, isTreeNode, getNodeChildren, isCheckDisabled, traverseTreeNodes, mapChildren, getDragNodesKeys, calcDropPosition, calcSelectedKeys, convertDataToTree, convertTreeToEntities, parseCheckedKeys, conductCheck, conductExpandParent, getDataAndAria */
  61725. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  61726. "use strict";
  61727. __webpack_require__.r(__webpack_exports__);
  61728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warnOnlyTreeNode", function() { return warnOnlyTreeNode; });
  61729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "arrDel", function() { return arrDel; });
  61730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "arrAdd", function() { return arrAdd; });
  61731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "posToArr", function() { return posToArr; });
  61732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPosition", function() { return getPosition; });
  61733. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTreeNode", function() { return isTreeNode; });
  61734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNodeChildren", function() { return getNodeChildren; });
  61735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCheckDisabled", function() { return isCheckDisabled; });
  61736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "traverseTreeNodes", function() { return traverseTreeNodes; });
  61737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapChildren", function() { return mapChildren; });
  61738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDragNodesKeys", function() { return getDragNodesKeys; });
  61739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calcDropPosition", function() { return calcDropPosition; });
  61740. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calcSelectedKeys", function() { return calcSelectedKeys; });
  61741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertDataToTree", function() { return convertDataToTree; });
  61742. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertTreeToEntities", function() { return convertTreeToEntities; });
  61743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseCheckedKeys", function() { return parseCheckedKeys; });
  61744. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conductCheck", function() { return conductCheck; });
  61745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conductExpandParent", function() { return conductExpandParent; });
  61746. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDataAndAria", function() { return getDataAndAria; });
  61747. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
  61748. /* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
  61749. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
  61750. /* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
  61751. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  61752. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
  61753. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
  61754. /* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);
  61755. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
  61756. /* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_4__);
  61757. /* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
  61758. /* harmony import */ var _TreeNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TreeNode */ "./components/vc-tree/src/TreeNode.jsx");
  61759. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  61760. /* eslint no-loop-func: 0*/
  61761. var DRAG_SIDE_RANGE = 0.25;
  61762. var DRAG_MIN_GAP = 2;
  61763. var onlyTreeNodeWarned = false;
  61764. function warnOnlyTreeNode() {
  61765. if (onlyTreeNodeWarned) return;
  61766. onlyTreeNodeWarned = true;
  61767. warning__WEBPACK_IMPORTED_MODULE_4___default()(false, 'Tree only accept TreeNode as children.');
  61768. }
  61769. function arrDel(list, value) {
  61770. var clone = list.slice();
  61771. var index = clone.indexOf(value);
  61772. if (index >= 0) {
  61773. clone.splice(index, 1);
  61774. }
  61775. return clone;
  61776. }
  61777. function arrAdd(list, value) {
  61778. var clone = list.slice();
  61779. if (clone.indexOf(value) === -1) {
  61780. clone.push(value);
  61781. }
  61782. return clone;
  61783. }
  61784. function posToArr(pos) {
  61785. return pos.split('-');
  61786. }
  61787. function getPosition(level, index) {
  61788. return level + '-' + index;
  61789. }
  61790. function isTreeNode(node) {
  61791. return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getSlotOptions"])(node).isTreeNode;
  61792. }
  61793. function getNodeChildren() {
  61794. var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  61795. return children.filter(isTreeNode);
  61796. }
  61797. function isCheckDisabled(node) {
  61798. var _ref = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(node) || {},
  61799. disabled = _ref.disabled,
  61800. disableCheckbox = _ref.disableCheckbox,
  61801. checkable = _ref.checkable;
  61802. return !!(disabled || disableCheckbox) || checkable === false;
  61803. }
  61804. function traverseTreeNodes(treeNodes, callback) {
  61805. function processNode(node, index, parent) {
  61806. var children = node ? node.componentOptions.children : treeNodes;
  61807. var pos = node ? getPosition(parent.pos, index) : 0;
  61808. // Filter children
  61809. var childList = getNodeChildren(children);
  61810. // Process node if is not root
  61811. if (node) {
  61812. var key = node.key;
  61813. if (!key && (key === undefined || key === null)) {
  61814. key = pos;
  61815. }
  61816. var data = {
  61817. node: node,
  61818. index: index,
  61819. pos: pos,
  61820. key: key,
  61821. parentPos: parent.node ? parent.pos : null
  61822. };
  61823. callback(data);
  61824. }
  61825. // Process children node
  61826. childList.forEach(function (subNode, subIndex) {
  61827. processNode(subNode, subIndex, { node: node, pos: pos });
  61828. });
  61829. }
  61830. processNode(null);
  61831. }
  61832. /**
  61833. * Use `rc-util` `toArray` to get the children list which keeps the key.
  61834. * And return single node if children is only one(This can avoid `key` missing check).
  61835. */
  61836. function mapChildren() {
  61837. var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  61838. var func = arguments[1];
  61839. var list = children.map(func);
  61840. if (list.length === 1) {
  61841. return list[0];
  61842. }
  61843. return list;
  61844. }
  61845. function getDragNodesKeys(treeNodes, node) {
  61846. var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(node),
  61847. eventKey = _getOptionProps.eventKey,
  61848. pos = _getOptionProps.pos;
  61849. var dragNodesKeys = [];
  61850. traverseTreeNodes(treeNodes, function (_ref2) {
  61851. var key = _ref2.key;
  61852. dragNodesKeys.push(key);
  61853. });
  61854. dragNodesKeys.push(eventKey || pos);
  61855. return dragNodesKeys;
  61856. }
  61857. function calcDropPosition(event, treeNode) {
  61858. var clientY = event.clientY;
  61859. var _treeNode$$refs$selec = treeNode.$refs.selectHandle.getBoundingClientRect(),
  61860. top = _treeNode$$refs$selec.top,
  61861. bottom = _treeNode$$refs$selec.bottom,
  61862. height = _treeNode$$refs$selec.height;
  61863. var des = Math.max(height * DRAG_SIDE_RANGE, DRAG_MIN_GAP);
  61864. if (clientY <= top + des) {
  61865. return -1;
  61866. }
  61867. if (clientY >= bottom - des) {
  61868. return 1;
  61869. }
  61870. return 0;
  61871. }
  61872. /**
  61873. * Return selectedKeys according with multiple prop
  61874. * @param selectedKeys
  61875. * @param props
  61876. * @returns [string]
  61877. */
  61878. function calcSelectedKeys(selectedKeys, props) {
  61879. if (!selectedKeys) {
  61880. return undefined;
  61881. }
  61882. var multiple = props.multiple;
  61883. if (multiple) {
  61884. return selectedKeys.slice();
  61885. }
  61886. if (selectedKeys.length) {
  61887. return [selectedKeys[0]];
  61888. }
  61889. return selectedKeys;
  61890. }
  61891. /**
  61892. * Since React internal will convert key to string,
  61893. * we need do this to avoid `checkStrictly` use number match
  61894. */
  61895. // function keyListToString (keyList) {
  61896. // if (!keyList) return keyList
  61897. // return keyList.map(key => String(key))
  61898. // }
  61899. var internalProcessProps = function internalProcessProps() {
  61900. var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  61901. return {
  61902. props: Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(props, ['on', 'key', 'class', 'className', 'style']),
  61903. on: props.on || {},
  61904. 'class': props['class'] || props.className,
  61905. style: props.style,
  61906. key: props.key
  61907. };
  61908. };
  61909. function convertDataToTree(h, treeData, processor) {
  61910. if (!treeData) return [];
  61911. var _ref3 = processor || {},
  61912. _ref3$processProps = _ref3.processProps,
  61913. processProps = _ref3$processProps === undefined ? internalProcessProps : _ref3$processProps;
  61914. var list = Array.isArray(treeData) ? treeData : [treeData];
  61915. return list.map(function (_ref4) {
  61916. var children = _ref4.children,
  61917. props = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_ref4, ['children']);
  61918. var childrenNodes = convertDataToTree(h, children, processor);
  61919. return h(
  61920. _TreeNode__WEBPACK_IMPORTED_MODULE_6__["default"],
  61921. processProps(props),
  61922. [childrenNodes]
  61923. );
  61924. });
  61925. }
  61926. // TODO: ========================= NEW LOGIC =========================
  61927. /**
  61928. * Calculate treeNodes entities. `processTreeEntity` is used for `rc-tree-select`
  61929. * @param treeNodes
  61930. * @param processTreeEntity User can customize the entity
  61931. */
  61932. function convertTreeToEntities(treeNodes) {
  61933. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  61934. initWrapper = _ref5.initWrapper,
  61935. processEntity = _ref5.processEntity,
  61936. onProcessFinished = _ref5.onProcessFinished;
  61937. var posEntities = new Map();
  61938. var keyEntities = new Map();
  61939. var wrapper = {
  61940. posEntities: posEntities,
  61941. keyEntities: keyEntities
  61942. };
  61943. if (initWrapper) {
  61944. wrapper = initWrapper(wrapper) || wrapper;
  61945. }
  61946. traverseTreeNodes(treeNodes, function (item) {
  61947. var node = item.node,
  61948. index = item.index,
  61949. pos = item.pos,
  61950. key = item.key,
  61951. parentPos = item.parentPos;
  61952. var entity = { node: node, index: index, key: key, pos: pos };
  61953. posEntities.set(pos, entity);
  61954. keyEntities.set(key, entity);
  61955. // Fill children
  61956. entity.parent = posEntities.get(parentPos);
  61957. if (entity.parent) {
  61958. entity.parent.children = entity.parent.children || [];
  61959. entity.parent.children.push(entity);
  61960. }
  61961. if (processEntity) {
  61962. processEntity(entity, wrapper);
  61963. }
  61964. });
  61965. if (onProcessFinished) {
  61966. onProcessFinished(wrapper);
  61967. }
  61968. return wrapper;
  61969. }
  61970. /**
  61971. * Parse `checkedKeys` to { checkedKeys, halfCheckedKeys } style
  61972. */
  61973. function parseCheckedKeys(keys) {
  61974. if (!keys) {
  61975. return null;
  61976. }
  61977. // Convert keys to object format
  61978. var keyProps = void 0;
  61979. if (Array.isArray(keys)) {
  61980. // [Legacy] Follow the api doc
  61981. keyProps = {
  61982. checkedKeys: keys,
  61983. halfCheckedKeys: undefined
  61984. };
  61985. } else if ((typeof keys === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(keys)) === 'object') {
  61986. keyProps = {
  61987. checkedKeys: keys.checked || undefined,
  61988. halfCheckedKeys: keys.halfChecked || undefined
  61989. };
  61990. } else {
  61991. warning__WEBPACK_IMPORTED_MODULE_4___default()(false, '`checkedKeys` is not an array or an object');
  61992. return null;
  61993. }
  61994. // keyProps.checkedKeys = keyListToString(keyProps.checkedKeys)
  61995. // keyProps.halfCheckedKeys = keyListToString(keyProps.halfCheckedKeys)
  61996. return keyProps;
  61997. }
  61998. /**
  61999. * Conduct check state by the keyList. It will conduct up & from the provided key.
  62000. * If the conduct path reach the disabled or already checked / unchecked node will stop conduct.
  62001. * @param keyList list of keys
  62002. * @param isCheck is check the node or not
  62003. * @param keyEntities parsed by `convertTreeToEntities` function in Tree
  62004. * @param checkStatus Can pass current checked status for process (usually for uncheck operation)
  62005. * @returns {{checkedKeys: [], halfCheckedKeys: []}}
  62006. */
  62007. function conductCheck(keyList, isCheck, keyEntities) {
  62008. var checkStatus = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  62009. var checkedKeys = new Map();
  62010. var halfCheckedKeys = new Map(); // Record the key has some child checked (include child half checked)
  62011. (checkStatus.checkedKeys || []).forEach(function (key) {
  62012. checkedKeys.set(key, true);
  62013. });
  62014. (checkStatus.halfCheckedKeys || []).forEach(function (key) {
  62015. halfCheckedKeys.set(key, true);
  62016. });
  62017. // Conduct up
  62018. function conductUp(key) {
  62019. if (checkedKeys.get(key) === isCheck) return;
  62020. var entity = keyEntities.get(key);
  62021. if (!entity) return;
  62022. var children = entity.children,
  62023. parent = entity.parent,
  62024. node = entity.node;
  62025. if (isCheckDisabled(node)) return;
  62026. // Check child node checked status
  62027. var everyChildChecked = true;
  62028. var someChildChecked = false; // Child checked or half checked
  62029. (children || []).filter(function (child) {
  62030. return !isCheckDisabled(child.node);
  62031. }).forEach(function (_ref6) {
  62032. var childKey = _ref6.key;
  62033. var childChecked = checkedKeys.get(childKey);
  62034. var childHalfChecked = halfCheckedKeys.get(childKey);
  62035. if (childChecked || childHalfChecked) someChildChecked = true;
  62036. if (!childChecked) everyChildChecked = false;
  62037. });
  62038. // Update checked status
  62039. if (isCheck) {
  62040. checkedKeys.set(key, everyChildChecked);
  62041. } else {
  62042. checkedKeys.set(key, false);
  62043. }
  62044. halfCheckedKeys.set(key, someChildChecked);
  62045. if (parent) {
  62046. conductUp(parent.key);
  62047. }
  62048. }
  62049. // Conduct down
  62050. function conductDown(key) {
  62051. if (checkedKeys.get(key) === isCheck) return;
  62052. var entity = keyEntities.get(key);
  62053. if (!entity) return;
  62054. var children = entity.children,
  62055. node = entity.node;
  62056. if (isCheckDisabled(node)) return;
  62057. checkedKeys.set(key, isCheck);
  62058. (children || []).forEach(function (child) {
  62059. conductDown(child.key);
  62060. });
  62061. }
  62062. function conduct(key) {
  62063. var entity = keyEntities.get(key);
  62064. if (!entity) {
  62065. warning__WEBPACK_IMPORTED_MODULE_4___default()(false, '\'' + key + '\' does not exist in the tree.');
  62066. return;
  62067. }
  62068. var children = entity.children,
  62069. parent = entity.parent,
  62070. node = entity.node;
  62071. checkedKeys.set(key, isCheck);
  62072. if (isCheckDisabled(node)) return;
  62073. // Conduct down
  62074. (children || []).filter(function (child) {
  62075. return !isCheckDisabled(child.node);
  62076. }).forEach(function (child) {
  62077. conductDown(child.key);
  62078. });
  62079. // Conduct up
  62080. if (parent) {
  62081. conductUp(parent.key);
  62082. }
  62083. }
  62084. (keyList || []).forEach(function (key) {
  62085. conduct(key);
  62086. });
  62087. var checkedKeyList = [];
  62088. var halfCheckedKeyList = [];
  62089. // Fill checked list
  62090. var _iteratorNormalCompletion = true;
  62091. var _didIteratorError = false;
  62092. var _iteratorError = undefined;
  62093. try {
  62094. for (var _iterator = checkedKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  62095. var _ref7 = _step.value;
  62096. var _ref8 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref7, 2);
  62097. var key = _ref8[0];
  62098. var value = _ref8[1];
  62099. if (value) {
  62100. checkedKeyList.push(key);
  62101. }
  62102. }
  62103. // Fill half checked list
  62104. } catch (err) {
  62105. _didIteratorError = true;
  62106. _iteratorError = err;
  62107. } finally {
  62108. try {
  62109. if (!_iteratorNormalCompletion && _iterator['return']) {
  62110. _iterator['return']();
  62111. }
  62112. } finally {
  62113. if (_didIteratorError) {
  62114. throw _iteratorError;
  62115. }
  62116. }
  62117. }
  62118. var _iteratorNormalCompletion2 = true;
  62119. var _didIteratorError2 = false;
  62120. var _iteratorError2 = undefined;
  62121. try {
  62122. for (var _iterator2 = halfCheckedKeys[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
  62123. var _ref9 = _step2.value;
  62124. var _ref10 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref9, 2);
  62125. var _key = _ref10[0];
  62126. var _value = _ref10[1];
  62127. if (!checkedKeys.get(_key) && _value) {
  62128. halfCheckedKeyList.push(_key);
  62129. }
  62130. }
  62131. } catch (err) {
  62132. _didIteratorError2 = true;
  62133. _iteratorError2 = err;
  62134. } finally {
  62135. try {
  62136. if (!_iteratorNormalCompletion2 && _iterator2['return']) {
  62137. _iterator2['return']();
  62138. }
  62139. } finally {
  62140. if (_didIteratorError2) {
  62141. throw _iteratorError2;
  62142. }
  62143. }
  62144. }
  62145. return {
  62146. checkedKeys: checkedKeyList,
  62147. halfCheckedKeys: halfCheckedKeyList
  62148. };
  62149. }
  62150. /**
  62151. * If user use `autoExpandParent` we should get the list of parent node
  62152. * @param keyList
  62153. * @param keyEntities
  62154. */
  62155. function conductExpandParent(keyList, keyEntities) {
  62156. var expandedKeys = new Map();
  62157. function conductUp(key) {
  62158. if (expandedKeys.get(key)) return;
  62159. var entity = keyEntities.get(key);
  62160. if (!entity) return;
  62161. expandedKeys.set(key, true);
  62162. var parent = entity.parent,
  62163. node = entity.node;
  62164. var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(node);
  62165. if (props && props.disabled) return;
  62166. if (parent) {
  62167. conductUp(parent.key);
  62168. }
  62169. }
  62170. (keyList || []).forEach(function (key) {
  62171. conductUp(key);
  62172. });
  62173. return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(expandedKeys.keys()));
  62174. }
  62175. /**
  62176. * Returns only the data- and aria- key/value pairs
  62177. * @param {object} props
  62178. */
  62179. function getDataAndAria(props) {
  62180. return Object.keys(props).reduce(function (prev, key) {
  62181. if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-') {
  62182. prev[key] = props[key];
  62183. }
  62184. return prev;
  62185. }, {});
  62186. }
  62187. /***/ }),
  62188. /***/ "./components/vc-trigger/LazyRenderBox.jsx":
  62189. /*!*************************************************!*\
  62190. !*** ./components/vc-trigger/LazyRenderBox.jsx ***!
  62191. \*************************************************/
  62192. /*! exports provided: default */
  62193. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62194. "use strict";
  62195. __webpack_require__.r(__webpack_exports__);
  62196. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  62197. /* harmony default export */ __webpack_exports__["default"] = ({
  62198. props: {
  62199. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
  62200. hiddenClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string
  62201. },
  62202. render: function render() {
  62203. var h = arguments[0];
  62204. var _$props = this.$props,
  62205. hiddenClassName = _$props.hiddenClassName,
  62206. visible = _$props.visible;
  62207. var children = null;
  62208. if (hiddenClassName || !this.$slots['default'] || this.$slots['default'].length > 1) {
  62209. var cls = '';
  62210. if (!visible && hiddenClassName) {
  62211. // cls += ` ${hiddenClassName}`
  62212. }
  62213. children = h(
  62214. 'div',
  62215. { 'class': cls },
  62216. [this.$slots['default']]
  62217. );
  62218. } else {
  62219. children = this.$slots['default'][0];
  62220. }
  62221. return children;
  62222. }
  62223. });
  62224. /***/ }),
  62225. /***/ "./components/vc-trigger/Popup.jsx":
  62226. /*!*****************************************!*\
  62227. !*** ./components/vc-trigger/Popup.jsx ***!
  62228. \*****************************************/
  62229. /*! exports provided: default */
  62230. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62231. "use strict";
  62232. __webpack_require__.r(__webpack_exports__);
  62233. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
  62234. /* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
  62235. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  62236. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  62237. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  62238. /* harmony import */ var _vc_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-align */ "./components/vc-align/index.js");
  62239. /* harmony import */ var _PopupInner__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PopupInner */ "./components/vc-trigger/PopupInner.jsx");
  62240. /* harmony import */ var _LazyRenderBox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./LazyRenderBox */ "./components/vc-trigger/LazyRenderBox.jsx");
  62241. /* harmony import */ var _util_css_animation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/css-animation */ "./components/_util/css-animation/index.js");
  62242. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  62243. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  62244. /* harmony default export */ __webpack_exports__["default"] = ({
  62245. name: 'VCTriggerPopup',
  62246. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
  62247. props: {
  62248. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  62249. getClassNameFromAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  62250. getRootDomNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  62251. align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  62252. destroyPopupOnHide: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  62253. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  62254. getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  62255. transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  62256. animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  62257. maskAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  62258. maskTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  62259. mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  62260. zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  62261. popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
  62262. popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.def(function () {
  62263. return {};
  62264. }),
  62265. stretch: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  62266. point: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape({
  62267. pageX: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
  62268. pageY: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number
  62269. })
  62270. },
  62271. data: function data() {
  62272. this.domEl = null;
  62273. return {
  62274. // Used for stretch
  62275. stretchChecked: false,
  62276. targetWidth: undefined,
  62277. targetHeight: undefined
  62278. };
  62279. },
  62280. mounted: function mounted() {
  62281. var _this = this;
  62282. this.$nextTick(function () {
  62283. _this.rootNode = _this.getPopupDomNode();
  62284. _this.setStretchSize();
  62285. });
  62286. },
  62287. // 如添加会导致动画失效,如放开会导致快速输入时闪动 https://github.com/vueComponent/ant-design-vue/issues/1327,
  62288. // 目前方案是保留动画,闪动问题(动画多次执行)进一步定位
  62289. // beforeUpdate() {
  62290. // if (this.domEl && this.domEl.rcEndListener) {
  62291. // this.domEl.rcEndListener();
  62292. // this.domEl = null;
  62293. // }
  62294. // },
  62295. updated: function updated() {
  62296. var _this2 = this;
  62297. this.$nextTick(function () {
  62298. _this2.setStretchSize();
  62299. });
  62300. },
  62301. beforeDestroy: function beforeDestroy() {
  62302. if (this.$el.parentNode) {
  62303. this.$el.parentNode.removeChild(this.$el);
  62304. } else if (this.$el.remove) {
  62305. this.$el.remove();
  62306. }
  62307. },
  62308. methods: {
  62309. onAlign: function onAlign(popupDomNode, align) {
  62310. var props = this.$props;
  62311. var currentAlignClassName = props.getClassNameFromAlign(align);
  62312. // FIX: https://github.com/react-component/trigger/issues/56
  62313. // FIX: https://github.com/react-component/tooltip/issues/79
  62314. if (this.currentAlignClassName !== currentAlignClassName) {
  62315. this.currentAlignClassName = currentAlignClassName;
  62316. popupDomNode.className = this.getClassName(currentAlignClassName);
  62317. }
  62318. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this);
  62319. listeners.align && listeners.align(popupDomNode, align);
  62320. },
  62321. // Record size if stretch needed
  62322. setStretchSize: function setStretchSize() {
  62323. var _$props = this.$props,
  62324. stretch = _$props.stretch,
  62325. getRootDomNode = _$props.getRootDomNode,
  62326. visible = _$props.visible;
  62327. var _$data = this.$data,
  62328. stretchChecked = _$data.stretchChecked,
  62329. targetHeight = _$data.targetHeight,
  62330. targetWidth = _$data.targetWidth;
  62331. if (!stretch || !visible) {
  62332. if (stretchChecked) {
  62333. this.setState({ stretchChecked: false });
  62334. }
  62335. return;
  62336. }
  62337. var $ele = getRootDomNode();
  62338. if (!$ele) return;
  62339. var height = $ele.offsetHeight;
  62340. var width = $ele.offsetWidth;
  62341. if (targetHeight !== height || targetWidth !== width || !stretchChecked) {
  62342. this.setState({
  62343. stretchChecked: true,
  62344. targetHeight: height,
  62345. targetWidth: width
  62346. });
  62347. }
  62348. },
  62349. getPopupDomNode: function getPopupDomNode() {
  62350. return this.$refs.popupInstance ? this.$refs.popupInstance.$el : null;
  62351. },
  62352. getTargetElement: function getTargetElement() {
  62353. return this.$props.getRootDomNode();
  62354. },
  62355. // `target` on `rc-align` can accept as a function to get the bind element or a point.
  62356. // ref: https://www.npmjs.com/package/rc-align
  62357. getAlignTarget: function getAlignTarget() {
  62358. var point = this.$props.point;
  62359. if (point) {
  62360. return point;
  62361. }
  62362. return this.getTargetElement;
  62363. },
  62364. getMaskTransitionName: function getMaskTransitionName() {
  62365. var props = this.$props;
  62366. var transitionName = props.maskTransitionName;
  62367. var animation = props.maskAnimation;
  62368. if (!transitionName && animation) {
  62369. transitionName = props.prefixCls + '-' + animation;
  62370. }
  62371. return transitionName;
  62372. },
  62373. getTransitionName: function getTransitionName() {
  62374. var props = this.$props;
  62375. var transitionName = props.transitionName;
  62376. var animation = props.animation;
  62377. if (!transitionName) {
  62378. if (typeof animation === 'string') {
  62379. transitionName = '' + animation;
  62380. } else if (animation && animation.props && animation.props.name) {
  62381. transitionName = animation.props.name;
  62382. }
  62383. }
  62384. return transitionName;
  62385. },
  62386. getClassName: function getClassName(currentAlignClassName) {
  62387. return this.$props.prefixCls + ' ' + this.$props.popupClassName + ' ' + currentAlignClassName;
  62388. },
  62389. getPopupElement: function getPopupElement() {
  62390. var _this3 = this;
  62391. var h = this.$createElement;
  62392. var props = this.$props,
  62393. $slots = this.$slots,
  62394. getTransitionName = this.getTransitionName;
  62395. var _$data2 = this.$data,
  62396. stretchChecked = _$data2.stretchChecked,
  62397. targetHeight = _$data2.targetHeight,
  62398. targetWidth = _$data2.targetWidth;
  62399. var align = props.align,
  62400. visible = props.visible,
  62401. prefixCls = props.prefixCls,
  62402. animation = props.animation,
  62403. popupStyle = props.popupStyle,
  62404. getClassNameFromAlign = props.getClassNameFromAlign,
  62405. destroyPopupOnHide = props.destroyPopupOnHide,
  62406. stretch = props.stretch;
  62407. var className = this.getClassName(this.currentAlignClassName || getClassNameFromAlign(align));
  62408. // const hiddenClassName = `${prefixCls}-hidden`
  62409. if (!visible) {
  62410. this.currentAlignClassName = null;
  62411. }
  62412. var sizeStyle = {};
  62413. if (stretch) {
  62414. // Stretch with target
  62415. if (stretch.indexOf('height') !== -1) {
  62416. sizeStyle.height = typeof targetHeight === 'number' ? targetHeight + 'px' : targetHeight;
  62417. } else if (stretch.indexOf('minHeight') !== -1) {
  62418. sizeStyle.minHeight = typeof targetHeight === 'number' ? targetHeight + 'px' : targetHeight;
  62419. }
  62420. if (stretch.indexOf('width') !== -1) {
  62421. sizeStyle.width = typeof targetWidth === 'number' ? targetWidth + 'px' : targetWidth;
  62422. } else if (stretch.indexOf('minWidth') !== -1) {
  62423. sizeStyle.minWidth = typeof targetWidth === 'number' ? targetWidth + 'px' : targetWidth;
  62424. }
  62425. // Delay force align to makes ui smooth
  62426. if (!stretchChecked) {
  62427. // sizeStyle.visibility = 'hidden'
  62428. setTimeout(function () {
  62429. if (_this3.$refs.alignInstance) {
  62430. _this3.$refs.alignInstance.forceAlign();
  62431. }
  62432. }, 0);
  62433. }
  62434. }
  62435. var popupInnerProps = {
  62436. props: {
  62437. prefixCls: prefixCls,
  62438. visible: visible
  62439. // hiddenClassName,
  62440. },
  62441. 'class': className,
  62442. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this),
  62443. ref: 'popupInstance',
  62444. style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, sizeStyle, popupStyle, this.getZIndexStyle())
  62445. };
  62446. var transitionProps = {
  62447. props: {
  62448. appear: true,
  62449. css: false
  62450. }
  62451. };
  62452. var transitionName = getTransitionName();
  62453. var useTransition = !!transitionName;
  62454. var transitionEvent = {
  62455. beforeEnter: function beforeEnter() {
  62456. // el.style.display = el.__vOriginalDisplay
  62457. // this.$refs.alignInstance.forceAlign();
  62458. },
  62459. enter: function enter(el, done) {
  62460. // render 后 vue 会移除通过animate动态添加的 class导致动画闪动,延迟两帧添加动画class,可以进一步定位或者重写 transition 组件
  62461. _this3.$nextTick(function () {
  62462. if (_this3.$refs.alignInstance) {
  62463. _this3.$refs.alignInstance.$nextTick(function () {
  62464. _this3.domEl = el;
  62465. Object(_util_css_animation__WEBPACK_IMPORTED_MODULE_6__["default"])(el, transitionName + '-enter', done);
  62466. });
  62467. } else {
  62468. done();
  62469. }
  62470. });
  62471. },
  62472. beforeLeave: function beforeLeave() {
  62473. _this3.domEl = null;
  62474. },
  62475. leave: function leave(el, done) {
  62476. Object(_util_css_animation__WEBPACK_IMPORTED_MODULE_6__["default"])(el, transitionName + '-leave', done);
  62477. }
  62478. };
  62479. if ((typeof animation === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(animation)) === 'object') {
  62480. useTransition = true;
  62481. var _animation$on = animation.on,
  62482. on = _animation$on === undefined ? {} : _animation$on,
  62483. _animation$props = animation.props,
  62484. _props = _animation$props === undefined ? {} : _animation$props;
  62485. transitionProps.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, transitionProps.props, _props);
  62486. transitionProps.on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, transitionEvent, on);
  62487. } else {
  62488. transitionProps.on = transitionEvent;
  62489. }
  62490. if (!useTransition) {
  62491. transitionProps = {};
  62492. }
  62493. if (destroyPopupOnHide) {
  62494. return h(
  62495. 'transition',
  62496. transitionProps,
  62497. [visible ? h(
  62498. _vc_align__WEBPACK_IMPORTED_MODULE_3__["default"],
  62499. {
  62500. attrs: {
  62501. target: this.getAlignTarget(),
  62502. monitorWindowResize: true,
  62503. align: align
  62504. },
  62505. key: 'popup',
  62506. ref: 'alignInstance', on: {
  62507. 'align': this.onAlign
  62508. }
  62509. },
  62510. [h(
  62511. _PopupInner__WEBPACK_IMPORTED_MODULE_4__["default"],
  62512. popupInnerProps,
  62513. [$slots['default']]
  62514. )]
  62515. ) : null]
  62516. );
  62517. }
  62518. return h(
  62519. 'transition',
  62520. transitionProps,
  62521. [h(
  62522. _vc_align__WEBPACK_IMPORTED_MODULE_3__["default"],
  62523. {
  62524. directives: [{
  62525. name: 'show',
  62526. value: visible
  62527. }],
  62528. attrs: {
  62529. target: this.getAlignTarget(),
  62530. monitorWindowResize: true,
  62531. disabled: !visible,
  62532. align: align
  62533. },
  62534. key: 'popup',
  62535. ref: 'alignInstance', on: {
  62536. 'align': this.onAlign
  62537. }
  62538. },
  62539. [h(
  62540. _PopupInner__WEBPACK_IMPORTED_MODULE_4__["default"],
  62541. popupInnerProps,
  62542. [$slots['default']]
  62543. )]
  62544. )]
  62545. );
  62546. },
  62547. getZIndexStyle: function getZIndexStyle() {
  62548. var style = {};
  62549. var props = this.$props;
  62550. if (props.zIndex !== undefined) {
  62551. style.zIndex = props.zIndex;
  62552. }
  62553. return style;
  62554. },
  62555. getMaskElement: function getMaskElement() {
  62556. var h = this.$createElement;
  62557. var props = this.$props;
  62558. var maskElement = null;
  62559. if (props.mask) {
  62560. var maskTransition = this.getMaskTransitionName();
  62561. maskElement = h(_LazyRenderBox__WEBPACK_IMPORTED_MODULE_5__["default"], {
  62562. directives: [{
  62563. name: 'show',
  62564. value: props.visible
  62565. }],
  62566. style: this.getZIndexStyle(),
  62567. key: 'mask',
  62568. 'class': props.prefixCls + '-mask',
  62569. attrs: { visible: props.visible
  62570. }
  62571. });
  62572. if (maskTransition) {
  62573. maskElement = h(
  62574. 'transition',
  62575. {
  62576. attrs: { appear: true, name: maskTransition }
  62577. },
  62578. [maskElement]
  62579. );
  62580. }
  62581. }
  62582. return maskElement;
  62583. }
  62584. },
  62585. render: function render() {
  62586. var h = arguments[0];
  62587. var getMaskElement = this.getMaskElement,
  62588. getPopupElement = this.getPopupElement;
  62589. return h('div', [getMaskElement(), getPopupElement()]);
  62590. }
  62591. });
  62592. /***/ }),
  62593. /***/ "./components/vc-trigger/PopupInner.jsx":
  62594. /*!**********************************************!*\
  62595. !*** ./components/vc-trigger/PopupInner.jsx ***!
  62596. \**********************************************/
  62597. /*! exports provided: default */
  62598. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62599. "use strict";
  62600. __webpack_require__.r(__webpack_exports__);
  62601. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
  62602. /* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
  62603. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  62604. /* harmony import */ var _LazyRenderBox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LazyRenderBox */ "./components/vc-trigger/LazyRenderBox.jsx");
  62605. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  62606. /* harmony default export */ __webpack_exports__["default"] = ({
  62607. props: {
  62608. hiddenClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def(''),
  62609. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  62610. visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
  62611. },
  62612. render: function render() {
  62613. var h = arguments[0];
  62614. var _$props = this.$props,
  62615. prefixCls = _$props.prefixCls,
  62616. visible = _$props.visible,
  62617. hiddenClassName = _$props.hiddenClassName;
  62618. var divProps = {
  62619. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
  62620. };
  62621. return h(
  62622. 'div',
  62623. babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([divProps, { 'class': !visible ? hiddenClassName : '' }]),
  62624. [h(
  62625. _LazyRenderBox__WEBPACK_IMPORTED_MODULE_2__["default"],
  62626. { 'class': prefixCls + '-content', attrs: { visible: visible }
  62627. },
  62628. [this.$slots['default']]
  62629. )]
  62630. );
  62631. }
  62632. });
  62633. /***/ }),
  62634. /***/ "./components/vc-trigger/Trigger.jsx":
  62635. /*!*******************************************!*\
  62636. !*** ./components/vc-trigger/Trigger.jsx ***!
  62637. \*******************************************/
  62638. /*! exports provided: default */
  62639. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62640. "use strict";
  62641. __webpack_require__.r(__webpack_exports__);
  62642. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  62643. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  62644. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "vue");
  62645. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
  62646. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
  62647. /* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_2__);
  62648. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
  62649. /* harmony import */ var _vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-util/Dom/contains */ "./components/vc-util/Dom/contains.js");
  62650. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
  62651. /* harmony import */ var _util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/requestAnimationTimeout */ "./components/_util/requestAnimationTimeout.js");
  62652. /* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
  62653. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
  62654. /* harmony import */ var _Popup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Popup */ "./components/vc-trigger/Popup.jsx");
  62655. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils */ "./components/vc-trigger/utils.js");
  62656. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  62657. /* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
  62658. /* harmony import */ var _util_ContainerRender__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/ContainerRender */ "./components/_util/ContainerRender.jsx");
  62659. vue__WEBPACK_IMPORTED_MODULE_1___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_2___default.a, { name: 'ant-ref' });
  62660. function returnEmptyString() {
  62661. return '';
  62662. }
  62663. function returnDocument() {
  62664. return window.document;
  62665. }
  62666. var ALL_HANDLERS = ['click', 'mousedown', 'touchstart', 'mouseenter', 'mouseleave', 'focus', 'blur', 'contextmenu'];
  62667. /* harmony default export */ __webpack_exports__["default"] = ({
  62668. name: 'Trigger',
  62669. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
  62670. props: {
  62671. action: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string)]).def([]),
  62672. showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def([]),
  62673. hideAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def([]),
  62674. getPopupClassNameFromAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def(returnEmptyString),
  62675. // onPopupVisibleChange: PropTypes.func.def(noop),
  62676. afterPopupVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(_utils__WEBPACK_IMPORTED_MODULE_10__["noop"]),
  62677. popup: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  62678. popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object.def(function () {
  62679. return {};
  62680. }),
  62681. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('rc-trigger-popup'),
  62682. popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def(''),
  62683. popupPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  62684. builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
  62685. popupTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
  62686. popupAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
  62687. mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0),
  62688. mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0.1),
  62689. zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
  62690. focusDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0),
  62691. blurDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0.15),
  62692. getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
  62693. getDocument: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(returnDocument),
  62694. forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  62695. destroyPopupOnHide: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
  62696. mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
  62697. maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(true),
  62698. // onPopupAlign: PropTypes.func.def(noop),
  62699. popupAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object.def(function () {
  62700. return {};
  62701. }),
  62702. popupVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
  62703. defaultPopupVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
  62704. maskTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
  62705. maskAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  62706. stretch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
  62707. alignPoint: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool // Maybe we can support user pass position in the future
  62708. },
  62709. provide: function provide() {
  62710. return {
  62711. vcTriggerContext: this
  62712. };
  62713. },
  62714. inject: {
  62715. vcTriggerContext: { 'default': function _default() {
  62716. return {};
  62717. } },
  62718. savePopupRef: { 'default': function _default() {
  62719. return _utils__WEBPACK_IMPORTED_MODULE_10__["noop"];
  62720. } },
  62721. dialogContext: { 'default': function _default() {
  62722. return null;
  62723. } }
  62724. },
  62725. data: function data() {
  62726. var _this = this;
  62727. var props = this.$props;
  62728. var popupVisible = void 0;
  62729. if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'popupVisible')) {
  62730. popupVisible = !!props.popupVisible;
  62731. } else {
  62732. popupVisible = !!props.defaultPopupVisible;
  62733. }
  62734. ALL_HANDLERS.forEach(function (h) {
  62735. _this['fire' + h] = function (e) {
  62736. _this.fireEvents(h, e);
  62737. };
  62738. });
  62739. return {
  62740. prevPopupVisible: popupVisible,
  62741. sPopupVisible: popupVisible,
  62742. point: null
  62743. };
  62744. },
  62745. watch: {
  62746. popupVisible: function popupVisible(val) {
  62747. if (val !== undefined) {
  62748. this.prevPopupVisible = this.sPopupVisible;
  62749. this.sPopupVisible = val;
  62750. }
  62751. }
  62752. },
  62753. deactivated: function deactivated() {
  62754. this.setPopupVisible(false);
  62755. },
  62756. mounted: function mounted() {
  62757. var _this2 = this;
  62758. this.$nextTick(function () {
  62759. _this2.renderComponent(null);
  62760. _this2.updatedCal();
  62761. });
  62762. },
  62763. updated: function updated() {
  62764. var _this3 = this;
  62765. var triggerAfterPopupVisibleChange = function triggerAfterPopupVisibleChange() {
  62766. if (_this3.sPopupVisible !== _this3.prevPopupVisible) {
  62767. _this3.afterPopupVisibleChange(_this3.sPopupVisible);
  62768. }
  62769. _this3.prevPopupVisible = _this3.sPopupVisible;
  62770. };
  62771. this.renderComponent(null, triggerAfterPopupVisibleChange);
  62772. this.$nextTick(function () {
  62773. _this3.updatedCal();
  62774. });
  62775. },
  62776. beforeDestroy: function beforeDestroy() {
  62777. this.clearDelayTimer();
  62778. this.clearOutsideHandler();
  62779. clearTimeout(this.mouseDownTimeout);
  62780. },
  62781. methods: {
  62782. updatedCal: function updatedCal() {
  62783. var props = this.$props;
  62784. var state = this.$data;
  62785. // We must listen to `mousedown` or `touchstart`, edge case:
  62786. // https://github.com/ant-design/ant-design/issues/5804
  62787. // https://github.com/react-component/calendar/issues/250
  62788. // https://github.com/react-component/trigger/issues/50
  62789. if (state.sPopupVisible) {
  62790. var currentDocument = void 0;
  62791. if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextmenuToShow())) {
  62792. currentDocument = props.getDocument();
  62793. this.clickOutsideHandler = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(currentDocument, 'mousedown', this.onDocumentClick);
  62794. }
  62795. // always hide on mobile
  62796. if (!this.touchOutsideHandler) {
  62797. currentDocument = currentDocument || props.getDocument();
  62798. this.touchOutsideHandler = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(currentDocument, 'touchstart', this.onDocumentClick);
  62799. }
  62800. // close popup when trigger type contains 'onContextmenu' and document is scrolling.
  62801. if (!this.contextmenuOutsideHandler1 && this.isContextmenuToShow()) {
  62802. currentDocument = currentDocument || props.getDocument();
  62803. this.contextmenuOutsideHandler1 = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(currentDocument, 'scroll', this.onContextmenuClose);
  62804. }
  62805. // close popup when trigger type contains 'onContextmenu' and window is blur.
  62806. if (!this.contextmenuOutsideHandler2 && this.isContextmenuToShow()) {
  62807. this.contextmenuOutsideHandler2 = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(window, 'blur', this.onContextmenuClose);
  62808. }
  62809. } else {
  62810. this.clearOutsideHandler();
  62811. }
  62812. },
  62813. onMouseenter: function onMouseenter(e) {
  62814. var mouseEnterDelay = this.$props.mouseEnterDelay;
  62815. this.fireEvents('mouseenter', e);
  62816. this.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e);
  62817. },
  62818. onMouseMove: function onMouseMove(e) {
  62819. this.fireEvents('mousemove', e);
  62820. this.setPoint(e);
  62821. },
  62822. onMouseleave: function onMouseleave(e) {
  62823. this.fireEvents('mouseleave', e);
  62824. this.delaySetPopupVisible(false, this.$props.mouseLeaveDelay);
  62825. },
  62826. onPopupMouseenter: function onPopupMouseenter() {
  62827. this.clearDelayTimer();
  62828. },
  62829. onPopupMouseleave: function onPopupMouseleave(e) {
  62830. if (e && e.relatedTarget && !e.relatedTarget.setTimeout && this._component && this._component.getPopupDomNode && Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__["default"])(this._component.getPopupDomNode(), e.relatedTarget)) {
  62831. return;
  62832. }
  62833. this.delaySetPopupVisible(false, this.$props.mouseLeaveDelay);
  62834. },
  62835. onFocus: function onFocus(e) {
  62836. this.fireEvents('focus', e);
  62837. // incase focusin and focusout
  62838. this.clearDelayTimer();
  62839. if (this.isFocusToShow()) {
  62840. this.focusTime = Date.now();
  62841. this.delaySetPopupVisible(true, this.$props.focusDelay);
  62842. }
  62843. },
  62844. onMousedown: function onMousedown(e) {
  62845. this.fireEvents('mousedown', e);
  62846. this.preClickTime = Date.now();
  62847. },
  62848. onTouchstart: function onTouchstart(e) {
  62849. this.fireEvents('touchstart', e);
  62850. this.preTouchTime = Date.now();
  62851. },
  62852. onBlur: function onBlur(e) {
  62853. if (!Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__["default"])(e.target, e.relatedTarget || document.activeElement)) {
  62854. this.fireEvents('blur', e);
  62855. this.clearDelayTimer();
  62856. if (this.isBlurToHide()) {
  62857. this.delaySetPopupVisible(false, this.$props.blurDelay);
  62858. }
  62859. }
  62860. },
  62861. onContextmenu: function onContextmenu(e) {
  62862. e.preventDefault();
  62863. this.fireEvents('contextmenu', e);
  62864. this.setPopupVisible(true, e);
  62865. },
  62866. onContextmenuClose: function onContextmenuClose() {
  62867. if (this.isContextmenuToShow()) {
  62868. this.close();
  62869. }
  62870. },
  62871. onClick: function onClick(event) {
  62872. this.fireEvents('click', event);
  62873. // focus will trigger click
  62874. if (this.focusTime) {
  62875. var preTime = void 0;
  62876. if (this.preClickTime && this.preTouchTime) {
  62877. preTime = Math.min(this.preClickTime, this.preTouchTime);
  62878. } else if (this.preClickTime) {
  62879. preTime = this.preClickTime;
  62880. } else if (this.preTouchTime) {
  62881. preTime = this.preTouchTime;
  62882. }
  62883. if (Math.abs(preTime - this.focusTime) < 20) {
  62884. return;
  62885. }
  62886. this.focusTime = 0;
  62887. }
  62888. this.preClickTime = 0;
  62889. this.preTouchTime = 0;
  62890. // Only prevent default when all the action is click.
  62891. // https://github.com/ant-design/ant-design/issues/17043
  62892. // https://github.com/ant-design/ant-design/issues/17291
  62893. if (this.isClickToShow() && (this.isClickToHide() || this.isBlurToHide()) && event && event.preventDefault) {
  62894. event.preventDefault();
  62895. }
  62896. if (event && event.domEvent) {
  62897. event.domEvent.preventDefault();
  62898. }
  62899. var nextVisible = !this.$data.sPopupVisible;
  62900. if (this.isClickToHide() && !nextVisible || nextVisible && this.isClickToShow()) {
  62901. this.setPopupVisible(!this.$data.sPopupVisible, event);
  62902. }
  62903. },
  62904. onPopupMouseDown: function onPopupMouseDown() {
  62905. var _this4 = this;
  62906. var _vcTriggerContext = this.vcTriggerContext,
  62907. vcTriggerContext = _vcTriggerContext === undefined ? {} : _vcTriggerContext;
  62908. this.hasPopupMouseDown = true;
  62909. clearTimeout(this.mouseDownTimeout);
  62910. this.mouseDownTimeout = setTimeout(function () {
  62911. _this4.hasPopupMouseDown = false;
  62912. }, 0);
  62913. if (vcTriggerContext.onPopupMouseDown) {
  62914. vcTriggerContext.onPopupMouseDown.apply(vcTriggerContext, arguments);
  62915. }
  62916. },
  62917. onDocumentClick: function onDocumentClick(event) {
  62918. if (this.$props.mask && !this.$props.maskClosable) {
  62919. return;
  62920. }
  62921. var target = event.target;
  62922. var root = this.$el;
  62923. if (!Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__["default"])(root, target) && !this.hasPopupMouseDown) {
  62924. this.close();
  62925. }
  62926. },
  62927. getPopupDomNode: function getPopupDomNode() {
  62928. if (this._component && this._component.getPopupDomNode) {
  62929. return this._component.getPopupDomNode();
  62930. }
  62931. return null;
  62932. },
  62933. getRootDomNode: function getRootDomNode() {
  62934. return this.$el;
  62935. // return this.$el.children[0] || this.$el
  62936. },
  62937. handleGetPopupClassFromAlign: function handleGetPopupClassFromAlign(align) {
  62938. var className = [];
  62939. var props = this.$props;
  62940. var popupPlacement = props.popupPlacement,
  62941. builtinPlacements = props.builtinPlacements,
  62942. prefixCls = props.prefixCls,
  62943. alignPoint = props.alignPoint,
  62944. getPopupClassNameFromAlign = props.getPopupClassNameFromAlign;
  62945. if (popupPlacement && builtinPlacements) {
  62946. className.push(Object(_utils__WEBPACK_IMPORTED_MODULE_10__["getAlignPopupClassName"])(builtinPlacements, prefixCls, align, alignPoint));
  62947. }
  62948. if (getPopupClassNameFromAlign) {
  62949. className.push(getPopupClassNameFromAlign(align));
  62950. }
  62951. return className.join(' ');
  62952. },
  62953. getPopupAlign: function getPopupAlign() {
  62954. var props = this.$props;
  62955. var popupPlacement = props.popupPlacement,
  62956. popupAlign = props.popupAlign,
  62957. builtinPlacements = props.builtinPlacements;
  62958. if (popupPlacement && builtinPlacements) {
  62959. return Object(_utils__WEBPACK_IMPORTED_MODULE_10__["getAlignFromPlacement"])(builtinPlacements, popupPlacement, popupAlign);
  62960. }
  62961. return popupAlign;
  62962. },
  62963. savePopup: function savePopup(node) {
  62964. this._component = node;
  62965. this.savePopupRef(node);
  62966. },
  62967. getComponent: function getComponent() {
  62968. var h = this.$createElement;
  62969. var self = this;
  62970. var mouseProps = {};
  62971. if (this.isMouseEnterToShow()) {
  62972. mouseProps.mouseenter = self.onPopupMouseenter;
  62973. }
  62974. if (this.isMouseLeaveToHide()) {
  62975. mouseProps.mouseleave = self.onPopupMouseleave;
  62976. }
  62977. mouseProps.mousedown = this.onPopupMouseDown;
  62978. mouseProps.touchstart = this.onPopupMouseDown;
  62979. var handleGetPopupClassFromAlign = self.handleGetPopupClassFromAlign,
  62980. getRootDomNode = self.getRootDomNode,
  62981. getContainer = self.getContainer;
  62982. var _self$$props = self.$props,
  62983. prefixCls = _self$$props.prefixCls,
  62984. destroyPopupOnHide = _self$$props.destroyPopupOnHide,
  62985. popupClassName = _self$$props.popupClassName,
  62986. action = _self$$props.action,
  62987. popupAnimation = _self$$props.popupAnimation,
  62988. popupTransitionName = _self$$props.popupTransitionName,
  62989. popupStyle = _self$$props.popupStyle,
  62990. mask = _self$$props.mask,
  62991. maskAnimation = _self$$props.maskAnimation,
  62992. maskTransitionName = _self$$props.maskTransitionName,
  62993. zIndex = _self$$props.zIndex,
  62994. stretch = _self$$props.stretch,
  62995. alignPoint = _self$$props.alignPoint;
  62996. var _$data = this.$data,
  62997. sPopupVisible = _$data.sPopupVisible,
  62998. point = _$data.point;
  62999. var align = this.getPopupAlign();
  63000. var popupProps = {
  63001. props: {
  63002. prefixCls: prefixCls,
  63003. destroyPopupOnHide: destroyPopupOnHide,
  63004. visible: sPopupVisible,
  63005. point: alignPoint && point,
  63006. action: action,
  63007. align: align,
  63008. animation: popupAnimation,
  63009. getClassNameFromAlign: handleGetPopupClassFromAlign,
  63010. stretch: stretch,
  63011. getRootDomNode: getRootDomNode,
  63012. mask: mask,
  63013. zIndex: zIndex,
  63014. transitionName: popupTransitionName,
  63015. maskAnimation: maskAnimation,
  63016. maskTransitionName: maskTransitionName,
  63017. getContainer: getContainer,
  63018. popupClassName: popupClassName,
  63019. popupStyle: popupStyle
  63020. },
  63021. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  63022. align: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this).popupAlign || _utils__WEBPACK_IMPORTED_MODULE_10__["noop"]
  63023. }, mouseProps),
  63024. directives: [{
  63025. name: 'ant-ref',
  63026. value: this.savePopup
  63027. }]
  63028. };
  63029. return h(
  63030. _Popup__WEBPACK_IMPORTED_MODULE_9__["default"],
  63031. popupProps,
  63032. [Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(self, 'popup')]
  63033. );
  63034. },
  63035. getContainer: function getContainer() {
  63036. var props = this.$props,
  63037. dialogContext = this.dialogContext;
  63038. var popupContainer = document.createElement('div');
  63039. // Make sure default popup container will never cause scrollbar appearing
  63040. // https://github.com/react-component/trigger/issues/41
  63041. popupContainer.style.position = 'absolute';
  63042. popupContainer.style.top = '0';
  63043. popupContainer.style.left = '0';
  63044. popupContainer.style.width = '100%';
  63045. var mountNode = props.getPopupContainer ? props.getPopupContainer(this.$el, dialogContext) : props.getDocument().body;
  63046. mountNode.appendChild(popupContainer);
  63047. this.popupContainer = popupContainer;
  63048. return popupContainer;
  63049. },
  63050. setPopupVisible: function setPopupVisible(sPopupVisible, event) {
  63051. var alignPoint = this.alignPoint,
  63052. prevPopupVisible = this.sPopupVisible;
  63053. this.clearDelayTimer();
  63054. if (prevPopupVisible !== sPopupVisible) {
  63055. if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'popupVisible')) {
  63056. this.setState({
  63057. sPopupVisible: sPopupVisible,
  63058. prevPopupVisible: prevPopupVisible
  63059. });
  63060. }
  63061. var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this);
  63062. listeners.popupVisibleChange && listeners.popupVisibleChange(sPopupVisible);
  63063. }
  63064. // Always record the point position since mouseEnterDelay will delay the show
  63065. if (alignPoint && event) {
  63066. this.setPoint(event);
  63067. }
  63068. },
  63069. setPoint: function setPoint(point) {
  63070. var alignPoint = this.$props.alignPoint;
  63071. if (!alignPoint || !point) return;
  63072. this.setState({
  63073. point: {
  63074. pageX: point.pageX,
  63075. pageY: point.pageY
  63076. }
  63077. });
  63078. },
  63079. delaySetPopupVisible: function delaySetPopupVisible(visible, delayS, event) {
  63080. var _this5 = this;
  63081. var delay = delayS * 1000;
  63082. this.clearDelayTimer();
  63083. if (delay) {
  63084. var point = event ? { pageX: event.pageX, pageY: event.pageY } : null;
  63085. this.delayTimer = Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_6__["requestAnimationTimeout"])(function () {
  63086. _this5.setPopupVisible(visible, point);
  63087. _this5.clearDelayTimer();
  63088. }, delay);
  63089. } else {
  63090. this.setPopupVisible(visible, event);
  63091. }
  63092. },
  63093. clearDelayTimer: function clearDelayTimer() {
  63094. if (this.delayTimer) {
  63095. Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_6__["cancelAnimationTimeout"])(this.delayTimer);
  63096. this.delayTimer = null;
  63097. }
  63098. },
  63099. clearOutsideHandler: function clearOutsideHandler() {
  63100. if (this.clickOutsideHandler) {
  63101. this.clickOutsideHandler.remove();
  63102. this.clickOutsideHandler = null;
  63103. }
  63104. if (this.contextmenuOutsideHandler1) {
  63105. this.contextmenuOutsideHandler1.remove();
  63106. this.contextmenuOutsideHandler1 = null;
  63107. }
  63108. if (this.contextmenuOutsideHandler2) {
  63109. this.contextmenuOutsideHandler2.remove();
  63110. this.contextmenuOutsideHandler2 = null;
  63111. }
  63112. if (this.touchOutsideHandler) {
  63113. this.touchOutsideHandler.remove();
  63114. this.touchOutsideHandler = null;
  63115. }
  63116. },
  63117. createTwoChains: function createTwoChains(event) {
  63118. var fn = function fn() {};
  63119. var events = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this);
  63120. if (this.childOriginEvents[event] && events[event]) {
  63121. return this['fire' + event];
  63122. }
  63123. fn = this.childOriginEvents[event] || events[event] || fn;
  63124. return fn;
  63125. },
  63126. isClickToShow: function isClickToShow() {
  63127. var _$props = this.$props,
  63128. action = _$props.action,
  63129. showAction = _$props.showAction;
  63130. return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;
  63131. },
  63132. isContextmenuToShow: function isContextmenuToShow() {
  63133. var _$props2 = this.$props,
  63134. action = _$props2.action,
  63135. showAction = _$props2.showAction;
  63136. return action.indexOf('contextmenu') !== -1 || showAction.indexOf('contextmenu') !== -1;
  63137. },
  63138. isClickToHide: function isClickToHide() {
  63139. var _$props3 = this.$props,
  63140. action = _$props3.action,
  63141. hideAction = _$props3.hideAction;
  63142. return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;
  63143. },
  63144. isMouseEnterToShow: function isMouseEnterToShow() {
  63145. var _$props4 = this.$props,
  63146. action = _$props4.action,
  63147. showAction = _$props4.showAction;
  63148. return action.indexOf('hover') !== -1 || showAction.indexOf('mouseenter') !== -1;
  63149. },
  63150. isMouseLeaveToHide: function isMouseLeaveToHide() {
  63151. var _$props5 = this.$props,
  63152. action = _$props5.action,
  63153. hideAction = _$props5.hideAction;
  63154. return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseleave') !== -1;
  63155. },
  63156. isFocusToShow: function isFocusToShow() {
  63157. var _$props6 = this.$props,
  63158. action = _$props6.action,
  63159. showAction = _$props6.showAction;
  63160. return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;
  63161. },
  63162. isBlurToHide: function isBlurToHide() {
  63163. var _$props7 = this.$props,
  63164. action = _$props7.action,
  63165. hideAction = _$props7.hideAction;
  63166. return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;
  63167. },
  63168. forcePopupAlign: function forcePopupAlign() {
  63169. if (this.$data.sPopupVisible && this._component && this._component.$refs.alignInstance) {
  63170. this._component.$refs.alignInstance.forceAlign();
  63171. }
  63172. },
  63173. fireEvents: function fireEvents(type, e) {
  63174. if (this.childOriginEvents[type]) {
  63175. this.childOriginEvents[type](e);
  63176. }
  63177. this.__emit(type, e);
  63178. },
  63179. close: function close() {
  63180. this.setPopupVisible(false);
  63181. }
  63182. },
  63183. render: function render() {
  63184. var _this6 = this;
  63185. var h = arguments[0];
  63186. var sPopupVisible = this.sPopupVisible;
  63187. var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])(this.$slots['default']);
  63188. var _$props8 = this.$props,
  63189. forceRender = _$props8.forceRender,
  63190. alignPoint = _$props8.alignPoint;
  63191. if (children.length > 1) {
  63192. Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(false, 'Trigger $slots.default.length > 1, just support only one default', true);
  63193. }
  63194. var child = children[0];
  63195. this.childOriginEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getDataEvents"])(child);
  63196. var newChildProps = {
  63197. props: {},
  63198. nativeOn: {},
  63199. key: 'trigger'
  63200. };
  63201. if (this.isContextmenuToShow()) {
  63202. newChildProps.nativeOn.contextmenu = this.onContextmenu;
  63203. } else {
  63204. newChildProps.nativeOn.contextmenu = this.createTwoChains('contextmenu');
  63205. }
  63206. if (this.isClickToHide() || this.isClickToShow()) {
  63207. newChildProps.nativeOn.click = this.onClick;
  63208. newChildProps.nativeOn.mousedown = this.onMousedown;
  63209. newChildProps.nativeOn.touchstart = this.onTouchstart;
  63210. } else {
  63211. newChildProps.nativeOn.click = this.createTwoChains('click');
  63212. newChildProps.nativeOn.mousedown = this.createTwoChains('mousedown');
  63213. newChildProps.nativeOn.touchstart = this.createTwoChains('onTouchstart');
  63214. }
  63215. if (this.isMouseEnterToShow()) {
  63216. newChildProps.nativeOn.mouseenter = this.onMouseenter;
  63217. if (alignPoint) {
  63218. newChildProps.nativeOn.mousemove = this.onMouseMove;
  63219. }
  63220. } else {
  63221. newChildProps.nativeOn.mouseenter = this.createTwoChains('mouseenter');
  63222. }
  63223. if (this.isMouseLeaveToHide()) {
  63224. newChildProps.nativeOn.mouseleave = this.onMouseleave;
  63225. } else {
  63226. newChildProps.nativeOn.mouseleave = this.createTwoChains('mouseleave');
  63227. }
  63228. if (this.isFocusToShow() || this.isBlurToHide()) {
  63229. newChildProps.nativeOn.focus = this.onFocus;
  63230. newChildProps.nativeOn.blur = this.onBlur;
  63231. } else {
  63232. newChildProps.nativeOn.focus = this.createTwoChains('focus');
  63233. newChildProps.nativeOn.blur = function (e) {
  63234. if (e && (!e.relatedTarget || !Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__["default"])(e.target, e.relatedTarget))) {
  63235. _this6.createTwoChains('blur')(e);
  63236. }
  63237. };
  63238. }
  63239. this.trigger = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_12__["cloneElement"])(child, newChildProps);
  63240. return h(_util_ContainerRender__WEBPACK_IMPORTED_MODULE_13__["default"], {
  63241. attrs: {
  63242. parent: this,
  63243. visible: sPopupVisible,
  63244. autoMount: false,
  63245. forceRender: forceRender,
  63246. getComponent: this.getComponent,
  63247. getContainer: this.getContainer,
  63248. children: function children(_ref) {
  63249. var renderComponent = _ref.renderComponent;
  63250. _this6.renderComponent = renderComponent;
  63251. return _this6.trigger;
  63252. }
  63253. }
  63254. });
  63255. }
  63256. });
  63257. /***/ }),
  63258. /***/ "./components/vc-trigger/index.js":
  63259. /*!****************************************!*\
  63260. !*** ./components/vc-trigger/index.js ***!
  63261. \****************************************/
  63262. /*! exports provided: default */
  63263. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63264. "use strict";
  63265. __webpack_require__.r(__webpack_exports__);
  63266. /* harmony import */ var _Trigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Trigger */ "./components/vc-trigger/Trigger.jsx");
  63267. // based on rc-trigger 2.6.5
  63268. /* harmony default export */ __webpack_exports__["default"] = (_Trigger__WEBPACK_IMPORTED_MODULE_0__["default"]);
  63269. /***/ }),
  63270. /***/ "./components/vc-trigger/utils.js":
  63271. /*!****************************************!*\
  63272. !*** ./components/vc-trigger/utils.js ***!
  63273. \****************************************/
  63274. /*! exports provided: getAlignFromPlacement, getAlignPopupClassName, noop */
  63275. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63276. "use strict";
  63277. __webpack_require__.r(__webpack_exports__);
  63278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAlignFromPlacement", function() { return getAlignFromPlacement; });
  63279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAlignPopupClassName", function() { return getAlignPopupClassName; });
  63280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
  63281. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  63282. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  63283. function isPointsEq(a1, a2, isAlignPoint) {
  63284. if (isAlignPoint) {
  63285. return a1[0] === a2[0];
  63286. }
  63287. return a1[0] === a2[0] && a1[1] === a2[1];
  63288. }
  63289. function getAlignFromPlacement(builtinPlacements, placementStr, align) {
  63290. var baseAlign = builtinPlacements[placementStr] || {};
  63291. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, baseAlign, align);
  63292. }
  63293. function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
  63294. var points = align.points;
  63295. for (var placement in builtinPlacements) {
  63296. if (builtinPlacements.hasOwnProperty(placement)) {
  63297. if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) {
  63298. return prefixCls + '-placement-' + placement;
  63299. }
  63300. }
  63301. }
  63302. return '';
  63303. }
  63304. function noop() {}
  63305. /***/ }),
  63306. /***/ "./components/vc-upload/index.js":
  63307. /*!***************************************!*\
  63308. !*** ./components/vc-upload/index.js ***!
  63309. \***************************************/
  63310. /*! exports provided: default */
  63311. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63312. "use strict";
  63313. __webpack_require__.r(__webpack_exports__);
  63314. /* harmony import */ var _src__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src */ "./components/vc-upload/src/index.js");
  63315. // rc-upload 2.9.4
  63316. /* harmony default export */ __webpack_exports__["default"] = (_src__WEBPACK_IMPORTED_MODULE_0__["default"]);
  63317. /***/ }),
  63318. /***/ "./components/vc-upload/src/AjaxUploader.jsx":
  63319. /*!***************************************************!*\
  63320. !*** ./components/vc-upload/src/AjaxUploader.jsx ***!
  63321. \***************************************************/
  63322. /*! exports provided: default */
  63323. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63324. "use strict";
  63325. __webpack_require__.r(__webpack_exports__);
  63326. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  63327. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  63328. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  63329. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
  63330. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  63331. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  63332. /* harmony import */ var lodash_partition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/partition */ "./node_modules/lodash/partition.js");
  63333. /* harmony import */ var lodash_partition__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_partition__WEBPACK_IMPORTED_MODULE_4__);
  63334. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  63335. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
  63336. /* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./request */ "./components/vc-upload/src/request.js");
  63337. /* harmony import */ var _uid__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./uid */ "./components/vc-upload/src/uid.js");
  63338. /* harmony import */ var _attr_accept__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./attr-accept */ "./components/vc-upload/src/attr-accept.js");
  63339. /* harmony import */ var _traverseFileTree__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./traverseFileTree */ "./components/vc-upload/src/traverseFileTree.js");
  63340. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  63341. var upLoadPropTypes = {
  63342. componentTag: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  63343. // style: PropTypes.object,
  63344. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  63345. name: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  63346. // className: PropTypes.string,
  63347. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  63348. directory: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  63349. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  63350. accept: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  63351. // children: PropTypes.any,
  63352. // onStart: PropTypes.func,
  63353. data: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
  63354. action: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
  63355. headers: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
  63356. beforeUpload: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  63357. customRequest: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  63358. // onProgress: PropTypes.func,
  63359. withCredentials: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  63360. openFileDialogOnClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  63361. transformFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
  63362. method: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
  63363. };
  63364. var AjaxUploader = {
  63365. inheritAttrs: false,
  63366. name: 'ajaxUploader',
  63367. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  63368. props: upLoadPropTypes,
  63369. data: function data() {
  63370. this.reqs = {};
  63371. return {
  63372. uid: Object(_uid__WEBPACK_IMPORTED_MODULE_7__["default"])()
  63373. };
  63374. },
  63375. mounted: function mounted() {
  63376. this._isMounted = true;
  63377. },
  63378. beforeDestroy: function beforeDestroy() {
  63379. this._isMounted = false;
  63380. this.abort();
  63381. },
  63382. methods: {
  63383. onChange: function onChange(e) {
  63384. var files = e.target.files;
  63385. this.uploadFiles(files);
  63386. this.reset();
  63387. },
  63388. onClick: function onClick() {
  63389. var el = this.$refs.fileInputRef;
  63390. if (!el) {
  63391. return;
  63392. }
  63393. el.click();
  63394. },
  63395. onKeyDown: function onKeyDown(e) {
  63396. if (e.key === 'Enter') {
  63397. this.onClick();
  63398. }
  63399. },
  63400. onFileDrop: function onFileDrop(e) {
  63401. var _this = this;
  63402. var multiple = this.$props.multiple;
  63403. e.preventDefault();
  63404. if (e.type === 'dragover') {
  63405. return;
  63406. }
  63407. if (this.directory) {
  63408. Object(_traverseFileTree__WEBPACK_IMPORTED_MODULE_9__["default"])(e.dataTransfer.items, this.uploadFiles, function (_file) {
  63409. return Object(_attr_accept__WEBPACK_IMPORTED_MODULE_8__["default"])(_file, _this.accept);
  63410. });
  63411. } else {
  63412. var files = lodash_partition__WEBPACK_IMPORTED_MODULE_4___default()(Array.prototype.slice.call(e.dataTransfer.files), function (file) {
  63413. return Object(_attr_accept__WEBPACK_IMPORTED_MODULE_8__["default"])(file, _this.accept);
  63414. });
  63415. var successFiles = files[0];
  63416. var errorFiles = files[1];
  63417. if (multiple === false) {
  63418. successFiles = successFiles.slice(0, 1);
  63419. }
  63420. this.uploadFiles(successFiles);
  63421. if (errorFiles.length) {
  63422. this.$emit('reject', errorFiles);
  63423. }
  63424. }
  63425. },
  63426. uploadFiles: function uploadFiles(files) {
  63427. var _this2 = this;
  63428. var postFiles = Array.prototype.slice.call(files);
  63429. postFiles.map(function (file) {
  63430. file.uid = Object(_uid__WEBPACK_IMPORTED_MODULE_7__["default"])();
  63431. return file;
  63432. }).forEach(function (file) {
  63433. _this2.upload(file, postFiles);
  63434. });
  63435. },
  63436. upload: function upload(file, fileList) {
  63437. var _this3 = this;
  63438. if (!this.beforeUpload) {
  63439. // always async in case use react state to keep fileList
  63440. return setTimeout(function () {
  63441. return _this3.post(file);
  63442. }, 0);
  63443. }
  63444. var before = this.beforeUpload(file, fileList);
  63445. if (before && before.then) {
  63446. before.then(function (processedFile) {
  63447. var processedFileType = Object.prototype.toString.call(processedFile);
  63448. if (processedFileType === '[object File]' || processedFileType === '[object Blob]') {
  63449. return _this3.post(processedFile);
  63450. }
  63451. return _this3.post(file);
  63452. })['catch'](function (e) {
  63453. console && console.log(e); // eslint-disable-line
  63454. });
  63455. } else if (before !== false) {
  63456. setTimeout(function () {
  63457. return _this3.post(file);
  63458. }, 0);
  63459. }
  63460. },
  63461. post: function post(file) {
  63462. var _this4 = this;
  63463. if (!this._isMounted) {
  63464. return;
  63465. }
  63466. var props = this.$props;
  63467. var data = props.data;
  63468. var _props$transformFile = props.transformFile,
  63469. transformFile = _props$transformFile === undefined ? function (originFile) {
  63470. return originFile;
  63471. } : _props$transformFile;
  63472. new Promise(function (resolve) {
  63473. var action = _this4.action;
  63474. if (typeof action === 'function') {
  63475. return resolve(action(file));
  63476. }
  63477. resolve(action);
  63478. }).then(function (action) {
  63479. var uid = file.uid;
  63480. var request = _this4.customRequest || _request__WEBPACK_IMPORTED_MODULE_6__["default"];
  63481. var transform = Promise.resolve(transformFile(file))['catch'](function (e) {
  63482. console.error(e); // eslint-disable-line no-console
  63483. });
  63484. transform.then(function (transformedFile) {
  63485. if (typeof data === 'function') {
  63486. data = data(file);
  63487. }
  63488. var requestOption = {
  63489. action: action,
  63490. filename: _this4.name,
  63491. data: data,
  63492. file: transformedFile,
  63493. headers: _this4.headers,
  63494. withCredentials: _this4.withCredentials,
  63495. method: props.method || 'post',
  63496. onProgress: function onProgress(e) {
  63497. _this4.$emit('progress', e, file);
  63498. },
  63499. onSuccess: function onSuccess(ret, xhr) {
  63500. delete _this4.reqs[uid];
  63501. _this4.$emit('success', ret, file, xhr);
  63502. },
  63503. onError: function onError(err, ret) {
  63504. delete _this4.reqs[uid];
  63505. _this4.$emit('error', err, ret, file);
  63506. }
  63507. };
  63508. _this4.reqs[uid] = request(requestOption);
  63509. _this4.$emit('start', file);
  63510. });
  63511. });
  63512. },
  63513. reset: function reset() {
  63514. this.setState({
  63515. uid: Object(_uid__WEBPACK_IMPORTED_MODULE_7__["default"])()
  63516. });
  63517. },
  63518. abort: function abort(file) {
  63519. var reqs = this.reqs;
  63520. if (file) {
  63521. var uid = file;
  63522. if (file && file.uid) {
  63523. uid = file.uid;
  63524. }
  63525. if (reqs[uid] && reqs[uid].abort) {
  63526. reqs[uid].abort();
  63527. }
  63528. delete reqs[uid];
  63529. } else {
  63530. Object.keys(reqs).forEach(function (uid) {
  63531. if (reqs[uid] && reqs[uid].abort) {
  63532. reqs[uid].abort();
  63533. }
  63534. delete reqs[uid];
  63535. });
  63536. }
  63537. }
  63538. },
  63539. render: function render() {
  63540. var _classNames;
  63541. var h = arguments[0];
  63542. var $props = this.$props,
  63543. $attrs = this.$attrs;
  63544. var Tag = $props.componentTag,
  63545. prefixCls = $props.prefixCls,
  63546. disabled = $props.disabled,
  63547. multiple = $props.multiple,
  63548. accept = $props.accept,
  63549. directory = $props.directory,
  63550. openFileDialogOnClick = $props.openFileDialogOnClick;
  63551. var cls = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
  63552. var events = disabled ? {} : {
  63553. click: openFileDialogOnClick ? this.onClick : function () {},
  63554. keydown: openFileDialogOnClick ? this.onKeyDown : function () {},
  63555. drop: this.onFileDrop,
  63556. dragover: this.onFileDrop
  63557. };
  63558. var tagProps = {
  63559. on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getListeners"])(this), events),
  63560. attrs: {
  63561. role: 'button',
  63562. tabIndex: disabled ? null : '0'
  63563. },
  63564. 'class': cls
  63565. };
  63566. return h(
  63567. Tag,
  63568. tagProps,
  63569. [h('input', {
  63570. attrs: {
  63571. id: $attrs.id,
  63572. type: 'file',
  63573. accept: accept,
  63574. directory: directory ? 'directory' : null,
  63575. webkitdirectory: directory ? 'webkitdirectory' : null,
  63576. multiple: multiple
  63577. },
  63578. ref: 'fileInputRef',
  63579. on: {
  63580. 'click': function click(e) {
  63581. return e.stopPropagation();
  63582. },
  63583. 'change': this.onChange
  63584. },
  63585. // https://github.com/ant-design/ant-design/issues/19948
  63586. key: this.uid,
  63587. style: { display: 'none' } }), this.$slots['default']]
  63588. );
  63589. }
  63590. };
  63591. /* harmony default export */ __webpack_exports__["default"] = (AjaxUploader);
  63592. /***/ }),
  63593. /***/ "./components/vc-upload/src/IframeUploader.jsx":
  63594. /*!*****************************************************!*\
  63595. !*** ./components/vc-upload/src/IframeUploader.jsx ***!
  63596. \*****************************************************/
  63597. /*! exports provided: default */
  63598. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63599. "use strict";
  63600. __webpack_require__.r(__webpack_exports__);
  63601. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
  63602. /* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
  63603. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  63604. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
  63605. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  63606. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  63607. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
  63608. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
  63609. /* harmony import */ var _uid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./uid */ "./components/vc-upload/src/uid.js");
  63610. /* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
  63611. var IFRAME_STYLE = {
  63612. position: 'absolute',
  63613. top: 0,
  63614. opacity: 0,
  63615. filter: 'alpha(opacity=0)',
  63616. left: 0,
  63617. zIndex: 9999
  63618. };
  63619. // diferent from AjaxUpload, can only upload on at one time, serial seriously
  63620. var IframeUploader = {
  63621. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  63622. props: {
  63623. componentTag: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  63624. // style: PropTypes.object,
  63625. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  63626. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  63627. // className: PropTypes.string,
  63628. accept: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
  63629. // onStart: PropTypes.func,
  63630. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
  63631. // children: PropTypes.any,
  63632. data: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
  63633. action: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
  63634. name: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
  63635. },
  63636. data: function data() {
  63637. this.file = {};
  63638. return {
  63639. uploading: false
  63640. };
  63641. },
  63642. methods: {
  63643. onLoad: function onLoad() {
  63644. if (!this.uploading) {
  63645. return;
  63646. }
  63647. var file = this.file;
  63648. var response = void 0;
  63649. try {
  63650. var doc = this.getIframeDocument();
  63651. var script = doc.getElementsByTagName('script')[0];
  63652. if (script && script.parentNode === doc.body) {
  63653. doc.body.removeChild(script);
  63654. }
  63655. response = doc.body.innerHTML;
  63656. this.$emit('success', response, file);
  63657. } catch (err) {
  63658. Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'cross domain error for Upload. Maybe server should return document.domain script. see Note from https://github.com/react-component/upload');
  63659. response = 'cross-domain';
  63660. this.$emit('error', err, null, file);
  63661. }
  63662. this.endUpload();
  63663. },
  63664. onChange: function onChange() {
  63665. var _this = this;
  63666. var target = this.getFormInputNode();
  63667. // ie8/9 don't support FileList Object
  63668. // http://stackoverflow.com/questions/12830058/ie8-input-type-file-get-files
  63669. var file = this.file = {
  63670. uid: Object(_uid__WEBPACK_IMPORTED_MODULE_5__["default"])(),
  63671. name: target.value && target.value.substring(target.value.lastIndexOf('\\') + 1, target.value.length)
  63672. };
  63673. this.startUpload();
  63674. var props = this.$props;
  63675. if (!props.beforeUpload) {
  63676. return this.post(file);
  63677. }
  63678. var before = props.beforeUpload(file);
  63679. if (before && before.then) {
  63680. before.then(function () {
  63681. _this.post(file);
  63682. }, function () {
  63683. _this.endUpload();
  63684. });
  63685. } else if (before !== false) {
  63686. this.post(file);
  63687. } else {
  63688. this.endUpload();
  63689. }
  63690. },
  63691. getIframeNode: function getIframeNode() {
  63692. return this.$refs.iframeRef;
  63693. },
  63694. getIframeDocument: function getIframeDocument() {
  63695. return this.getIframeNode().contentDocument;
  63696. },
  63697. getFormNode: function getFormNode() {
  63698. return this.getIframeDocument().getElementById('form');
  63699. },
  63700. getFormInputNode: function getFormInputNode() {
  63701. return this.getIframeDocument().getElementById('input');
  63702. },
  63703. getFormDataNode: function getFormDataNode() {
  63704. return this.getIframeDocument().getElementById('data');
  63705. },
  63706. getFileForMultiple: function getFileForMultiple(file) {
  63707. return this.multiple ? [file] : file;
  63708. },
  63709. getIframeHTML: function getIframeHTML(domain) {
  63710. var domainScript = '';
  63711. var domainInput = '';
  63712. if (domain) {
  63713. var script = 'script';
  63714. domainScript = '<' + script + '>document.domain="' + domain + '";</' + script + '>';
  63715. domainInput = '<input name="_documentDomain" value="' + domain + '" />';
  63716. }
  63717. return '\n <!DOCTYPE html>\n <html>\n <head>\n <meta http-equiv="X-UA-Compatible" content="IE=edge" />\n <style>\n body,html {padding:0;margin:0;border:0;overflow:hidden;}\n </style>\n ' + domainScript + '\n </head>\n <body>\n <form method="post"\n encType="multipart/form-data"\n action="" id="form"\n style="display:block;height:9999px;position:relative;overflow:hidden;">\n <input id="input" type="file"\n name="' + this.name + '"\n style="position:absolute;top:0;right:0;height:9999px;font-size:9999px;cursor:pointer;"/>\n ' + domainInput + '\n <span id="data"></span>\n </form>\n </body>\n </html>\n ';
  63718. },
  63719. initIframeSrc: function initIframeSrc() {
  63720. if (this.domain) {
  63721. this.getIframeNode().src = 'javascript:void((function(){\n var d = document;\n d.open();\n d.domain=\'' + this.domain + '\';\n d.write(\'\');\n d.close();\n })())';
  63722. }
  63723. },
  63724. initIframe: function initIframe() {
  63725. var iframeNode = this.getIframeNode();
  63726. var win = iframeNode.contentWindow;
  63727. var doc = void 0;
  63728. this.domain = this.domain || '';
  63729. this.initIframeSrc();
  63730. try {
  63731. doc = win.document;
  63732. } catch (e) {
  63733. this.domain = document.domain;
  63734. this.initIframeSrc();
  63735. win = iframeNode.contentWindow;
  63736. doc = win.document;
  63737. }
  63738. doc.open('text/html', 'replace');
  63739. doc.write(this.getIframeHTML(this.domain));
  63740. doc.close();
  63741. this.getFormInputNode().onchange = this.onChange;
  63742. },
  63743. endUpload: function endUpload() {
  63744. if (this.uploading) {
  63745. this.file = {};
  63746. // hack avoid batch
  63747. this.uploading = false;
  63748. this.setState({
  63749. uploading: false
  63750. });
  63751. this.initIframe();
  63752. }
  63753. },
  63754. startUpload: function startUpload() {
  63755. if (!this.uploading) {
  63756. this.uploading = true;
  63757. this.setState({
  63758. uploading: true
  63759. });
  63760. }
  63761. },
  63762. updateIframeWH: function updateIframeWH() {
  63763. var rootNode = this.$el;
  63764. var iframeNode = this.getIframeNode();
  63765. iframeNode.style.height = rootNode.offsetHeight + 'px';
  63766. iframeNode.style.width = rootNode.offsetWidth + 'px';
  63767. },
  63768. abort: function abort(file) {
  63769. if (file) {
  63770. var uid = file;
  63771. if (file && file.uid) {
  63772. uid = file.uid;
  63773. }
  63774. if (uid === this.file.uid) {
  63775. this.endUpload();
  63776. }
  63777. } else {
  63778. this.endUpload();
  63779. }
  63780. },
  63781. post: function post(file) {
  63782. var _this2 = this;
  63783. var formNode = this.getFormNode();
  63784. var dataSpan = this.getFormDataNode();
  63785. var data = this.$props.data;
  63786. if (typeof data === 'function') {
  63787. data = data(file);
  63788. }
  63789. var inputs = document.createDocumentFragment();
  63790. for (var key in data) {
  63791. if (data.hasOwnProperty(key)) {
  63792. var input = document.createElement('input');
  63793. input.setAttribute('name', key);
  63794. input.value = data[key];
  63795. inputs.appendChild(input);
  63796. }
  63797. }
  63798. dataSpan.appendChild(inputs);
  63799. new Promise(function (resolve) {
  63800. var action = _this2.action;
  63801. if (typeof action === 'function') {
  63802. return resolve(action(file));
  63803. }
  63804. resolve(action);
  63805. }).then(function (action) {
  63806. formNode.setAttribute('action', action);
  63807. formNode.submit();
  63808. dataSpan.innerHTML = '';
  63809. _this2.$emit('start', file);
  63810. });
  63811. }
  63812. },
  63813. mounted: function mounted() {
  63814. var _this3 = this;
  63815. this.$nextTick(function () {
  63816. _this3.updateIframeWH();
  63817. _this3.initIframe();
  63818. });
  63819. },
  63820. updated: function updated() {
  63821. var _this4 = this;
  63822. this.$nextTick(function () {
  63823. _this4.updateIframeWH();
  63824. });
  63825. },
  63826. render: function render() {
  63827. var _classNames;
  63828. var h = arguments[0];
  63829. var _$props = this.$props,
  63830. Tag = _$props.componentTag,
  63831. disabled = _$props.disabled,
  63832. prefixCls = _$props.prefixCls;
  63833. var iframeStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, IFRAME_STYLE, {
  63834. display: this.uploading || disabled ? 'none' : ''
  63835. });
  63836. var cls = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
  63837. return h(
  63838. Tag,
  63839. {
  63840. attrs: { className: cls },
  63841. style: { position: 'relative', zIndex: 0 } },
  63842. [h('iframe', { ref: 'iframeRef', on: {
  63843. 'load': this.onLoad
  63844. },
  63845. style: iframeStyle }), this.$slots['default']]
  63846. );
  63847. }
  63848. };
  63849. /* harmony default export */ __webpack_exports__["default"] = (IframeUploader);
  63850. /***/ }),
  63851. /***/ "./components/vc-upload/src/Upload.jsx":
  63852. /*!*********************************************!*\
  63853. !*** ./components/vc-upload/src/Upload.jsx ***!
  63854. \*********************************************/
  63855. /*! exports provided: default */
  63856. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63857. "use strict";
  63858. __webpack_require__.r(__webpack_exports__);
  63859. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  63860. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  63861. /* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
  63862. /* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
  63863. /* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
  63864. /* harmony import */ var _AjaxUploader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AjaxUploader */ "./components/vc-upload/src/AjaxUploader.jsx");
  63865. /* harmony import */ var _IframeUploader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./IframeUploader */ "./components/vc-upload/src/IframeUploader.jsx");
  63866. function empty() {}
  63867. var uploadProps = {
  63868. componentTag: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  63869. prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  63870. action: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
  63871. name: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  63872. multipart: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  63873. directory: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  63874. // onError: PropTypes.func,
  63875. // onSuccess: PropTypes.func,
  63876. // onProgress: PropTypes.func,
  63877. // onStart: PropTypes.func,
  63878. data: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
  63879. headers: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
  63880. accept: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  63881. multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  63882. disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  63883. beforeUpload: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  63884. customRequest: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
  63885. // onReady: PropTypes.func,
  63886. method: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
  63887. withCredentials: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  63888. supportServerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  63889. openFileDialogOnClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
  63890. transformFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
  63891. };
  63892. /* harmony default export */ __webpack_exports__["default"] = ({
  63893. name: 'Upload',
  63894. mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
  63895. inheritAttrs: false,
  63896. props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(uploadProps, {
  63897. componentTag: 'span',
  63898. prefixCls: 'rc-upload',
  63899. data: {},
  63900. headers: {},
  63901. name: 'file',
  63902. multipart: false,
  63903. // onReady: empty,
  63904. // onStart: empty,
  63905. // onError: empty,
  63906. // onSuccess: empty,
  63907. supportServerRender: false,
  63908. multiple: false,
  63909. beforeUpload: empty,
  63910. withCredentials: false,
  63911. openFileDialogOnClick: true
  63912. }),
  63913. data: function data() {
  63914. return {
  63915. Component: null
  63916. };
  63917. },
  63918. mounted: function mounted() {
  63919. var _this = this;
  63920. this.$nextTick(function () {
  63921. if (_this.supportServerRender) {
  63922. _this.setState({
  63923. Component: _this.getComponent()
  63924. }, function () {
  63925. _this.$emit('ready');
  63926. });
  63927. }
  63928. });
  63929. },
  63930. methods: {
  63931. getComponent: function getComponent() {
  63932. return typeof File !== 'undefined' ? _AjaxUploader__WEBPACK_IMPORTED_MODULE_4__["default"] : _IframeUploader__WEBPACK_IMPORTED_MODULE_5__["default"];
  63933. },
  63934. abort: function abort(file) {
  63935. this.$refs.uploaderRef.abort(file);
  63936. }
  63937. },
  63938. render: function render() {
  63939. var h = arguments[0];
  63940. var componentProps = {
  63941. props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props),
  63942. on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this),
  63943. ref: 'uploaderRef',
  63944. attrs: this.$attrs
  63945. };
  63946. if (this.supportServerRender) {
  63947. var _ComponentUploader = this.Component;
  63948. if (_ComponentUploader) {
  63949. return h(
  63950. _ComponentUploader,
  63951. componentProps,
  63952. [this.$slots['default']]
  63953. );
  63954. }
  63955. return null;
  63956. }
  63957. var ComponentUploader = this.getComponent();
  63958. return h(
  63959. ComponentUploader,
  63960. componentProps,
  63961. [this.$slots['default']]
  63962. );
  63963. }
  63964. });
  63965. /***/ }),
  63966. /***/ "./components/vc-upload/src/attr-accept.js":
  63967. /*!*************************************************!*\
  63968. !*** ./components/vc-upload/src/attr-accept.js ***!
  63969. \*************************************************/
  63970. /*! exports provided: default */
  63971. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  63972. "use strict";
  63973. __webpack_require__.r(__webpack_exports__);
  63974. function endsWith(str, suffix) {
  63975. return str.indexOf(suffix, str.length - suffix.length) !== -1;
  63976. }
  63977. /* harmony default export */ __webpack_exports__["default"] = (function (file, acceptedFiles) {
  63978. if (file && acceptedFiles) {
  63979. var acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(',');
  63980. var fileName = file.name || '';
  63981. var mimeType = file.type || '';
  63982. var baseMimeType = mimeType.replace(/\/.*$/, '');
  63983. return acceptedFilesArray.some(function (type) {
  63984. var validType = type.trim();
  63985. if (validType.charAt(0) === '.') {
  63986. return endsWith(fileName.toLowerCase(), validType.toLowerCase());
  63987. } else if (/\/\*$/.test(validType)) {
  63988. // This is something like a image/* mime type
  63989. return baseMimeType === validType.replace(/\/.*$/, '');
  63990. }
  63991. return mimeType === validType;
  63992. });
  63993. }
  63994. return true;
  63995. });
  63996. /***/ }),
  63997. /***/ "./components/vc-upload/src/index.js":
  63998. /*!*******************************************!*\
  63999. !*** ./components/vc-upload/src/index.js ***!
  64000. \*******************************************/
  64001. /*! exports provided: default */
  64002. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64003. "use strict";
  64004. __webpack_require__.r(__webpack_exports__);
  64005. /* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Upload */ "./components/vc-upload/src/Upload.jsx");
  64006. // export this package's api
  64007. /* harmony default export */ __webpack_exports__["default"] = (_Upload__WEBPACK_IMPORTED_MODULE_0__["default"]);
  64008. /***/ }),
  64009. /***/ "./components/vc-upload/src/request.js":
  64010. /*!*********************************************!*\
  64011. !*** ./components/vc-upload/src/request.js ***!
  64012. \*********************************************/
  64013. /*! exports provided: default */
  64014. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64015. "use strict";
  64016. __webpack_require__.r(__webpack_exports__);
  64017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return upload; });
  64018. function getError(option, xhr) {
  64019. var msg = 'cannot ' + option.method + ' ' + option.action + ' ' + xhr.status + '\'';
  64020. var err = new Error(msg);
  64021. err.status = xhr.status;
  64022. err.method = option.method;
  64023. err.url = option.action;
  64024. return err;
  64025. }
  64026. function getBody(xhr) {
  64027. var text = xhr.responseText || xhr.response;
  64028. if (!text) {
  64029. return text;
  64030. }
  64031. try {
  64032. return JSON.parse(text);
  64033. } catch (e) {
  64034. return text;
  64035. }
  64036. }
  64037. // option {
  64038. // onProgress: (event: { percent: number }): void,
  64039. // onError: (event: Error, body?: Object): void,
  64040. // onSuccess: (body: Object): void,
  64041. // data: Object,
  64042. // filename: String,
  64043. // file: File,
  64044. // withCredentials: Boolean,
  64045. // action: String,
  64046. // headers: Object,
  64047. // }
  64048. function upload(option) {
  64049. var xhr = new window.XMLHttpRequest();
  64050. if (option.onProgress && xhr.upload) {
  64051. xhr.upload.onprogress = function progress(e) {
  64052. if (e.total > 0) {
  64053. e.percent = e.loaded / e.total * 100;
  64054. }
  64055. option.onProgress(e);
  64056. };
  64057. }
  64058. var formData = new window.FormData();
  64059. if (option.data) {
  64060. Object.keys(option.data).forEach(function (key) {
  64061. var value = option.data[key];
  64062. // support key-value array data
  64063. if (Array.isArray(value)) {
  64064. value.forEach(function (item) {
  64065. // { list: [ 11, 22 ] }
  64066. // formData.append('list[]', 11);
  64067. formData.append(key + '[]', item);
  64068. });
  64069. return;
  64070. }
  64071. formData.append(key, option.data[key]);
  64072. });
  64073. }
  64074. formData.append(option.filename, option.file);
  64075. xhr.onerror = function error(e) {
  64076. option.onError(e);
  64077. };
  64078. xhr.onload = function onload() {
  64079. // allow success when 2xx status
  64080. // see https://github.com/react-component/upload/issues/34
  64081. if (xhr.status < 200 || xhr.status >= 300) {
  64082. return option.onError(getError(option, xhr), getBody(xhr));
  64083. }
  64084. option.onSuccess(getBody(xhr), xhr);
  64085. };
  64086. xhr.open(option.method, option.action, true);
  64087. // Has to be after `.open()`. See https://github.com/enyo/dropzone/issues/179
  64088. if (option.withCredentials && 'withCredentials' in xhr) {
  64089. xhr.withCredentials = true;
  64090. }
  64091. var headers = option.headers || {};
  64092. // when set headers['X-Requested-With'] = null , can close default XHR header
  64093. // see https://github.com/react-component/upload/issues/33
  64094. if (headers['X-Requested-With'] !== null) {
  64095. xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
  64096. }
  64097. for (var h in headers) {
  64098. if (headers.hasOwnProperty(h) && headers[h] !== null) {
  64099. xhr.setRequestHeader(h, headers[h]);
  64100. }
  64101. }
  64102. xhr.send(formData);
  64103. return {
  64104. abort: function abort() {
  64105. xhr.abort();
  64106. }
  64107. };
  64108. }
  64109. /***/ }),
  64110. /***/ "./components/vc-upload/src/traverseFileTree.js":
  64111. /*!******************************************************!*\
  64112. !*** ./components/vc-upload/src/traverseFileTree.js ***!
  64113. \******************************************************/
  64114. /*! exports provided: default */
  64115. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64116. "use strict";
  64117. __webpack_require__.r(__webpack_exports__);
  64118. function loopFiles(item, callback) {
  64119. var dirReader = item.createReader();
  64120. var fileList = [];
  64121. function sequence() {
  64122. dirReader.readEntries(function (entries) {
  64123. var entryList = Array.prototype.slice.apply(entries);
  64124. fileList = fileList.concat(entryList);
  64125. // Check if all the file has been viewed
  64126. var isFinished = !entryList.length;
  64127. if (isFinished) {
  64128. callback(fileList);
  64129. } else {
  64130. sequence();
  64131. }
  64132. });
  64133. }
  64134. sequence();
  64135. }
  64136. var traverseFileTree = function traverseFileTree(files, callback, isAccepted) {
  64137. var _traverseFileTree = function _traverseFileTree(item, path) {
  64138. path = path || '';
  64139. if (item.isFile) {
  64140. item.file(function (file) {
  64141. if (isAccepted(file)) {
  64142. // https://github.com/ant-design/ant-design/issues/16426
  64143. if (item.fullPath && !file.webkitRelativePath) {
  64144. Object.defineProperties(file, {
  64145. webkitRelativePath: {
  64146. writable: true
  64147. }
  64148. });
  64149. file.webkitRelativePath = item.fullPath.replace(/^\//, '');
  64150. Object.defineProperties(file, {
  64151. webkitRelativePath: {
  64152. writable: false
  64153. }
  64154. });
  64155. }
  64156. callback([file]);
  64157. }
  64158. });
  64159. } else if (item.isDirectory) {
  64160. loopFiles(item, function (entries) {
  64161. entries.forEach(function (entryItem) {
  64162. _traverseFileTree(entryItem, '' + path + item.name + '/');
  64163. });
  64164. });
  64165. }
  64166. };
  64167. var _iteratorNormalCompletion = true;
  64168. var _didIteratorError = false;
  64169. var _iteratorError = undefined;
  64170. try {
  64171. for (var _iterator = files[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  64172. var file = _step.value;
  64173. _traverseFileTree(file.webkitGetAsEntry());
  64174. }
  64175. } catch (err) {
  64176. _didIteratorError = true;
  64177. _iteratorError = err;
  64178. } finally {
  64179. try {
  64180. if (!_iteratorNormalCompletion && _iterator['return']) {
  64181. _iterator['return']();
  64182. }
  64183. } finally {
  64184. if (_didIteratorError) {
  64185. throw _iteratorError;
  64186. }
  64187. }
  64188. }
  64189. };
  64190. /* harmony default export */ __webpack_exports__["default"] = (traverseFileTree);
  64191. /***/ }),
  64192. /***/ "./components/vc-upload/src/uid.js":
  64193. /*!*****************************************!*\
  64194. !*** ./components/vc-upload/src/uid.js ***!
  64195. \*****************************************/
  64196. /*! exports provided: default */
  64197. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64198. "use strict";
  64199. __webpack_require__.r(__webpack_exports__);
  64200. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return uid; });
  64201. var now = +new Date();
  64202. var index = 0;
  64203. function uid() {
  64204. return "vc-upload-" + now + "-" + ++index;
  64205. }
  64206. /***/ }),
  64207. /***/ "./components/vc-util/Dom/addEventListener.js":
  64208. /*!****************************************************!*\
  64209. !*** ./components/vc-util/Dom/addEventListener.js ***!
  64210. \****************************************************/
  64211. /*! exports provided: default */
  64212. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64213. "use strict";
  64214. __webpack_require__.r(__webpack_exports__);
  64215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addEventListenerWrap; });
  64216. /* harmony import */ var add_dom_event_listener__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! add-dom-event-listener */ "./node_modules/add-dom-event-listener/lib/index.js");
  64217. /* harmony import */ var add_dom_event_listener__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(add_dom_event_listener__WEBPACK_IMPORTED_MODULE_0__);
  64218. function addEventListenerWrap(target, eventType, cb, option) {
  64219. return add_dom_event_listener__WEBPACK_IMPORTED_MODULE_0___default()(target, eventType, cb, option);
  64220. }
  64221. /***/ }),
  64222. /***/ "./components/vc-util/Dom/class.js":
  64223. /*!*****************************************!*\
  64224. !*** ./components/vc-util/Dom/class.js ***!
  64225. \*****************************************/
  64226. /*! exports provided: hasClass, addClass, removeClass */
  64227. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64228. "use strict";
  64229. __webpack_require__.r(__webpack_exports__);
  64230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasClass", function() { return hasClass; });
  64231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addClass", function() { return addClass; });
  64232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeClass", function() { return removeClass; });
  64233. function hasClass(node, className) {
  64234. if (node.classList) {
  64235. return node.classList.contains(className);
  64236. }
  64237. var originClass = node.className;
  64238. return (' ' + originClass + ' ').indexOf(' ' + className + ' ') > -1;
  64239. }
  64240. function addClass(node, className) {
  64241. if (node.classList) {
  64242. node.classList.add(className);
  64243. } else {
  64244. if (!hasClass(node, className)) {
  64245. node.className = node.className + ' ' + className;
  64246. }
  64247. }
  64248. }
  64249. function removeClass(node, className) {
  64250. if (node.classList) {
  64251. node.classList.remove(className);
  64252. } else {
  64253. if (hasClass(node, className)) {
  64254. var originClass = node.className;
  64255. node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', ' ');
  64256. }
  64257. }
  64258. }
  64259. /***/ }),
  64260. /***/ "./components/vc-util/Dom/contains.js":
  64261. /*!********************************************!*\
  64262. !*** ./components/vc-util/Dom/contains.js ***!
  64263. \********************************************/
  64264. /*! exports provided: default */
  64265. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64266. "use strict";
  64267. __webpack_require__.r(__webpack_exports__);
  64268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return contains; });
  64269. function contains(root, n) {
  64270. var node = n;
  64271. while (node) {
  64272. if (node === root) {
  64273. return true;
  64274. }
  64275. node = node.parentNode;
  64276. }
  64277. return false;
  64278. }
  64279. /***/ }),
  64280. /***/ "./components/vc-util/warning.js":
  64281. /*!***************************************!*\
  64282. !*** ./components/vc-util/warning.js ***!
  64283. \***************************************/
  64284. /*! exports provided: warning, note, resetWarned, call, warningOnce, noteOnce, default */
  64285. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64286. "use strict";
  64287. __webpack_require__.r(__webpack_exports__);
  64288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warning", function() { return warning; });
  64289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "note", function() { return note; });
  64290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetWarned", function() { return resetWarned; });
  64291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "call", function() { return call; });
  64292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warningOnce", function() { return warningOnce; });
  64293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noteOnce", function() { return noteOnce; });
  64294. /* eslint-disable no-console */
  64295. var warned = {};
  64296. function warning(valid, message) {
  64297. // Support uglify
  64298. if ( true && !valid && console !== undefined) {
  64299. console.error('Warning: ' + message);
  64300. }
  64301. }
  64302. function note(valid, message) {
  64303. // Support uglify
  64304. if ( true && !valid && console !== undefined) {
  64305. console.warn('Note: ' + message);
  64306. }
  64307. }
  64308. function resetWarned() {
  64309. warned = {};
  64310. }
  64311. function call(method, valid, message) {
  64312. if (!valid && !warned[message]) {
  64313. method(false, message);
  64314. warned[message] = true;
  64315. }
  64316. }
  64317. function warningOnce(valid, message) {
  64318. call(warning, valid, message);
  64319. }
  64320. function noteOnce(valid, message) {
  64321. call(note, valid, message);
  64322. }
  64323. /* harmony default export */ __webpack_exports__["default"] = (warningOnce);
  64324. /* eslint-enable */
  64325. /***/ }),
  64326. /***/ "./components/version/index.js":
  64327. /*!*************************************!*\
  64328. !*** ./components/version/index.js ***!
  64329. \*************************************/
  64330. /*! exports provided: default */
  64331. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64332. "use strict";
  64333. __webpack_require__.r(__webpack_exports__);
  64334. /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../package.json */ "./package.json");
  64335. var _package_json__WEBPACK_IMPORTED_MODULE_0___namespace = /*#__PURE__*/__webpack_require__.t(/*! ../../package.json */ "./package.json", 1);
  64336. /* harmony default export */ __webpack_exports__["default"] = (_package_json__WEBPACK_IMPORTED_MODULE_0__.version);
  64337. /***/ }),
  64338. /***/ "./components/version/style/index.js":
  64339. /*!*******************************************!*\
  64340. !*** ./components/version/style/index.js ***!
  64341. \*******************************************/
  64342. /*! no exports provided */
  64343. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64344. "use strict";
  64345. __webpack_require__.r(__webpack_exports__);
  64346. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
  64347. /* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
  64348. // empty file prevent babel-plugin-import error
  64349. /***/ }),
  64350. /***/ "./index.js":
  64351. /*!******************!*\
  64352. !*** ./index.js ***!
  64353. \******************/
  64354. /*! no static exports found */
  64355. /***/ (function(module, exports, __webpack_require__) {
  64356. /* eslint no-console:0 */
  64357. function camelCase(name) {
  64358. return name.charAt(0).toUpperCase() + name.slice(1).replace(/-(\w)/g, function (m, n) {
  64359. return n.toUpperCase();
  64360. });
  64361. }
  64362. // Just import style for https://github.com/ant-design/ant-design/issues/3745
  64363. var req = __webpack_require__("./components sync recursive ^\\.\\/[^_][\\w-]+\\/style\\/index\\.js?$");
  64364. req.keys().forEach(function (mod) {
  64365. var v = req(mod);
  64366. if (v && v['default']) {
  64367. v = v['default'];
  64368. }
  64369. var match = mod.match(/^\.\/([^_][\w-]+)\/index\.js?$/);
  64370. if (match && match[1]) {
  64371. if (match[1] === 'message' || match[1] === 'notification') {
  64372. // message & notification should not be capitalized
  64373. exports[match[1]] = v;
  64374. } else {
  64375. exports[camelCase(match[1])] = v;
  64376. }
  64377. }
  64378. });
  64379. module.exports = __webpack_require__(/*! ./components */ "./components/index.js");
  64380. /***/ }),
  64381. /***/ "./node_modules/@ant-design/colors/lib/generate.js":
  64382. /*!*********************************************************!*\
  64383. !*** ./node_modules/@ant-design/colors/lib/generate.js ***!
  64384. \*********************************************************/
  64385. /*! no static exports found */
  64386. /***/ (function(module, exports, __webpack_require__) {
  64387. "use strict";
  64388. var __importDefault = (this && this.__importDefault) || function (mod) {
  64389. return (mod && mod.__esModule) ? mod : { "default": mod };
  64390. };
  64391. Object.defineProperty(exports, "__esModule", { value: true });
  64392. var tinycolor2_1 = __importDefault(__webpack_require__(/*! tinycolor2 */ "./node_modules/tinycolor2/tinycolor.js"));
  64393. var hueStep = 2; // 色相阶梯
  64394. var saturationStep = 16; // 饱和度阶梯,浅色部分
  64395. var saturationStep2 = 5; // 饱和度阶梯,深色部分
  64396. var brightnessStep1 = 5; // 亮度阶梯,浅色部分
  64397. var brightnessStep2 = 15; // 亮度阶梯,深色部分
  64398. var lightColorCount = 5; // 浅色数量,主色上
  64399. var darkColorCount = 4; // 深色数量,主色下
  64400. function getHue(hsv, i, light) {
  64401. var hue;
  64402. // 根据色相不同,色相转向不同
  64403. if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
  64404. hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
  64405. }
  64406. else {
  64407. hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
  64408. }
  64409. if (hue < 0) {
  64410. hue += 360;
  64411. }
  64412. else if (hue >= 360) {
  64413. hue -= 360;
  64414. }
  64415. return hue;
  64416. }
  64417. function getSaturation(hsv, i, light) {
  64418. // grey color don't change saturation
  64419. if (hsv.h === 0 && hsv.s === 0) {
  64420. return hsv.s;
  64421. }
  64422. var saturation;
  64423. if (light) {
  64424. saturation = Math.round(hsv.s * 100) - saturationStep * i;
  64425. }
  64426. else if (i === darkColorCount) {
  64427. saturation = Math.round(hsv.s * 100) + saturationStep;
  64428. }
  64429. else {
  64430. saturation = Math.round(hsv.s * 100) + saturationStep2 * i;
  64431. }
  64432. // 边界值修正
  64433. if (saturation > 100) {
  64434. saturation = 100;
  64435. }
  64436. // 第一格的 s 限制在 6-10 之间
  64437. if (light && i === lightColorCount && saturation > 10) {
  64438. saturation = 10;
  64439. }
  64440. if (saturation < 6) {
  64441. saturation = 6;
  64442. }
  64443. return saturation;
  64444. }
  64445. function getValue(hsv, i, light) {
  64446. if (light) {
  64447. return Math.round(hsv.v * 100) + brightnessStep1 * i;
  64448. }
  64449. return Math.round(hsv.v * 100) - brightnessStep2 * i;
  64450. }
  64451. function generate(color) {
  64452. var patterns = [];
  64453. var pColor = tinycolor2_1.default(color);
  64454. for (var i = lightColorCount; i > 0; i -= 1) {
  64455. var hsv = pColor.toHsv();
  64456. var colorString = tinycolor2_1.default({
  64457. h: getHue(hsv, i, true),
  64458. s: getSaturation(hsv, i, true),
  64459. v: getValue(hsv, i, true),
  64460. }).toHexString();
  64461. patterns.push(colorString);
  64462. }
  64463. patterns.push(pColor.toHexString());
  64464. for (var i = 1; i <= darkColorCount; i += 1) {
  64465. var hsv = pColor.toHsv();
  64466. var colorString = tinycolor2_1.default({
  64467. h: getHue(hsv, i),
  64468. s: getSaturation(hsv, i),
  64469. v: getValue(hsv, i),
  64470. }).toHexString();
  64471. patterns.push(colorString);
  64472. }
  64473. return patterns;
  64474. }
  64475. exports.default = generate;
  64476. /***/ }),
  64477. /***/ "./node_modules/@ant-design/colors/lib/index.js":
  64478. /*!******************************************************!*\
  64479. !*** ./node_modules/@ant-design/colors/lib/index.js ***!
  64480. \******************************************************/
  64481. /*! no static exports found */
  64482. /***/ (function(module, exports, __webpack_require__) {
  64483. "use strict";
  64484. var __importDefault = (this && this.__importDefault) || function (mod) {
  64485. return (mod && mod.__esModule) ? mod : { "default": mod };
  64486. };
  64487. Object.defineProperty(exports, "__esModule", { value: true });
  64488. var generate_1 = __importDefault(__webpack_require__(/*! ./generate */ "./node_modules/@ant-design/colors/lib/generate.js"));
  64489. exports.generate = generate_1.default;
  64490. var presetPrimaryColors = {
  64491. red: '#F5222D',
  64492. volcano: '#FA541C',
  64493. orange: '#FA8C16',
  64494. gold: '#FAAD14',
  64495. yellow: '#FADB14',
  64496. lime: '#A0D911',
  64497. green: '#52C41A',
  64498. cyan: '#13C2C2',
  64499. blue: '#1890FF',
  64500. geekblue: '#2F54EB',
  64501. purple: '#722ED1',
  64502. magenta: '#EB2F96',
  64503. grey: '#666666',
  64504. };
  64505. exports.presetPrimaryColors = presetPrimaryColors;
  64506. var presetPalettes = {};
  64507. exports.presetPalettes = presetPalettes;
  64508. Object.keys(presetPrimaryColors).forEach(function (key) {
  64509. presetPalettes[key] = generate_1.default(presetPrimaryColors[key]);
  64510. presetPalettes[key].primary = presetPalettes[key][5];
  64511. });
  64512. var red = presetPalettes.red;
  64513. exports.red = red;
  64514. var volcano = presetPalettes.volcano;
  64515. exports.volcano = volcano;
  64516. var gold = presetPalettes.gold;
  64517. exports.gold = gold;
  64518. var orange = presetPalettes.orange;
  64519. exports.orange = orange;
  64520. var yellow = presetPalettes.yellow;
  64521. exports.yellow = yellow;
  64522. var lime = presetPalettes.lime;
  64523. exports.lime = lime;
  64524. var green = presetPalettes.green;
  64525. exports.green = green;
  64526. var cyan = presetPalettes.cyan;
  64527. exports.cyan = cyan;
  64528. var blue = presetPalettes.blue;
  64529. exports.blue = blue;
  64530. var geekblue = presetPalettes.geekblue;
  64531. exports.geekblue = geekblue;
  64532. var purple = presetPalettes.purple;
  64533. exports.purple = purple;
  64534. var magenta = presetPalettes.magenta;
  64535. exports.magenta = magenta;
  64536. var grey = presetPalettes.grey;
  64537. exports.grey = grey;
  64538. /***/ }),
  64539. /***/ "./node_modules/@ant-design/icons-vue/es/components/Icon.js":
  64540. /*!******************************************************************!*\
  64541. !*** ./node_modules/@ant-design/icons-vue/es/components/Icon.js ***!
  64542. \******************************************************************/
  64543. /*! exports provided: default */
  64544. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64545. "use strict";
  64546. __webpack_require__.r(__webpack_exports__);
  64547. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  64548. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  64549. /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "./node_modules/@ant-design/icons-vue/es/utils.js");
  64550. var twoToneColorPalette = {
  64551. primaryColor: '#333',
  64552. secondaryColor: '#E6E6E6'
  64553. };
  64554. var Icon = {
  64555. name: 'AntdIcon',
  64556. props: ['type', 'primaryColor', 'secondaryColor'],
  64557. displayName: 'IconVue',
  64558. definitions: new _utils__WEBPACK_IMPORTED_MODULE_1__["MiniMap"](),
  64559. data: function data() {
  64560. return {
  64561. twoToneColorPalette: twoToneColorPalette
  64562. };
  64563. },
  64564. add: function add() {
  64565. for (var _len = arguments.length, icons = Array(_len), _key = 0; _key < _len; _key++) {
  64566. icons[_key] = arguments[_key];
  64567. }
  64568. icons.forEach(function (icon) {
  64569. Icon.definitions.set(Object(_utils__WEBPACK_IMPORTED_MODULE_1__["withSuffix"])(icon.name, icon.theme), icon);
  64570. });
  64571. },
  64572. clear: function clear() {
  64573. Icon.definitions.clear();
  64574. },
  64575. get: function get(key) {
  64576. var colors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : twoToneColorPalette;
  64577. if (key) {
  64578. var target = Icon.definitions.get(key);
  64579. if (target && typeof target.icon === 'function') {
  64580. target = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, target, {
  64581. icon: target.icon(colors.primaryColor, colors.secondaryColor)
  64582. });
  64583. }
  64584. return target;
  64585. }
  64586. },
  64587. setTwoToneColors: function setTwoToneColors(_ref) {
  64588. var primaryColor = _ref.primaryColor,
  64589. secondaryColor = _ref.secondaryColor;
  64590. twoToneColorPalette.primaryColor = primaryColor;
  64591. twoToneColorPalette.secondaryColor = secondaryColor || Object(_utils__WEBPACK_IMPORTED_MODULE_1__["getSecondaryColor"])(primaryColor);
  64592. },
  64593. getTwoToneColors: function getTwoToneColors() {
  64594. return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, twoToneColorPalette);
  64595. },
  64596. render: function render(h) {
  64597. var _$props = this.$props,
  64598. type = _$props.type,
  64599. primaryColor = _$props.primaryColor,
  64600. secondaryColor = _$props.secondaryColor;
  64601. var target = void 0;
  64602. var colors = twoToneColorPalette;
  64603. if (primaryColor) {
  64604. colors = {
  64605. primaryColor: primaryColor,
  64606. secondaryColor: secondaryColor || Object(_utils__WEBPACK_IMPORTED_MODULE_1__["getSecondaryColor"])(primaryColor)
  64607. };
  64608. }
  64609. if (Object(_utils__WEBPACK_IMPORTED_MODULE_1__["isIconDefinition"])(type)) {
  64610. target = type;
  64611. } else if (typeof type === 'string') {
  64612. target = Icon.get(type, colors);
  64613. if (!target) {
  64614. // log(`Could not find icon: ${type}`);
  64615. return null;
  64616. }
  64617. }
  64618. if (!target) {
  64619. Object(_utils__WEBPACK_IMPORTED_MODULE_1__["log"])('type should be string or icon definiton, but got ' + type);
  64620. return null;
  64621. }
  64622. if (target && typeof target.icon === 'function') {
  64623. target = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, target, {
  64624. icon: target.icon(colors.primaryColor, colors.secondaryColor)
  64625. });
  64626. }
  64627. return Object(_utils__WEBPACK_IMPORTED_MODULE_1__["generate"])(h, target.icon, 'svg-' + target.name, {
  64628. attrs: {
  64629. 'data-icon': target.name,
  64630. width: '1em',
  64631. height: '1em',
  64632. fill: 'currentColor',
  64633. 'aria-hidden': 'true'
  64634. },
  64635. on: this.$listeners
  64636. });
  64637. }
  64638. };
  64639. /* istanbul ignore next */
  64640. Icon.install = function (Vue) {
  64641. Vue.component(Icon.name, Icon);
  64642. };
  64643. /* harmony default export */ __webpack_exports__["default"] = (Icon);
  64644. /***/ }),
  64645. /***/ "./node_modules/@ant-design/icons-vue/es/index.js":
  64646. /*!********************************************************!*\
  64647. !*** ./node_modules/@ant-design/icons-vue/es/index.js ***!
  64648. \********************************************************/
  64649. /*! exports provided: default */
  64650. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64651. "use strict";
  64652. __webpack_require__.r(__webpack_exports__);
  64653. /* harmony import */ var _components_Icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Icon */ "./node_modules/@ant-design/icons-vue/es/components/Icon.js");
  64654. /* harmony default export */ __webpack_exports__["default"] = (_components_Icon__WEBPACK_IMPORTED_MODULE_0__["default"]);
  64655. /***/ }),
  64656. /***/ "./node_modules/@ant-design/icons-vue/es/utils.js":
  64657. /*!********************************************************!*\
  64658. !*** ./node_modules/@ant-design/icons-vue/es/utils.js ***!
  64659. \********************************************************/
  64660. /*! exports provided: log, isIconDefinition, normalizeAttrs, MiniMap, generate, getSecondaryColor, withSuffix */
  64661. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  64662. "use strict";
  64663. __webpack_require__.r(__webpack_exports__);
  64664. /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "log", function() { return log; });
  64665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIconDefinition", function() { return isIconDefinition; });
  64666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeAttrs", function() { return normalizeAttrs; });
  64667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MiniMap", function() { return MiniMap; });
  64668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generate", function() { return generate; });
  64669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSecondaryColor", function() { return getSecondaryColor; });
  64670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withSuffix", function() { return withSuffix; });
  64671. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  64672. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  64673. /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");
  64674. /* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
  64675. /* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/createClass */ "./node_modules/babel-runtime/helpers/createClass.js");
  64676. /* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
  64677. /* harmony import */ var _ant_design_colors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/colors */ "./node_modules/@ant-design/colors/lib/index.js");
  64678. /* harmony import */ var _ant_design_colors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_ant_design_colors__WEBPACK_IMPORTED_MODULE_3__);
  64679. function log(message) {
  64680. if (!(process && process.env && "development" === 'production')) {
  64681. console.error('[@ant-design/icons-vue]: ' + message + '.');
  64682. }
  64683. }
  64684. function isIconDefinition(target) {
  64685. return typeof target === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (typeof target.icon === 'object' || typeof target.icon === 'function');
  64686. }
  64687. function normalizeAttrs() {
  64688. var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  64689. return Object.keys(attrs).reduce(function (acc, key) {
  64690. var val = attrs[key];
  64691. switch (key) {
  64692. case 'class':
  64693. acc.className = val;
  64694. delete acc['class'];
  64695. break;
  64696. default:
  64697. acc[key] = val;
  64698. }
  64699. return acc;
  64700. }, {});
  64701. }
  64702. var MiniMap = function () {
  64703. function MiniMap() {
  64704. babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, MiniMap);
  64705. this.collection = {};
  64706. }
  64707. babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(MiniMap, [{
  64708. key: 'clear',
  64709. value: function clear() {
  64710. this.collection = {};
  64711. }
  64712. }, {
  64713. key: 'delete',
  64714. value: function _delete(key) {
  64715. return delete this.collection[key];
  64716. }
  64717. }, {
  64718. key: 'get',
  64719. value: function get(key) {
  64720. return this.collection[key];
  64721. }
  64722. }, {
  64723. key: 'has',
  64724. value: function has(key) {
  64725. return Boolean(this.collection[key]);
  64726. }
  64727. }, {
  64728. key: 'set',
  64729. value: function set(key, value) {
  64730. this.collection[key] = value;
  64731. return this;
  64732. }
  64733. }, {
  64734. key: 'size',
  64735. get: function get() {
  64736. return Object.keys(this.collection).length;
  64737. }
  64738. }]);
  64739. return MiniMap;
  64740. }();
  64741. function generate(h, node, key, rootProps) {
  64742. if (!rootProps) {
  64743. return h(node.tag, { key: key, attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, normalizeAttrs(node.attrs)) }, (node.children || []).map(function (child, index) {
  64744. return generate(h, child, key + '-' + node.tag + '-' + index);
  64745. }));
  64746. }
  64747. return h(node.tag, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
  64748. key: key
  64749. }, rootProps, {
  64750. attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, normalizeAttrs(node.attrs), rootProps.attrs)
  64751. }), (node.children || []).map(function (child, index) {
  64752. return generate(h, child, key + '-' + node.tag + '-' + index);
  64753. }));
  64754. }
  64755. function getSecondaryColor(primaryColor) {
  64756. // choose the second color
  64757. return Object(_ant_design_colors__WEBPACK_IMPORTED_MODULE_3__["generate"])(primaryColor)[0];
  64758. }
  64759. function withSuffix(name, theme) {
  64760. switch (theme) {
  64761. case 'fill':
  64762. return name + '-fill';
  64763. case 'outline':
  64764. return name + '-o';
  64765. case 'twotone':
  64766. return name + '-twotone';
  64767. default:
  64768. throw new TypeError('Unknown theme type: ' + theme + ', name: ' + name);
  64769. }
  64770. }
  64771. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ "./node_modules/process/browser.js")))
  64772. /***/ }),
  64773. /***/ "./node_modules/@ant-design/icons/lib/dist.js":
  64774. /*!****************************************************!*\
  64775. !*** ./node_modules/@ant-design/icons/lib/dist.js ***!
  64776. \****************************************************/
  64777. /*! no static exports found */
  64778. /***/ (function(module, exports, __webpack_require__) {
  64779. "use strict";
  64780. Object.defineProperty(exports, "__esModule", { value: true });
  64781. var normalViewBox = '0 0 1024 1024';
  64782. var newViewBox = '64 64 896 896';
  64783. var fill = 'fill';
  64784. var outline = 'outline';
  64785. var twotone = 'twotone';
  64786. function getNode(viewBox) {
  64787. var paths = [];
  64788. for (var _i = 1; _i < arguments.length; _i++) {
  64789. paths[_i - 1] = arguments[_i];
  64790. }
  64791. return {
  64792. tag: 'svg',
  64793. attrs: { viewBox: viewBox, focusable: false },
  64794. children: paths.map(function (path) {
  64795. if (Array.isArray(path)) {
  64796. return {
  64797. tag: 'path',
  64798. attrs: {
  64799. fill: path[0],
  64800. d: path[1]
  64801. }
  64802. };
  64803. }
  64804. return {
  64805. tag: 'path',
  64806. attrs: {
  64807. d: path
  64808. }
  64809. };
  64810. })
  64811. };
  64812. }
  64813. function getIcon(name, theme, icon) {
  64814. return {
  64815. name: name,
  64816. theme: theme,
  64817. icon: icon
  64818. };
  64819. }
  64820. exports.AccountBookFill = getIcon('account-book', fill, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM648.3 426.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V752c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 0 1 8.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z'));
  64821. exports.AlertFill = getIcon('alert', fill, getNode(newViewBox, 'M512 244c176.18 0 319 142.82 319 319v233a32 32 0 0 1-32 32H225a32 32 0 0 1-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 0 1 8 8v96a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8V76a8 8 0 0 1 8-8zM177.25 191.66a8 8 0 0 1 11.32 0l67.88 67.88a8 8 0 0 1 0 11.31l-39.6 39.6a8 8 0 0 1-11.31 0l-67.88-67.88a8 8 0 0 1 0-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 0 1 0 11.3l-67.88 67.9a8 8 0 0 1-11.32 0l-39.6-39.6a8 8 0 0 1 0-11.32l67.89-67.88a8 8 0 0 1 11.31 0zM192 892h640a32 32 0 0 1 32 32v24a8 8 0 0 1-8 8H168a8 8 0 0 1-8-8v-24a32 32 0 0 1 32-32zm148-317v253h64V575h-64z'));
  64822. exports.AlipaySquareFill = getIcon('alipay-square', fill, getNode(newViewBox, 'M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm29.4 663.2S703 689.4 598.7 639.5C528.8 725.2 438.6 777.3 345 777.3c-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9 114.3 38.2 140.2 40.2 140.2 40.2v122.3z'));
  64823. exports.AliwangwangFill = getIcon('aliwangwang', fill, getNode(newViewBox, 'M868.2 377.4c-18.9-45.1-46.3-85.6-81.2-120.6a377.26 377.26 0 0 0-120.5-81.2A375.65 375.65 0 0 0 519 145.8c-41.9 0-82.9 6.7-121.9 20C306 123.3 200.8 120 170.6 120c-2.2 0-7.4 0-9.4.2-11.9.4-22.8 6.5-29.2 16.4-6.5 9.9-7.7 22.4-3.4 33.5l64.3 161.6a378.59 378.59 0 0 0-52.8 193.2c0 51.4 10 101 29.8 147.6 18.9 45 46.2 85.6 81.2 120.5 34.7 34.8 75.4 62.1 120.5 81.2C418.3 894 467.9 904 519 904c51.3 0 100.9-10 147.7-29.8 44.9-18.9 85.5-46.3 120.4-81.2 34.7-34.8 62.1-75.4 81.2-120.6a376.5 376.5 0 0 0 29.8-147.6c-.2-51.2-10.1-100.8-29.9-147.4zm-325.2 79c0 20.4-16.6 37.1-37.1 37.1-20.4 0-37.1-16.7-37.1-37.1v-55.1c0-20.4 16.6-37.1 37.1-37.1 20.4 0 37.1 16.6 37.1 37.1v55.1zm175.2 0c0 20.4-16.6 37.1-37.1 37.1S644 476.8 644 456.4v-55.1c0-20.4 16.7-37.1 37.1-37.1 20.4 0 37.1 16.6 37.1 37.1v55.1z'));
  64824. exports.AlipayCircleFill = getIcon('alipay-circle', fill, getNode(newViewBox, 'M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zm460.5 67c100.1 33.4 154.7 43 166.7 44.8A445.9 445.9 0 0 0 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c155.9 0 293.2-79.7 373.5-200.5-75.6-29.8-213.6-85-286.8-120.1-69.9 85.7-160.1 137.8-253.7 137.8-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9z'));
  64825. exports.AmazonCircleFill = getIcon('amazon-circle', fill, getNode(newViewBox, 'M485 467.5c-11.6 4.9-20.9 12.2-27.8 22-6.9 9.8-10.4 21.6-10.4 35.5 0 17.8 7.5 31.5 22.4 41.2 14.1 9.1 28.9 11.4 44.4 6.8 17.9-5.2 30-17.9 36.4-38.1 3-9.3 4.5-19.7 4.5-31.3v-50.2c-12.6.4-24.4 1.6-35.5 3.7-11.1 2.1-22.4 5.6-34 10.4zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm35.8 262.7c-7.2-10.9-20.1-16.4-38.7-16.4-1.3 0-3 .1-5.3.3-2.2.2-6.6 1.5-12.9 3.7a79.4 79.4 0 0 0-17.9 9.1c-5.5 3.8-11.5 10-18 18.4-6.4 8.5-11.5 18.4-15.3 29.8l-94-8.4c0-12.4 2.4-24.7 7-36.9 4.7-12.2 11.8-23.9 21.4-35 9.6-11.2 21.1-21 34.5-29.4 13.4-8.5 29.6-15.2 48.4-20.3 18.9-5.1 39.1-7.6 60.9-7.6 21.3 0 40.6 2.6 57.8 7.7 17.2 5.2 31.1 11.5 41.4 19.1a117 117 0 0 1 25.9 25.7c6.9 9.6 11.7 18.5 14.4 26.7 2.7 8.2 4 15.7 4 22.8v182.5c0 6.4 1.4 13 4.3 19.8 2.9 6.8 6.3 12.8 10.2 18 3.9 5.2 7.9 9.9 12 14.3 4.1 4.3 7.6 7.7 10.6 9.9l4.1 3.4-72.5 69.4c-8.5-7.7-16.9-15.4-25.2-23.4-8.3-8-14.5-14-18.5-18.1l-6.1-6.2c-2.4-2.3-5-5.7-8-10.2-8.1 12.2-18.5 22.8-31.1 31.8-12.7 9-26.3 15.6-40.7 19.7-14.5 4.1-29.4 6.5-44.7 7.1-15.3.6-30-1.5-43.9-6.5-13.9-5-26.5-11.7-37.6-20.3-11.1-8.6-19.9-20.2-26.5-35-6.6-14.8-9.9-31.5-9.9-50.4 0-17.4 3-33.3 8.9-47.7 6-14.5 13.6-26.5 23-36.1 9.4-9.6 20.7-18.2 34-25.7s26.4-13.4 39.2-17.7c12.8-4.2 26.6-7.8 41.5-10.7 14.9-2.9 27.6-4.8 38.2-5.7 10.6-.9 21.2-1.6 31.8-2v-39.4c0-13.5-2.3-23.5-6.7-30.1zm180.5 379.6c-2.8 3.3-7.5 7.8-14.1 13.5s-16.8 12.7-30.5 21.1c-13.7 8.4-28.8 16-45 22.9-16.3 6.9-36.3 12.9-60.1 18-23.7 5.1-48.2 7.6-73.3 7.6-25.4 0-50.7-3.2-76.1-9.6-25.4-6.4-47.6-14.3-66.8-23.7-19.1-9.4-37.6-20.2-55.1-32.2-17.6-12.1-31.7-22.9-42.4-32.5-10.6-9.6-19.6-18.7-26.8-27.1-1.7-1.9-2.8-3.6-3.2-5.1-.4-1.5-.3-2.8.3-3.7.6-.9 1.5-1.6 2.6-2.2a7.42 7.42 0 0 1 7.4.8c40.9 24.2 72.9 41.3 95.9 51.4 82.9 36.4 168 45.7 255.3 27.9 40.5-8.3 82.1-22.2 124.9-41.8 3.2-1.2 6-1.5 8.3-.9 2.3.6 3.5 2.4 3.5 5.4 0 2.8-1.6 6.3-4.8 10.2zm59.9-29c-1.8 11.1-4.9 21.6-9.1 31.8-7.2 17.1-16.3 30-27.1 38.4-3.6 2.9-6.4 3.8-8.3 2.8-1.9-1-1.9-3.5 0-7.4 4.5-9.3 9.2-21.8 14.2-37.7 5-15.8 5.7-26 2.1-30.5-1.1-1.5-2.7-2.6-5-3.6-2.2-.9-5.1-1.5-8.6-1.9s-6.7-.6-9.4-.8c-2.8-.2-6.5-.2-11.2 0-4.7.2-8 .4-10.1.6a874.4 874.4 0 0 1-17.1 1.5c-1.3.2-2.7.4-4.1.5-1.5.1-2.7.2-3.5.3l-2.7.3c-1 .1-1.7.2-2.2.2h-3.2l-1-.2-.6-.5-.5-.9c-1.3-3.3 3.7-7.4 15-12.4s22.3-8.1 32.9-9.3c9.8-1.5 21.3-1.5 34.5-.3s21.3 3.7 24.3 7.4c2.3 3.5 2.5 10.7.7 21.7z'));
  64826. exports.AndroidFill = getIcon('android', fill, getNode(newViewBox, 'M270.1 741.7c0 23.4 19.1 42.5 42.6 42.5h48.7v120.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V784.1h85v120.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V784.1h48.7c23.5 0 42.6-19.1 42.6-42.5V346.4h-486v395.3zm357.1-600.1l44.9-65c2.6-3.8 2-8.9-1.5-11.4-3.5-2.4-8.5-1.2-11.1 2.6l-46.6 67.6c-30.7-12.1-64.9-18.8-100.8-18.8-35.9 0-70.1 6.7-100.8 18.8l-46.6-67.5c-2.6-3.8-7.6-5.1-11.1-2.6-3.5 2.4-4.1 7.4-1.5 11.4l44.9 65c-71.4 33.2-121.4 96.1-127.8 169.6h486c-6.6-73.6-56.7-136.5-128-169.7zM409.5 244.1a26.9 26.9 0 1 1 26.9-26.9 26.97 26.97 0 0 1-26.9 26.9zm208.4 0a26.9 26.9 0 1 1 26.9-26.9 26.97 26.97 0 0 1-26.9 26.9zm223.4 100.7c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V400.1c.1-30.6-24.3-55.3-54.6-55.3zm-658.6 0c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V400.1c0-30.6-24.5-55.3-54.6-55.3z'));
  64827. exports.AmazonSquareFill = getIcon('amazon-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM547.8 326.7c-7.2-10.9-20.1-16.4-38.7-16.4-1.3 0-3 .1-5.3.3-2.2.2-6.6 1.5-12.9 3.7a79.4 79.4 0 0 0-17.9 9.1c-5.5 3.8-11.5 10-18 18.4-6.4 8.5-11.5 18.4-15.3 29.8l-94-8.4c0-12.4 2.4-24.7 7-36.9s11.8-23.9 21.4-35c9.6-11.2 21.1-21 34.5-29.4 13.4-8.5 29.6-15.2 48.4-20.3 18.9-5.1 39.1-7.6 60.9-7.6 21.3 0 40.6 2.6 57.8 7.7 17.2 5.2 31.1 11.5 41.4 19.1a117 117 0 0 1 25.9 25.7c6.9 9.6 11.7 18.5 14.4 26.7 2.7 8.2 4 15.7 4 22.8v182.5c0 6.4 1.4 13 4.3 19.8 2.9 6.8 6.3 12.8 10.2 18 3.9 5.2 7.9 9.9 12 14.3 4.1 4.3 7.6 7.7 10.6 9.9l4.1 3.4-72.5 69.4c-8.5-7.7-16.9-15.4-25.2-23.4-8.3-8-14.5-14-18.5-18.1l-6.1-6.2c-2.4-2.3-5-5.7-8-10.2-8.1 12.2-18.5 22.8-31.1 31.8-12.7 9-26.3 15.6-40.7 19.7-14.5 4.1-29.4 6.5-44.7 7.1-15.3.6-30-1.5-43.9-6.5-13.9-5-26.5-11.7-37.6-20.3-11.1-8.6-19.9-20.2-26.5-35-6.6-14.8-9.9-31.5-9.9-50.4 0-17.4 3-33.3 8.9-47.7 6-14.5 13.6-26.5 23-36.1 9.4-9.6 20.7-18.2 34-25.7s26.4-13.4 39.2-17.7c12.8-4.2 26.6-7.8 41.5-10.7 14.9-2.9 27.6-4.8 38.2-5.7 10.6-.9 21.2-1.6 31.8-2v-39.4c0-13.5-2.3-23.5-6.7-30.1zm180.5 379.6c-2.8 3.3-7.5 7.8-14.1 13.5s-16.8 12.7-30.5 21.1c-13.7 8.4-28.8 16-45 22.9-16.3 6.9-36.3 12.9-60.1 18-23.7 5.1-48.2 7.6-73.3 7.6-25.4 0-50.7-3.2-76.1-9.6-25.4-6.4-47.6-14.3-66.8-23.7-19.1-9.4-37.6-20.2-55.1-32.2-17.6-12.1-31.7-22.9-42.4-32.5-10.6-9.6-19.6-18.7-26.8-27.1-1.7-1.9-2.8-3.6-3.2-5.1-.4-1.5-.3-2.8.3-3.7.6-.9 1.5-1.6 2.6-2.2a7.42 7.42 0 0 1 7.4.8c40.9 24.2 72.9 41.3 95.9 51.4 82.9 36.4 168 45.7 255.3 27.9 40.5-8.3 82.1-22.2 124.9-41.8 3.2-1.2 6-1.5 8.3-.9 2.3.6 3.5 2.4 3.5 5.4 0 2.8-1.6 6.3-4.8 10.2zm59.9-29c-1.8 11.1-4.9 21.6-9.1 31.8-7.2 17.1-16.3 30-27.1 38.4-3.6 2.9-6.4 3.8-8.3 2.8-1.9-1-1.9-3.5 0-7.4 4.5-9.3 9.2-21.8 14.2-37.7 5-15.8 5.7-26 2.1-30.5-1.1-1.5-2.7-2.6-5-3.6-2.2-.9-5.1-1.5-8.6-1.9s-6.7-.6-9.4-.8c-2.8-.2-6.5-.2-11.2 0-4.7.2-8 .4-10.1.6a874.4 874.4 0 0 1-17.1 1.5c-1.3.2-2.7.4-4.1.5-1.5.1-2.7.2-3.5.3l-2.7.3c-1 .1-1.7.2-2.2.2h-3.2l-1-.2-.6-.5-.5-.9c-1.3-3.3 3.7-7.4 15-12.4s22.3-8.1 32.9-9.3c9.8-1.5 21.3-1.5 34.5-.3s21.3 3.7 24.3 7.4c2.3 3.5 2.5 10.7.7 21.7zM485 467.5c-11.6 4.9-20.9 12.2-27.8 22-6.9 9.8-10.4 21.6-10.4 35.5 0 17.8 7.5 31.5 22.4 41.2 14.1 9.1 28.9 11.4 44.4 6.8 17.9-5.2 30-17.9 36.4-38.1 3-9.3 4.5-19.7 4.5-31.3v-50.2c-12.6.4-24.4 1.6-35.5 3.7-11.1 2.1-22.4 5.6-34 10.4z'));
  64828. exports.ApiFill = getIcon('api', fill, getNode(newViewBox, 'M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM578.9 546.7a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 68.9-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2z'));
  64829. exports.AppstoreFill = getIcon('appstore', fill, getNode(newViewBox, 'M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z'));
  64830. exports.AudioFill = getIcon('audio', fill, getNode(newViewBox, 'M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm330-170c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z'));
  64831. exports.AppleFill = getIcon('apple', fill, getNode(newViewBox, 'M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z'));
  64832. exports.BackwardFill = getIcon('backward', fill, getNode(normalViewBox, 'M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9zm320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9z'));
  64833. exports.BankFill = getIcon('bank', fill, getNode(newViewBox, 'M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 0 0-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM381 836H264V462h117v374zm189 0H453V462h117v374zm190 0H642V462h118v374z'));
  64834. exports.BehanceCircleFill = getIcon('behance-circle', fill, getNode(newViewBox, 'M420.3 470.3c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 0 0-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1a50.5 50.5 0 0 0 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm86.5 286.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 0 1-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 0 1-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 0 1-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0 1 38.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 0 0-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7z'));
  64835. exports.BellFill = getIcon('bell', fill, getNode(newViewBox, 'M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z'));
  64836. exports.BehanceSquareFill = getIcon('behance-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM598.5 350.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 0 1-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 0 1-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 0 1-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0 1 38.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 0 0-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7zm-248.5-10.1c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 0 0-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1s12.7-3.8 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8z'));
  64837. exports.BookFill = getIcon('book', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM668 345.9L621.5 312 572 347.4V124h96v221.9z'));
  64838. exports.BoxPlotFill = getIcon('box-plot', fill, getNode(newViewBox, 'M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H448v432h344c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-728 80v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h152V296H232c-4.4 0-8 3.6-8 8z'));
  64839. exports.BugFill = getIcon('bug', fill, getNode(newViewBox, 'M304 280h416c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 0 0-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 0 0-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z', 'M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 0 1-63 63H232a63 63 0 0 1-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0 0 22.7 49c24.3 41.5 59 76.2 100.5 100.5 28.9 16.9 61 28.8 95.3 34.5 4.4 0 8-3.6 8-8V484c0-4.4 3.6-8 8-8h60c4.4 0 8 3.6 8 8v464.2c0 4.4 3.6 8 8 8 34.3-5.7 66.4-17.6 95.3-34.5a281.38 281.38 0 0 0 123.2-149.5A120.4 120.4 0 0 1 836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  64840. exports.CalculatorFill = getIcon('calculator', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM440.2 765h-50.8c-2.2 0-4.5-1.1-5.9-2.9L348 718.6l-35.5 43.5a7.38 7.38 0 0 1-5.9 2.9h-50.8c-6.6 0-10.2-7.9-5.8-13.1l62.7-76.8-61.2-74.9c-4.3-5.2-.7-13.1 5.9-13.1h50.9c2.2 0 4.5 1.1 5.9 2.9l34 41.6 34-41.6c1.5-1.9 3.6-2.9 5.9-2.9h50.8c6.6 0 10.2 7.9 5.9 13.1L383.5 675l62.7 76.8c4.2 5.3.6 13.2-6 13.2zm7.8-382c0 2.2-1.4 4-3.2 4H376v68.7c0 1.9-1.8 3.3-4 3.3h-48c-2.2 0-4-1.4-4-3.2V387h-68.8c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4H320v-68.8c0-1.8 1.8-3.2 4-3.2h48c2.2 0 4 1.4 4 3.2V331h68.7c1.9 0 3.3 1.8 3.3 4v48zm328 369c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-104c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-265c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48z'));
  64841. exports.BulbFill = getIcon('bulb', fill, getNode(newViewBox, 'M348 676.1C250 619.4 184 513.4 184 392c0-181.1 146.9-328 328-328s328 146.9 328 328c0 121.4-66 227.4-164 284.1V792c0 17.7-14.3 32-32 32H380c-17.7 0-32-14.3-32-32V676.1zM392 888h240c4.4 0 8 3.6 8 8v32c0 17.7-14.3 32-32 32H416c-17.7 0-32-14.3-32-32v-32c0-4.4 3.6-8 8-8z'));
  64842. exports.BuildFill = getIcon('build', fill, getNode(newViewBox, 'M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zM612 746H412V546h200v200zm268-268H680V278h200v200z'));
  64843. exports.CalendarFill = getIcon('calendar', fill, getNode(newViewBox, 'M112 880c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V460H112v420zm768-696H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v176h800V216c0-17.7-14.3-32-32-32z'));
  64844. exports.CameraFill = getIcon('camera', fill, getNode(newViewBox, 'M864 260H728l-32.4-90.8a32.07 32.07 0 0 0-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 260H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V340c0-44.2-35.8-80-80-80zM512 716c-88.4 0-160-71.6-160-160s71.6-160 160-160 160 71.6 160 160-71.6 160-160 160zm-96-160a96 96 0 1 0 192 0 96 96 0 1 0-192 0z'));
  64845. exports.CarFill = getIcon('car', fill, getNode(newViewBox, 'M959 413.4L935.3 372a8 8 0 0 0-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 0 0-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 0 0-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 0 0 3-10.8zM264 621c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm388 75c0 4.4-3.6 8-8 8H380c-4.4 0-8-3.6-8-8v-84c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v36h168v-36c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v84zm108-75c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM220 418l72.7-199.9.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220z'));
  64846. exports.CaretDownFill = getIcon('caret-down', fill, getNode(normalViewBox, 'M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z'));
  64847. exports.CaretLeftFill = getIcon('caret-left', fill, getNode(normalViewBox, 'M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z'));
  64848. exports.CaretRightFill = getIcon('caret-right', fill, getNode(normalViewBox, 'M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z'));
  64849. exports.CarryOutFill = getIcon('carry-out', fill, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM694.5 432.7L481.9 725.4a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.1 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.8-6.6 13-6.6H688c6.5.1 10.3 7.5 6.5 12.8z'));
  64850. exports.CaretUpFill = getIcon('caret-up', fill, getNode(normalViewBox, 'M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z'));
  64851. exports.CheckCircleFill = getIcon('check-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z'));
  64852. exports.CheckSquareFill = getIcon('check-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM695.5 365.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L308.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H689c6.5 0 10.3 7.4 6.5 12.7z'));
  64853. exports.ChromeFill = getIcon('chrome', fill, getNode(newViewBox, 'M371.8 512c0 77.5 62.7 140.2 140.2 140.2S652.2 589.5 652.2 512 589.5 371.8 512 371.8 371.8 434.4 371.8 512zM900 362.4l-234.3 12.1c63.6 74.3 64.6 181.5 11.1 263.7l-188 289.2c78 4.2 158.4-12.9 231.2-55.2 180-104 253-322.1 180-509.8zM320.3 591.9L163.8 284.1A415.35 415.35 0 0 0 96 512c0 208 152.3 380.3 351.4 410.8l106.9-209.4c-96.6 18.2-189.9-34.8-234-121.5zm218.5-285.5l344.4 18.1C848 254.7 792.6 194 719.8 151.7 653.9 113.6 581.5 95.5 510.5 96c-122.5.5-242.2 55.2-322.1 154.5l128.2 196.9c32-91.9 124.8-146.7 222.2-141z'));
  64854. exports.CiCircleFill = getIcon('ci-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-63.6 656c-103 0-162.4-68.6-162.4-182.6v-49C286 373.5 345.4 304 448.3 304c88.3 0 152.3 56.9 152.3 138.1 0 2.4-2 4.4-4.4 4.4h-52.6c-4.2 0-7.6-3.2-8-7.4-4-46.1-37.6-77.6-87-77.6-61.1 0-95.6 45.4-95.6 126.9v49.3c0 80.3 34.5 125.1 95.6 125.1 49.3 0 82.8-29.5 87-72.4.4-4.1 3.8-7.3 8-7.3h52.7c2.4 0 4.4 2 4.4 4.4 0 77.4-64.3 132.5-152.3 132.5zM738 704.1c0 4.4-3.6 8-8 8h-50.4c-4.4 0-8-3.6-8-8V319.9c0-4.4 3.6-8 8-8H730c4.4 0 8 3.6 8 8v384.2z'));
  64855. exports.ClockCircleFill = getIcon('clock-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm176.5 585.7l-28.6 39a7.99 7.99 0 0 1-11.2 1.7L483.3 569.8a7.92 7.92 0 0 1-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z'));
  64856. exports.CloseCircleFill = getIcon('close-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z'));
  64857. exports.CloudFill = getIcon('cloud', fill, getNode(newViewBox, 'M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3z'));
  64858. exports.CloseSquareFill = getIcon('close-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM676.1 657.9c4.4 5.2.7 13.1-6.1 13.1h-58.9c-4.7 0-9.2-2.1-12.3-5.7L512 561.8l-86.8 103.5c-3 3.6-7.5 5.7-12.3 5.7H354c-6.8 0-10.5-7.9-6.1-13.1L470.2 512 347.9 366.1A7.95 7.95 0 0 1 354 353h58.9c4.7 0 9.2 2.1 12.3 5.7L512 462.2l86.8-103.5c3-3.6 7.5-5.7 12.3-5.7H670c6.8 0 10.5 7.9 6.1 13.1L553.8 512l122.3 145.9z'));
  64859. exports.CodeSandboxSquareFill = getIcon('code-sandbox-square', fill, getNode(newViewBox, 'M307.9 536.7l87.6 49.9V681l96.7 55.9V524.8L307.9 418.4zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM755.7 653.2L512 794 268.3 653.2V371.8l110-63.6-.4-.2h.2L512 231l134 77h-.2l-.3.2 110.1 63.6v281.4zm-223.9 83.7l97.3-56.2v-94.1l87-49.5V418.5L531.8 525zm-20-352L418 331l-91.1 52.6 185.2 107 185.2-106.9-91.4-52.8z'));
  64860. exports.CodeSandboxCircleFill = getIcon('code-sandbox-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm243.7 589.2L512 794 268.3 653.2V371.8l110-63.6-.4-.2h.2L512 231l134 77h-.2l-.3.2 110.1 63.6v281.4zM307.9 536.7l87.6 49.9V681l96.7 55.9V524.8L307.9 418.4zm203.9-151.8L418 331l-91.1 52.6 185.2 107 185.2-106.9-91.4-52.8zm20 352l97.3-56.2v-94.1l87-49.5V418.5L531.8 525z'));
  64861. exports.CodeFill = getIcon('code', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM513.1 518.1l-192 161c-5.2 4.4-13.1.7-13.1-6.1v-62.7c0-2.3 1.1-4.6 2.9-6.1L420.7 512l-109.8-92.2a7.63 7.63 0 0 1-2.9-6.1V351c0-6.8 7.9-10.5 13.1-6.1l192 160.9c3.9 3.2 3.9 9.1 0 12.3zM716 673c0 4.4-3.4 8-7.5 8h-185c-4.1 0-7.5-3.6-7.5-8v-48c0-4.4 3.4-8 7.5-8h185c4.1 0 7.5 3.6 7.5 8v48z'));
  64862. exports.CompassFill = getIcon('compass', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM327.3 702.4c-2 .9-4.4 0-5.3-2.1-.4-1-.4-2.2 0-3.2l98.7-225.5 132.1 132.1-225.5 98.7zm375.1-375.1l-98.7 225.5-132.1-132.1L697.1 322c2-.9 4.4 0 5.3 2.1.4 1 .4 2.1 0 3.2z'));
  64863. exports.CodepenCircleFill = getIcon('codepen-circle', fill, getNode(newViewBox, 'M488.1 414.7V303.4L300.9 428l83.6 55.8zm254.1 137.7v-79.8l-59.8 39.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm278 533c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 0 1-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 0 1-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 0 1 .8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-254.1 13.3v111.3L723.1 597l-83.6-55.8zM281.8 472.6v79.8l59.8-39.9zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zM723.1 428L535.9 303.4v111.3l103.6 69.1zM384.5 541.2L300.9 597l187.2 124.6V610.3l-103.6-69.1z'));
  64864. exports.CodepenSquareFill = getIcon('codepen-square', fill, getNode(newViewBox, 'M723.1 428L535.9 303.4v111.3l103.6 69.1zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zm23.9 154.2v111.3L723.1 597l-83.6-55.8zm-151.4-69.1L300.9 597l187.2 124.6V610.3l-103.6-69.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-90 485c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 0 1-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 0 1-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 0 1 .8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-47.8-44.6v-79.8l-59.8 39.9zm-460.4-79.8v79.8l59.8-39.9zm206.3-57.9V303.4L300.9 428l83.6 55.8z'));
  64865. exports.ContactsFill = getIcon('contacts', fill, getNode(newViewBox, 'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zM661 736h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.6-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H363a8 8 0 0 1-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 0 1-29.1-75.5c0-61.9 49.9-112 111.4-112 61.5 0 111.4 50.1 111.4 112 0 29.1-11 55.5-29.1 75.5 42.7 26.5 71.8 72.8 74.6 126.1.4 4.6-3.2 8.4-7.8 8.4zM512 474c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52c28.5 0 51.7-23.3 51.7-52s-23.2-52-51.7-52z'));
  64866. exports.ControlFill = getIcon('control', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM404 683v77c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-77c-41.7-13.6-72-52.8-72-99s30.3-85.5 72-99V264c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v221c41.7 13.6 72 52.8 72 99s-30.3 85.5-72 99zm279.6-143.9c.2 0 .3-.1.4-.1v221c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V539c.2 0 .3.1.4.1-42-13.4-72.4-52.7-72.4-99.1 0-46.4 30.4-85.7 72.4-99.1-.2 0-.3.1-.4.1v-77c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v77c-.2 0-.3-.1-.4-.1 42 13.4 72.4 52.7 72.4 99.1 0 46.4-30.4 85.7-72.4 99.1zM616 440a36 36 0 1 0 72 0 36 36 0 1 0-72 0zM403.4 566.5l-1.5-2.4c0-.1-.1-.1-.1-.2l-.9-1.2c-.1-.1-.2-.2-.2-.3-1-1.3-2-2.5-3.2-3.6l-.2-.2c-.4-.4-.8-.8-1.2-1.1-.8-.8-1.7-1.5-2.6-2.1h-.1l-1.2-.9c-.1-.1-.3-.2-.4-.3-1.2-.8-2.5-1.6-3.9-2.2-.2-.1-.5-.2-.7-.4-.4-.2-.7-.3-1.1-.5-.3-.1-.7-.3-1-.4-.5-.2-1-.4-1.5-.5-.4-.1-.9-.3-1.3-.4l-.9-.3-1.4-.3c-.2-.1-.5-.1-.7-.2-.7-.1-1.4-.3-2.1-.4-.2 0-.4 0-.6-.1-.6-.1-1.1-.1-1.7-.2-.2 0-.4 0-.7-.1-.8 0-1.5-.1-2.3-.1s-1.5 0-2.3.1c-.2 0-.4 0-.7.1-.6 0-1.2.1-1.7.2-.2 0-.4 0-.6.1-.7.1-1.4.2-2.1.4-.2.1-.5.1-.7.2l-1.4.3-.9.3c-.4.1-.9.3-1.3.4-.5.2-1 .4-1.5.5-.3.1-.7.3-1 .4-.4.2-.7.3-1.1.5-.2.1-.5.2-.7.4-1.3.7-2.6 1.4-3.9 2.2-.1.1-.3.2-.4.3l-1.2.9h-.1c-.9.7-1.8 1.4-2.6 2.1-.4.4-.8.7-1.2 1.1l-.2.2a54.8 54.8 0 0 0-3.2 3.6c-.1.1-.2.2-.2.3l-.9 1.2c0 .1-.1.1-.1.2l-1.5 2.4c-.1.2-.2.3-.3.5-2.7 5.1-4.3 10.9-4.3 17s1.6 12 4.3 17c.1.2.2.3.3.5l1.5 2.4c0 .1.1.1.1.2l.9 1.2c.1.1.2.2.2.3 1 1.3 2 2.5 3.2 3.6l.2.2c.4.4.8.8 1.2 1.1.8.8 1.7 1.5 2.6 2.1h.1l1.2.9c.1.1.3.2.4.3 1.2.8 2.5 1.6 3.9 2.2.2.1.5.2.7.4.4.2.7.3 1.1.5.3.1.7.3 1 .4.5.2 1 .4 1.5.5.4.1.9.3 1.3.4l.9.3 1.4.3c.2.1.5.1.7.2.7.1 1.4.3 2.1.4.2 0 .4 0 .6.1.6.1 1.1.1 1.7.2.2 0 .4 0 .7.1.8 0 1.5.1 2.3.1s1.5 0 2.3-.1c.2 0 .4 0 .7-.1.6 0 1.2-.1 1.7-.2.2 0 .4 0 .6-.1.7-.1 1.4-.2 2.1-.4.2-.1.5-.1.7-.2l1.4-.3.9-.3c.4-.1.9-.3 1.3-.4.5-.2 1-.4 1.5-.5.3-.1.7-.3 1-.4.4-.2.7-.3 1.1-.5.2-.1.5-.2.7-.4 1.3-.7 2.6-1.4 3.9-2.2.1-.1.3-.2.4-.3l1.2-.9h.1c.9-.7 1.8-1.4 2.6-2.1.4-.4.8-.7 1.2-1.1l.2-.2c1.1-1.1 2.2-2.4 3.2-3.6.1-.1.2-.2.2-.3l.9-1.2c0-.1.1-.1.1-.2l1.5-2.4c.1-.2.2-.3.3-.5 2.7-5.1 4.3-10.9 4.3-17s-1.6-12-4.3-17c-.1-.2-.2-.4-.3-.5z'));
  64867. exports.ContainerFill = getIcon('container', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v529c0-.6.4-1 1-1h219.3l5.2 24.7C397.6 708.5 450.8 752 512 752s114.4-43.5 126.4-103.3l5.2-24.7H863c.6 0 1 .4 1 1V96c0-17.7-14.3-32-32-32zM712 493c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48zm0-160c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48zm151 354H694.1c-11.6 32.8-32 62.3-59.1 84.7-34.5 28.6-78.2 44.3-123 44.3s-88.5-15.8-123-44.3a194.02 194.02 0 0 1-59.1-84.7H161c-.6 0-1-.4-1-1v242c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V686c0 .6-.4 1-1 1z'));
  64868. exports.CopyFill = getIcon('copy', fill, getNode(newViewBox, 'M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM382 896h-.2L232 746.2v-.2h150v150z'));
  64869. exports.CopyrightCircleFill = getIcon('copyright-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm5.4 670c-110 0-173.4-73.2-173.4-194.9v-52.3C344 364.2 407.4 290 517.3 290c94.3 0 162.7 60.7 162.7 147.4 0 2.6-2.1 4.7-4.7 4.7h-56.7c-4.2 0-7.6-3.2-8-7.4-4-49.5-40-83.4-93-83.4-65.3 0-102.1 48.5-102.1 135.5v52.6c0 85.7 36.9 133.6 102.1 133.6 52.8 0 88.7-31.7 93-77.8.4-4.1 3.8-7.3 8-7.3h56.8c2.6 0 4.7 2.1 4.7 4.7 0 82.6-68.7 141.4-162.7 141.4z'));
  64870. exports.CreditCardFill = getIcon('credit-card', fill, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v160h896V192c0-17.7-14.3-32-32-32zM64 832c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V440H64v392zm579-184c0-4.4 3.6-8 8-8h165c4.4 0 8 3.6 8 8v72c0 4.4-3.6 8-8 8H651c-4.4 0-8-3.6-8-8v-72z'));
  64871. exports.CrownFill = getIcon('crown', fill, getNode(newViewBox, 'M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zM512 734.2c-62.1 0-112.6-50.5-112.6-112.6S449.9 509 512 509s112.6 50.5 112.6 112.6S574.1 734.2 512 734.2zm0-160.9c-26.6 0-48.2 21.6-48.2 48.3 0 26.6 21.6 48.3 48.2 48.3s48.2-21.6 48.2-48.3c0-26.6-21.6-48.3-48.2-48.3z'));
  64872. exports.CustomerServiceFill = getIcon('customer-service', fill, getNode(newViewBox, 'M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384z'));
  64873. exports.DashboardFill = getIcon('dashboard', fill, getNode(newViewBox, 'M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM482 232c0-4.4 3.6-8 8-8h44c4.4 0 8 3.6 8 8v80c0 4.4-3.6 8-8 8h-44c-4.4 0-8-3.6-8-8v-80zM270 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44zm90.7-204.5l-31.1 31.1a8.03 8.03 0 0 1-11.3 0L261.7 352a8.03 8.03 0 0 1 0-11.3l31.1-31.1c3.1-3.1 8.2-3.1 11.3 0l56.6 56.6c3.1 3.1 3.1 8.2 0 11.3zm291.1 83.6l-84.5 84.5c5 18.7.2 39.4-14.5 54.1a55.95 55.95 0 0 1-79.2 0 55.95 55.95 0 0 1 0-79.2 55.87 55.87 0 0 1 54.1-14.5l84.5-84.5c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3c3.1 3.1 3.1 8.1 0 11.3zm43-52.4l-31.1-31.1a8.03 8.03 0 0 1 0-11.3l56.6-56.6c3.1-3.1 8.2-3.1 11.3 0l31.1 31.1c3.1 3.1 3.1 8.2 0 11.3l-56.6 56.6a8.03 8.03 0 0 1-11.3 0zM846 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44z'));
  64874. exports.DeleteFill = getIcon('delete', fill, getNode(newViewBox, 'M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z'));
  64875. exports.DiffFill = getIcon('diff', fill, getNode(newViewBox, 'M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23zM553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM568 753c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-220c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7v42z'));
  64876. exports.DingtalkCircleFill = getIcon('dingtalk-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm227 385.3c-1 4.2-3.5 10.4-7 17.8h.1l-.4.7c-20.3 43.1-73.1 127.7-73.1 127.7s-.1-.2-.3-.5l-15.5 26.8h74.5L575.1 810l32.3-128h-58.6l20.4-84.7c-16.5 3.9-35.9 9.4-59 16.8 0 0-31.2 18.2-89.9-35 0 0-39.6-34.7-16.6-43.4 9.8-3.7 47.4-8.4 77-12.3 40-5.4 64.6-8.2 64.6-8.2S422 517 392.7 512.5c-29.3-4.6-66.4-53.1-74.3-95.8 0 0-12.2-23.4 26.3-12.3 38.5 11.1 197.9 43.2 197.9 43.2s-207.4-63.3-221.2-78.7c-13.8-15.4-40.6-84.2-37.1-126.5 0 0 1.5-10.5 12.4-7.7 0 0 153.3 69.7 258.1 107.9 104.8 37.9 195.9 57.3 184.2 106.7z'));
  64877. exports.DatabaseFill = getIcon('database', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM288 232c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm128-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm128-168c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'));
  64878. exports.DingtalkSquareFill = getIcon('dingtalk-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM739 449.3c-1 4.2-3.5 10.4-7 17.8h.1l-.4.7c-20.3 43.1-73.1 127.7-73.1 127.7s-.1-.2-.3-.5l-15.5 26.8h74.5L575.1 810l32.3-128h-58.6l20.4-84.7c-16.5 3.9-35.9 9.4-59 16.8 0 0-31.2 18.2-89.9-35 0 0-39.6-34.7-16.6-43.4 9.8-3.7 47.4-8.4 77-12.3 40-5.4 64.6-8.2 64.6-8.2S422 517 392.7 512.5c-29.3-4.6-66.4-53.1-74.3-95.8 0 0-12.2-23.4 26.3-12.3 38.5 11.1 197.9 43.2 197.9 43.2s-207.4-63.3-221.2-78.7c-13.8-15.4-40.6-84.2-37.1-126.5 0 0 1.5-10.5 12.4-7.7 0 0 153.3 69.7 258.1 107.9 104.8 37.9 195.9 57.3 184.2 106.7z'));
  64879. exports.DislikeFill = getIcon('dislike', fill, getNode(newViewBox, 'M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 0 0-26.5-5.4H273v428h.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM112 132v364c0 17.7 14.3 32 32 32h65V100h-65c-17.7 0-32 14.3-32 32z'));
  64880. exports.DollarCircleFill = getIcon('dollar-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm22.3 665.2l.2 31.7c0 4.4-3.6 8.1-8 8.1h-28.4c-4.4 0-8-3.6-8-8v-31.4C401.3 723 359.5 672.4 355 617.4c-.4-4.7 3.3-8.7 8-8.7h46.2c3.9 0 7.3 2.8 7.9 6.6 5.1 31.7 29.8 55.4 74.1 61.3V533.9l-24.7-6.3c-52.3-12.5-102.1-45.1-102.1-112.7 0-72.9 55.4-112.1 126.2-119v-33c0-4.4 3.6-8 8-8h28.1c4.4 0 8 3.6 8 8v32.7c68.5 6.9 119.9 46.9 125.9 109.2.5 4.7-3.2 8.8-8 8.8h-44.9c-4 0-7.4-3-7.9-6.9-4-29.2-27.4-53-65.5-58.2v134.3l25.4 5.9c64.8 16 108.9 47 108.9 116.4 0 75.3-56 117.3-134.3 124.1zM426.6 410.3c0 25.4 15.7 45.1 49.5 57.3 4.7 1.9 9.4 3.4 15 5v-124c-36.9 4.7-64.5 25.4-64.5 61.7zm116.5 135.2c-2.8-.6-5.6-1.3-8.8-2.2V677c42.6-3.8 72-27.2 72-66.4 0-30.7-15.9-50.7-63.2-65.1z'));
  64881. exports.DownCircleFill = getIcon('down-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm184.5 353.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7H381c10.2 0 19.9 4.9 25.9 13.2L512 563.6l105.2-145.4c6-8.3 15.6-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.5 12.7z'));
  64882. exports.DownSquareFill = getIcon('down-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM696.5 412.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7H381c10.2 0 19.9 4.9 25.9 13.2L512 558.6l105.2-145.4c6-8.3 15.6-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.5 12.7z'));
  64883. exports.DribbbleCircleFill = getIcon('dribbble-circle', fill, getNode(newViewBox, 'M675.1 328.3a245.2 245.2 0 0 0-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6zm47.7-11.9c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 736c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm53.1-346.2c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm30.6 82.5c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4z'));
  64884. exports.DribbbleSquareFill = getIcon('dribbble-square', fill, getNode(newViewBox, 'M498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm66.5 21.8c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM512 800c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm89.7-259.1c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zm-72.5-26.4c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4zm145.9-186.2a245.2 245.2 0 0 0-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6z'));
  64885. exports.DropboxCircleFill = getIcon('dropbox-circle', fill, getNode(newViewBox, 'M663.8 455.5zm-151.5-93.8l-151.8 93.8 151.8 93.9 151.5-93.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm151.2 595.5L512.6 750l-151-90.5v-33.1l45.4 29.4 105.6-87.7 105.6 87.7 45.1-29.4v33.1zm-45.6-22.4l-105.3-87.7L407 637.1l-151-99.2 104.5-82.4L256 371.2 407 274l105.3 87.7L617.6 274 768 372.1l-104.2 83.5L768 539l-150.4 98.1z'));
  64886. exports.DropboxSquareFill = getIcon('dropbox-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM663.2 659.5L512.6 750l-151-90.5v-33.1l45.4 29.4 105.6-87.7 105.6 87.7 45.1-29.4v33.1zm-45.6-22.4l-105.3-87.7L407 637.1l-151-99.2 104.5-82.4L256 371.2 407 274l105.3 87.7L617.6 274 768 372.1l-104.2 83.5L768 539l-150.4 98.1zM512.3 361.7l-151.8 93.8 151.8 93.9 151.5-93.9zm151.5 93.8z'));
  64887. exports.EnvironmentFill = getIcon('environment', fill, getNode(newViewBox, 'M512 327c-29.9 0-58 11.6-79.2 32.8A111.6 111.6 0 0 0 400 439c0 29.9 11.7 58 32.8 79.2A111.6 111.6 0 0 0 512 551c29.9 0 58-11.7 79.2-32.8C612.4 497 624 468.9 624 439c0-29.9-11.6-58-32.8-79.2S541.9 327 512 327zm342.6-37.9a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 615c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z'));
  64888. exports.EditFill = getIcon('edit', fill, getNode(newViewBox, 'M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9z'));
  64889. exports.ExclamationCircleFill = getIcon('exclamation-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
  64890. exports.EuroCircleFill = getIcon('euro-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm63.5 375.8c4.4 0 8 3.6 8 8V475c0 4.4-3.6 8-8 8h-136c-.3 4.4-.3 9.1-.3 13.8v36h136.2c4.4 0 8 3.6 8 8V568c0 4.4-3.6 8-8 8H444.9c15.3 62 61.3 98.6 129.8 98.6 19.9 0 37.1-1.2 51.8-4.1 4.9-1 9.5 2.8 9.5 7.8v42.8c0 3.8-2.7 7-6.4 7.8-15.9 3.4-34.3 5.1-55.3 5.1-109.8 0-183-58.8-200.2-158H344c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h26.1v-36.9c0-4.4 0-8.8.3-12.8H344c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h31.7c19.7-94.2 92-149.9 198.6-149.9 20.9 0 39.4 1.9 55.3 5.4 3.7.8 6.3 4 6.3 7.8V346h.1c0 5.1-4.6 8.8-9.6 7.8-14.7-2.9-31.8-4.4-51.7-4.4-65.4 0-110.4 33.5-127.6 90.4h128.4z'));
  64891. exports.ExperimentFill = getIcon('experiment', fill, getNode(newViewBox, 'M218.9 636.3l42.6 26.6c.1.1.3.2.4.3l12.7 8 .3.3a186.9 186.9 0 0 0 94.1 25.1c44.9 0 87.2-15.7 121-43.8a256.27 256.27 0 0 1 164.9-59.9c52.3 0 102.2 15.7 144.6 44.5l7.9 5-111.6-289V179.8h63.5c4.4 0 8-3.6 8-8V120c0-4.4-3.6-8-8-8H264.7c-4.4 0-8 3.6-8 8v51.9c0 4.4 3.6 8 8 8h63.5v173.6L218.9 636.3zm333-203.1c22 0 39.9 17.9 39.9 39.9S573.9 513 551.9 513 512 495.1 512 473.1s17.9-39.9 39.9-39.9zM878 825.1l-29.9-77.4-85.7-53.5-.1.1c-.7-.5-1.5-1-2.2-1.5l-8.1-5-.3-.3c-29-17.5-62.3-26.8-97-26.8-44.9 0-87.2 15.7-121 43.8a256.27 256.27 0 0 1-164.9 59.9c-53 0-103.5-16.1-146.2-45.6l-28.9-18.1L146 825.1c-2.8 7.4-4.3 15.2-4.3 23 0 35.2 28.6 63.8 63.8 63.8h612.9c7.9 0 15.7-1.5 23-4.3a63.6 63.6 0 0 0 36.6-82.5z'));
  64892. exports.EyeInvisibleFill = getIcon('eye-invisible', fill, getNode(newViewBox, 'M508 624a112 112 0 0 0 112-112c0-3.28-.15-6.53-.43-9.74L498.26 623.57c3.21.28 6.45.43 9.74.43zm370.72-458.44L836 122.88a8 8 0 0 0-11.31 0L715.37 232.23Q624.91 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.7 119.43 136.55 191.45L112.56 835a8 8 0 0 0 0 11.31L155.25 889a8 8 0 0 0 11.31 0l712.16-712.12a8 8 0 0 0 0-11.32zM332 512a176 176 0 0 1 258.88-155.28l-48.62 48.62a112.08 112.08 0 0 0-140.92 140.92l-48.62 48.62A175.09 175.09 0 0 1 332 512z', 'M942.2 486.2Q889.4 375 816.51 304.85L672.37 449A176.08 176.08 0 0 1 445 676.37L322.74 798.63Q407.82 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5z'));
  64893. exports.EyeFill = getIcon('eye', fill, getNode(newViewBox, 'M396 512a112 112 0 1 0 224 0 112 112 0 1 0-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z'));
  64894. exports.FacebookFill = getIcon('facebook', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-92.4 233.5h-63.9c-50.1 0-59.8 23.8-59.8 58.8v77.1h119.6l-15.6 120.7h-104V912H539.2V602.2H434.9V481.4h104.3v-89c0-103.3 63.1-159.6 155.3-159.6 44.2 0 82.1 3.3 93.2 4.8v107.9z'));
  64895. exports.FastBackwardFill = getIcon('fast-backward', fill, getNode(normalViewBox, 'M517.6 273.5L230.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm320 0L550.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm-620-25.5h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z'));
  64896. exports.FastForwardFill = getIcon('fast-forward', fill, getNode(normalViewBox, 'M793.8 499.3L506.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.6c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8a16.14 16.14 0 0 0 0-25.4zm-320 0L186.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.5c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8c4.1-3.2 6.2-8 6.2-12.7 0-4.6-2.1-9.4-6.2-12.6zM857.6 248h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z'));
  64897. exports.FileAddFill = getIcon('file-add', fill, getNode(newViewBox, 'M480 580H372a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h108v108a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8V644h108a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8H544V472a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v108zm374.6-291.3c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z'));
  64898. exports.FileExcelFill = getIcon('file-excel', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 0 0-10.27-5.79h-38.44a12 12 0 0 0-6.4 1.85 12 12 0 0 0-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 0 0-1.84 6.39 12 12 0 0 0 12 12h34.46a12 12 0 0 0 10.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0 0 10.23 5.72h37.48a12 12 0 0 0 6.48-1.9 12 12 0 0 0 3.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 0 0 1.9-6.5 12 12 0 0 0-12-12h-35.7a12 12 0 0 0-10.29 5.84z'));
  64899. exports.FileExclamationFill = getIcon('file-exclamation', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 784a40 40 0 1 0 0-80 40 40 0 0 0 0 80zm32-152V448a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v184a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8z'));
  64900. exports.FileImageFill = getIcon('file-image', fill, getNode(newViewBox, 'M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0 1 12.6 0l41.1 52.4 77.8-99.2a8 8 0 0 1 12.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z'));
  64901. exports.FileMarkdownFill = getIcon('file-markdown', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0 0 14.62 9.5h24.06a16 16 0 0 0 14.63-9.51l59.1-133.35V758a16 16 0 0 0 16.01 16H641a16 16 0 0 0 16-16V486a16 16 0 0 0-16-16h-34.75a16 16 0 0 0-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 0 0-14.67-9.61H383a16 16 0 0 0-16 16v272a16 16 0 0 0 16 16h27.13a16 16 0 0 0 16-16V600.93z'));
  64902. exports.FilePdfFill = getIcon('file-pdf', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 0 1 5.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 0 1-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 0 1-1.12-.15 2.07 2.07 0 0 1-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 0 1-1.36 6.31 6.7 6.7 0 0 1-2.17 1.28z'));
  64903. exports.FilePptFill = getIcon('file-ppt', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 0 0-12 12v276a12 12 0 0 0 12 12h32.53a12 12 0 0 0 12-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z'));
  64904. exports.FileTextFill = getIcon('file-text', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h384a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8H320zm0 136a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h184a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8H320z'));
  64905. exports.FileWordFill = getIcon('file-word', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0 0 11.6 8.9h31.77a12 12 0 0 0 11.6-8.88l74.37-276a12 12 0 0 0 .4-3.12 12 12 0 0 0-12-12h-35.57a12 12 0 0 0-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 0 0 528.1 472h-32.2a12 12 0 0 0-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 0 0-11.68-9.29h-35.39a12 12 0 0 0-3.11.41 12 12 0 0 0-8.47 14.7l74.17 276A12 12 0 0 0 415.6 772h31.99a12 12 0 0 0 11.59-8.9l52.81-197z'));
  64906. exports.FileUnknownFill = getIcon('file-unknown', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103zm110 227a32 32 0 1 0 0-64 32 32 0 0 0 0 64z'));
  64907. exports.FileZipFill = getIcon('file-zip', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z'));
  64908. exports.FileFill = getIcon('file', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z'));
  64909. exports.FilterFill = getIcon('filter', fill, getNode(newViewBox, 'M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z'));
  64910. exports.FireFill = getIcon('fire', fill, getNode(newViewBox, 'M834.1 469.2A347.49 347.49 0 0 0 751.2 354l-29.1-26.7a8.09 8.09 0 0 0-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 0 1-47.5 46.1 352.6 352.6 0 0 0-100.3 121.5A347.75 347.75 0 0 0 160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0 0 75.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 0 0 760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0 0 27.7-136c0-48.8-10-96.2-29.9-140.9z'));
  64911. exports.FlagFill = getIcon('flag', fill, getNode(newViewBox, 'M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32z'));
  64912. exports.FolderAddFill = getIcon('folder-add', fill, getNode(newViewBox, 'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM632 577c0 3.8-3.4 7-7.5 7H540v84.9c0 3.9-3.2 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V584h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7H484v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.8 0 7 3.2 7 7.1V528h84.5c4.1 0 7.5 3.2 7.5 7v42z'));
  64913. exports.FolderFill = getIcon('folder', fill, getNode(newViewBox, 'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32z'));
  64914. exports.FolderOpenFill = getIcon('folder-open', fill, getNode(newViewBox, 'M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 0 0-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zm-180 0H238c-13 0-24.8 7.9-29.7 20L136 643.2V256h188.5l119.6 114.4H748V444z'));
  64915. exports.ForwardFill = getIcon('forward', fill, getNode(normalViewBox, 'M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z'));
  64916. exports.FrownFill = getIcon('frown', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm376 272h-48.1c-4.2 0-7.8-3.2-8.1-7.4C604 636.1 562.5 597 512 597s-92.1 39.1-95.8 88.6c-.3 4.2-3.9 7.4-8.1 7.4H360a8 8 0 0 1-8-8.4c4.4-84.3 74.5-151.6 160-151.6s155.6 67.3 160 151.6a8 8 0 0 1-8 8.4zm24-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
  64917. exports.FundFill = getIcon('fund', fill, getNode(newViewBox, 'M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-92.3 194.4l-297 297.2a8.03 8.03 0 0 1-11.3 0L410.9 541.1 238.4 713.7a8.03 8.03 0 0 1-11.3 0l-36.8-36.8a8.03 8.03 0 0 1 0-11.3l214.9-215c3.1-3.1 8.2-3.1 11.3 0L531 565l254.5-254.6c3.1-3.1 8.2-3.1 11.3 0l36.8 36.8c3.2 3 3.2 8.1.1 11.2z'));
  64918. exports.FunnelPlotFill = getIcon('funnel-plot', fill, getNode(newViewBox, 'M336.7 586h350.6l84.9-148H251.8zm543.4-432H143.9c-24.5 0-39.8 26.7-27.5 48L215 374h594l98.7-172c12.2-21.3-3.1-48-27.6-48zM349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V650H349v188z'));
  64919. exports.GiftFill = getIcon('gift', fill, getNode(newViewBox, 'M160 894c0 17.7 14.3 32 32 32h286V550H160v344zm386 32h286c17.7 0 32-14.3 32-32V550H546v376zm334-616H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v140h366V310h68v172h366V342c0-17.7-14.3-32-32-32zm-402-4h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70 70 31.4 70 70v70zm138 0h-70v-70c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70z'));
  64920. exports.GithubFill = getIcon('github', fill, getNode(newViewBox, 'M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z'));
  64921. exports.GitlabFill = getIcon('gitlab', fill, getNode(newViewBox, 'M910.5 553.2l-109-370.8c-6.8-20.4-23.1-34.1-44.9-34.1s-39.5 12.3-46.3 32.7l-72.2 215.4H386.2L314 181.1c-6.8-20.4-24.5-32.7-46.3-32.7s-39.5 13.6-44.9 34.1L113.9 553.2c-4.1 13.6 1.4 28.6 12.3 36.8l385.4 289 386.7-289c10.8-8.1 16.3-23.1 12.2-36.8z'));
  64922. exports.GoldenFill = getIcon('golden', fill, getNode(newViewBox, 'M905.9 806.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zm-470.2-248c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8z'));
  64923. exports.GoogleCircleFill = getIcon('google-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm167 633.6C638.4 735 583 757 516.9 757c-95.7 0-178.5-54.9-218.8-134.9C281.5 589 272 551.6 272 512s9.5-77 26.1-110.1c40.3-80.1 123.1-135 218.8-135 66 0 121.4 24.3 163.9 63.8L610.6 401c-25.4-24.3-57.7-36.6-93.6-36.6-63.8 0-117.8 43.1-137.1 101-4.9 14.7-7.7 30.4-7.7 46.6s2.8 31.9 7.7 46.6c19.3 57.9 73.3 101 137 101 33 0 61-8.7 82.9-23.4 26-17.4 43.2-43.3 48.9-74H516.9v-94.8h230.7c2.9 16.1 4.4 32.8 4.4 50.1 0 74.7-26.7 137.4-73 180.1z'));
  64924. exports.GooglePlusCircleFill = getIcon('google-plus-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm36.5 558.8c-43.9 61.8-132.1 79.8-200.9 53.3-69-26.3-118-99.2-112.1-173.5 1.5-90.9 85.2-170.6 176.1-167.5 43.6-2 84.6 16.9 118 43.6-14.3 16.2-29 31.8-44.8 46.3-40.1-27.7-97.2-35.6-137.3-3.6-57.4 39.7-60 133.4-4.8 176.1 53.7 48.7 155.2 24.5 170.1-50.1-33.6-.5-67.4 0-101-1.1-.1-20.1-.2-40.1-.1-60.2 56.2-.2 112.5-.3 168.8.2 3.3 47.3-3 97.5-32 136.5zM791 536.5c-16.8.2-33.6.3-50.4.4-.2 16.8-.3 33.6-.3 50.4H690c-.2-16.8-.2-33.5-.3-50.3-16.8-.2-33.6-.3-50.4-.5v-50.1c16.8-.2 33.6-.3 50.4-.3.1-16.8.3-33.6.4-50.4h50.2l.3 50.4c16.8.2 33.6.2 50.4.3v50.1z'));
  64925. exports.GooglePlusSquareFill = getIcon('google-plus-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM548.5 622.8c-43.9 61.8-132.1 79.8-200.9 53.3-69-26.3-118-99.2-112.1-173.5 1.5-90.9 85.2-170.6 176.1-167.5 43.6-2 84.6 16.9 118 43.6-14.3 16.2-29 31.8-44.8 46.3-40.1-27.7-97.2-35.6-137.3-3.6-57.4 39.7-60 133.4-4.8 176.1 53.7 48.7 155.2 24.5 170.1-50.1-33.6-.5-67.4 0-101-1.1-.1-20.1-.2-40.1-.1-60.2 56.2-.2 112.5-.3 168.8.2 3.3 47.3-3 97.5-32 136.5zM791 536.5c-16.8.2-33.6.3-50.4.4-.2 16.8-.3 33.6-.3 50.4H690c-.2-16.8-.2-33.5-.3-50.3-16.8-.2-33.6-.3-50.4-.5v-50.1c16.8-.2 33.6-.3 50.4-.3.1-16.8.3-33.6.4-50.4h50.2l.3 50.4c16.8.2 33.6.2 50.4.3v50.1z'));
  64926. exports.GoogleSquareFill = getIcon('google-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM679 697.6C638.4 735 583 757 516.9 757c-95.7 0-178.5-54.9-218.8-134.9A245.02 245.02 0 0 1 272 512c0-39.6 9.5-77 26.1-110.1 40.3-80.1 123.1-135 218.8-135 66 0 121.4 24.3 163.9 63.8L610.6 401c-25.4-24.3-57.7-36.6-93.6-36.6-63.8 0-117.8 43.1-137.1 101-4.9 14.7-7.7 30.4-7.7 46.6s2.8 31.9 7.7 46.6c19.3 57.9 73.3 101 137 101 33 0 61-8.7 82.9-23.4 26-17.4 43.2-43.3 48.9-74H516.9v-94.8h230.7c2.9 16.1 4.4 32.8 4.4 50.1 0 74.7-26.7 137.4-73 180.1z'));
  64927. exports.HddFill = getIcon('hdd', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM456 216c0 4.4-3.6 8-8 8H264c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm576-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm96-152c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H264c-4.4 0-8-3.6-8-8v-48z'));
  64928. exports.HeartFill = getIcon('heart', fill, getNode(newViewBox, 'M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z'));
  64929. exports.HighlightFill = getIcon('highlight', fill, getNode(newViewBox, 'M957.6 507.4L603.2 158.2a7.9 7.9 0 0 0-11.2 0L353.3 393.4a8.03 8.03 0 0 0-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 0 0-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0 0 11.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0 0 11.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2z'));
  64930. exports.HomeFill = getIcon('home', fill, getNode(newViewBox, 'M946.5 505L534.6 93.4a31.93 31.93 0 0 0-45.2 0L77.5 505c-12 12-18.8 28.3-18.8 45.3 0 35.3 28.7 64 64 64h43.4V908c0 17.7 14.3 32 32 32H448V716h112v224h265.9c17.7 0 32-14.3 32-32V614.3h43.4c17 0 33.3-6.7 45.3-18.8 24.9-25 24.9-65.5-.1-90.5z'));
  64931. exports.HourglassFill = getIcon('hourglass', fill, getNode(newViewBox, 'M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194z'));
  64932. exports.Html5Fill = getIcon('html5', fill, getNode(newViewBox, 'M145.2 96l66 746.6L512 928l299.6-85.4L878.9 96H145.2zm595 177.1l-4.8 47.2-1.7 19.5H382.3l8.2 94.2h335.1l-3.3 24.3-21.2 242.2-1.7 16.2-187 51.6v.3h-1.2l-.3.1v-.1h-.1l-188.6-52L310.8 572h91.1l6.5 73.2 102.4 27.7h.4l102-27.6 11.4-118.6H510.9v-.1H306l-22.8-253.5-1.7-24.3h460.3l-1.6 24.3z'));
  64933. exports.IdcardFill = getIcon('idcard', fill, getNode(newViewBox, 'M373 411c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52 51.7-23.3 51.7-52-23.2-52-51.7-52zm555-251H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM608 420c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm-86 253h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224a8 8 0 0 1-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 0 1-29.1-75.5c0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.5-29.1 75.5 42.7 26.5 71.8 72.8 74.6 126.1.4 4.6-3.2 8.4-7.8 8.4zm278.9-53H615.1c-3.9 0-7.1-3.6-7.1-8v-48c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48h.1c0 4.4-3.2 8-7.1 8z'));
  64934. exports.IeCircleFill = getIcon('ie-circle', fill, getNode(newViewBox, 'M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z'));
  64935. exports.IeSquareFill = getIcon('ie-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM765.9 556.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zm-72.3-272.5c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z'));
  64936. exports.InfoCircleFill = getIcon('info-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
  64937. exports.InstagramFill = getIcon('instagram', fill, getNode(newViewBox, 'M512 378.7c-73.4 0-133.3 59.9-133.3 133.3S438.6 645.3 512 645.3 645.3 585.4 645.3 512 585.4 378.7 512 378.7zM911.8 512c0-55.2.5-109.9-2.6-165-3.1-64-17.7-120.8-64.5-167.6-46.9-46.9-103.6-61.4-167.6-64.5-55.2-3.1-109.9-2.6-165-2.6-55.2 0-109.9-.5-165 2.6-64 3.1-120.8 17.7-167.6 64.5C132.6 226.3 118.1 283 115 347c-3.1 55.2-2.6 109.9-2.6 165s-.5 109.9 2.6 165c3.1 64 17.7 120.8 64.5 167.6 46.9 46.9 103.6 61.4 167.6 64.5 55.2 3.1 109.9 2.6 165 2.6 55.2 0 109.9.5 165-2.6 64-3.1 120.8-17.7 167.6-64.5 46.9-46.9 61.4-103.6 64.5-167.6 3.2-55.1 2.6-109.8 2.6-165zM512 717.1c-113.5 0-205.1-91.6-205.1-205.1S398.5 306.9 512 306.9 717.1 398.5 717.1 512 625.5 717.1 512 717.1zm213.5-370.7c-26.5 0-47.9-21.4-47.9-47.9s21.4-47.9 47.9-47.9 47.9 21.4 47.9 47.9a47.84 47.84 0 0 1-47.9 47.9z'));
  64938. exports.InsuranceFill = getIcon('insurance', fill, getNode(newViewBox, 'M519.9 358.8h97.9v41.6h-97.9zm347-188.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM411.3 656h-.2c0 4.4-3.6 8-8 8h-37.3c-4.4 0-8-3.6-8-8V471.4c-7.7 9.2-15.4 17.9-23.1 26a6.04 6.04 0 0 1-10.2-2.4l-13.2-43.5c-.6-2-.2-4.1 1.2-5.6 37-43.4 64.7-95.1 82.2-153.6 1.1-3.5 5-5.3 8.4-3.7l38.6 18.3c2.7 1.3 4.1 4.4 3.2 7.2a429.2 429.2 0 0 1-33.6 79V656zm296.5-49.2l-26.3 35.3a5.92 5.92 0 0 1-8.9.7c-30.6-29.3-56.8-65.2-78.1-106.9V656c0 4.4-3.6 8-8 8h-36.2c-4.4 0-8-3.6-8-8V536c-22 44.7-49 80.8-80.6 107.6a5.9 5.9 0 0 1-8.9-1.4L430 605.7a6 6 0 0 1 1.6-8.1c28.6-20.3 51.9-45.2 71-76h-55.1c-4.4 0-8-3.6-8-8V478c0-4.4 3.6-8 8-8h94.9v-18.6h-65.9c-4.4 0-8-3.6-8-8V316c0-4.4 3.6-8 8-8h184.7c4.4 0 8 3.6 8 8v127.2c0 4.4-3.6 8-8 8h-66.7v18.6h98.8c4.4 0 8 3.6 8 8v35.6c0 4.4-3.6 8-8 8h-59c18.1 29.1 41.8 54.3 72.3 76.9 2.6 2.1 3.2 5.9 1.2 8.5z'));
  64939. exports.InteractionFill = getIcon('interaction', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z'));
  64940. exports.InterationFill = getIcon('interation', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z'));
  64941. exports.LayoutFill = getIcon('layout', fill, getNode(newViewBox, 'M384 912h496c17.7 0 32-14.3 32-32V340H384v572zm496-800H384v164h528V144c0-17.7-14.3-32-32-32zm-768 32v736c0 17.7 14.3 32 32 32h176V112H144c-17.7 0-32 14.3-32 32z'));
  64942. exports.LeftCircleFill = getIcon('left-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 0 1 0-12.9l246-178a8 8 0 0 1 12.7 6.5v46.8z'));
  64943. exports.LeftSquareFill = getIcon('left-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM624 380.9c0 10.2-4.9 19.9-13.2 25.9L465.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 0 1 0-12.9l246-178c5.3-3.8 12.7 0 12.7 6.5v46.8z'));
  64944. exports.LikeFill = getIcon('like', fill, getNode(newViewBox, 'M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 0 0 471 99.9c-52 0-98 35-111.8 85.1l-85.9 311h-.3v428h472.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32z'));
  64945. exports.LockFill = getIcon('lock', fill, getNode(newViewBox, 'M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0zm152-237H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224z'));
  64946. exports.LinkedinFill = getIcon('linkedin', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM349.3 793.7H230.6V411.9h118.7v381.8zm-59.3-434a68.8 68.8 0 1 1 68.8-68.8c-.1 38-30.9 68.8-68.8 68.8zm503.7 434H675.1V608c0-44.3-.8-101.2-61.7-101.2-61.7 0-71.2 48.2-71.2 98v188.9H423.7V411.9h113.8v52.2h1.6c15.8-30 54.5-61.7 112.3-61.7 120.2 0 142.3 79.1 142.3 181.9v209.4z'));
  64947. exports.MailFill = getIcon('mail', fill, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-80.8 108.9L531.7 514.4c-7.8 6.1-18.7 6.1-26.5 0L189.6 268.9A7.2 7.2 0 0 1 194 256h648.8a7.2 7.2 0 0 1 4.4 12.9z'));
  64948. exports.MedicineBoxFill = getIcon('medicine-box', fill, getNode(newViewBox, 'M839.2 278.1a32 32 0 0 0-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 0 0-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM660 628c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V636H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V464c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8v48zm4-372H360v-72h304v72z'));
  64949. exports.MediumCircleFill = getIcon('medium-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm256 253.7l-40.8 39.1c-3.6 2.7-5.3 7.1-4.6 11.4v287.7c-.7 4.4 1 8.8 4.6 11.4l40 39.1v8.7H566.4v-8.3l41.3-40.1c4.1-4.1 4.1-5.3 4.1-11.4V422.5l-115 291.6h-15.5L347.5 422.5V618c-1.2 8.2 1.7 16.5 7.5 22.4l53.8 65.1v8.7H256v-8.7l53.8-65.1a26.1 26.1 0 0 0 7-22.4V392c.7-6.3-1.7-12.4-6.5-16.7l-47.8-57.6V309H411l114.6 251.5 100.9-251.3H768v8.5z'));
  64950. exports.MediumSquareFill = getIcon('medium-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM768 317.7l-40.8 39.1c-3.6 2.7-5.3 7.1-4.6 11.4v287.7c-.7 4.4 1 8.8 4.6 11.4l40 39.1v8.7H566.4v-8.3l41.3-40.1c4.1-4.1 4.1-5.3 4.1-11.4V422.5l-115 291.6h-15.5L347.5 422.5V618c-1.2 8.2 1.7 16.5 7.5 22.4l53.8 65.1v8.7H256v-8.7l53.8-65.1a26.1 26.1 0 0 0 7-22.4V392c.7-6.3-1.7-12.4-6.5-16.7l-47.8-57.6V309H411l114.6 251.5 100.9-251.3H768v8.5z'));
  64951. exports.MehFill = getIcon('meh', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm384 200c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h304c4.4 0 8 3.6 8 8v48zm16-152a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
  64952. exports.MessageFill = getIcon('message', fill, getNode(newViewBox, 'M924.3 338.4a447.57 447.57 0 0 0-96.1-143.3 443.09 443.09 0 0 0-143-96.3A443.91 443.91 0 0 0 512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 0 0-141.7 96.5 445 445 0 0 0-95 142.8A449.89 449.89 0 0 0 65 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 0 0 199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 0 0 827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z'));
  64953. exports.MinusCircleFill = getIcon('minus-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z'));
  64954. exports.MinusSquareFill = getIcon('minus-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z'));
  64955. exports.MobileFill = getIcon('mobile', fill, getNode(newViewBox, 'M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zM512 824c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z'));
  64956. exports.MoneyCollectFill = getIcon('money-collect', fill, getNode(newViewBox, 'M911.5 699.7a8 8 0 0 0-10.3-4.8L840 717.2V179c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V762c0 3.3 2.1 6.3 5.3 7.5L501 909.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zm-243.8-377L564 514.3h57.6c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3v39h76.3c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3V703c0 4.4-3.6 8-8 8h-49.9c-4.4 0-8-3.6-8-8v-63.4h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h76v-39h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h57L356.5 322.8c-2.1-3.8-.7-8.7 3.2-10.8 1.2-.7 2.5-1 3.8-1h55.7a8 8 0 0 1 7.1 4.4L511 484.2h3.3L599 315.4c1.3-2.7 4.1-4.4 7.1-4.4h54.5c4.4 0 8 3.6 8.1 7.9 0 1.3-.4 2.6-1 3.8z'));
  64957. exports.PauseCircleFill = getIcon('pause-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-80 600c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z'));
  64958. exports.PayCircleFill = getIcon('pay-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm166.6 246.8L567.5 515.6h62c4.4 0 8 3.6 8 8v29.9c0 4.4-3.6 8-8 8h-82V603h82c4.4 0 8 3.6 8 8v29.9c0 4.4-3.6 8-8 8h-82V717c0 4.4-3.6 8-8 8h-54.3c-4.4 0-8-3.6-8-8v-68.1h-81.7c-4.4 0-8-3.6-8-8V611c0-4.4 3.6-8 8-8h81.7v-41.5h-81.7c-4.4 0-8-3.6-8-8v-29.9c0-4.4 3.6-8 8-8h61.4L345.4 310.8a8.07 8.07 0 0 1 7-11.9h60.7c3 0 5.8 1.7 7.1 4.4l90.6 180h3.4l90.6-180a8 8 0 0 1 7.1-4.4h59.5c4.4 0 8 3.6 8 8 .2 1.4-.2 2.7-.8 3.9z'));
  64959. exports.NotificationFill = getIcon('notification', fill, getNode(newViewBox, 'M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.6c-3.7 11.6-5.6 23.9-5.6 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1z'));
  64960. exports.PhoneFill = getIcon('phone', fill, getNode(newViewBox, 'M885.6 230.2L779.1 123.8a80.83 80.83 0 0 0-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L549.8 238.4a80.83 80.83 0 0 0-23.8 57.3c0 21.7 8.5 42.1 23.8 57.4l83.8 83.8A393.82 393.82 0 0 1 553.1 553 395.34 395.34 0 0 1 437 633.8L353.2 550a80.83 80.83 0 0 0-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L123.8 664.5a80.89 80.89 0 0 0-23.8 57.4c0 21.7 8.5 42.1 23.8 57.4l106.3 106.3c24.4 24.5 58.1 38.4 92.7 38.4 7.3 0 14.3-.6 21.2-1.8 134.8-22.2 268.5-93.9 376.4-201.7C828.2 612.8 899.8 479.2 922.3 344c6.8-41.3-6.9-83.8-36.7-113.8z'));
  64961. exports.PictureFill = getIcon('picture', fill, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM338 304c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm513.9 437.1a8.11 8.11 0 0 1-5.2 1.9H177.2c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2l170.3-202c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l99.4 118 158.1-187.5c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l229.6 271.6c2.6 3.3 2.2 8.4-1.2 11.2z'));
  64962. exports.PieChartFill = getIcon('pie-chart', fill, getNode(newViewBox, 'M863.1 518.5H505.5V160.9c0-4.4-3.6-8-8-8h-26a398.57 398.57 0 0 0-282.5 117 397.47 397.47 0 0 0-85.6 127C82.6 446.2 72 498.5 72 552.5S82.6 658.7 103.4 708c20.1 47.5 48.9 90.3 85.6 127 36.7 36.7 79.4 65.5 127 85.6a396.64 396.64 0 0 0 155.6 31.5 398.57 398.57 0 0 0 282.5-117c36.7-36.7 65.5-79.4 85.6-127a396.64 396.64 0 0 0 31.5-155.6v-26c-.1-4.4-3.7-8-8.1-8zM951 463l-2.6-28.2c-8.5-92-49.3-178.8-115.1-244.3A398.5 398.5 0 0 0 588.4 75.6L560.1 73c-4.7-.4-8.7 3.2-8.7 7.9v383.7c0 4.4 3.6 8 8 8l383.6-1c4.7-.1 8.4-4 8-8.6z'));
  64963. exports.PlayCircleFill = getIcon('play-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 0 1-12.7-6.5V353.7a8 8 0 0 1 12.7-6.5L656.1 506a7.9 7.9 0 0 1 0 12.9z'));
  64964. exports.PlaySquareFill = getIcon('play-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM641.7 520.8L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 0 1 0 17.6z'));
  64965. exports.PlusCircleFill = getIcon('plus-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z'));
  64966. exports.PlusSquareFill = getIcon('plus-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z'));
  64967. exports.PoundCircleFill = getIcon('pound-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm146 658c0 4.4-3.6 8-8 8H376.2c-4.4 0-8-3.6-8-8v-38.5c0-3.7 2.5-6.9 6.1-7.8 44-10.9 72.8-49 72.8-94.2 0-14.7-2.5-29.4-5.9-44.2H374c-4.4 0-8-3.6-8-8v-30c0-4.4 3.6-8 8-8h53.7c-7.8-25.1-14.6-50.7-14.6-77.1 0-75.8 58.6-120.3 151.5-120.3 26.5 0 51.4 5.5 70.3 12.7 3.1 1.2 5.2 4.2 5.2 7.5v39.5a8 8 0 0 1-10.6 7.6c-17.9-6.4-39-10.5-60.4-10.5-53.3 0-87.3 26.6-87.3 70.2 0 24.7 6.2 47.9 13.4 70.5h112c4.4 0 8 3.6 8 8v30c0 4.4-3.6 8-8 8h-98.6c3.1 13.2 5.3 26.9 5.3 41 0 40.7-16.5 73.9-43.9 91.1v4.7h180c4.4 0 8 3.6 8 8V722z'));
  64968. exports.PrinterFill = getIcon('printer', fill, getNode(newViewBox, 'M732 120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v148h440V120zm120 212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM664 844H360V568h304v276zm164-360c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-40c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v40z'));
  64969. exports.ProfileFill = getIcon('profile', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM380 696c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm0-144c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm0-144c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm304 272c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-144c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-144c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48z'));
  64970. exports.ProjectFill = getIcon('project', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM368 744c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v464zm192-280c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v184zm192 72c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v256z'));
  64971. exports.PushpinFill = getIcon('pushpin', fill, getNode(newViewBox, 'M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3-15.4 12.3-16.6 35.4-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 0 0-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8z'));
  64972. exports.PropertySafetyFill = getIcon('property-safety', fill, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM648.3 332.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V658c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 0 1 8.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z'));
  64973. exports.QqCircleFill = getIcon('qq-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm210.5 612.4c-11.5 1.4-44.9-52.7-44.9-52.7 0 31.3-16.2 72.2-51.1 101.8 16.9 5.2 54.9 19.2 45.9 34.4-7.3 12.3-125.6 7.9-159.8 4-34.2 3.8-152.5 8.3-159.8-4-9.1-15.2 28.9-29.2 45.8-34.4-35-29.5-51.1-70.4-51.1-101.8 0 0-33.4 54.1-44.9 52.7-5.4-.7-12.4-29.6 9.4-99.7 10.3-33 22-60.5 40.2-105.8-3.1-116.9 45.3-215 160.4-215 113.9 0 163.3 96.1 160.4 215 18.1 45.2 29.9 72.8 40.2 105.8 21.7 70.1 14.6 99.1 9.3 99.7z'));
  64974. exports.QqSquareFill = getIcon('qq-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM722.5 676.4c-11.5 1.4-44.9-52.7-44.9-52.7 0 31.3-16.2 72.2-51.1 101.8 16.9 5.2 54.9 19.2 45.9 34.4-7.3 12.3-125.6 7.9-159.8 4-34.2 3.8-152.5 8.3-159.8-4-9.1-15.2 28.9-29.2 45.8-34.4-35-29.5-51.1-70.4-51.1-101.8 0 0-33.4 54.1-44.9 52.7-5.4-.7-12.4-29.6 9.4-99.7 10.3-33 22-60.5 40.2-105.8-3.1-116.9 45.3-215 160.4-215 113.9 0 163.3 96.1 160.4 215 18.1 45.2 29.9 72.8 40.2 105.8 21.7 70.1 14.6 99.1 9.3 99.7z'));
  64975. exports.QuestionCircleFill = getIcon('question-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z'));
  64976. exports.ReadFill = getIcon('read', fill, getNode(newViewBox, 'M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 0 0 324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM404 553.5c0 4.1-3.2 7.5-7.1 7.5H211.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm0-140c0 4.1-3.2 7.5-7.1 7.5H211.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm416 140c0 4.1-3.2 7.5-7.1 7.5H627.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm0-140c0 4.1-3.2 7.5-7.1 7.5H627.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45z'));
  64977. exports.ReconciliationFill = getIcon('reconciliation', fill, getNode(newViewBox, 'M676 623c-18.8 0-34 15.2-34 34s15.2 34 34 34 34-15.2 34-34-15.2-34-34-34zm204-455H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zM448 848H176V616h272v232zm0-296H176v-88h272v88zm20-272v-48h72v-56h64v56h72v48H468zm180 168v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8zm28 301c-50.8 0-92-41.2-92-92s41.2-92 92-92 92 41.2 92 92-41.2 92-92 92zm92-245c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v96zm-92 61c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34z'));
  64978. exports.RedEnvelopeFill = getIcon('red-envelope', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM647 470.4l-87.2 161h45.9c4.6 0 8.4 3.8 8.4 8.4v25.1c0 4.6-3.8 8.4-8.4 8.4h-63.3v28.6h63.3c4.6 0 8.4 3.8 8.4 8.4v25c.2 4.6-3.6 8.5-8.2 8.5h-63.3v49.9c0 4.6-3.8 8.4-8.4 8.4h-43.7c-4.6 0-8.4-3.8-8.4-8.4v-49.9h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h63v-28.6h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h45.4l-87.5-161c-2.2-4.1-.7-9.1 3.4-11.4 1.3-.6 2.6-1 3.9-1h48.8c3.2 0 6.1 1.8 7.5 4.6l71.9 141.8 71.9-141.9a8.5 8.5 0 0 1 7.5-4.6h47.8c4.6 0 8.4 3.8 8.4 8.4-.1 1.5-.5 2.9-1.1 4.1zM512.6 323L289 148h446L512.6 323z'));
  64979. exports.RedditCircleFill = getIcon('reddit-circle', fill, getNode(newViewBox, 'M584 548a36 36 0 1 0 72 0 36 36 0 1 0-72 0zm144-108a35.9 35.9 0 0 0-32.5 20.6c18.8 14.3 34.4 30.7 45.9 48.8A35.98 35.98 0 0 0 728 440zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm245 477.9c4.6 13.5 7 27.6 7 42.1 0 99.4-112.8 180-252 180s-252-80.6-252-180c0-14.5 2.4-28.6 7-42.1A72.01 72.01 0 0 1 296 404c27.1 0 50.6 14.9 62.9 37 36.2-19.8 80.2-32.8 128.1-36.1l58.4-131.1c4.3-9.8 15.2-14.8 25.5-11.8l91.6 26.5a54.03 54.03 0 0 1 101.6 25.6c0 29.8-24.2 54-54 54-23.5 0-43.5-15.1-50.9-36.1L577 308.3l-43 96.5c49.1 3 94.2 16.1 131.2 36.3 12.3-22.1 35.8-37 62.9-37 39.8 0 72 32.2 72 72-.1 29.3-17.8 54.6-43.1 65.8zm-171.3 83c-14.9 11.7-44.3 24.3-73.7 24.3s-58.9-12.6-73.7-24.3c-9.3-7.3-22.7-5.7-30 3.6-7.3 9.3-5.7 22.7 3.6 30 25.7 20.4 65 33.5 100.1 33.5 35.1 0 74.4-13.1 100.2-33.5 9.3-7.3 10.9-20.8 3.6-30a21.46 21.46 0 0 0-30.1-3.6zM296 440a35.98 35.98 0 0 0-13.4 69.4c11.5-18.1 27.1-34.5 45.9-48.8A35.9 35.9 0 0 0 296 440zm72 108a36 36 0 1 0 72 0 36 36 0 1 0-72 0z'));
  64980. exports.RedditSquareFill = getIcon('reddit-square', fill, getNode(newViewBox, 'M296 440a35.98 35.98 0 0 0-13.4 69.4c11.5-18.1 27.1-34.5 45.9-48.8A35.9 35.9 0 0 0 296 440zm289.7 184.9c-14.9 11.7-44.3 24.3-73.7 24.3s-58.9-12.6-73.7-24.3c-9.3-7.3-22.7-5.7-30 3.6-7.3 9.3-5.7 22.7 3.6 30 25.7 20.4 65 33.5 100.1 33.5 35.1 0 74.4-13.1 100.2-33.5 9.3-7.3 10.9-20.8 3.6-30a21.46 21.46 0 0 0-30.1-3.6zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM757 541.9c4.6 13.5 7 27.6 7 42.1 0 99.4-112.8 180-252 180s-252-80.6-252-180c0-14.5 2.4-28.6 7-42.1A72.01 72.01 0 0 1 296 404c27.1 0 50.6 14.9 62.9 37 36.2-19.8 80.2-32.8 128.1-36.1l58.4-131.1c4.3-9.8 15.2-14.8 25.5-11.8l91.6 26.5a54.03 54.03 0 0 1 101.6 25.6c0 29.8-24.2 54-54 54-23.5 0-43.5-15.1-50.9-36.1L577 308.3l-43 96.5c49.1 3 94.2 16.1 131.2 36.3 12.3-22.1 35.8-37 62.9-37 39.8 0 72 32.2 72 72-.1 29.3-17.8 54.6-43.1 65.8zM584 548a36 36 0 1 0 72 0 36 36 0 1 0-72 0zm144-108a35.9 35.9 0 0 0-32.5 20.6c18.8 14.3 34.4 30.7 45.9 48.8A35.98 35.98 0 0 0 728 440zM368 548a36 36 0 1 0 72 0 36 36 0 1 0-72 0z'));
  64981. exports.RestFill = getIcon('rest', fill, getNode(newViewBox, 'M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0 0 31.9 29.3h429.2a32 32 0 0 0 31.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zM508 704c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zM291 256l22.4-76h397.2l22.4 76H291zm137 304a80 80 0 1 0 160 0 80 80 0 1 0-160 0z'));
  64982. exports.RightCircleFill = getIcon('right-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z'));
  64983. exports.RocketFill = getIcon('rocket', fill, getNode(newViewBox, 'M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 0 0-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0 0 43.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0 0 43.1-30.5 97.52 97.52 0 0 0 21.4-60.8c0-8.4-1.1-16.4-3.1-23.8L864 736zM512 352a48.01 48.01 0 0 1 0 96 48.01 48.01 0 0 1 0-96zm116.1 432.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5s-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 0 1-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5z'));
  64984. exports.RightSquareFill = getIcon('right-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM658.7 518.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L558.6 512 413.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z'));
  64985. exports.SafetyCertificateFill = getIcon('safety-certificate', fill, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM694.5 340.7L481.9 633.4a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.1 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.8-6.6 13-6.6H688c6.5.1 10.3 7.5 6.5 12.8z'));
  64986. exports.SaveFill = getIcon('save', fill, getNode(newViewBox, 'M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z'));
  64987. exports.ScheduleFill = getIcon('schedule', fill, getNode(newViewBox, 'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zM424 688c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-136c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm374.5-91.3l-165 228.7a15.9 15.9 0 0 1-25.8 0L493.5 531.2c-3.8-5.3 0-12.7 6.5-12.7h54.9c5.1 0 9.9 2.5 12.9 6.6l52.8 73.1 103.7-143.7c3-4.2 7.8-6.6 12.9-6.6H792c6.5.1 10.3 7.5 6.5 12.8z'));
  64988. exports.SecurityScanFill = getIcon('security-scan', fill, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM626.8 554c-48.5 48.5-123 55.2-178.6 20.1l-77.5 77.5a8.03 8.03 0 0 1-11.3 0l-34-34a8.03 8.03 0 0 1 0-11.3l77.5-77.5c-35.1-55.7-28.4-130.1 20.1-178.6 56.3-56.3 147.5-56.3 203.8 0 56.3 56.3 56.3 147.5 0 203.8zm-158.54-45.27a80.1 80.1 0 1 0 113.27-113.28 80.1 80.1 0 1 0-113.27 113.28z'));
  64989. exports.SettingFill = getIcon('setting', fill, getNode(newViewBox, 'M512.5 390.6c-29.9 0-57.9 11.6-79.1 32.8-21.1 21.2-32.8 49.2-32.8 79.1 0 29.9 11.7 57.9 32.8 79.1 21.2 21.1 49.2 32.8 79.1 32.8 29.9 0 57.9-11.7 79.1-32.8 21.1-21.2 32.8-49.2 32.8-79.1 0-29.9-11.7-57.9-32.8-79.1a110.96 110.96 0 0 0-79.1-32.8zm412.3 235.5l-65.4-55.9c3.1-19 4.7-38.4 4.7-57.7s-1.6-38.8-4.7-57.7l65.4-55.9a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a442.5 442.5 0 0 0-79.6-137.7l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.2 28.9c-30-24.6-63.4-44-99.6-57.5l-15.7-84.9a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52-9.4-106.8-9.4-158.8 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.3a353.44 353.44 0 0 0-98.9 57.3l-81.8-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a445.93 445.93 0 0 0-79.6 137.7l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.2 56.5c-3.1 18.8-4.6 38-4.6 57 0 19.2 1.5 38.4 4.6 57l-66 56.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.3 44.8 96.8 79.6 137.7l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.8-29.1c29.8 24.5 63 43.9 98.9 57.3l15.8 85.3a32.05 32.05 0 0 0 25.8 25.7l2.7.5a448.27 448.27 0 0 0 158.8 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c4.3-12.4.6-26.3-9.5-35zm-412.3 52.2c-97.1 0-175.8-78.7-175.8-175.8s78.7-175.8 175.8-175.8 175.8 78.7 175.8 175.8-78.7 175.8-175.8 175.8z'));
  64990. exports.ShopFill = getIcon('shop', fill, getNode(newViewBox, 'M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0 0 14.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h274V736h128v176h274c17.7 0 32-14.3 32-32V535a175 175 0 0 0 15.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zm-72 568H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 3-1.3 6-2.6 9-4v242.2zm0-568.1H214v-88h596v88z'));
  64991. exports.ShoppingFill = getIcon('shopping', fill, getNode(newViewBox, 'M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-208 0H400v-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16z'));
  64992. exports.SketchCircleFill = getIcon('sketch-circle', fill, getNode(newViewBox, 'M582.3 625.6l147.9-166.3h-63.4zm90-202.3h62.5l-92.1-115.1zm-274.7 36L512 684.5l114.4-225.2zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm286.7 380.2L515.8 762.3c-1 1.1-2.4 1.7-3.8 1.7s-2.8-.6-3.8-1.7L225.3 444.2a5.14 5.14 0 0 1-.2-6.6L365.6 262c1-1.2 2.4-1.9 4-1.9h284.6c1.6 0 3 .7 4 1.9l140.5 175.6a4.9 4.9 0 0 1 0 6.6zm-190.5-20.9L512 326.1l-96.2 97.2zM420.3 301.1l-23.1 89.8 88.8-89.8zm183.4 0H538l88.8 89.8zm-222.4 7.1l-92.1 115.1h62.5zm-87.5 151.1l147.9 166.3-84.5-166.3z'));
  64993. exports.SketchSquareFill = getIcon('sketch-square', fill, getNode(newViewBox, 'M608.2 423.3L512 326.1l-96.2 97.2zm-25.9 202.3l147.9-166.3h-63.4zm90-202.3h62.5l-92.1-115.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-81.3 332.2L515.8 762.3c-1 1.1-2.4 1.7-3.8 1.7s-2.8-.6-3.8-1.7L225.3 444.2a5.14 5.14 0 0 1-.2-6.6L365.6 262c1-1.2 2.4-1.9 4-1.9h284.6c1.6 0 3 .7 4 1.9l140.5 175.6a4.9 4.9 0 0 1 0 6.6zm-401.1 15.1L512 684.5l114.4-225.2zm-16.3-151.1l-92.1 115.1h62.5zm-87.5 151.1l147.9 166.3-84.5-166.3zm126.5-158.2l-23.1 89.8 88.8-89.8zm183.4 0H538l88.8 89.8z'));
  64994. exports.SkinFill = getIcon('skin', fill, getNode(newViewBox, 'M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44z'));
  64995. exports.SlackCircleFill = getIcon('slack-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0 1 50.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm83.7-50.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM579.3 765c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134c-13.3 0-26.1-5.3-35.6-14.8S529 593.6 529 580.2c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z'));
  64996. exports.SlackSquareFill = getIcon('slack-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM529 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0 1 50.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm134 403.2c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z'));
  64997. exports.SkypeFill = getIcon('skype', fill, getNode(newViewBox, 'M883.7 578.6c4.1-22.5 6.3-45.5 6.3-68.5 0-51-10-100.5-29.7-147-19-45-46.3-85.4-81-120.1a375.79 375.79 0 0 0-120.1-80.9c-46.6-19.7-96-29.7-147-29.7-24 0-48.1 2.3-71.5 6.8A225.1 225.1 0 0 0 335.6 113c-59.7 0-115.9 23.3-158.1 65.5A222.25 222.25 0 0 0 112 336.6c0 38 9.8 75.4 28.1 108.4-3.7 21.4-5.7 43.3-5.7 65.1 0 51 10 100.5 29.7 147 19 45 46.2 85.4 80.9 120.1 34.7 34.7 75.1 61.9 120.1 80.9 46.6 19.7 96 29.7 147 29.7 22.2 0 44.4-2 66.2-5.9 33.5 18.9 71.3 29 110 29 59.7 0 115.9-23.2 158.1-65.5 42.3-42.2 65.5-98.4 65.5-158.1.1-38-9.7-75.5-28.2-108.7zm-370 162.9c-134.2 0-194.2-66-194.2-115.4 0-25.4 18.7-43.1 44.5-43.1 57.4 0 42.6 82.5 149.7 82.5 54.9 0 85.2-29.8 85.2-60.3 0-18.3-9-38.7-45.2-47.6l-119.4-29.8c-96.1-24.1-113.6-76.1-113.6-124.9 0-101.4 95.5-139.5 185.2-139.5 82.6 0 180 45.7 180 106.5 0 26.1-22.6 41.2-48.4 41.2-49 0-40-67.8-138.7-67.8-49 0-76.1 22.2-76.1 53.9s38.7 41.8 72.3 49.5l88.4 19.6c96.8 21.6 121.3 78.1 121.3 131.3 0 82.3-63.3 143.9-191 143.9z'));
  64998. exports.SlidersFill = getIcon('sliders', fill, getNode(newViewBox, 'M904 296h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-584-72h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm292 180h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8z'));
  64999. exports.SmileFill = getIcon('smile', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 0 1 8-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 0 1 8 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
  65000. exports.SnippetsFill = getIcon('snippets', fill, getNode(newViewBox, 'M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 486H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z'));
  65001. exports.SoundFill = getIcon('sound', fill, getNode(newViewBox, 'M892.1 737.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344zm174 132H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zM625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1z'));
  65002. exports.StarFill = getIcon('star', fill, getNode(newViewBox, 'M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0 0 46.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z'));
  65003. exports.StepBackwardFill = getIcon('step-backward', fill, getNode(normalViewBox, 'M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 0 0 0 33.9M330 864h-64a8 8 0 0 1-8-8V168a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v688a8 8 0 0 1-8 8'));
  65004. exports.StepForwardFill = getIcon('step-forward', fill, getNode(normalViewBox, 'M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 0 1 0 33.9M694 864h64a8 8 0 0 0 8-8V168a8 8 0 0 0-8-8h-64a8 8 0 0 0-8 8v688a8 8 0 0 0 8 8'));
  65005. exports.StopFill = getIcon('stop', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm234.8 736.5L223.5 277.2c16-19.7 34-37.7 53.7-53.7l523.3 523.3c-16 19.6-34 37.7-53.7 53.7z'));
  65006. exports.SwitcherFill = getIcon('switcher', fill, getNode(newViewBox, 'M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zM596 606c0 4.4-3.6 8-8 8H308c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h280c4.4 0 8 3.6 8 8v48zm284-494H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32z'));
  65007. exports.TabletFill = getIcon('tablet', fill, getNode(newViewBox, 'M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zM512 824c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z'));
  65008. exports.TagFill = getIcon('tag', fill, getNode(newViewBox, 'M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM699 387c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z'));
  65009. exports.TagsFill = getIcon('tags', fill, getNode(newViewBox, 'M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm122.7-533.4c18.7-18.7 49.1-18.7 67.9 0 18.7 18.7 18.7 49.1 0 67.9-18.7 18.7-49.1 18.7-67.9 0-18.7-18.7-18.7-49.1 0-67.9zm283.8 282.9l-39.6-39.5a8.03 8.03 0 0 0-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 0 0-11.3 0l-39.6 39.5a8.03 8.03 0 0 0 0 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z'));
  65010. exports.TaobaoCircleFill = getIcon('taobao-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 1 1 0-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z'));
  65011. exports.TaobaoSquareFill = getIcon('taobao-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 1 1 0-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z'));
  65012. exports.ToolFill = getIcon('tool', fill, getNode(newViewBox, 'M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 0 0 419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z'));
  65013. exports.ThunderboltFill = getIcon('thunderbolt', fill, getNode(newViewBox, 'M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7z'));
  65014. exports.TrademarkCircleFill = getIcon('trademark-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm164.7 660.2c-1.1.5-2.3.8-3.5.8h-62c-3.1 0-5.9-1.8-7.2-4.6l-74.6-159.2h-88.7V717c0 4.4-3.6 8-8 8H378c-4.4 0-8-3.6-8-8V307c0-4.4 3.6-8 8-8h155.6c98.8 0 144.2 59.9 144.2 131.1 0 70.2-43.6 106.4-78.4 119.2l80.8 164.2c2.1 3.9.4 8.7-3.5 10.7zM523.9 357h-83.4v148H522c53 0 82.8-25.6 82.8-72.4 0-50.3-32.9-75.6-80.9-75.6z'));
  65015. exports.TwitterCircleFill = getIcon('twitter-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm215.3 337.7c.3 4.7.3 9.6.3 14.4 0 146.8-111.8 315.9-316.1 315.9-63 0-121.4-18.3-170.6-49.8 9 1 17.6 1.4 26.8 1.4 52 0 99.8-17.6 137.9-47.4-48.8-1-89.8-33-103.8-77 17.1 2.5 32.5 2.5 50.1-2a111 111 0 0 1-88.9-109v-1.4c14.7 8.3 32 13.4 50.1 14.1a111.13 111.13 0 0 1-49.5-92.4c0-20.7 5.4-39.6 15.1-56a315.28 315.28 0 0 0 229 116.1C492 353.1 548.4 292 616.2 292c32 0 60.8 13.4 81.1 35 25.1-4.7 49.1-14.1 70.5-26.7-8.3 25.7-25.7 47.4-48.8 61.1 22.4-2.4 44-8.6 64-17.3-15.1 22.2-34 41.9-55.7 57.6z'));
  65016. exports.TrophyFill = getIcon('trophy', fill, getNode(newViewBox, 'M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 0 0-44 44v148c0 81.7 60 149.6 138.2 162C265.6 630.2 359 721.8 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.8 758.4 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 0 0-44-44zM248 439.6c-37.1-11.9-64-46.7-64-87.6V232h64v207.6zM840 352c0 41-26.9 75.8-64 87.6V232h64v120z'));
  65017. exports.TwitterSquareFill = getIcon('twitter-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM727.3 401.7c.3 4.7.3 9.6.3 14.4 0 146.8-111.8 315.9-316.1 315.9-63 0-121.4-18.3-170.6-49.8 9 1 17.6 1.4 26.8 1.4 52 0 99.8-17.6 137.9-47.4-48.8-1-89.8-33-103.8-77 17.1 2.5 32.5 2.5 50.1-2a111 111 0 0 1-88.9-109v-1.4c14.7 8.3 32 13.4 50.1 14.1a111.13 111.13 0 0 1-49.5-92.4c0-20.7 5.4-39.6 15.1-56a315.28 315.28 0 0 0 229 116.1C492 353.1 548.4 292 616.2 292c32 0 60.8 13.4 81.1 35 25.1-4.7 49.1-14.1 70.5-26.7-8.3 25.7-25.7 47.4-48.8 61.1 22.4-2.4 44-8.6 64-17.3-15.1 22.2-34 41.9-55.7 57.6z'));
  65018. exports.UnlockFill = getIcon('unlock', fill, getNode(newViewBox, 'M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0z'));
  65019. exports.UpCircleFill = getIcon('up-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm178 555h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 460.4 406.8 605.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z'));
  65020. exports.UpSquareFill = getIcon('up-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM690 624h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 465.4 406.8 610.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z'));
  65021. exports.UsbFill = getIcon('usb', fill, getNode(newViewBox, 'M408 312h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm352 120V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zm-72 0H336V184h352v248zM568 312h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'));
  65022. exports.WalletFill = getIcon('wallet', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 464H528V448h320v128zm-268-64a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
  65023. exports.VideoCameraFill = getIcon('video-camera', fill, getNode(newViewBox, 'M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM328 352c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48zm560 273l-104-59.8V458.9L888 399v226z'));
  65024. exports.WarningFill = getIcon('warning', fill, getNode(newViewBox, 'M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
  65025. exports.WeiboCircleFill = getIcon('weibo-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z'));
  65026. exports.WechatFill = getIcon('wechat', fill, getNode(newViewBox, 'M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 0 1 9.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 0 0 6.4-2.6 9 9 0 0 0 2.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 0 1-36 35.9z'));
  65027. exports.WindowsFill = getIcon('windows', fill, getNode(newViewBox, 'M523.8 191.4v288.9h382V128.1zm0 642.2l382 62.2v-352h-382zM120.1 480.2H443V201.9l-322.9 53.5zm0 290.4L443 823.2V543.8H120.1z'));
  65028. exports.YahooFill = getIcon('yahoo', fill, getNode(newViewBox, 'M937.3 231H824.7c-15.5 0-27.7 12.6-27.1 28.1l13.1 366h84.4l65.4-366.4c2.7-15.2-7.8-27.7-23.2-27.7zm-77.4 450.4h-14.1c-27.1 0-49.2 22.2-49.2 49.3v14.1c0 27.1 22.2 49.3 49.2 49.3h14.1c27.1 0 49.2-22.2 49.2-49.3v-14.1c0-27.1-22.2-49.3-49.2-49.3zM402.6 231C216.2 231 65 357 65 512.5S216.2 794 402.6 794s337.6-126 337.6-281.5S589.1 231 402.6 231zm225.2 225.2h-65.3L458.9 559.8v65.3h84.4v56.3H318.2v-56.3h84.4v-65.3L242.9 399.9h-37v-56.3h168.5v56.3h-37l93.4 93.5 28.1-28.1V400h168.8v56.2z'));
  65029. exports.WeiboSquareFill = getIcon('weibo-square', fill, getNode(newViewBox, 'M433.6 595.1c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM467.6 736C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-58.1-46.7c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z'));
  65030. exports.YuqueFill = getIcon('yuque', fill, getNode(newViewBox, 'M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.9-8.1-195-3-195-3s87.4 55.6 52.4 154.7c-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6z'));
  65031. exports.YoutubeFill = getIcon('youtube', fill, getNode(newViewBox, 'M941.3 296.1a112.3 112.3 0 0 0-79.2-79.3C792.2 198 512 198 512 198s-280.2 0-350.1 18.7A112.12 112.12 0 0 0 82.7 296C64 366 64 512 64 512s0 146 18.7 215.9c10.3 38.6 40.7 69 79.2 79.3C231.8 826 512 826 512 826s280.2 0 350.1-18.8c38.6-10.3 68.9-40.7 79.2-79.3C960 658 960 512 960 512s0-146-18.7-215.9zM423 646V378l232 133-232 135z'));
  65032. exports.ZhihuSquareFill = getIcon('zhihu-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM432.3 592.8l71 80.7c9.2 33-3.3 63.1-3.3 63.1l-95.7-111.9v-.1c-8.9 29-20.1 57.3-33.3 84.7-22.6 45.7-55.2 54.7-89.5 57.7-34.4 3-23.3-5.3-23.3-5.3 68-55.5 78-87.8 96.8-123.1 11.9-22.3 20.4-64.3 25.3-96.8H264.1s4.8-31.2 19.2-41.7h101.6c.6-15.3-1.3-102.8-2-131.4h-49.4c-9.2 45-41 56.7-48.1 60.1-7 3.4-23.6 7.1-21.1 0 2.6-7.1 27-46.2 43.2-110.7 16.3-64.6 63.9-62 63.9-62-12.8 22.5-22.4 73.6-22.4 73.6h159.7c10.1 0 10.6 39 10.6 39h-90.8c-.7 22.7-2.8 83.8-5 131.4H519s12.2 15.4 12.2 41.7h-110l-.1 1.5c-1.5 20.4-6.3 43.9-12.9 67.6l24.1-18.1zm335.5 116h-87.6l-69.5 46.6-16.4-46.6h-40.1V321.5h213.6v387.3zM408.2 611s0-.1 0 0zm216 94.3l56.8-38.1h45.6-.1V364.7H596.7v302.5h14.1z'));
  65033. exports.ZhihuCircleFill = getIcon('zhihu-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-90.7 477.8l-.1 1.5c-1.5 20.4-6.3 43.9-12.9 67.6l24-18.1 71 80.7c9.2 33-3.3 63.1-3.3 63.1l-95.7-111.9v-.1c-8.9 29-20.1 57.3-33.3 84.7-22.6 45.7-55.2 54.7-89.5 57.7-34.4 3-23.3-5.3-23.3-5.3 68-55.5 78-87.8 96.8-123.1 11.9-22.3 20.4-64.3 25.3-96.8H264.1s4.8-31.2 19.2-41.7h101.6c.6-15.3-1.3-102.8-2-131.4h-49.4c-9.2 45-41 56.7-48.1 60.1-7 3.4-23.6 7.1-21.1 0 2.6-7.1 27-46.2 43.2-110.7 16.3-64.6 63.9-62 63.9-62-12.8 22.5-22.4 73.6-22.4 73.6h159.7c10.1 0 10.6 39 10.6 39h-90.8c-.7 22.7-2.8 83.8-5 131.4H519s12.2 15.4 12.2 41.7H421.3zm346.5 167h-87.6l-69.5 46.6-16.4-46.6h-40.1V321.5h213.6v387.3zM408.2 611s0-.1 0 0zm216 94.3l56.8-38.1h45.6-.1V364.7H596.7v302.5h14.1z'));
  65034. exports.AccountBookOutline = getIcon('account-book', outline, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 0 0-7.1-4.4h-46c-1.3 0-2.7.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9l89.3 164h-48.6c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1v33.7h-65.1c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1V752c0 4.4 3.6 8 8 8h41.3c4.4 0 8-3.6 8-8v-53.8h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-65.4v-33.7h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-49.1l89.3-164.1c.6-1.2 1-2.5 1-3.8.1-4.4-3.4-8-7.9-8z'));
  65035. exports.AlertOutline = getIcon('alert', outline, getNode(newViewBox, 'M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 0 0-11.3 0l-39.6 39.6a8.03 8.03 0 0 0 0 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-67.9 67.9a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z'));
  65036. exports.AlipayCircleOutline = getIcon('alipay-circle', outline, getNode(newViewBox, 'M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zm460.5 67c100.1 33.4 154.7 43 166.7 44.8A445.9 445.9 0 0 0 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c155.9 0 293.2-79.7 373.5-200.5-75.6-29.8-213.6-85-286.8-120.1-69.9 85.7-160.1 137.8-253.7 137.8-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9z'));
  65037. exports.AliwangwangOutline = getIcon('aliwangwang', outline, getNode(newViewBox, 'M868.2 377.4c-18.9-45.1-46.3-85.6-81.2-120.6a377.26 377.26 0 0 0-120.5-81.2A375.65 375.65 0 0 0 519 145.8c-41.9 0-82.9 6.7-121.9 20C306 123.3 200.8 120 170.6 120c-2.2 0-7.4 0-9.4.2-11.9.4-22.8 6.5-29.2 16.4-6.5 9.9-7.7 22.4-3.4 33.5l64.3 161.6a378.59 378.59 0 0 0-52.8 193.2c0 51.4 10 101 29.8 147.6 18.9 45 46.2 85.6 81.2 120.5 34.7 34.8 75.4 62.1 120.5 81.2C418.3 894 467.9 904 519 904c51.3 0 100.9-10.1 147.7-29.8 44.9-18.9 85.5-46.3 120.4-81.2 34.7-34.8 62.1-75.4 81.2-120.6a376.5 376.5 0 0 0 29.8-147.6c-.2-51.2-10.1-100.8-29.9-147.4zm-66.4 266.5a307.08 307.08 0 0 1-65.9 98c-28.4 28.5-61.3 50.7-97.7 65.9h-.1c-38 16-78.3 24.2-119.9 24.2a306.51 306.51 0 0 1-217.5-90.2c-28.4-28.5-50.6-61.4-65.8-97.8v-.1c-16-37.8-24.1-78.2-24.1-119.9 0-55.4 14.8-109.7 42.8-157l13.2-22.1-9.5-23.9L206 192c14.9.6 35.9 2.1 59.7 5.6 43.8 6.5 82.5 17.5 114.9 32.6l19 8.9 19.9-6.8c31.5-10.8 64.8-16.2 98.9-16.2a306.51 306.51 0 0 1 217.5 90.2c28.4 28.5 50.6 61.4 65.8 97.8l.1.1.1.1c16 37.6 24.1 78 24.2 119.8-.1 41.7-8.3 82-24.3 119.8zM681.1 364.2c-20.4 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.6 37.1 37.1 37.1s37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1zm-175.2 0c-20.5 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.7 37.1 37.1 37.1 20.5 0 37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1z'));
  65038. exports.AndroidOutline = getIcon('android', outline, getNode(newViewBox, 'M448.3 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32-13.4 32-31.9.1-18.4-13.4-31.9-32-31.9zm393.9 96.4c-13.8-13.8-32.7-21.5-53.2-21.5-3.9 0-7.4.4-10.7 1v-1h-3.6c-5.5-30.6-18.6-60.5-38.1-87.4-18.7-25.7-43-47.9-70.8-64.9l25.1-35.8v-3.3c0-.8.4-2.3.7-3.8.6-2.4 1.4-5.5 1.4-8.9 0-18.5-13.5-31.9-32-31.9-9.8 0-19.5 5.7-25.9 15.4l-29.3 42.1c-30-9.8-62.4-15-93.8-15-31.3 0-63.7 5.2-93.8 15L389 79.4c-6.6-9.6-16.1-15.4-26-15.4-18.6 0-32 13.4-32 31.9 0 6.2 2.5 12.8 6.7 17.4l22.6 32.3c-28.7 17-53.5 39.4-72.2 65.1-19.4 26.9-32 56.8-36.7 87.4h-5.5v1c-3.2-.6-6.7-1-10.7-1-20.3 0-39.2 7.5-53.1 21.3-13.8 13.8-21.5 32.6-21.5 53v235c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 3.9 0 7.4-.4 10.7-1v93.5c0 29.2 23.9 53.1 53.2 53.1H331v58.3c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-58.2H544v58.1c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.4 0 39.2-7.5 53.1-21.6 13.8-13.8 21.5-32.6 21.5-53v-58.2h31.9c29.3 0 53.2-23.8 53.2-53.1v-91.4c3.2.6 6.7 1 10.7 1 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-235c-.1-20.3-7.6-39-21.4-52.9zM246 609.6c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zm131.1-396.8c37.5-27.3 85.3-42.3 135-42.3s97.5 15.1 135 42.5c32.4 23.7 54.2 54.2 62.7 87.5H314.4c8.5-33.4 30.5-64 62.7-87.7zm39.3 674.7c-.6 5.6-4.4 8.7-10.5 8.7-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1zm202.3 8.7c-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1c-.6 5.6-4.3 8.7-10.5 8.7zm95.8-132.6H309.9V364h404.6v399.6zm85.2-154c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zM576.1 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32.1-13.4 32.1-32-.1-18.6-13.4-31.8-32.1-31.8z'));
  65039. exports.ApiOutline = getIcon('api', outline, getNode(newViewBox, 'M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 0 1-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z'));
  65040. exports.AppstoreOutline = getIcon('appstore', outline, getNode(newViewBox, 'M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z'));
  65041. exports.AudioOutline = getIcon('audio', outline, getNode(newViewBox, 'M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z'));
  65042. exports.AppleOutline = getIcon('apple', outline, getNode(newViewBox, 'M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-10.6 267c-14.3 19.9-28.7 35.6-41.9 45.7-10.5 8-18.6 11.4-24 11.6-9-.1-17.7-2.3-34.7-8.8-1.2-.5-2.5-1-4.2-1.6l-4.4-1.7c-17.4-6.7-27.8-10.3-41.1-13.8-18.6-4.8-37.1-7.4-56.9-7.4-20.2 0-39.2 2.5-58.1 7.2-13.9 3.5-25.6 7.4-42.7 13.8-.7.3-8.1 3.1-10.2 3.9-3.5 1.3-6.2 2.3-8.7 3.2-10.4 3.6-17 5.1-22.9 5.2-.7 0-1.3-.1-1.8-.2-1.1-.2-2.5-.6-4.1-1.3-4.5-1.8-9.9-5.1-16-9.8-14-10.9-29.4-28-45.1-49.9-27.5-38.6-53.5-89.8-66-125.7-15.4-44.8-23-87.7-23-128.6 0-60.2 17.8-106 48.4-137.1 26.3-26.6 61.7-41.5 97.8-42.3 5.9.1 14.5 1.5 25.4 4.5 8.6 2.3 18 5.4 30.7 9.9 3.8 1.4 16.9 6.1 18.5 6.7 7.7 2.8 13.5 4.8 19.2 6.6 18.2 5.8 32.3 9 47.6 9 15.5 0 28.8-3.3 47.7-9.8 7.1-2.4 32.9-12 37.5-13.6 25.6-9.1 44.5-14 60.8-15.2 4.8-.4 9.1-.4 13.2-.1 22.7 1.8 42.1 6.3 58.6 13.8-37.6 43.4-57 96.5-56.9 158.4-.3 14.7.9 31.7 5.1 51.8 6.4 30.5 18.6 60.7 37.9 89 14.7 21.5 32.9 40.9 54.7 57.8-11.5 23.7-25.6 48.2-40.4 68.8zm-94.5-572c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z'));
  65043. exports.BackwardOutline = getIcon('backward', outline, getNode(normalViewBox, 'M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9zm320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9z'));
  65044. exports.BankOutline = getIcon('bank', outline, getNode(newViewBox, 'M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 0 0-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z'));
  65045. exports.BellOutline = getIcon('bell', outline, getNode(newViewBox, 'M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z'));
  65046. exports.BehanceSquareOutline = getIcon('behance-square', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM598.5 350.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 0 1-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 0 1-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 0 1-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0 1 38.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 0 0-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7zm-248.5-10.1c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 0 0-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1s12.7-3.8 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8z'));
  65047. exports.BookOutline = getIcon('book', outline, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0 0 22.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z'));
  65048. exports.BoxPlotOutline = getIcon('box-plot', outline, getNode(newViewBox, 'M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H232c-4.4 0-8 3.6-8 8v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h560c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zM296 368h88v288h-88V368zm432 288H448V368h280v288z'));
  65049. exports.BulbOutline = getIcon('bulb', outline, getNode(newViewBox, 'M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z'));
  65050. exports.BugOutline = getIcon('bug', outline, getNode(newViewBox, 'M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 0 0-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 0 0-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z', 'M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 0 1-63 63H232a63 63 0 0 1-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0 0 22.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 0 0 123.2-149.5A120 120 0 0 1 836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 0 1 308 680V412h408v268z'));
  65051. exports.CalculatorOutline = getIcon('calculator', outline, getNode(newViewBox, 'M251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 0h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm-195.7-81l61.2-74.9c4.3-5.2.7-13.1-5.9-13.1H388c-2.3 0-4.5 1-5.9 2.9l-34 41.6-34-41.6a7.85 7.85 0 0 0-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.5-1 5.9-2.9l35.5-43.5 35.5 43.5c1.5 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 5.9-13.1L383.5 675zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-36 732H180V180h664v664z'));
  65052. exports.BuildOutline = getIcon('build', outline, getNode(newViewBox, 'M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z'));
  65053. exports.CalendarOutline = getIcon('calendar', outline, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z'));
  65054. exports.CameraOutline = getIcon('camera', outline, getNode(newViewBox, 'M864 248H728l-32.4-90.8a32.07 32.07 0 0 0-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z'));
  65055. exports.CarOutline = getIcon('car', outline, getNode(newViewBox, 'M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm239-167.6L935.3 372a8 8 0 0 0-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 0 0-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 0 0-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 0 0 3-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
  65056. exports.CaretDownOutline = getIcon('caret-down', outline, getNode(normalViewBox, 'M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z'));
  65057. exports.CaretLeftOutline = getIcon('caret-left', outline, getNode(normalViewBox, 'M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z'));
  65058. exports.CaretRightOutline = getIcon('caret-right', outline, getNode(normalViewBox, 'M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z'));
  65059. exports.CarryOutOutline = getIcon('carry-out', outline, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM688 420h-55.2c-5.1 0-10 2.5-13 6.6L468.9 634.4l-64.7-89c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.4 0-12.8-6.5-12.8z'));
  65060. exports.CheckCircleOutline = getIcon('check-circle', outline, getNode(newViewBox, 'M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0 0 51.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
  65061. exports.CaretUpOutline = getIcon('caret-up', outline, getNode(normalViewBox, 'M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z'));
  65062. exports.CheckSquareOutline = getIcon('check-square', outline, getNode(newViewBox, 'M433.1 657.7a31.8 31.8 0 0 0 51.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
  65063. exports.ChromeOutline = getIcon('chrome', outline, getNode(newViewBox, 'M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z'));
  65064. exports.ClockCircleOutline = getIcon('clock-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z'));
  65065. exports.CloseCircleOutline = getIcon('close-circle', outline, getNode(newViewBox, 'M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z', 'M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
  65066. exports.CloudOutline = getIcon('cloud', outline, getNode(newViewBox, 'M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 0 1-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 0 1 140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0 1 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z'));
  65067. exports.CloseSquareOutline = getIcon('close-square', outline, getNode(newViewBox, 'M354 671h58.9c4.7 0 9.2-2.1 12.3-5.7L512 561.8l86.8 103.5c3 3.6 7.5 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.4-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.7 0-9.2 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 0 0 354 671z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
  65068. exports.CodeOutline = getIcon('code', outline, getNode(newViewBox, 'M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 0 0 308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 0 0-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
  65069. exports.CodepenCircleOutline = getIcon('codepen-circle', outline, getNode(newViewBox, 'M488.1 414.7V303.4L300.9 428l83.6 55.8zm254.1 137.7v-79.8l-59.8 39.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm278 533c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 0 1-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 0 1-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 0 1 .8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-254.1 13.3v111.3L723.1 597l-83.6-55.8zM281.8 472.6v79.8l59.8-39.9zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zM723.1 428L535.9 303.4v111.3l103.6 69.1zM384.5 541.2L300.9 597l187.2 124.6V610.3l-103.6-69.1z'));
  65070. exports.CompassOutline = getIcon('compass', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 0 0-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 0 0-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z'));
  65071. exports.ContactsOutline = getIcon('contacts', outline, getNode(newViewBox, 'M594.3 601.5a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1 8 8 0 0 0 8 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z'));
  65072. exports.ContainerOutline = getIcon('container', outline, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'));
  65073. exports.ControlOutline = getIcon('control', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8s0 .1.1.1a36.18 36.18 0 0 1 5.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8 0 0 0 .1-.1.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7zM620 539v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8v.1a36.18 36.18 0 0 1 5.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8v.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7z'));
  65074. exports.CopyOutline = getIcon('copy', outline, getNode(newViewBox, 'M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z'));
  65075. exports.CreditCardOutline = getIcon('credit-card', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-792 72h752v120H136V232zm752 560H136V440h752v352zm-237-64h165c4.4 0 8-3.6 8-8v-72c0-4.4-3.6-8-8-8H651c-4.4 0-8 3.6-8 8v72c0 4.4 3.6 8 8 8z'));
  65076. exports.CrownOutline = getIcon('crown', outline, getNode(newViewBox, 'M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z'));
  65077. exports.CustomerServiceOutline = getIcon('customer-service', outline, getNode(newViewBox, 'M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z'));
  65078. exports.DashboardOutline = getIcon('dashboard', outline, getNode(newViewBox, 'M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 0 1 140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 0 0-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 0 0 0 79.2 55.95 55.95 0 0 0 79.2 0 55.87 55.87 0 0 0 14.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 0 0-11.3 0l-56.6 56.6a8.03 8.03 0 0 0 0 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 0 0-11.3 0l-31.1 31.1a8.03 8.03 0 0 0 0 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z'));
  65079. exports.DeleteOutline = getIcon('delete', outline, getNode(newViewBox, 'M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z'));
  65080. exports.DiffOutline = getIcon('diff', outline, getNode(newViewBox, 'M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7zm-7.1-502.6c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888zm190.2-581.4L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z'));
  65081. exports.DatabaseOutline = getIcon('database', outline, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 272a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 272a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
  65082. exports.DislikeOutline = getIcon('dislike', outline, getNode(newViewBox, 'M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 0 0-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81zm627.2 160.4H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 0 1-42.2-32.3L329 459.2V172h415.4a56.85 56.85 0 0 1 33.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0 1 19.6 43c0 19.1-11 37.5-28.8 48.4z'));
  65083. exports.DownCircleOutline = getIcon('down-circle', outline, getNode(newViewBox, 'M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
  65084. exports.DownSquareOutline = getIcon('down-square', outline, getNode(newViewBox, 'M505.5 658.7c3.2 4.4 9.7 4.4 12.9 0l178-246c3.8-5.3 0-12.7-6.5-12.7H643c-10.2 0-19.9 4.9-25.9 13.2L512 558.6 406.8 413.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
  65085. exports.DribbbleSquareOutline = getIcon('dribbble-square', outline, getNode(newViewBox, 'M498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm66.5 21.8c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM512 800c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm89.7-259.1c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zm-72.5-26.4c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4zm145.9-186.2a245.2 245.2 0 0 0-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6z'));
  65086. exports.EnvironmentOutline = getIcon('environment', outline, getNode(newViewBox, 'M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z'));
  65087. exports.EditOutline = getIcon('edit', outline, getNode(newViewBox, 'M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z'));
  65088. exports.ExclamationCircleOutline = getIcon('exclamation-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z'));
  65089. exports.ExperimentOutline = getIcon('experiment', outline, getNode(newViewBox, 'M512 472a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 0 1-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z'));
  65090. exports.EyeInvisibleOutline = getIcon('eye-invisible', outline, getNode(newViewBox, 'M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zm-63.57-320.64L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z', 'M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z'));
  65091. exports.EyeOutline = getIcon('eye', outline, getNode(newViewBox, 'M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z'));
  65092. exports.FacebookOutline = getIcon('facebook', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 736H663.9V602.2h104l15.6-120.7H663.9v-77.1c0-35 9.7-58.8 59.8-58.8h63.9v-108c-11.1-1.5-49-4.8-93.2-4.8-92.2 0-155.3 56.3-155.3 159.6v89H434.9v120.7h104.3V848H176V176h672v672z'));
  65093. exports.FastBackwardOutline = getIcon('fast-backward', outline, getNode(normalViewBox, 'M517.6 273.5L230.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm320 0L550.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm-620-25.5h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z'));
  65094. exports.FastForwardOutline = getIcon('fast-forward', outline, getNode(normalViewBox, 'M793.8 499.3L506.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.6c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8a16.14 16.14 0 0 0 0-25.4zm-320 0L186.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.5c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8c4.1-3.2 6.2-8 6.2-12.7 0-4.6-2.1-9.4-6.2-12.6zM857.6 248h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z'));
  65095. exports.FileAddOutline = getIcon('file-add', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z'));
  65096. exports.FileExcelOutline = getIcon('file-excel', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0 0 10.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 0 0-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z'));
  65097. exports.FileExclamationOutline = getIcon('file-exclamation', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM472 744a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm16-104h48c4.4 0 8-3.6 8-8V448c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8z'));
  65098. exports.FileImageOutline = getIcon('file-image', outline, getNode(newViewBox, 'M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 0 0-12.6 0l-99.8 127.2a7.98 7.98 0 0 0 6.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 0 0-12.7 0zM360 442a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm494.6-153.4L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z'));
  65099. exports.FileMarkdownOutline = getIcon('file-markdown', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM429 481.2c-1.9-4.4-6.2-7.2-11-7.2h-35c-6.6 0-12 5.4-12 12v272c0 6.6 5.4 12 12 12h27.1c6.6 0 12-5.4 12-12V582.1l66.8 150.2a12 12 0 0 0 11 7.1H524c4.7 0 9-2.8 11-7.1l66.8-150.6V758c0 6.6 5.4 12 12 12H641c6.6 0 12-5.4 12-12V486c0-6.6-5.4-12-12-12h-34.7c-4.8 0-9.1 2.8-11 7.2l-83.1 191-83.2-191z'));
  65100. exports.FilePptOutline = getIcon('file-ppt', outline, getNode(newViewBox, 'M424 476c-4.4 0-8 3.6-8 8v276c0 4.4 3.6 8 8 8h32.5c4.4 0 8-3.6 8-8v-95.5h63.3c59.4 0 96.2-38.9 96.2-94.1 0-54.5-36.3-94.3-96-94.3H424zm150.6 94.3c0 43.4-26.5 54.3-71.2 54.3h-38.9V516.2h56.2c33.8 0 53.9 19.7 53.9 54.1zm280-281.7L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z'));
  65101. exports.FileTextOutline = getIcon('file-text', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z'));
  65102. exports.FilePdfOutline = getIcon('file-pdf', outline, getNode(newViewBox, 'M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z'));
  65103. exports.FileZipOutline = getIcon('file-zip', outline, getNode(newViewBox, 'M296 392h64v64h-64zm0 190v160h128V582h-64v-62h-64v62zm80 48v64h-32v-64h32zm-16-302h64v64h-64zm-64-64h64v64h-64zm64 192h64v64h-64zm0-256h64v64h-64zm494.6 88.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h64v64h64v-64h174v216a42 42 0 0 0 42 42h216v494z'));
  65104. exports.FileOutline = getIcon('file', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z'));
  65105. exports.FilterOutline = getIcon('filter', outline, getNode(newViewBox, 'M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z'));
  65106. exports.FileWordOutline = getIcon('file-word', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 0 0-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 0 0-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z'));
  65107. exports.FireOutline = getIcon('fire', outline, getNode(newViewBox, 'M834.1 469.2A347.49 347.49 0 0 0 751.2 354l-29.1-26.7a8.09 8.09 0 0 0-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 0 1-47.5 46.1 352.6 352.6 0 0 0-100.3 121.5A347.75 347.75 0 0 0 160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0 0 75.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 0 0 760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0 0 27.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0 0 58.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0 0 12.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0 0 24.4 59.8 73.36 73.36 0 0 0 53.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z'));
  65108. exports.FileUnknownOutline = getIcon('file-unknown', outline, getNode(newViewBox, 'M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103zm78 195a32 32 0 1 0 64 0 32 32 0 1 0-64 0z'));
  65109. exports.FlagOutline = getIcon('flag', outline, getNode(newViewBox, 'M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z'));
  65110. exports.FolderAddOutline = getIcon('folder-add', outline, getNode(newViewBox, 'M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z'));
  65111. exports.FolderOutline = getIcon('folder', outline, getNode(newViewBox, 'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z'));
  65112. exports.FolderOpenOutline = getIcon('folder-open', outline, getNode(newViewBox, 'M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 0 0-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z'));
  65113. exports.ForwardOutline = getIcon('forward', outline, getNode(normalViewBox, 'M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z'));
  65114. exports.FrownOutline = getIcon('frown', outline, getNode(newViewBox, 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 0 0 8 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 0 0 8-8.4C667.6 600.3 597.5 533 512 533z'));
  65115. exports.FundOutline = getIcon('fund', outline, getNode(newViewBox, 'M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-40 632H134V236h752v560zm-658.9-82.3c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 0 0-11.3 0L531 565 416.6 450.5a8.03 8.03 0 0 0-11.3 0l-214.9 215a8.03 8.03 0 0 0 0 11.3l36.7 36.9z'));
  65116. exports.FunnelPlotOutline = getIcon('funnel-plot', outline, getNode(newViewBox, 'M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 607.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V607.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V650h182.9v148zm9.6-226.6l-8.4 14.6H419.3l-8.4-14.6L334.4 438h355.2L613 571.4zM726.3 374H297.7l-85-148h598.6l-85 148z'));
  65117. exports.GiftOutline = getIcon('gift', outline, getNode(newViewBox, 'M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zm-334-74c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm-138-70c38.6 0 70 31.4 70 70v70h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70zM180 482V378h298v104H180zm48 68h250v308H228V550zm568 308H546V550h250v308zm48-376H546V378h298v104z'));
  65118. exports.GithubOutline = getIcon('github', outline, getNode(newViewBox, 'M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z'));
  65119. exports.GitlabOutline = getIcon('gitlab', outline, getNode(newViewBox, 'M913.9 552.2L805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776L405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9l207.3-276.7 29.5 99.2-236.8 177.5z'));
  65120. exports.HeartOutline = getIcon('heart', outline, getNode(newViewBox, 'M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z'));
  65121. exports.HddOutline = getIcon('hdd', outline, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
  65122. exports.HighlightOutline = getIcon('highlight', outline, getNode(newViewBox, 'M957.6 507.4L603.2 158.2a7.9 7.9 0 0 0-11.2 0L353.3 393.4a8.03 8.03 0 0 0-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 0 0-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0 0 11.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0 0 11.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.2H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.2l68.6-67.6 171.4 168.9-68.6 67.6zM713.1 658L450.3 399.1 597.6 254l262.8 259-147.3 145z'));
  65123. exports.HomeOutline = getIcon('home', outline, getNode(newViewBox, 'M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z'));
  65124. exports.HourglassOutline = getIcon('hourglass', outline, getNode(newViewBox, 'M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194zm-72 388v134H354V706c0-42.2 16.4-81.9 46.3-111.7C430.1 564.4 469.8 548 512 548s81.9 16.4 111.7 46.3C653.6 624.1 670 663.8 670 706zm0-388c0 42.2-16.4 81.9-46.3 111.7C593.9 459.6 554.2 476 512 476s-81.9-16.4-111.7-46.3A156.63 156.63 0 0 1 354 318V184h316v134z'));
  65125. exports.Html5Outline = getIcon('html5', outline, getNode(newViewBox, 'M145 96l66 746.6L511.8 928l299.6-85.4L878.7 96H145zm610.9 700.6l-244.1 69.6-245.2-69.6-56.7-641.2h603.8l-57.8 641.2zM281 249l1.7 24.3 22.7 253.5h206.5v-.1h112.9l-11.4 118.5L511 672.9v.2h-.8l-102.4-27.7-6.5-73.2h-91l11.3 144.7 188.6 52h1.7v-.4l187.7-51.7 1.7-16.3 21.2-242.2 3.2-24.3H511v.2H389.9l-8.2-94.2h352.1l1.7-19.5 4.8-47.2L742 249H511z'));
  65126. exports.IdcardOutline = getIcon('idcard', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560zM610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z'));
  65127. exports.InfoCircleOutline = getIcon('info-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z'));
  65128. exports.InstagramOutline = getIcon('instagram', outline, getNode(newViewBox, 'M512 306.9c-113.5 0-205.1 91.6-205.1 205.1S398.5 717.1 512 717.1 717.1 625.5 717.1 512 625.5 306.9 512 306.9zm0 338.4c-73.4 0-133.3-59.9-133.3-133.3S438.6 378.7 512 378.7 645.3 438.6 645.3 512 585.4 645.3 512 645.3zm213.5-394.6c-26.5 0-47.9 21.4-47.9 47.9s21.4 47.9 47.9 47.9 47.9-21.3 47.9-47.9a47.84 47.84 0 0 0-47.9-47.9zM911.8 512c0-55.2.5-109.9-2.6-165-3.1-64-17.7-120.8-64.5-167.6-46.9-46.9-103.6-61.4-167.6-64.5-55.2-3.1-109.9-2.6-165-2.6-55.2 0-109.9-.5-165 2.6-64 3.1-120.8 17.7-167.6 64.5C132.6 226.3 118.1 283 115 347c-3.1 55.2-2.6 109.9-2.6 165s-.5 109.9 2.6 165c3.1 64 17.7 120.8 64.5 167.6 46.9 46.9 103.6 61.4 167.6 64.5 55.2 3.1 109.9 2.6 165 2.6 55.2 0 109.9.5 165-2.6 64-3.1 120.8-17.7 167.6-64.5 46.9-46.9 61.4-103.6 64.5-167.6 3.2-55.1 2.6-109.8 2.6-165zm-88 235.8c-7.3 18.2-16.1 31.8-30.2 45.8-14.1 14.1-27.6 22.9-45.8 30.2C695.2 844.7 570.3 840 512 840c-58.3 0-183.3 4.7-235.9-16.1-18.2-7.3-31.8-16.1-45.8-30.2-14.1-14.1-22.9-27.6-30.2-45.8C179.3 695.2 184 570.3 184 512c0-58.3-4.7-183.3 16.1-235.9 7.3-18.2 16.1-31.8 30.2-45.8s27.6-22.9 45.8-30.2C328.7 179.3 453.7 184 512 184s183.3-4.7 235.9 16.1c18.2 7.3 31.8 16.1 45.8 30.2 14.1 14.1 22.9 27.6 30.2 45.8C844.7 328.7 840 453.7 840 512c0 58.3 4.7 183.2-16.2 235.8z'));
  65129. exports.InsuranceOutline = getIcon('insurance', outline, getNode(newViewBox, 'M441.6 306.8L403 288.6a6.1 6.1 0 0 0-8.4 3.7c-17.5 58.5-45.2 110.1-82.2 153.6a6.05 6.05 0 0 0-1.2 5.6l13.2 43.5c1.3 4.4 7 5.7 10.2 2.4 7.7-8.1 15.4-16.9 23.1-26V656c0 4.4 3.6 8 8 8H403c4.4 0 8-3.6 8-8V393.1a429.2 429.2 0 0 0 33.6-79c1-2.9-.3-6-3-7.3zm26.8 9.2v127.2c0 4.4 3.6 8 8 8h65.9v18.6h-94.9c-4.4 0-8 3.6-8 8v35.6c0 4.4 3.6 8 8 8h55.1c-19.1 30.8-42.4 55.7-71 76a6 6 0 0 0-1.6 8.1l22.8 36.5c1.9 3.1 6.2 3.8 8.9 1.4 31.6-26.8 58.7-62.9 80.6-107.6v120c0 4.4 3.6 8 8 8h36.2c4.4 0 8-3.6 8-8V536c21.3 41.7 47.5 77.5 78.1 106.9 2.6 2.5 6.8 2.1 8.9-.7l26.3-35.3c2-2.7 1.4-6.5-1.2-8.4-30.5-22.6-54.2-47.8-72.3-76.9h59c4.4 0 8-3.6 8-8V478c0-4.4-3.6-8-8-8h-98.8v-18.6h66.7c4.4 0 8-3.6 8-8V316c0-4.4-3.6-8-8-8H476.4c-4.4 0-8 3.6-8 8zm51.5 42.8h97.9v41.6h-97.9v-41.6zm347-188.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'));
  65130. exports.InteractionOutline = getIcon('interaction', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z'));
  65131. exports.InterationOutline = getIcon('interation', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z'));
  65132. exports.LayoutOutline = getIcon('layout', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z'));
  65133. exports.LeftCircleOutline = getIcon('left-circle', outline, getNode(newViewBox, 'M603.3 327.5l-246 178a7.95 7.95 0 0 0 0 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
  65134. exports.LeftSquareOutline = getIcon('left-square', outline, getNode(newViewBox, 'M365.3 518.5l246 178c5.3 3.8 12.7 0 12.7-6.5v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a8.05 8.05 0 0 0 0 13z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
  65135. exports.LikeOutline = getIcon('like', outline, getNode(newViewBox, 'M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 0 0 471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0 1 42.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z'));
  65136. exports.LinkedinOutline = getIcon('linkedin', outline, getNode(newViewBox, 'M847.7 112H176.3c-35.5 0-64.3 28.8-64.3 64.3v671.4c0 35.5 28.8 64.3 64.3 64.3h671.4c35.5 0 64.3-28.8 64.3-64.3V176.3c0-35.5-28.8-64.3-64.3-64.3zm0 736c-447.8-.1-671.7-.2-671.7-.3.1-447.8.2-671.7.3-671.7 447.8.1 671.7.2 671.7.3-.1 447.8-.2 671.7-.3 671.7zM230.6 411.9h118.7v381.8H230.6zm59.4-52.2c37.9 0 68.8-30.8 68.8-68.8a68.8 68.8 0 1 0-137.6 0c-.1 38 30.7 68.8 68.8 68.8zm252.3 245.1c0-49.8 9.5-98 71.2-98 60.8 0 61.7 56.9 61.7 101.2v185.7h118.6V584.3c0-102.8-22.2-181.9-142.3-181.9-57.7 0-96.4 31.7-112.3 61.7h-1.6v-52.2H423.7v381.8h118.6V604.8z'));
  65137. exports.LockOutline = getIcon('lock', outline, getNode(newViewBox, 'M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z'));
  65138. exports.MedicineBoxOutline = getIcon('medicine-box', outline, getNode(newViewBox, 'M839.2 278.1a32 32 0 0 0-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 0 0-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM360 184h304v72H360v-72zm480 656H184V513.4L244.3 328h535.4L840 513.4V840zM652 572H544V464c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V636h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
  65139. exports.MehOutline = getIcon('meh', outline, getNode(newViewBox, 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
  65140. exports.MailOutline = getIcon('mail', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z'));
  65141. exports.MessageOutline = getIcon('message', outline, getNode(newViewBox, 'M464 512a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm200 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm-400 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 0 0-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 0 0-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 0 0 112 714v152a46 46 0 0 0 46 46h152.1A449.4 449.4 0 0 0 510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 0 0 142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z'));
  65142. exports.MinusCircleOutline = getIcon('minus-circle', outline, getNode(newViewBox, 'M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
  65143. exports.MinusSquareOutline = getIcon('minus-square', outline, getNode(newViewBox, 'M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
  65144. exports.MobileOutline = getIcon('mobile', outline, getNode(newViewBox, 'M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
  65145. exports.MoneyCollectOutline = getIcon('money-collect', outline, getNode(newViewBox, 'M911.5 700.7a8 8 0 0 0-10.3-4.8L840 718.2V180c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V763c0 3.3 2.1 6.3 5.3 7.5L501 910.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zM512 837.5l-256-93.1V184h512v560.4l-256 93.1zM660.6 312h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.6-1.2 1-2.5 1-3.8-.1-4.3-3.7-7.9-8.1-7.9z'));
  65146. exports.PauseCircleOutline = getIcon('pause-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z'));
  65147. exports.PayCircleOutline = getIcon('pay-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm159.6-585h-59.5c-3 0-5.8 1.7-7.1 4.4l-90.6 180H511l-90.6-180a8 8 0 0 0-7.1-4.4h-60.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9L457 515.7h-61.4c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V603h-81.7c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V717c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c4.4 0 8-3.6 8-8v-29.9c0-4.4-3.6-8-8-8h-62l111.1-204.8c.6-1.2 1-2.5 1-3.8-.1-4.4-3.7-8-8.1-8z'));
  65148. exports.NotificationOutline = getIcon('notification', outline, getNode(newViewBox, 'M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z'));
  65149. exports.PhoneOutline = getIcon('phone', outline, getNode(newViewBox, 'M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 0 1-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 0 0-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 0 0 285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z'));
  65150. exports.PictureOutline = getIcon('picture', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 1 0 0-176 88 88 0 0 0 0 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z'));
  65151. exports.PieChartOutline = getIcon('pie-chart', outline, getNode(newViewBox, 'M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 0 0-282.8 117.1 398.19 398.19 0 0 0-85.7 127.1A397.61 397.61 0 0 0 72 552a398.46 398.46 0 0 0 117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 0 0 472 952a398.46 398.46 0 0 0 282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 0 0 872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 0 1 470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 0 0 589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 0 1 166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z'));
  65152. exports.PlaySquareOutline = getIcon('play-square', outline, getNode(newViewBox, 'M442.3 677.6l199.4-156.7a11.3 11.3 0 0 0 0-17.7L442.3 346.4c-7.4-5.8-18.3-.6-18.3 8.8v313.5c0 9.4 10.9 14.7 18.3 8.9z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
  65153. exports.PlayCircleOutline = getIcon('play-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M719.4 499.1l-296.1-215A15.9 15.9 0 0 0 398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 0 0 0-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z'));
  65154. exports.PlusCircleOutline = getIcon('plus-circle', outline, getNode(newViewBox, 'M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
  65155. exports.PrinterOutline = getIcon('printer', outline, getNode(newViewBox, 'M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8zm32-104H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z'));
  65156. exports.PlusSquareOutline = getIcon('plus-square', outline, getNode(newViewBox, 'M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
  65157. exports.ProfileOutline = getIcon('profile', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 144a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 144a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
  65158. exports.ProjectOutline = getIcon('project', outline, getNode(newViewBox, 'M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
  65159. exports.PushpinOutline = getIcon('pushpin', outline, getNode(newViewBox, 'M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 0 0-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 0 0-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 0 1-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z'));
  65160. exports.PropertySafetyOutline = getIcon('property-safety', outline, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM430.5 318h-46c-1.7 0-3.3.4-4.8 1.2a10.1 10.1 0 0 0-4 13.6l88 161.1h-45.2c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1v29.7h-63.1c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1V658c0 5.5 4.5 10 10 10h41.3c5.5 0 10-4.5 10-10v-51.8h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-63.4v-29.7h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-45.7l87.7-161.1a10.05 10.05 0 0 0-8.8-14.8h-45c-3.8 0-7.2 2.1-8.9 5.5l-73.2 144.3-72.9-144.3c-1.7-3.4-5.2-5.5-9-5.5z'));
  65161. exports.QuestionCircleOutline = getIcon('question-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0 1 30.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
  65162. exports.ReadOutline = getIcon('read', outline, getNode(newViewBox, 'M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 0 0 324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z'));
  65163. exports.ReconciliationOutline = getIcon('reconciliation', outline, getNode(newViewBox, 'M676 565c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34zm204-523H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zm-412 64h72v-56h64v56h72v48H468v-48zm-20 616H176V616h272v232zm0-296H176v-88h272v88zm392 240H512V432c0-17.7-14.3-32-32-32H304V240h100v104h336V240h100v552zM704 408v96c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-96c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zM592 512h48c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
  65164. exports.RedEnvelopeOutline = getIcon('red-envelope', outline, getNode(newViewBox, 'M440.6 462.6a8.38 8.38 0 0 0-7.5-4.6h-48.8c-1.3 0-2.6.4-3.9 1a8.4 8.4 0 0 0-3.4 11.4l87.4 161.1H419c-4.6 0-8.4 3.8-8.4 8.4V665c0 4.6 3.8 8.4 8.4 8.4h63V702h-63c-4.6 0-8.4 3.8-8.4 8.4v25.1c0 4.6 3.8 8.4 8.4 8.4h63v49.9c0 4.6 3.8 8.4 8.4 8.4h43.7c4.6 0 8.4-3.8 8.4-8.4v-49.9h63.3c4.7 0 8.4-3.8 8.2-8.5v-25c0-4.6-3.8-8.4-8.4-8.4h-63.3v-28.6h63.3c4.6 0 8.4-3.8 8.4-8.4v-25.1c0-4.6-3.8-8.4-8.4-8.4h-45.9l87.2-161a8.45 8.45 0 0 0-7.4-12.4h-47.8c-3.1 0-6 1.8-7.5 4.6l-71.9 141.9-71.7-142zM832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V193.1l260.3 204.1c11.6 9.1 27.9 9.1 39.5 0L792 193.1V888zm0-751.3h-31.7L512 331.3 263.7 136.7H232v-.7h560v.7z'));
  65165. exports.RestOutline = getIcon('rest', outline, getNode(newViewBox, 'M508 704c79.5 0 144-64.5 144-144s-64.5-144-144-144-144 64.5-144 144 64.5 144 144 144zm0-224c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z', 'M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0 0 31.9 29.3h429.2a32 32 0 0 0 31.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zm-518.6-76h397.2l22.4 76H291l22.4-76zm376.2 664H326.4L282 324h451.9l-44.3 520z'));
  65166. exports.RightCircleOutline = getIcon('right-circle', outline, getNode(newViewBox, 'M666.7 505.5l-246-178A8 8 0 0 0 408 334v46.9c0 10.2 4.9 19.9 13.2 25.9L566.6 512 421.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.8 0-13z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
  65167. exports.RocketOutline = getIcon('rocket', outline, getNode(newViewBox, 'M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 0 0-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0 0 43.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0 0 43.1-30.5 97.52 97.52 0 0 0 21.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0 1 62.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 0 1-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'));
  65168. exports.RightSquareOutline = getIcon('right-square', outline, getNode(newViewBox, 'M412.7 696.5l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5V381c0 10.2 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
  65169. exports.SafetyCertificateOutline = getIcon('safety-certificate', outline, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z'));
  65170. exports.ScheduleOutline = getIcon('schedule', outline, getNode(newViewBox, 'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496zM416 496H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0 136H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm308.2-177.4L620.6 598.3l-52.8-73.1c-3-4.2-7.8-6.6-12.9-6.6H500c-6.5 0-10.3 7.4-6.5 12.7l114.1 158.2a15.9 15.9 0 0 0 25.8 0l165-228.7c3.8-5.3 0-12.7-6.5-12.7H737c-5-.1-9.8 2.4-12.8 6.5z'));
  65171. exports.SaveOutline = getIcon('save', outline, getNode(newViewBox, 'M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z'));
  65172. exports.SecurityScanOutline = getIcon('security-scan', outline, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM402.9 528.8l-77.5 77.5a8.03 8.03 0 0 0 0 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.7 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 123-20.1 178.6zm65.4-133.3c31.3-31.3 82-31.3 113.2 0 31.3 31.3 31.3 82 0 113.2-31.3 31.3-82 31.3-113.2 0s-31.3-81.9 0-113.2z'));
  65173. exports.SettingOutline = getIcon('setting', outline, getNode(newViewBox, 'M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2z'));
  65174. exports.ShoppingOutline = getIcon('shopping', outline, getNode(newViewBox, 'M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-432-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16H400v-16zm392 544H232V384h96v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h224v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h96v456z'));
  65175. exports.SkinOutline = getIcon('skin', outline, getNode(newViewBox, 'M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z'));
  65176. exports.SkypeOutline = getIcon('skype', outline, getNode(newViewBox, 'M883.7 578.6c4.1-22.5 6.3-45.5 6.3-68.5 0-51-10-100.5-29.7-147-19-45-46.3-85.4-81-120.1a375.79 375.79 0 0 0-120.1-80.9c-46.6-19.7-96-29.7-147-29.7-24 0-48.1 2.3-71.5 6.8A225.1 225.1 0 0 0 335.6 113c-59.7 0-115.9 23.3-158.1 65.5A222.25 222.25 0 0 0 112 336.6c0 38 9.8 75.4 28.1 108.4-3.7 21.4-5.7 43.3-5.7 65.1 0 51 10 100.5 29.7 147 19 45 46.2 85.4 80.9 120.1 34.7 34.7 75.1 61.9 120.1 80.9 46.6 19.7 96 29.7 147 29.7 22.2 0 44.4-2 66.2-5.9 33.5 18.9 71.3 29 110 29 59.7 0 115.9-23.2 158.1-65.5 42.3-42.2 65.5-98.4 65.5-158.1.1-38-9.7-75.5-28.2-108.7zm-88.1 216C766.9 823.4 729 839 688.4 839c-26.1 0-51.8-6.8-74.6-19.7l-22.5-12.7-25.5 4.5c-17.8 3.2-35.8 4.8-53.6 4.8-41.4 0-81.3-8.1-119.1-24.1-36.3-15.3-69-37.3-97.2-65.5a304.29 304.29 0 0 1-65.5-97.1c-16-37.7-24-77.6-24-119 0-17.4 1.6-35.2 4.6-52.8l4.4-25.1L203 410a151.02 151.02 0 0 1-19.1-73.4c0-40.6 15.7-78.5 44.4-107.2C257.1 200.7 295 185 335.6 185a153 153 0 0 1 71.4 17.9l22.4 11.8 24.8-4.8c18.9-3.6 38.4-5.5 58-5.5 41.4 0 81.3 8.1 119 24 36.5 15.4 69.1 37.4 97.2 65.5 28.2 28.1 50.2 60.8 65.6 97.2 16 37.7 24 77.6 24 119 0 18.4-1.7 37-5.1 55.5l-4.7 25.5 12.6 22.6c12.6 22.5 19.2 48 19.2 73.7 0 40.7-15.7 78.5-44.4 107.2zM583.4 466.2L495 446.6c-33.6-7.7-72.3-17.8-72.3-49.5s27.1-53.9 76.1-53.9c98.7 0 89.7 67.8 138.7 67.8 25.8 0 48.4-15.2 48.4-41.2 0-60.8-97.4-106.5-180-106.5-89.7 0-185.2 38.1-185.2 139.5 0 48.8 17.4 100.8 113.6 124.9l119.4 29.8c36.1 8.9 45.2 29.2 45.2 47.6 0 30.5-30.3 60.3-85.2 60.3-107.2 0-92.3-82.5-149.7-82.5-25.8 0-44.5 17.8-44.5 43.1 0 49.4 60 115.4 194.2 115.4 127.7 0 191-61.5 191-144 0-53.1-24.5-109.6-121.3-131.2z'));
  65177. exports.SlackSquareOutline = getIcon('slack-square', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM529 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0 1 50.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm134 403.2c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z'));
  65178. exports.SlidersOutline = getIcon('sliders', outline, getNode(newViewBox, 'M320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440zm644-436h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 0 1-3 3h-74a3 3 0 0 1-3-3v-74a3 3 0 0 1 3-3h74a3 3 0 0 1 3 3v74z'));
  65179. exports.SmileOutline = getIcon('smile', outline, getNode(newViewBox, 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 0 0-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 0 0-8-8.4z'));
  65180. exports.SnippetsOutline = getIcon('snippets', outline, getNode(newViewBox, 'M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 888H232V336h218v174c0 22.1 17.9 40 40 40h174v338zm0-402H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z'));
  65181. exports.SoundOutline = getIcon('sound', outline, getNode(newViewBox, 'M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344z'));
  65182. exports.StarOutline = getIcon('star', outline, getNode(newViewBox, 'M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0 0 46.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z'));
  65183. exports.StepBackwardOutline = getIcon('step-backward', outline, getNode(normalViewBox, 'M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 0 0 0 33.9M330 864h-64a8 8 0 0 1-8-8V168a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v688a8 8 0 0 1-8 8'));
  65184. exports.StepForwardOutline = getIcon('step-forward', outline, getNode(normalViewBox, 'M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 0 1 0 33.9M694 864h64a8 8 0 0 0 8-8V168a8 8 0 0 0-8-8h-64a8 8 0 0 0-8 8v688a8 8 0 0 0 8 8'));
  65185. exports.StopOutline = getIcon('stop', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z'));
  65186. exports.SwitcherOutline = getIcon('switcher', outline, getNode(newViewBox, 'M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zm-40 600H184V312h528v528zm168-728H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM300 550h296v64H300z'));
  65187. exports.TagOutline = getIcon('tag', outline, getNode(newViewBox, 'M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7zM680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z'));
  65188. exports.TabletOutline = getIcon('tablet', outline, getNode(newViewBox, 'M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H232V136h560v752zM472 784a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
  65189. exports.ShopOutline = getIcon('shop', outline, getNode(newViewBox, 'M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0 0 14.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h676c17.7 0 32-14.3 32-32V535a175 175 0 0 0 15.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zM214 184h596v88H214v-88zm362 656.1H448V736h128v104.1zm234 0H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 3-1.3 6-2.6 9-4v242.2zm30-404.4c0 59.8-49 108.3-109.3 108.3-40.8 0-76.4-22.1-95.2-54.9-2.9-5-8.1-8.1-13.9-8.1h-.6c-5.7 0-11 3.1-13.9 8.1A109.24 109.24 0 0 1 512 544c-40.7 0-76.2-22-95-54.7-3-5.1-8.4-8.3-14.3-8.3s-11.4 3.2-14.3 8.3a109.63 109.63 0 0 1-95.1 54.7C233 544 184 495.5 184 435.7v-91.2c0-.3.2-.5.5-.5h655c.3 0 .5.2.5.5v91.2z'));
  65190. exports.TagsOutline = getIcon('tags', outline, getNode(newViewBox, 'M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1 0 67.88-67.89 48 48 0 1 0-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 0 0-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 0 0-11.3 0l-39.6 39.5a8.03 8.03 0 0 0 0 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z'));
  65191. exports.TaobaoCircleOutline = getIcon('taobao-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 1 1 0-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z'));
  65192. exports.ToolOutline = getIcon('tool', outline, getNode(newViewBox, 'M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 0 1 144-53.5L537 318.9a32.05 32.05 0 0 0 0 45.3l124.5 124.5a32.05 32.05 0 0 0 45.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z'));
  65193. exports.ThunderboltOutline = getIcon('thunderbolt', outline, getNode(newViewBox, 'M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z'));
  65194. exports.TrophyOutline = getIcon('trophy', outline, getNode(newViewBox, 'M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 0 0-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 0 0-44-44zM184 352V232h64v207.6a91.99 91.99 0 0 1-64-87.6zm520 128c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z'));
  65195. exports.UnlockOutline = getIcon('unlock', outline, getNode(newViewBox, 'M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z'));
  65196. exports.UpCircleOutline = getIcon('up-circle', outline, getNode(newViewBox, 'M518.5 360.3a7.95 7.95 0 0 0-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7H381c10.2 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
  65197. exports.UpSquareOutline = getIcon('up-square', outline, getNode(newViewBox, 'M334 624h46.9c10.2 0 19.9-4.9 25.9-13.2L512 465.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246a7.95 7.95 0 0 0-12.9 0l-178 246A7.96 7.96 0 0 0 334 624z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
  65198. exports.UsbOutline = getIcon('usb', outline, getNode(newViewBox, 'M760 432V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V548c0-24.3 21.6-44 48.1-44h495.8c26.5 0 48.1 19.7 48.1 44v356c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zm-424 0V184h352v248H336zm120-184h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm160 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
  65199. exports.VideoCameraOutline = getIcon('video-camera', outline, getNode(newViewBox, 'M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'));
  65200. exports.WalletOutline = getIcon('wallet', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
  65201. exports.WarningOutline = getIcon('warning', outline, getNode(newViewBox, 'M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z'));
  65202. exports.WechatOutline = getIcon('wechat', outline, getNode(newViewBox, 'M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 0 1 9.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 0 0 6.4-2.6 9 9 0 0 0 2.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 0 1-36 35.9z'));
  65203. exports.WeiboCircleOutline = getIcon('weibo-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z'));
  65204. exports.WindowsOutline = getIcon('windows', outline, getNode(newViewBox, 'M120.1 770.6L443 823.2V543.8H120.1v226.8zm63.4-163.5h196.2v141.6l-196.2-31.9V607.1zm340.3 226.5l382 62.2v-352h-382v289.8zm63.4-226.5h255.3v214.4l-255.3-41.6V607.1zm-63.4-415.7v288.8h382V128.1l-382 63.3zm318.7 225.5H587.3V245l255.3-42.3v214.2zm-722.4 63.3H443V201.9l-322.9 53.5v224.8zM183.5 309l196.2-32.5v140.4H183.5V309z'));
  65205. exports.YahooOutline = getIcon('yahoo', outline, getNode(newViewBox, 'M859.9 681.4h-14.1c-27.1 0-49.2 22.2-49.2 49.3v14.1c0 27.1 22.2 49.3 49.2 49.3h14.1c27.1 0 49.2-22.2 49.2-49.3v-14.1c0-27.1-22.2-49.3-49.2-49.3zM402.6 231C216.2 231 65 357 65 512.5S216.2 794 402.6 794s337.6-126 337.6-281.5S589.1 231 402.6 231zm0 507C245.1 738 121 634.6 121 512.5c0-62.3 32.3-119.7 84.9-161v48.4h37l159.8 159.9v65.3h-84.4v56.3h225.1v-56.3H459v-65.3l103.5-103.6h65.3v-56.3H459v65.3l-28.1 28.1-93.4-93.5h37v-56.3H216.4c49.4-35 114.3-56.6 186.2-56.6 157.6 0 281.6 103.4 281.6 225.5S560.2 738 402.6 738zm534.7-507H824.7c-15.5 0-27.7 12.6-27.1 28.1l13.1 366h84.4l65.4-366.4c2.7-15.2-7.8-27.7-23.2-27.7z'));
  65206. exports.WeiboSquareOutline = getIcon('weibo-square', outline, getNode(newViewBox, 'M433.6 595.1c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM467.6 736C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-58.1-46.7c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z'));
  65207. exports.YuqueOutline = getIcon('yuque', outline, getNode(newViewBox, 'M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.8-8.1-194.9-3-195-3 .1 0 87.4 55.6 52.4 154.7-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6zm-204.1 334c-10.6 0-26.2.1-46.8.3l-23.6.2-17.8 15.5c-47.1 41-104.4 71.5-171.4 87.6-52.5 12.6-110 16.2-172.7 9.6 18-20.5 36.5-41.6 55.4-63.1 92-104.6 173.8-197.5 236.9-268.5l1.4-1.4 1.3-1.5c4.1-4.6 20.6-23.3 24.7-28.1 9.7-11.1 17.3-19.9 24.5-28.6 30.7-36.7 52.2-67.8 69-102.2l1.6-3.3 1.2-3.4c13.7-38.8 15.4-76.9 6.2-112.8 22.5.7 46.5 1.9 71.7 3.6 33.3 2.3 55.5 12.9 71.1 29.2 5.8 6 10.2 12.5 13.4 18.7 1 2 1.7 3.6 2.3 5l5 17.7c-15.7 34.5-19.9 73.3-11.4 107.2 3 11.8 6.9 22.4 12.3 34.4 2.1 4.7 9.5 20.1 11 23.3 10.3 22.7 15.4 43 16.7 78.7 3.3 94.6-82.7 181.9-182 181.9z'));
  65208. exports.YoutubeOutline = getIcon('youtube', outline, getNode(newViewBox, 'M960 509.2c0-2.2 0-4.7-.1-7.6-.1-8.1-.3-17.2-.5-26.9-.8-27.9-2.2-55.7-4.4-81.9-3-36.1-7.4-66.2-13.4-88.8a139.52 139.52 0 0 0-98.3-98.5c-28.3-7.6-83.7-12.3-161.7-15.2-37.1-1.4-76.8-2.3-116.5-2.8-13.9-.2-26.8-.3-38.4-.4h-29.4c-11.6.1-24.5.2-38.4.4-39.7.5-79.4 1.4-116.5 2.8-78 3-133.5 7.7-161.7 15.2A139.35 139.35 0 0 0 82.4 304C76.3 326.6 72 356.7 69 392.8c-2.2 26.2-3.6 54-4.4 81.9-.3 9.7-.4 18.8-.5 26.9 0 2.9-.1 5.4-.1 7.6v5.6c0 2.2 0 4.7.1 7.6.1 8.1.3 17.2.5 26.9.8 27.9 2.2 55.7 4.4 81.9 3 36.1 7.4 66.2 13.4 88.8 12.8 47.9 50.4 85.7 98.3 98.5 28.2 7.6 83.7 12.3 161.7 15.2 37.1 1.4 76.8 2.3 116.5 2.8 13.9.2 26.8.3 38.4.4h29.4c11.6-.1 24.5-.2 38.4-.4 39.7-.5 79.4-1.4 116.5-2.8 78-3 133.5-7.7 161.7-15.2 47.9-12.8 85.5-50.5 98.3-98.5 6.1-22.6 10.4-52.7 13.4-88.8 2.2-26.2 3.6-54 4.4-81.9.3-9.7.4-18.8.5-26.9 0-2.9.1-5.4.1-7.6v-5.6zm-72 5.2c0 2.1 0 4.4-.1 7.1-.1 7.8-.3 16.4-.5 25.7-.7 26.6-2.1 53.2-4.2 77.9-2.7 32.2-6.5 58.6-11.2 76.3-6.2 23.1-24.4 41.4-47.4 47.5-21 5.6-73.9 10.1-145.8 12.8-36.4 1.4-75.6 2.3-114.7 2.8-13.7.2-26.4.3-37.8.3h-28.6l-37.8-.3c-39.1-.5-78.2-1.4-114.7-2.8-71.9-2.8-124.9-7.2-145.8-12.8-23-6.2-41.2-24.4-47.4-47.5-4.7-17.7-8.5-44.1-11.2-76.3-2.1-24.7-3.4-51.3-4.2-77.9-.3-9.3-.4-18-.5-25.7 0-2.7-.1-5.1-.1-7.1v-4.8c0-2.1 0-4.4.1-7.1.1-7.8.3-16.4.5-25.7.7-26.6 2.1-53.2 4.2-77.9 2.7-32.2 6.5-58.6 11.2-76.3 6.2-23.1 24.4-41.4 47.4-47.5 21-5.6 73.9-10.1 145.8-12.8 36.4-1.4 75.6-2.3 114.7-2.8 13.7-.2 26.4-.3 37.8-.3h28.6l37.8.3c39.1.5 78.2 1.4 114.7 2.8 71.9 2.8 124.9 7.2 145.8 12.8 23 6.2 41.2 24.4 47.4 47.5 4.7 17.7 8.5 44.1 11.2 76.3 2.1 24.7 3.4 51.3 4.2 77.9.3 9.3.4 18 .5 25.7 0 2.7.1 5.1.1 7.1v4.8zM423 646l232-135-232-133z'));
  65209. exports.AlibabaOutline = getIcon('alibaba', outline, getNode(newViewBox, 'M602.9 669.8c-37.2 2.6-33.6-17.3-11.5-46.2 50.4-67.2 143.7-158.5 147.9-225.2 5.8-86.6-81.3-113.4-171-113.4-62.4 1.6-127 18.9-171 34.6-151.6 53.5-246.6 137.5-306.9 232-62.4 93.4-43 183.2 91.8 185.8 101.8-4.2 170.5-32.5 239.7-68.2.5 0-192.5 55.1-263.9 14.7-7.9-4.2-15.7-10-17.8-26.2 0-33.1 54.6-67.7 86.6-78.7v-56.7c64.5 22.6 140.6 16.3 205.7-32 2.1 5.8 4.2 13.1 3.7 21h11c2.6-22.6-12.6-44.6-37.8-46.2 7.3 5.8 12.6 10.5 15.2 14.7l-1 1-.5.5c-83.9 58.8-165.3 31.5-173.1 29.9l46.7-45.7-13.1-33.1c92.9-32.5 169.5-56.2 296.9-78.7l-28.5-23 14.7-8.9c75.5 21 126.4 36.7 123.8 76.6-1 6.8-3.7 14.7-7.9 23.1C660.1 466.1 594 538 567.2 569c-17.3 20.5-34.6 39.4-46.7 58.3-13.6 19.4-20.5 37.3-21 53.5 2.6 131.8 391.4-61.9 468-112.9-111.7 47.8-232.9 93.5-364.6 101.9zm85-302.9c2.8 5.2 4.1 11.6 4.1 19.1-.1-6.8-1.4-13.3-4.1-19.1z'));
  65210. exports.AlignCenterOutline = getIcon('align-center', outline, getNode(newViewBox, 'M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65211. exports.AlignLeftOutline = getIcon('align-left', outline, getNode(newViewBox, 'M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65212. exports.AlignRightOutline = getIcon('align-right', outline, getNode(newViewBox, 'M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65213. exports.AlipayOutline = getIcon('alipay', outline, getNode(newViewBox, 'M789 610.3c-38.7-12.9-90.7-32.7-148.5-53.6 34.8-60.3 62.5-129 80.7-203.6H530.5v-68.6h233.6v-38.3H530.5V132h-95.4c-16.7 0-16.7 16.5-16.7 16.5v97.8H182.2v38.3h236.3v68.6H223.4v38.3h378.4a667.18 667.18 0 0 1-54.5 132.9c-122.8-40.4-253.8-73.2-336.1-53-52.6 13-86.5 36.1-106.5 60.3-91.4 111-25.9 279.6 167.2 279.6C386 811.2 496 747.6 581.2 643 708.3 704 960 808.7 960 808.7V659.4s-31.6-2.5-171-49.1zM253.9 746.6c-150.5 0-195-118.3-120.6-183.1 24.8-21.9 70.2-32.6 94.4-35 89.4-8.8 172.2 25.2 269.9 72.8-68.8 89.5-156.3 145.3-243.7 145.3z'));
  65214. exports.AliyunOutline = getIcon('aliyun', outline, getNode(newViewBox, 'M959.2 383.9c-.3-82.1-66.9-148.6-149.1-148.6H575.9l21.6 85.2 201 43.7a42.58 42.58 0 0 1 32.9 39.7c.1.5.1 216.1 0 216.6a42.58 42.58 0 0 1-32.9 39.7l-201 43.7-21.6 85.3h234.2c82.1 0 148.8-66.5 149.1-148.6V383.9zM225.5 660.4a42.58 42.58 0 0 1-32.9-39.7c-.1-.6-.1-216.1 0-216.6.8-19.4 14.6-35.5 32.9-39.7l201-43.7 21.6-85.2H213.8c-82.1 0-148.8 66.4-149.1 148.6V641c.3 82.1 67 148.6 149.1 148.6H448l-21.6-85.3-200.9-43.9zm200.9-158.8h171v21.3h-171z'));
  65215. exports.AmazonOutline = getIcon('amazon', outline, getNode(newViewBox, 'M825 768.9c-3.3-.9-7.3-.4-11.9 1.3-61.6 28.2-121.5 48.3-179.7 60.2C507.7 856 385.2 842.6 266 790.3c-33.1-14.6-79.1-39.2-138-74a9.36 9.36 0 0 0-5.3-2c-2-.1-3.7.1-5.3.9-1.6.8-2.8 1.8-3.7 3.1-.9 1.3-1.1 3.1-.4 5.4.6 2.2 2.1 4.7 4.6 7.4 10.4 12.2 23.3 25.2 38.6 39s35.6 29.4 60.9 46.8c25.3 17.4 51.8 32.9 79.3 46.4 27.6 13.5 59.6 24.9 96.1 34.1s73 13.8 109.4 13.8c36.2 0 71.4-3.7 105.5-10.9 34.2-7.3 63-15.9 86.5-25.9 23.4-9.9 45-21 64.8-33 19.8-12 34.4-22.2 43.9-30.3 9.5-8.2 16.3-14.6 20.2-19.4 4.6-5.7 6.9-10.6 6.9-14.9.1-4.5-1.7-7.1-5-7.9zM527.4 348.1c-15.2 1.3-33.5 4.1-55 8.3-21.5 4.1-41.4 9.3-59.8 15.4s-37.2 14.6-56.3 25.4c-19.2 10.8-35.5 23.2-49 37s-24.5 31.1-33.1 52c-8.6 20.8-12.9 43.7-12.9 68.7 0 27.1 4.7 51.2 14.3 72.5 9.5 21.3 22.2 38 38.2 50.4 15.9 12.4 34 22.1 54 29.2 20 7.1 41.2 10.3 63.2 9.4 22-.9 43.5-4.3 64.4-10.3 20.8-5.9 40.4-15.4 58.6-28.3 18.2-12.9 33.1-28.2 44.8-45.7 4.3 6.6 8.1 11.5 11.5 14.7l8.7 8.9c5.8 5.9 14.7 14.6 26.7 26.1 11.9 11.5 24.1 22.7 36.3 33.7l104.4-99.9-6-4.9c-4.3-3.3-9.4-8-15.2-14.3-5.8-6.2-11.6-13.1-17.2-20.5-5.7-7.4-10.6-16.1-14.7-25.9-4.1-9.8-6.2-19.3-6.2-28.5V258.7c0-10.1-1.9-21-5.7-32.8-3.9-11.7-10.7-24.5-20.7-38.3-10-13.8-22.4-26.2-37.2-37-14.9-10.8-34.7-20-59.6-27.4-24.8-7.4-52.6-11.1-83.2-11.1-31.3 0-60.4 3.7-87.6 10.9-27.1 7.3-50.3 17-69.7 29.2-19.3 12.2-35.9 26.3-49.7 42.4-13.8 16.1-24.1 32.9-30.8 50.4-6.7 17.5-10.1 35.2-10.1 53.1L408 310c5.5-16.4 12.9-30.6 22-42.8 9.2-12.2 17.9-21 25.8-26.5 8-5.5 16.6-9.9 25.7-13.2 9.2-3.3 15.4-5 18.6-5.4 3.2-.3 5.7-.4 7.6-.4 26.7 0 45.2 7.9 55.6 23.6 6.5 9.5 9.7 23.9 9.7 43.3v56.6c-15.2.6-30.4 1.6-45.6 2.9zM573.1 500c0 16.6-2.2 31.7-6.5 45-9.2 29.1-26.7 47.4-52.4 54.8-22.4 6.6-43.7 3.3-63.9-9.8-21.5-14-32.2-33.8-32.2-59.3 0-19.9 5-36.9 15-51.1 10-14.1 23.3-24.7 40-31.7s33-12 49-14.9c15.9-3 33-4.8 51-5.4V500zm335.2 218.9c-4.3-5.4-15.9-8.9-34.9-10.7-19-1.8-35.5-1.7-49.7.4-15.3 1.8-31.1 6.2-47.3 13.4-16.3 7.1-23.4 13.1-21.6 17.8l.7 1.3.9.7 1.4.2h4.6c.8 0 1.8-.1 3.2-.2 1.4-.1 2.7-.3 3.9-.4 1.2-.1 2.9-.3 5.1-.4 2.1-.1 4.1-.4 6-.7.3 0 3.7-.3 10.3-.9 6.6-.6 11.4-1 14.3-1.3 2.9-.3 7.8-.6 14.5-.9 6.7-.3 12.1-.3 16.1 0 4 .3 8.5.7 13.6 1.1 5.1.4 9.2 1.3 12.4 2.7 3.2 1.3 5.6 3 7.1 5.1 5.2 6.6 4.2 21.2-3 43.9s-14 40.8-20.4 54.2c-2.8 5.7-2.8 9.2 0 10.7s6.7.1 11.9-4c15.6-12.2 28.6-30.6 39.1-55.3 6.1-14.6 10.5-29.8 13.1-45.7 2.4-15.9 2-26.2-1.3-31z'));
  65216. exports.AntCloudOutline = getIcon('ant-cloud', outline, getNode(newViewBox, 'M378.9 738c-3.1 0-6.1-.5-8.8-1.5l4.4 30.7h26.3l-15.5-29.9c-2.1.5-4.2.7-6.4.7zm421-291.2c-12.6 0-24.8 1.5-36.5 4.2-21.4-38.4-62.3-64.3-109.3-64.3-6.9 0-13.6.6-20.2 1.6-35.4-77.4-113.4-131.1-203.9-131.1-112.3 0-205.3 82.6-221.6 190.4C127.3 455.5 64 523.8 64 607c0 88.4 71.6 160.1 160 160.2h50l13.2-27.6c-26.2-8.3-43.3-29-39.1-48.8 4.6-21.6 32.8-33.9 63.1-27.5 22.9 4.9 40.4 19.1 45.5 35.1a26.1 26.1 0 0 1 22.1-12.4h.2c-.8-3.2-1.2-6.5-1.2-9.9 0-20.1 14.8-36.7 34.1-39.6v-25.4c0-4.4 3.6-8 8-8s8 3.6 8 8v26.3c4.6 1.2 8.8 3.2 12.6 5.8l19.5-21.4c3-3.3 8-3.5 11.3-.5 3.3 3 3.5 8 .5 11.3l-20 22-.2.2a40 40 0 0 1-46.9 59.2c-.4 5.6-2.6 10.7-6 14.8l20 38.4H804v-.1c86.5-2.2 156-73 156-160.1 0-88.5-71.7-160.2-160.1-160.2zM338.2 737.2l-4.3 30h24.4l-5.9-41.5c-3.5 4.6-8.3 8.5-14.2 11.5zM797.5 305a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm-65.7 61.3a24 24 0 1 0 48 0 24 24 0 1 0-48 0zM303.4 742.9l-11.6 24.3h26l3.5-24.7c-5.7.8-11.7 1-17.9.4z'));
  65217. exports.ApartmentOutline = getIcon('apartment', outline, getNode(newViewBox, 'M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z'));
  65218. exports.AntDesignOutline = getIcon('ant-design', outline, getNode(newViewBox, 'M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 0 0 0 76.4L474.6 944a54.14 54.14 0 0 0 76.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 0 0-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 1 0 212.6 0 106.3 106.2 0 1 0-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 0 0 0 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 0 0 0 68.6 48.7 48.7 0 0 0 68.7 0l121.8-121.7a53.93 53.93 0 0 0-.1-76.4z'));
  65219. exports.AreaChartOutline = getIcon('area-chart', outline, getNode(newViewBox, 'M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-616-64h536c4.4 0 8-3.6 8-8V284c0-7.2-8.7-10.7-13.7-5.7L592 488.6l-125.4-124a8.03 8.03 0 0 0-11.3 0l-189 189.6a7.87 7.87 0 0 0-2.3 5.6V720c0 4.4 3.6 8 8 8z'));
  65220. exports.ArrowLeftOutline = getIcon('arrow-left', outline, getNode(newViewBox, 'M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 0 0 0 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
  65221. exports.ArrowDownOutline = getIcon('arrow-down', outline, getNode(newViewBox, 'M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z'));
  65222. exports.ArrowUpOutline = getIcon('arrow-up', outline, getNode(newViewBox, 'M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z'));
  65223. exports.ArrowsAltOutline = getIcon('arrows-alt', outline, getNode(newViewBox, 'M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 0 0 0 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0 0 13.5-4.7L863.9 169a7.9 7.9 0 0 0-8.9-8.9zM416.6 562.3a8.03 8.03 0 0 0-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 0 0-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z'));
  65224. exports.ArrowRightOutline = getIcon('arrow-right', outline, getNode(newViewBox, 'M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 0 0 0-48.4z'));
  65225. exports.AuditOutline = getIcon('audit', outline, getNode(newViewBox, 'M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z'));
  65226. exports.BarChartOutline = getIcon('bar-chart', outline, getNode(newViewBox, 'M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z'));
  65227. exports.BarcodeOutline = getIcon('barcode', outline, getNode(newViewBox, 'M120 160H72c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zm833 0h-48c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zM200 736h112c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm321 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm126 0h178c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H647c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-255 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-79 64H201c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm257 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm256 0H648c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h178c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-385 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
  65228. exports.BarsOutline = getIcon('bars', outline, getNode(normalViewBox, 'M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
  65229. exports.BgColorsOutline = getIcon('bg-colors', outline, getNode(newViewBox, 'M766.4 744.3c43.7 0 79.4-36.2 79.4-80.5 0-53.5-79.4-140.8-79.4-140.8S687 610.3 687 663.8c0 44.3 35.7 80.5 79.4 80.5zm-377.1-44.1c7.1 7.1 18.6 7.1 25.6 0l256.1-256c7.1-7.1 7.1-18.6 0-25.6l-256-256c-.6-.6-1.3-1.2-2-1.7l-78.2-78.2a9.11 9.11 0 0 0-12.8 0l-48 48a9.11 9.11 0 0 0 0 12.8l67.2 67.2-207.8 207.9c-7.1 7.1-7.1 18.6 0 25.6l255.9 256zm12.9-448.6l178.9 178.9H223.4l178.8-178.9zM904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8z'));
  65230. exports.BehanceOutline = getIcon('behance', outline, getNode(newViewBox, 'M634 294.3h199.5v48.4H634zM434.1 485.8c44.1-21.1 67.2-53.2 67.2-102.8 0-98.1-73-121.9-157.3-121.9H112v492.4h238.5c89.4 0 173.3-43 173.3-143 0-61.8-29.2-107.5-89.7-124.7zM220.2 345.1h101.5c39.1 0 74.2 10.9 74.2 56.3 0 41.8-27.3 58.6-66 58.6H220.2V345.1zm115.5 324.8H220.1V534.3H338c47.6 0 77.7 19.9 77.7 70.3 0 49.6-35.9 65.3-80 65.3zm575.8-89.5c0-105.5-61.7-193.4-173.3-193.4-108.5 0-182.3 81.7-182.3 188.8 0 111 69.9 187.2 182.3 187.2 85.1 0 140.2-38.3 166.7-120h-86.3c-9.4 30.5-47.6 46.5-77.3 46.5-57.4 0-87.4-33.6-87.4-90.7h256.9c.3-5.9.7-12.1.7-18.4zM653.9 537c3.1-46.9 34.4-76.2 81.2-76.2 49.2 0 73.8 28.9 78.1 76.2H653.9z'));
  65231. exports.BlockOutline = getIcon('block', outline, getNode(newViewBox, 'M856 376H648V168c0-8.8-7.2-16-16-16H168c-8.8 0-16 7.2-16 16v464c0 8.8 7.2 16 16 16h208v208c0 8.8 7.2 16 16 16h464c8.8 0 16-7.2 16-16V392c0-8.8-7.2-16-16-16zm-480 16v188H220V220h360v156H392c-8.8 0-16 7.2-16 16zm204 52v136H444V444h136zm224 360H444V648h188c8.8 0 16-7.2 16-16V444h156v360z'));
  65232. exports.BoldOutline = getIcon('bold', outline, getNode(newViewBox, 'M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z'));
  65233. exports.BorderBottomOutline = getIcon('border-bottom', outline, getNode(newViewBox, 'M872 808H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-720-94h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-498h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm166 166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm222-72h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388 426h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
  65234. exports.BorderLeftOutline = getIcon('border-left', outline, getNode(newViewBox, 'M208 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM540 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65235. exports.BorderOuterOutline = getIcon('border-outer', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM484 366h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM302 548h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm364 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-182 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 182h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
  65236. exports.BorderInnerOutline = getIcon('border-inner', outline, getNode(newViewBox, 'M872 476H548V144h-72v332H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v332h72V548h324c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-664h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM650 216h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-592h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-166 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-426h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 260h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65237. exports.BorderRightOutline = getIcon('border-right', outline, getNode(newViewBox, 'M872 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65238. exports.BorderHorizontalOutline = getIcon('border-horizontal', outline, getNode(newViewBox, 'M540 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm664 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65239. exports.BorderTopOutline = getIcon('border-top', outline, getNode(newViewBox, 'M872 144H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332-498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65240. exports.BorderVerticleOutline = getIcon('border-verticle', outline, getNode(newViewBox, 'M872 476H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-664h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM650 216h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-592h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-166 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM152 382h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM208 642h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65241. exports.BorderOutline = getIcon('border', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
  65242. exports.BranchesOutline = getIcon('branches', outline, getNode(newViewBox, 'M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0 0 34.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm96 600a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0zm408-491a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
  65243. exports.CheckOutline = getIcon('check', outline, getNode(newViewBox, 'M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z'));
  65244. exports.CiOutline = getIcon('ci', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm218-572.1h-50.4c-4.4 0-8 3.6-8 8v384.2c0 4.4 3.6 8 8 8H730c4.4 0 8-3.6 8-8V319.9c0-4.4-3.6-8-8-8zm-281.4 49.6c49.5 0 83.1 31.5 87 77.6.4 4.2 3.8 7.4 8 7.4h52.6c2.4 0 4.4-2 4.4-4.4 0-81.2-64-138.1-152.3-138.1C345.4 304 286 373.5 286 488.4v49c0 114 59.4 182.6 162.3 182.6 88 0 152.3-55.1 152.3-132.5 0-2.4-2-4.4-4.4-4.4h-52.7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c.1-81.4 34.6-126.8 95.7-126.8z'));
  65245. exports.CloseOutline = getIcon('close', outline, getNode(newViewBox, 'M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z'));
  65246. exports.CloudDownloadOutline = getIcon('cloud-download', outline, getNode(newViewBox, 'M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z', 'M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z'));
  65247. exports.CloudServerOutline = getIcon('cloud-server', outline, getNode(newViewBox, 'M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z', 'M424 748a32 32 0 1 0 64 0 32 32 0 1 0-64 0zm0-178a32 32 0 1 0 64 0 32 32 0 1 0-64 0z', 'M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z'));
  65248. exports.CloudSyncOutline = getIcon('cloud-sync', outline, getNode(newViewBox, 'M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z', 'M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 0 0 3 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 0 0-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z'));
  65249. exports.CloudUploadOutline = getIcon('cloud-upload', outline, getNode(newViewBox, 'M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z', 'M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z'));
  65250. exports.ClusterOutline = getIcon('cluster', outline, getNode(newViewBox, 'M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
  65251. exports.CodepenOutline = getIcon('codepen', outline, getNode(newViewBox, 'M911.7 385.3l-.3-1.5c-.2-1-.3-1.9-.6-2.9-.2-.6-.4-1.1-.5-1.7-.3-.8-.5-1.7-.9-2.5-.2-.6-.5-1.1-.8-1.7-.4-.8-.8-1.5-1.2-2.3-.3-.5-.6-1.1-1-1.6-.8-1.2-1.7-2.4-2.6-3.6-.5-.6-1.1-1.3-1.7-1.9-.4-.5-.9-.9-1.4-1.3-.6-.6-1.3-1.1-1.9-1.6-.5-.4-1-.8-1.6-1.2-.2-.1-.4-.3-.6-.4L531.1 117.8a34.3 34.3 0 0 0-38.1 0L127.3 361.3c-.2.1-.4.3-.6.4-.5.4-1 .8-1.6 1.2-.7.5-1.3 1.1-1.9 1.6-.5.4-.9.9-1.4 1.3-.6.6-1.2 1.2-1.7 1.9-1 1.1-1.8 2.3-2.6 3.6-.3.5-.7 1-1 1.6-.4.7-.8 1.5-1.2 2.3-.3.5-.5 1.1-.8 1.7-.3.8-.6 1.7-.9 2.5-.2.6-.4 1.1-.5 1.7-.2.9-.4 1.9-.6 2.9l-.3 1.5c-.2 1.5-.3 3-.3 4.5v243.5c0 1.5.1 3 .3 4.5l.3 1.5.6 2.9c.2.6.3 1.1.5 1.7.3.9.6 1.7.9 2.5.2.6.5 1.1.8 1.7.4.8.7 1.5 1.2 2.3.3.5.6 1.1 1 1.6.5.7.9 1.4 1.5 2.1l1.2 1.5c.5.6 1.1 1.3 1.7 1.9.4.5.9.9 1.4 1.3.6.6 1.3 1.1 1.9 1.6.5.4 1 .8 1.6 1.2.2.1.4.3.6.4L493 905.7c5.6 3.8 12.3 5.8 19.1 5.8 6.6 0 13.3-1.9 19.1-5.8l365.6-243.5c.2-.1.4-.3.6-.4.5-.4 1-.8 1.6-1.2.7-.5 1.3-1.1 1.9-1.6.5-.4.9-.9 1.4-1.3.6-.6 1.2-1.2 1.7-1.9l1.2-1.5 1.5-2.1c.3-.5.7-1 1-1.6.4-.8.8-1.5 1.2-2.3.3-.5.5-1.1.8-1.7.3-.8.6-1.7.9-2.5.2-.5.4-1.1.5-1.7.3-.9.4-1.9.6-2.9l.3-1.5c.2-1.5.3-3 .3-4.5V389.8c-.3-1.5-.4-3-.6-4.5zM546.4 210.5l269.4 179.4-120.3 80.4-149-99.6V210.5zm-68.8 0v160.2l-149 99.6-120.3-80.4 269.3-179.4zM180.7 454.1l86 57.5-86 57.5v-115zm296.9 358.5L208.3 633.2l120.3-80.4 149 99.6v160.2zM512 592.8l-121.6-81.2L512 430.3l121.6 81.2L512 592.8zm34.4 219.8V652.4l149-99.6 120.3 80.4-269.3 179.4zM843.3 569l-86-57.5 86-57.5v115z'));
  65252. exports.CodeSandboxOutline = getIcon('code-sandbox', outline, getNode(newViewBox, 'M709.6 210l.4-.2h.2L512 96 313.9 209.8h-.2l.7.3L151.5 304v416L512 928l360.5-208V304l-162.9-94zM482.7 843.6L339.6 761V621.4L210 547.8V372.9l272.7 157.3v313.4zM238.2 321.5l134.7-77.8 138.9 79.7 139.1-79.9 135.2 78-273.9 158-274-158zM814 548.3l-128.8 73.1v139.1l-143.9 83V530.4L814 373.1v175.2z'));
  65253. exports.ColumHeightOutline = getIcon('colum-height', outline, getNode(newViewBox, 'M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 0 0-11.3 0L403.6 366.3a7.23 7.23 0 0 0 5.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z'));
  65254. exports.ColumnWidthOutline = getIcon('column-width', outline, getNode(newViewBox, 'M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 0 0-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 0 0 0 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z'));
  65255. exports.ColumnHeightOutline = getIcon('column-height', outline, getNode(newViewBox, 'M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 0 0-11.3 0L403.6 366.3a7.23 7.23 0 0 0 5.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z'));
  65256. exports.CoffeeOutline = getIcon('coffee', outline, getNode(normalViewBox, 'M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z'));
  65257. exports.CopyrightOutline = getIcon('copyright', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z'));
  65258. exports.DashOutline = getIcon('dash', outline, getNode(newViewBox, 'M112 476h160v72H112zm320 0h160v72H432zm320 0h160v72H752z'));
  65259. exports.DeploymentUnitOutline = getIcon('deployment-unit', outline, getNode(newViewBox, 'M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 0 1-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0 1 65.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z'));
  65260. exports.DesktopOutline = getIcon('desktop', outline, getNode(newViewBox, 'M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z'));
  65261. exports.DingdingOutline = getIcon('dingding', outline, getNode(newViewBox, 'M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z'));
  65262. exports.DisconnectOutline = getIcon('disconnect', outline, getNode(newViewBox, 'M832.6 191.4c-84.6-84.6-221.5-84.6-306 0l-96.9 96.9 51 51 96.9-96.9c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204l-96.9 96.9 51.1 51.1 96.9-96.9c84.4-84.6 84.4-221.5-.1-306.1zM446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l96.9-96.9-51.1-51.1-96.9 96.9c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l96.9-96.9-51-51-96.8 97zM260.3 209.4a8.03 8.03 0 0 0-11.3 0L209.4 249a8.03 8.03 0 0 0 0 11.3l554.4 554.4c3.1 3.1 8.2 3.1 11.3 0l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3L260.3 209.4z'));
  65263. exports.DollarOutline = getIcon('dollar', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z'));
  65264. exports.DoubleRightOutline = getIcon('double-right', outline, getNode(newViewBox, 'M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 0 0 188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 0 0 492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z'));
  65265. exports.DotChartOutline = getIcon('dot-chart', outline, getNode(newViewBox, 'M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm118-224a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm158 228a96 96 0 1 0 192 0 96 96 0 1 0-192 0zm148-314a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
  65266. exports.DoubleLeftOutline = getIcon('double-left', outline, getNode(newViewBox, 'M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z'));
  65267. exports.DownloadOutline = getIcon('download', outline, getNode(newViewBox, 'M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z'));
  65268. exports.DribbbleOutline = getIcon('dribbble', outline, getNode(newViewBox, 'M512 96C282.6 96 96 282.6 96 512s186.6 416 416 416 416-186.6 416-416S741.4 96 512 96zm275.1 191.8c49.5 60.5 79.5 137.5 80.2 221.4-11.7-2.5-129.2-26.3-247.4-11.4-2.5-6.1-5-12.2-7.6-18.3-7.4-17.3-15.3-34.6-23.6-51.5C720 374.3 779.6 298 787.1 287.8zM512 157.2c90.3 0 172.8 33.9 235.5 89.5-6.4 9.1-59.9 81-186.2 128.4-58.2-107-122.7-194.8-132.6-208 27.3-6.6 55.2-9.9 83.3-9.9zM360.9 191c9.4 12.8 72.9 100.9 131.7 205.5C326.4 440.6 180 440 164.1 439.8c23.1-110.3 97.4-201.9 196.8-248.8zM156.7 512.5c0-3.6.1-7.3.2-10.9 15.5.3 187.7 2.5 365.2-50.6 10.2 19.9 19.9 40.1 28.8 60.3-4.7 1.3-9.4 2.7-14 4.2C353.6 574.9 256.1 736.4 248 750.1c-56.7-63-91.3-146.3-91.3-237.6zM512 867.8c-82.2 0-157.9-28-218.1-75 6.4-13.1 78.3-152 278.7-221.9l2.3-.8c49.9 129.6 70.5 238.3 75.8 269.5A350.46 350.46 0 0 1 512 867.8zm198.5-60.7c-3.6-21.6-22.5-125.6-69-253.3C752.9 536 850.7 565.2 862.8 569c-15.8 98.8-72.5 184.2-152.3 238.1z'));
  65269. exports.DropboxOutline = getIcon('dropbox', outline, getNode(newViewBox, 'M64 556.9l264.2 173.5L512.5 577 246.8 412.7zm896-290.3zm0 0L696.8 95 512.5 248.5l265.2 164.2L512.5 577l184.3 153.4L960 558.8 777.7 412.7zM513 609.8L328.2 763.3l-79.4-51.5v57.8L513 928l263.7-158.4v-57.8l-78.9 51.5zM328.2 95L64 265.1l182.8 147.6 265.7-164.2zM64 556.9z'));
  65270. exports.EllipsisOutline = getIcon('ellipsis', outline, getNode(newViewBox, 'M176 511a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
  65271. exports.EnterOutline = getIcon('enter', outline, getNode(newViewBox, 'M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z'));
  65272. exports.EuroOutline = getIcon('euro', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm117.7-588.6c-15.9-3.5-34.4-5.4-55.3-5.4-106.7 0-178.9 55.7-198.6 149.9H344c-4.4 0-8 3.6-8 8v27.2c0 4.4 3.6 8 8 8h26.4c-.3 4.1-.3 8.4-.3 12.8v36.9H344c-4.4 0-8 3.6-8 8V568c0 4.4 3.6 8 8 8h30.2c17.2 99.2 90.4 158 200.2 158 20.9 0 39.4-1.7 55.3-5.1 3.7-.8 6.4-4 6.4-7.8v-42.8c0-5-4.6-8.8-9.5-7.8-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H439.2v-36c0-4.7 0-9.4.3-13.8h135.9c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H447.1c17.2-56.9 62.3-90.4 127.6-90.4 19.9 0 37.1 1.5 51.7 4.4a8 8 0 0 0 9.6-7.8v-42.8c0-3.8-2.6-7-6.3-7.8z'));
  65273. exports.ExceptionOutline = getIcon('exception', outline, getNode(newViewBox, 'M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM640 812a32 32 0 1 0 64 0 32 32 0 1 0-64 0zm12-64h40c4.4 0 8-3.6 8-8V628c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65274. exports.ExclamationOutline = getIcon('exclamation', outline, getNode(newViewBox, 'M448 804a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm32-168h64c4.4 0 8-3.6 8-8V164c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z'));
  65275. exports.ExportOutline = getIcon('export', outline, getNode(newViewBox, 'M888.3 757.4h-53.8c-4.2 0-7.7 3.5-7.7 7.7v61.8H197.1V197.1h629.8v61.8c0 4.2 3.5 7.7 7.7 7.7h53.8c4.2 0 7.7-3.4 7.7-7.7V158.7c0-17-13.7-30.7-30.7-30.7H158.7c-17 0-30.7 13.7-30.7 30.7v706.6c0 17 13.7 30.7 30.7 30.7h706.6c17 0 30.7-13.7 30.7-30.7V765.1c0-4.3-3.5-7.7-7.7-7.7zm18.6-251.7L765 393.7c-5.3-4.2-13-.4-13 6.3v76H438c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 0 0 0-12.6z'));
  65276. exports.FallOutline = getIcon('fall', outline, getNode(newViewBox, 'M925.9 804l-24-199.2c-.8-6.6-8.9-9.4-13.6-4.7L829 659.5 557.7 388.3c-6.3-6.2-16.4-6.2-22.6 0L433.3 490 156.6 213.3a8.03 8.03 0 0 0-11.3 0l-45 45.2a8.03 8.03 0 0 0 0 11.3L422 591.7c6.2 6.3 16.4 6.3 22.6 0L546.4 490l226.1 226-59.3 59.3a8.01 8.01 0 0 0 4.7 13.6l199.2 24c5.1.7 9.5-3.7 8.8-8.9z'));
  65277. exports.FileDoneOutline = getIcon('file-done', outline, getNode(newViewBox, 'M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 0 0-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65278. exports.FileSyncOutline = getIcon('file-sync', outline, getNode(newViewBox, 'M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm192 200v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8zm-48 396H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm104.1-115.6c1.8-34.5 16.2-66.8 40.8-91.4 26.2-26.2 62-41 99.1-41 37.4 0 72.6 14.6 99.1 41 3.2 3.2 6.3 6.6 9.2 10.1L769.2 673a8 8 0 0 0 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l.6-95.4a8 8 0 0 0-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7-.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6zM880 744h-48.1c-4.3 0-7.8 3.3-8 7.6-1.8 34.5-16.2 66.8-40.8 91.4-26.2 26.2-62 41-99.1 41-37.4 0-72.6-14.6-99.1-41-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9a8 8 0 0 0-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-.6 95.4a8 8 0 0 0 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7.2-4.5-3.5-8.3-8-8.3z'));
  65279. exports.FileProtectOutline = getIcon('file-protect', outline, getNode(newViewBox, 'M644.7 669.2a7.92 7.92 0 0 0-6.5-3.3H594c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.8-5.3 0-12.7-6.5-12.7h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-22.9-31.9zM688 306v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 458H208V148h560v296c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h312c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm402.6-320.8l-192-66.7c-.9-.3-1.7-.4-2.6-.4s-1.8.1-2.6.4l-192 66.7a7.96 7.96 0 0 0-5.4 7.5v251.1c0 2.5 1.1 4.8 3.1 6.3l192 150.2c1.4 1.1 3.2 1.7 4.9 1.7s3.5-.6 4.9-1.7l192-150.2c1.9-1.5 3.1-3.8 3.1-6.3V538.7c0-3.4-2.2-6.4-5.4-7.5zM826 763.7L688 871.6 550 763.7V577l138-48 138 48v186.7z'));
  65280. exports.FileSearchOutline = getIcon('file-search', outline, getNode(newViewBox, 'M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 0 0 0-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z'));
  65281. exports.FileJpgOutline = getIcon('file-jpg', outline, getNode(normalViewBox, 'M874.6 301.8L596.8 21.3c-4.5-4.5-9.4-8.3-14.7-11.5-1.4-.8-2.8-1.6-4.3-2.3-.9-.5-1.9-.9-2.8-1.3-9-4-18.9-6.2-29-6.2H201c-39.8 0-73 32.2-73 72v880c0 39.8 33.2 72 73 72h623c39.8 0 71-32.2 71-72V352.5c0-19-7-37.2-20.4-50.7zM583 110.4L783.8 312H583V110.4zM823 952H200V72h311v240c0 39.8 33.2 72 73 72h239v568zM350 696.5c0 24.2-7.5 31.4-21.9 31.4-9 0-18.4-5.8-24.8-18.5L272.9 732c13.4 22.9 32.3 34.2 61.3 34.2 41.6 0 60.8-29.9 60.8-66.2V577h-45v119.5zM501.3 577H437v186h44v-62h21.6c39.1 0 73.1-19.6 73.1-63.6 0-45.8-33.5-60.4-74.4-60.4zm-.8 89H481v-53h18.2c21.5 0 33.4 6.2 33.4 24.9 0 18.1-10.5 28.1-32.1 28.1zm182.5-9v36h30v30.1c-4 2.9-11 4.7-17.7 4.7-34.3 0-50.7-21.4-50.7-58.2 0-36.1 19.7-57.4 47.1-57.4 15.3 0 25 6.2 34 14.4l23.7-28.3c-12.7-12.8-32.1-24.2-59.2-24.2-49.6 0-91.1 35.3-91.1 97 0 62.7 40 95.1 91.5 95.1 25.9 0 49.2-10.2 61.5-22.6V657H683z'));
  65282. exports.FontColorsOutline = getIcon('font-colors', outline, getNode(newViewBox, 'M904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8zm-650.3-80h85c4.2 0 8-2.7 9.3-6.8l53.7-166h219.2l53.2 166c1.3 4 5 6.8 9.3 6.8h89.1c1.1 0 2.2-.2 3.2-.5a9.7 9.7 0 0 0 6-12.4L573.6 118.6a9.9 9.9 0 0 0-9.2-6.6H462.1c-4.2 0-7.9 2.6-9.2 6.6L244.5 723.1c-.4 1-.5 2.1-.5 3.2-.1 5.3 4.3 9.7 9.7 9.7zm255.9-516.1h4.1l83.8 263.8H424.9l84.7-263.8z'));
  65283. exports.FontSizeOutline = getIcon('font-size', outline, getNode(newViewBox, 'M920 416H616c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-56h60v320h-46c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h164c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-46V480h60v56c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V424c0-4.4-3.6-8-8-8zM656 296V168c0-4.4-3.6-8-8-8H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8z'));
  65284. exports.ForkOutline = getIcon('fork', outline, getNode(newViewBox, 'M752 100c-61.8 0-112 50.2-112 112 0 47.7 29.9 88.5 72 104.6v27.6L512 601.4 312 344.2v-27.6c42.1-16.1 72-56.9 72-104.6 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 50.6 33.8 93.5 80 107.3v34.4c0 9.7 3.3 19.3 9.3 27L476 672.3v33.6c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-33.6l226.7-291.6c6-7.7 9.3-17.3 9.3-27v-34.4c46.2-13.8 80-56.7 80-107.3 0-61.8-50.2-112-112-112zM224 212a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm336 600a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0zm192-552a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
  65285. exports.FormOutline = getIcon('form', outline, getNode(newViewBox, 'M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z', 'M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 0 0-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z'));
  65286. exports.FullscreenExitOutline = getIcon('fullscreen-exit', outline, getNode(newViewBox, 'M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 0 0 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 0 0 391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 0 0-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z'));
  65287. exports.FullscreenOutline = getIcon('fullscreen', outline, getNode(newViewBox, 'M290 236.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z'));
  65288. exports.GatewayOutline = getIcon('gateway', outline, getNode(newViewBox, 'M928 392c8.8 0 16-7.2 16-16V192c0-8.8-7.2-16-16-16H744c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h56v240H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16V648c0-8.8-7.2-16-16-16h-56V392h56zM792 240h88v88h-88v-88zm-648 88v-88h88v88h-88zm88 456h-88v-88h88v88zm648-88v88h-88v-88h88zm-80-64h-56c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16h-56V392h56c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h56v240z'));
  65289. exports.DownOutline = getIcon('down', outline, getNode(newViewBox, 'M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z'));
  65290. exports.DragOutline = getIcon('drag', outline, getNode(newViewBox, 'M909.3 506.3L781.7 405.6a7.23 7.23 0 0 0-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 0 0-11.3 0L405.6 242.3a7.23 7.23 0 0 0 5.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 0 0 0 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 0 0 .1-11.4z'));
  65291. exports.GlobalOutline = getIcon('global', outline, getNode(newViewBox, 'M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0 0 10-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 0 0 3.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 0 0-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 0 1 887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 0 1-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 0 1 115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 0 1 540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 0 0 540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 0 1-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 0 0-81.5 55.9A373.86 373.86 0 0 1 137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 0 1-107.6 69.2z'));
  65292. exports.GooglePlusOutline = getIcon('google-plus', outline, getNode(newViewBox, 'M879.5 470.4c-.3-27-.4-54.2-.5-81.3h-80.8c-.3 27-.5 54.1-.7 81.3-27.2.1-54.2.3-81.2.6v80.9c27 .3 54.2.5 81.2.8.3 27 .3 54.1.5 81.1h80.9c.1-27 .3-54.1.5-81.3 27.2-.3 54.2-.4 81.2-.7v-80.9c-26.9-.2-54.1-.2-81.1-.5zm-530 .4c-.1 32.3 0 64.7.1 97 54.2 1.8 108.5 1 162.7 1.8-23.9 120.3-187.4 159.3-273.9 80.7-89-68.9-84.8-220 7.7-284 64.7-51.6 156.6-38.9 221.3 5.8 25.4-23.5 49.2-48.7 72.1-74.7-53.8-42.9-119.8-73.5-190-70.3-146.6-4.9-281.3 123.5-283.7 270.2-9.4 119.9 69.4 237.4 180.6 279.8 110.8 42.7 252.9 13.6 323.7-86 46.7-62.9 56.8-143.9 51.3-220-90.7-.7-181.3-.6-271.9-.3z'));
  65293. exports.GoogleOutline = getIcon('google', outline, getNode(newViewBox, 'M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z'));
  65294. exports.HeatMapOutline = getIcon('heat-map', outline, getNode(newViewBox, 'M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-790.4-23.9L512 231.9 858.7 832H165.3zm319-474.1l-228 394c-12.3 21.3 3.1 48 27.7 48h455.8c24.7 0 40.1-26.7 27.7-48L539.7 358c-6.2-10.7-17-16-27.7-16-10.8 0-21.6 5.3-27.7 16zm214 386H325.7L512 422l186.3 322zm-214-194.1l-57 98.4C415 669.5 430.4 696 455 696h114c24.6 0 39.9-26.5 27.7-47.7l-57-98.4c-6.1-10.6-16.9-15.9-27.7-15.9s-21.5 5.3-27.7 15.9zm57.1 98.4h-58.7l29.4-50.7 29.3 50.7z'));
  65295. exports.GoldOutline = getIcon('gold', outline, getNode(newViewBox, 'M342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8zm91.2-196h159.5l20.7 128h-201l20.8-128zm2.5 282.7c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM196.5 748l20.7-128h159.5l20.7 128H196.5zm709.4 58.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zM626.5 748l20.7-128h159.5l20.7 128H626.5z'));
  65296. exports.HistoryOutline = getIcon('history', outline, getNode(newViewBox, 'M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 0 0 3 14.1zm167.7 301.1l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 0 1-112.5 75.9 352.18 352.18 0 0 1-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 0 1-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 0 1 171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 0 1 112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 0 1 775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z'));
  65297. exports.IeOutline = getIcon('ie', outline, getNode(newViewBox, 'M852.6 367.6c16.3-36.9 32.1-90.7 32.1-131.8 0-109.1-119.5-147.6-314.5-57.9-161.4-10.8-316.8 110.5-355.6 279.7 46.3-52.3 117.4-123.4 183-151.7C316.1 378.3 246.7 470 194 565.6c-31.1 56.9-66 148.8-66 217.5 0 147.9 139.3 129.8 270.4 63 47.1 23.1 99.8 23.4 152.5 23.4 145.7 0 276.4-81.4 325.2-219H694.9c-78.8 132.9-295.2 79.5-295.2-71.2h493.2c9.6-65.4-2.5-143.6-40.3-211.7zM224.8 648.3c26.6 76.7 80.6 143.8 150.4 185-133.1 73.4-259.9 43.6-150.4-185zm174-163.3c3-82.7 75.4-142.3 156-142.3 80.1 0 153 59.6 156 142.3h-312zm276.8-281.4c32.1-15.4 72.8-33 108.8-33 47.1 0 81.4 32.6 81.4 80.6 0 30-11.1 73.5-21.9 101.8-39.3-63.5-98.9-122.4-168.3-149.4z'));
  65298. exports.InboxOutline = getIcon('inbox', outline, getNode(normalViewBox, 'M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0 0 60.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z'));
  65299. exports.ImportOutline = getIcon('import', outline, getNode(newViewBox, 'M888.3 757.4h-53.8c-4.2 0-7.7 3.5-7.7 7.7v61.8H197.1V197.1h629.8v61.8c0 4.2 3.5 7.7 7.7 7.7h53.8c4.2 0 7.7-3.4 7.7-7.7V158.7c0-17-13.7-30.7-30.7-30.7H158.7c-17 0-30.7 13.7-30.7 30.7v706.6c0 17 13.7 30.7 30.7 30.7h706.6c17 0 30.7-13.7 30.7-30.7V765.1c0-4.3-3.5-7.7-7.7-7.7zM902 476H588v-76c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-76h314c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65300. exports.InfoOutline = getIcon('info', outline, getNode(newViewBox, 'M448 224a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm96 168h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z'));
  65301. exports.ItalicOutline = getIcon('italic', outline, getNode(newViewBox, 'M798 160H366c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h181.2l-156 544H229c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8H474.4l156-544H798c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z'));
  65302. exports.IssuesCloseOutline = getIcon('issues-close', outline, getNode(newViewBox, 'M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72-112c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48zm400-188h-59.3c-2.6 0-5 1.2-6.5 3.3L763.7 538.1l-49.9-68.8a7.92 7.92 0 0 0-6.5-3.3H648c-6.5 0-10.3 7.4-6.5 12.7l109.2 150.7a16.1 16.1 0 0 0 26 0l165.8-228.7c3.8-5.3 0-12.7-6.5-12.7zm-44 306h-64.2c-5.5 0-10.6 2.9-13.6 7.5a352.2 352.2 0 0 1-49.8 62.2A355.92 355.92 0 0 1 651.1 840a355 355 0 0 1-138.7 27.9c-48.1 0-94.8-9.4-138.7-27.9a355.92 355.92 0 0 1-113.3-76.3A353.06 353.06 0 0 1 184 650.5c-18.6-43.8-28-90.5-28-138.5s9.4-94.7 28-138.5c17.9-42.4 43.6-80.5 76.4-113.2 32.8-32.7 70.9-58.4 113.3-76.3a355 355 0 0 1 138.7-27.9c48.1 0 94.8 9.4 138.7 27.9 42.4 17.9 80.5 43.6 113.3 76.3 19 19 35.6 39.8 49.8 62.2 2.9 4.7 8.1 7.5 13.6 7.5H892c6 0 9.8-6.3 7.2-11.6C828.8 178.5 684.7 82 517.7 80 278.9 77.2 80.5 272.5 80 511.2 79.5 750.1 273.3 944 512.4 944c169.2 0 315.6-97 386.7-238.4A8 8 0 0 0 892 694z'));
  65303. exports.KeyOutline = getIcon('key', outline, getNode(newViewBox, 'M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 0 0-11.4 0l-39.8 39.8a8.15 8.15 0 0 0 0 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 0 0-11.4 0l-39.8 39.8a8.15 8.15 0 0 0 0 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 0 0 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 0 0 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z'));
  65304. exports.LaptopOutline = getIcon('laptop', outline, getNode(newViewBox, 'M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z'));
  65305. exports.LeftOutline = getIcon('left', outline, getNode(newViewBox, 'M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z'));
  65306. exports.LinkOutline = getIcon('link', outline, getNode(newViewBox, 'M574 665.4a8.03 8.03 0 0 0-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 0 0-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 0 0 0 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 0 0 0 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 0 0-11.3 0L372.3 598.7a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z'));
  65307. exports.LineChartOutline = getIcon('line-chart', outline, getNode(newViewBox, 'M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3l39.5 39.7z'));
  65308. exports.LineHeightOutline = getIcon('line-height', outline, getNode(newViewBox, 'M648 160H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zm272.8 546H856V318h64.8c6 0 9.4-7 5.7-11.7L825.7 178.7a7.14 7.14 0 0 0-11.3 0L713.6 306.3a7.23 7.23 0 0 0 5.7 11.7H784v388h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5a7.2 7.2 0 0 0-5.6-11.7z'));
  65309. exports.LineOutline = getIcon('line', outline, getNode(newViewBox, 'M904 476H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65310. exports.Loading3QuartersOutline = getIcon('loading-3-quarters', outline, getNode(normalViewBox, 'M512 1024c-69.1 0-136.2-13.5-199.3-40.2C251.7 958 197 921 150 874c-47-47-84-101.7-109.8-162.7C13.5 648.2 0 581.1 0 512c0-19.9 16.1-36 36-36s36 16.1 36 36c0 59.4 11.6 117 34.6 171.3 22.2 52.4 53.9 99.5 94.3 139.9 40.4 40.4 87.5 72.2 139.9 94.3C395 940.4 452.6 952 512 952c59.4 0 117-11.6 171.3-34.6 52.4-22.2 99.5-53.9 139.9-94.3 40.4-40.4 72.2-87.5 94.3-139.9C940.4 629 952 571.4 952 512c0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.2C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3s-13.5 136.2-40.2 199.3C958 772.3 921 827 874 874c-47 47-101.8 83.9-162.7 109.7-63.1 26.8-130.2 40.3-199.3 40.3z'));
  65311. exports.LoadingOutline = getIcon('loading', outline, getNode(normalViewBox, 'M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z'));
  65312. exports.LoginOutline = getIcon('login', outline, getNode(newViewBox, 'M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 0 1 520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 0 1 270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 0 1 0 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z'));
  65313. exports.LogoutOutline = getIcon('logout', outline, getNode(newViewBox, 'M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 0 1-112.7 75.9A352.8 352.8 0 0 1 512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 0 1-112.7-75.9 353.28 353.28 0 0 1-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 0 0 0-12.6z'));
  65314. exports.ManOutline = getIcon('man', outline, getNode(newViewBox, 'M874 120H622c-3.3 0-6 2.7-6 6v56c0 3.3 2.7 6 6 6h160.4L583.1 387.3c-50-38.5-111-59.3-175.1-59.3-76.9 0-149.3 30-203.6 84.4S120 539.1 120 616s30 149.3 84.4 203.6C258.7 874 331.1 904 408 904s149.3-30 203.6-84.4C666 765.3 696 692.9 696 616c0-64.1-20.8-124.9-59.2-174.9L836 241.9V402c0 3.3 2.7 6 6 6h56c3.3 0 6-2.7 6-6V150c0-16.5-13.5-30-30-30zM408 828c-116.9 0-212-95.1-212-212s95.1-212 212-212 212 95.1 212 212-95.1 212-212 212z'));
  65315. exports.MediumOutline = getIcon('medium', outline, getNode(newViewBox, 'M834.7 279.8l61.3-58.9V208H683.7L532.4 586.4 360.3 208H137.7v12.9l71.6 86.6c7 6.4 10.6 15.8 9.7 25.2V673c2.2 12.3-1.7 24.8-10.3 33.7L128 805v12.7h228.6v-12.9l-80.6-98a39.99 39.99 0 0 1-11.1-33.7V378.7l200.7 439.2h23.3l172.6-439.2v349.9c0 9.2 0 11.1-6 17.2l-62.1 60.3V819h301.2v-12.9l-59.9-58.9c-5.2-4-7.9-10.7-6.8-17.2V297a18.1 18.1 0 0 1 6.8-17.2z'));
  65316. exports.MediumWorkmarkOutline = getIcon('medium-workmark', outline, getNode(normalViewBox, 'M517.2 590.55c0 3.55 0 4.36 2.4 6.55l13.43 13.25v.57h-59.57v-25.47a41.44 41.44 0 0 1-39.5 27.65c-30.61 0-52.84-24.25-52.84-68.87 0-41.8 23.99-69.69 57.65-69.69a35.15 35.15 0 0 1 34.61 21.67v-56.19a6.99 6.99 0 0 0-2.71-6.79l-12.8-12.45v-.56l59.33-7.04v177.37zm-43.74-8.09v-83.83a22.2 22.2 0 0 0-17.74-8.4c-14.48 0-28.47 13.25-28.47 52.62 0 36.86 12.07 49.88 27.1 49.88a23.91 23.91 0 0 0 19.11-10.27zm83.23 28.46V497.74a7.65 7.65 0 0 0-2.4-6.79l-13.19-13.74v-.57h59.56v114.8c0 3.55 0 4.36 2.4 6.54l13.12 12.45v.57l-59.49-.08zm-2.16-175.67c0-13.4 10.74-24.25 23.99-24.25 13.25 0 23.98 10.86 23.98 24.25 0 13.4-10.73 24.25-23.98 24.25s-23.99-10.85-23.99-24.25zm206.83 155.06c0 3.55 0 4.6 2.4 6.79l13.43 13.25v.57h-59.88V581.9a43.4 43.4 0 0 1-41.01 31.2c-26.55 0-40.78-19.56-40.78-56.59 0-17.86 0-37.43.56-59.41a6.91 6.91 0 0 0-2.4-6.55L620.5 477.2v-.57h59.09v73.81c0 24.25 3.51 40.42 18.54 40.42a23.96 23.96 0 0 0 19.35-12.2v-80.85a7.65 7.65 0 0 0-2.4-6.79l-13.27-13.82v-.57h59.56V590.3zm202.76 20.6c0-4.36.8-59.97.8-72.75 0-24.25-3.76-40.98-20.63-40.98a26.7 26.7 0 0 0-21.19 11.64 99.68 99.68 0 0 1 2.4 23.04c0 16.81-.56 38.23-.8 59.66a6.91 6.91 0 0 0 2.4 6.55l13.43 12.45v.56h-60.12c0-4.04.8-59.98.8-72.76 0-24.65-3.76-40.98-20.39-40.98-8.2.3-15.68 4.8-19.83 11.96v82.46c0 3.56 0 4.37 2.4 6.55l13.11 12.45v.56h-59.48V498.15a7.65 7.65 0 0 0-2.4-6.8l-13.19-14.14v-.57H841v28.78c5.53-19 23.13-31.76 42.7-30.96 19.82 0 33.26 11.16 38.93 32.34a46.41 46.41 0 0 1 44.77-32.34c26.55 0 41.58 19.8 41.58 57.23 0 17.87-.56 38.24-.8 59.66a6.5 6.5 0 0 0 2.72 6.55l13.11 12.45v.57h-59.88zM215.87 593.3l17.66 17.05v.57h-89.62v-.57l17.99-17.05a6.91 6.91 0 0 0 2.4-6.55V477.69c0-4.6 0-10.83.8-16.16L104.66 613.1h-.72l-62.6-139.45c-1.37-3.47-1.77-3.72-2.65-6.06v91.43a32.08 32.08 0 0 0 2.96 17.87l25.19 33.46v.57H0v-.57l25.18-33.55a32.16 32.16 0 0 0 2.96-17.78V457.97A19.71 19.71 0 0 0 24 444.15L6.16 420.78v-.56h63.96l53.56 118.1 47.17-118.1h62.6v.56l-17.58 19.8a6.99 6.99 0 0 0-2.72 6.8v139.37a6.5 6.5 0 0 0 2.72 6.55zm70.11-54.65v.56c0 34.6 17.67 48.5 38.38 48.5a43.5 43.5 0 0 0 40.77-24.97h.56c-7.2 34.2-28.14 50.36-59.48 50.36-33.82 0-65.72-20.61-65.72-68.39 0-50.2 31.98-70.25 67.32-70.25 28.46 0 58.76 13.58 58.76 57.24v6.95h-80.59zm0-6.95h39.42v-7.04c0-35.57-7.28-45.03-18.23-45.03-13.27 0-21.35 14.15-21.35 52.07h.16z'));
  65317. exports.MenuUnfoldOutline = getIcon('menu-unfold', outline, getNode(newViewBox, 'M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z'));
  65318. exports.MenuFoldOutline = getIcon('menu-fold', outline, getNode(newViewBox, 'M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 0 0 0 13.8z'));
  65319. exports.MenuOutline = getIcon('menu', outline, getNode(newViewBox, 'M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z'));
  65320. exports.MinusOutline = getIcon('minus', outline, getNode(newViewBox, 'M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
  65321. exports.MonitorOutline = getIcon('monitor', outline, getNode(newViewBox, 'M692.8 412.7l.2-.2-34.6-44.3a7.97 7.97 0 0 0-11.2-1.4l-50.4 39.3-70.5-90.1a7.97 7.97 0 0 0-11.2-1.4l-37.9 29.7a7.97 7.97 0 0 0-1.4 11.2l70.5 90.2-.2.1 34.6 44.3c2.7 3.5 7.7 4.1 11.2 1.4l50.4-39.3 64.1 82c2.7 3.5 7.7 4.1 11.2 1.4l37.9-29.6c3.5-2.7 4.1-7.7 1.4-11.2l-64.1-82.1zM608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 0 0 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z'));
  65322. exports.MoreOutline = getIcon('more', outline, getNode(newViewBox, 'M456 231a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 280a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 280a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
  65323. exports.OrderedListOutline = getIcon('ordered-list', outline, getNode(newViewBox, 'M920 760H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-568H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 0 0-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 0 0 2.1-5.4V432c0-2.2-1.8-4-4-4z'));
  65324. exports.NumberOutline = getIcon('number', outline, getNode(newViewBox, 'M872 394c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H400V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v236H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h228v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h164c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V394h164zM628 630H400V394h228v236z'));
  65325. exports.PauseOutline = getIcon('pause', outline, getNode(newViewBox, 'M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z'));
  65326. exports.PercentageOutline = getIcon('percentage', outline, getNode(newViewBox, 'M855.7 210.8l-42.4-42.4a8.03 8.03 0 0 0-11.3 0L168.3 801.9a8.03 8.03 0 0 0 0 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0L855.6 222c3.2-3 3.2-8.1.1-11.2zM304 448c79.4 0 144-64.6 144-144s-64.6-144-144-144-144 64.6-144 144 64.6 144 144 144zm0-216c39.7 0 72 32.3 72 72s-32.3 72-72 72-72-32.3-72-72 32.3-72 72-72zm416 344c-79.4 0-144 64.6-144 144s64.6 144 144 144 144-64.6 144-144-64.6-144-144-144zm0 216c-39.7 0-72-32.3-72-72s32.3-72 72-72 72 32.3 72 72-32.3 72-72 72z'));
  65327. exports.PaperClipOutline = getIcon('paper-clip', outline, getNode(newViewBox, 'M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0 0 12.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0 0 12.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 0 0 174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z'));
  65328. exports.PicCenterOutline = getIcon('pic-center', outline, getNode(newViewBox, 'M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM848 660c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H176c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h672zM232 436h560v152H232V436z'));
  65329. exports.PicLeftOutline = getIcon('pic-left', outline, getNode(newViewBox, 'M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM608 660c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h512zM152 436h400v152H152V436zm552 210c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H712c-4.4 0-8 3.6-8 8v56zm8-204h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H712c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
  65330. exports.PlusOutline = getIcon('plus', outline, getNode(newViewBox, 'M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z', 'M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z'));
  65331. exports.PicRightOutline = getIcon('pic-right', outline, getNode(newViewBox, 'M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-24 500c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H416c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h512zM472 436h400v152H472V436zM80 646c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56zm8-204h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
  65332. exports.PoundOutline = getIcon('pound', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm138-209.8H469.8v-4.7c27.4-17.2 43.9-50.4 43.9-91.1 0-14.1-2.2-27.9-5.3-41H607c4.4 0 8-3.6 8-8v-30c0-4.4-3.6-8-8-8H495c-7.2-22.6-13.4-45.7-13.4-70.5 0-43.5 34-70.2 87.3-70.2 21.5 0 42.5 4.1 60.4 10.5 5.2 1.9 10.6-2 10.6-7.6v-39.5c0-3.3-2.1-6.3-5.2-7.5-18.8-7.2-43.8-12.7-70.3-12.7-92.9 0-151.5 44.5-151.5 120.3 0 26.3 6.9 52 14.6 77.1H374c-4.4 0-8 3.6-8 8v30c0 4.4 3.6 8 8 8h67.1c3.4 14.7 5.9 29.4 5.9 44.2 0 45.2-28.8 83.3-72.8 94.2-3.6.9-6.1 4.1-6.1 7.8V722c0 4.4 3.6 8 8 8H650c4.4 0 8-3.6 8-8v-39.8c0-4.4-3.6-8-8-8z'));
  65333. exports.PoweroffOutline = getIcon('poweroff', outline, getNode(newViewBox, 'M705.6 124.9a8 8 0 0 0-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0 1 62.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0 1 27.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 0 1-76.3 113.3 353.06 353.06 0 0 1-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 0 1-113.2-76.4A355.92 355.92 0 0 1 184 650.4a355 355 0 0 1-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z'));
  65334. exports.PullRequestOutline = getIcon('pull-request', outline, getNode(newViewBox, 'M788 705.9V192c0-8.8-7.2-16-16-16H602v-68.8c0-6-7-9.4-11.7-5.7L462.7 202.3a7.14 7.14 0 0 0 0 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V240h114v465.9c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c.1-49.2-31.7-91-75.9-106.1zM752 860a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96zM384 212c0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1V318.1c44.2-15.1 76-56.9 76-106.1zm-160 0a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm96 600a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0z'));
  65335. exports.QqOutline = getIcon('qq', outline, getNode(newViewBox, 'M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z'));
  65336. exports.QuestionOutline = getIcon('question', outline, getNode(newViewBox, 'M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2-27.2 31.7-65.6 54.4-108.1 64-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 0 0-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9 58.4-13.2 111.4-44.7 149.3-88.7 19.1-22.3 34-47.1 44.3-74 10.7-27.9 16.1-57.2 16.1-87 0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56 56-25.1 56-56-25.1-56-56-56z'));
  65337. exports.RadarChartOutline = getIcon('radar-chart', outline, getNode(newViewBox, 'M926.8 397.1l-396-288a31.81 31.81 0 0 0-37.6 0l-396 288a31.99 31.99 0 0 0-11.6 35.8l151.3 466a32 32 0 0 0 30.4 22.1h489.5c13.9 0 26.1-8.9 30.4-22.1l151.3-466c4.2-13.2-.5-27.6-11.7-35.8zM838.6 417l-98.5 32-200-144.7V199.9L838.6 417zM466 567.2l-89.1 122.3-55.2-169.2L466 567.2zm-116.3-96.8L484 373.3v140.8l-134.3-43.7zM512 599.2l93.9 128.9H418.1L512 599.2zm28.1-225.9l134.2 97.1L540.1 514V373.3zM558 567.2l144.3-46.9-55.2 169.2L558 567.2zm-74-367.3v104.4L283.9 449l-98.5-32L484 199.9zM169.3 470.8l86.5 28.1 80.4 246.4-53.8 73.9-113.1-348.4zM327.1 853l50.3-69h269.3l50.3 69H327.1zm414.5-33.8l-53.8-73.9 80.4-246.4 86.5-28.1-113.1 348.4z'));
  65338. exports.QrcodeOutline = getIcon('qrcode', outline, getNode(newViewBox, 'M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
  65339. exports.RadiusBottomleftOutline = getIcon('radius-bottomleft', outline, getNode(newViewBox, 'M712 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm2-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM136 374h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-174h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm752 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-230 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 624H358c-87.3 0-158-70.7-158-158V484c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v182c0 127 103 230 230 230h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65340. exports.RadiusBottomrightOutline = getIcon('radius-bottomright', outline, getNode(newViewBox, 'M368 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-58-624h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm578 102h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm292 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm174 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 276h-56c-4.4 0-8 3.6-8 8v182c0 87.3-70.7 158-158 158H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c127 0 230-103 230-230V484c0-4.4-3.6-8-8-8z'));
  65341. exports.RadiusUpleftOutline = getIcon('radius-upleft', outline, getNode(newViewBox, 'M656 200h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm58 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 650h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm696-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174-696H358c-127 0-230 103-230 230v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-87.3 70.7-158 158-158h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65342. exports.RadiusUprightOutline = getIcon('radius-upright', outline, getNode(newViewBox, 'M368 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-2 696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm522-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-48-696H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c87.3 0 158 70.7 158 158v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-127-103-230-230-230z'));
  65343. exports.RadiusSettingOutline = getIcon('radius-setting', outline, getNode(newViewBox, 'M396 140h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-44 684h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm524-204h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 344h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm320 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm160 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm140-284c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V370c0-127-103-230-230-230H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h170c87.3 0 158 70.7 158 158v170zM236 96H92c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V104c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2zM920 780H776c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V788c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2z'));
  65344. exports.RedditOutline = getIcon('reddit', outline, getNode(newViewBox, 'M288 568a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm338.7 119.7c-23.1 18.2-68.9 37.8-114.7 37.8s-91.6-19.6-114.7-37.8c-14.4-11.3-35.3-8.9-46.7 5.5s-8.9 35.3 5.5 46.7C396.3 771.6 457.5 792 512 792s115.7-20.4 155.9-52.1a33.25 33.25 0 1 0-41.2-52.2zM960 456c0-61.9-50.1-112-112-112-42.1 0-78.7 23.2-97.9 57.6-57.6-31.5-127.7-51.8-204.1-56.5L612.9 195l127.9 36.9c11.5 32.6 42.6 56.1 79.2 56.1 46.4 0 84-37.6 84-84s-37.6-84-84-84c-32 0-59.8 17.9-74 44.2L603.5 123a33.2 33.2 0 0 0-39.6 18.4l-90.8 203.9c-74.5 5.2-142.9 25.4-199.2 56.2A111.94 111.94 0 0 0 176 344c-61.9 0-112 50.1-112 112 0 45.8 27.5 85.1 66.8 102.5-7.1 21-10.8 43-10.8 65.5 0 154.6 175.5 280 392 280s392-125.4 392-280c0-22.6-3.8-44.5-10.8-65.5C932.5 541.1 960 501.8 960 456zM820 172.5a31.5 31.5 0 1 1 0 63 31.5 31.5 0 0 1 0-63zM120 456c0-30.9 25.1-56 56-56a56 56 0 0 1 50.6 32.1c-29.3 22.2-53.5 47.8-71.5 75.9a56.23 56.23 0 0 1-35.1-52zm392 381.5c-179.8 0-325.5-95.6-325.5-213.5S332.2 410.5 512 410.5 837.5 506.1 837.5 624 691.8 837.5 512 837.5zM868.8 508c-17.9-28.1-42.2-53.7-71.5-75.9 9-18.9 28.3-32.1 50.6-32.1 30.9 0 56 25.1 56 56 .1 23.5-14.5 43.7-35.1 52zM624 568a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
  65345. exports.RedoOutline = getIcon('redo', outline, getNode(newViewBox, 'M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 0 0-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z'));
  65346. exports.ReloadOutline = getIcon('reload', outline, getNode(newViewBox, 'M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 0 1 655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 0 1 279 755.2a342.16 342.16 0 0 1-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 0 1 109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z'));
  65347. exports.RetweetOutline = getIcon('retweet', outline, getNode(normalViewBox, 'M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0 0 11.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 0 0-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 0 0-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z'));
  65348. exports.RightOutline = getIcon('right', outline, getNode(newViewBox, 'M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z'));
  65349. exports.RiseOutline = getIcon('rise', outline, getNode(newViewBox, 'M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 0 0 0 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0 0 13.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z'));
  65350. exports.RollbackOutline = getIcon('rollback', outline, getNode(newViewBox, 'M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 0 0 0 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z'));
  65351. exports.SafetyOutline = getIcon('safety', outline, getNode(normalViewBox, 'M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z', 'M378.4 475.1a35.91 35.91 0 0 0-50.9 0 35.91 35.91 0 0 0 0 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0 0 48.1 0L730.6 434a33.98 33.98 0 0 0 0-48.1l-2.8-2.8a33.98 33.98 0 0 0-48.1 0L483 579.7 378.4 475.1z'));
  65352. exports.RobotOutline = getIcon('robot', outline, getNode(newViewBox, 'M300 328a60 60 0 1 0 120 0 60 60 0 1 0-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 1 0 120 0 60 60 0 1 0-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
  65353. exports.SearchOutline = getIcon('search', outline, getNode(newViewBox, 'M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z'));
  65354. exports.ScanOutline = getIcon('scan', outline, getNode(newViewBox, 'M136 384h56c4.4 0 8-3.6 8-8V200h176c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-37.6 0-68 30.4-68 68v180c0 4.4 3.6 8 8 8zm512-184h176v176c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V196c0-37.6-30.4-68-68-68H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM376 824H200V648c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v180c0 37.6 30.4 68 68 68h180c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm512-184h-56c-4.4 0-8 3.6-8 8v176H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h180c37.6 0 68-30.4 68-68V648c0-4.4-3.6-8-8-8zm16-164H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65355. exports.ScissorOutline = getIcon('scissor', outline, getNode(newViewBox, 'M567.1 512l318.5-319.3c5-5 1.5-13.7-5.6-13.7h-90.5c-2.1 0-4.2.8-5.6 2.3l-273.3 274-90.2-90.5c12.5-22.1 19.7-47.6 19.7-74.8 0-83.9-68.1-152-152-152s-152 68.1-152 152 68.1 152 152 152c27.7 0 53.6-7.4 75.9-20.3l90 90.3-90.1 90.3A151.04 151.04 0 0 0 288 582c-83.9 0-152 68.1-152 152s68.1 152 152 152 152-68.1 152-152c0-27.2-7.2-52.7-19.7-74.8l90.2-90.5 273.3 274c1.5 1.5 3.5 2.3 5.6 2.3H880c7.1 0 10.7-8.6 5.6-13.7L567.1 512zM288 370c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm0 444c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z'));
  65356. exports.SelectOutline = getIcon('select', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 0 0-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z'));
  65357. exports.ShakeOutline = getIcon('shake', outline, getNode(newViewBox, 'M324 666a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm616.7-309.6L667.6 83.2C655.2 70.9 638.7 64 621.1 64s-34.1 6.8-46.5 19.2L83.3 574.5a65.85 65.85 0 0 0 0 93.1l273.2 273.2c12.3 12.3 28.9 19.2 46.5 19.2s34.1-6.8 46.5-19.2l491.3-491.3c25.6-25.7 25.6-67.5-.1-93.1zM403 880.1L143.9 621l477.2-477.2 259 259.2L403 880.1zM152.8 373.7a7.9 7.9 0 0 0 11.2 0L373.7 164a7.9 7.9 0 0 0 0-11.2l-38.4-38.4a7.9 7.9 0 0 0-11.2 0L114.3 323.9a7.9 7.9 0 0 0 0 11.2l38.5 38.6zm718.6 276.6a7.9 7.9 0 0 0-11.2 0L650.3 860.1a7.9 7.9 0 0 0 0 11.2l38.4 38.4a7.9 7.9 0 0 0 11.2 0L909.7 700a7.9 7.9 0 0 0 0-11.2l-38.3-38.5z'));
  65358. exports.ShareAltOutline = getIcon('share-alt', outline, getNode(newViewBox, 'M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 0 0 0-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z'));
  65359. exports.ShoppingCartOutline = getIcon('shopping-cart', outline, getNode(normalViewBox, 'M922.9 701.9H327.4l29.9-60.9 496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 0 0-26.6-12.5l-632-2.1-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 1 0 0 70.6h125.9L246 312.8l58.1 281.3-74.8 122.1a34.96 34.96 0 0 0-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 0 0-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 0 0-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 0 0-35.4-35.2zM305.7 253l575.8 1.9-56.4 315.8-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 0 1-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 0 1-31.6 31.6z'));
  65360. exports.ShrinkOutline = getIcon('shrink', outline, getNode(newViewBox, 'M881.7 187.4l-45.1-45.1a8.03 8.03 0 0 0-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 0 0-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 0 0 0 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0 0 13.5-4.7L447.9 585a7.9 7.9 0 0 0-8.9-8.9z'));
  65361. exports.SlackOutline = getIcon('slack', outline, getNode(newViewBox, 'M409.4 128c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0 0 54.3 22.5h76.7v-76.8c0-42.3-34.3-76.7-76.7-76.8zm0 204.8H204.7c-42.4 0-76.7 34.4-76.7 76.8s34.4 76.8 76.7 76.8h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.8-76.6-76.8zM614 486.4c42.4 0 76.8-34.4 76.7-76.8V204.8c0-42.4-34.3-76.8-76.7-76.8-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.5 34.3 76.8 76.7 76.8zm281.4-76.8c0-42.4-34.4-76.8-76.7-76.8S742 367.2 742 409.6v76.8h76.7c42.3 0 76.7-34.4 76.7-76.8zm-76.8 128H614c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0 0 54.3 22.5h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM614 742.4h-76.7v76.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM409.4 537.6c-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8V614.4c0-20.3-8.1-39.9-22.4-54.3a76.92 76.92 0 0 0-54.3-22.5zM128 614.4c0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0 0 54.3 22.5c42.4 0 76.8-34.4 76.7-76.8v-76.8h-76.7c-42.3 0-76.7 34.4-76.7 76.8z'));
  65362. exports.SmallDashOutline = getIcon('small-dash', outline, getNode(newViewBox, 'M112 476h72v72h-72zm182 0h72v72h-72zm364 0h72v72h-72zm182 0h72v72h-72zm-364 0h72v72h-72z'));
  65363. exports.SolutionOutline = getIcon('solution', outline, getNode(newViewBox, 'M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z'));
  65364. exports.SketchOutline = getIcon('sketch', outline, getNode(newViewBox, 'M925.6 405.1l-203-253.7a6.5 6.5 0 0 0-5-2.4H306.4c-1.9 0-3.8.9-5 2.4l-203 253.7a6.5 6.5 0 0 0 .2 8.3l408.6 459.5c1.2 1.4 3 2.1 4.8 2.1 1.8 0 3.5-.8 4.8-2.1l408.6-459.5a6.5 6.5 0 0 0 .2-8.3zM645.2 206.4l34.4 133.9-132.5-133.9h98.1zm8.2 178.5H370.6L512 242l141.4 142.9zM378.8 206.4h98.1L344.3 340.3l34.5-133.9zm-53.4 7l-44.1 171.5h-93.1l137.2-171.5zM194.6 434.9H289l125.8 247.7-220.2-247.7zM512 763.4L345.1 434.9h333.7L512 763.4zm97.1-80.8L735 434.9h94.4L609.1 682.6zm133.6-297.7l-44.1-171.5 137.2 171.5h-93.1z'));
  65365. exports.SortDescendingOutline = getIcon('sort-descending', outline, getNode(newViewBox, 'M839.6 433.8L749 150.5a9.24 9.24 0 0 0-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 0 0-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 0 0-9.2-9.3zM310.3 167.1a8 8 0 0 0-12.6 0L185.7 309c-4.2 5.3-.4 13 6.3 13h76v530c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V322h76c6.7 0 10.5-7.8 6.3-13l-112-141.9z'));
  65366. exports.SortAscendingOutline = getIcon('sort-ascending', outline, getNode(newViewBox, 'M839.6 433.8L749 150.5a9.24 9.24 0 0 0-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 0 0-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 0 0-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0 0 12.6 0l112-141.9c4.1-5.2.4-13-6.3-13z'));
  65367. exports.StockOutline = getIcon('stock', outline, getNode(newViewBox, 'M904 747H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM165.7 621.8l39.7 39.5c3.1 3.1 8.2 3.1 11.3 0l234.7-233.9 97.6 97.3a32.11 32.11 0 0 0 45.2 0l264.2-263.2c3.1-3.1 3.1-8.2 0-11.3l-39.7-39.6a8.03 8.03 0 0 0-11.3 0l-235.7 235-97.7-97.3a32.11 32.11 0 0 0-45.2 0L165.7 610.5a7.94 7.94 0 0 0 0 11.3z'));
  65368. exports.SwapLeftOutline = getIcon('swap-left', outline, getNode(normalViewBox, 'M872 572H266.8l144.3-183c4.1-5.2.4-13-6.3-13H340c-9.8 0-19.1 4.5-25.1 12.2l-164 208c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
  65369. exports.SwapRightOutline = getIcon('swap-right', outline, getNode(normalViewBox, 'M873.1 596.2l-164-208A32 32 0 0 0 684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z'));
  65370. exports.StrikethroughOutline = getIcon('strikethrough', outline, getNode(newViewBox, 'M952 474H569.9c-10-2-20.5-4-31.6-6-15.9-2.9-22.2-4.1-30.8-5.8-51.3-10-82.2-20-106.8-34.2-35.1-20.5-52.2-48.3-52.2-85.1 0-37 15.2-67.7 44-89 28.4-21 68.8-32.1 116.8-32.1 54.8 0 97.1 14.4 125.8 42.8 14.6 14.4 25.3 32.1 31.8 52.6 1.3 4.1 2.8 10 4.3 17.8.9 4.8 5.2 8.2 9.9 8.2h72.8c5.6 0 10.1-4.6 10.1-10.1v-1c-.7-6.8-1.3-12.1-2-16-7.3-43.5-28-81.7-59.7-110.3-44.4-40.5-109.7-61.8-188.7-61.8-72.3 0-137.4 18.1-183.3 50.9-25.6 18.4-45.4 41.2-58.6 67.7-13.5 27.1-20.3 58.4-20.3 92.9 0 29.5 5.7 54.5 17.3 76.5 8.3 15.7 19.6 29.5 34.1 42H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h433.2c2.1.4 3.9.8 5.9 1.2 30.9 6.2 49.5 10.4 66.6 15.2 23 6.5 40.6 13.3 55.2 21.5 35.8 20.2 53.3 49.2 53.3 89 0 35.3-15.5 66.8-43.6 88.8-30.5 23.9-75.6 36.4-130.5 36.4-43.7 0-80.7-8.5-110.2-25-29.1-16.3-49.1-39.8-59.7-69.5-.8-2.2-1.7-5.2-2.7-9-1.2-4.4-5.3-7.5-9.7-7.5h-79.7c-5.6 0-10.1 4.6-10.1 10.1v1c.2 2.3.4 4.2.6 5.7 6.5 48.8 30.3 88.8 70.7 118.8 47.1 34.8 113.4 53.2 191.8 53.2 84.2 0 154.8-19.8 204.2-57.3 25-18.9 44.2-42.2 57.1-69 13-27.1 19.7-57.9 19.7-91.5 0-31.8-5.8-58.4-17.8-81.4-5.8-11.2-13.1-21.5-21.8-30.8H952c4.4 0 8-3.6 8-8v-60a8 8 0 0 0-8-7.9z'));
  65371. exports.SwapOutline = getIcon('swap', outline, getNode(newViewBox, 'M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
  65372. exports.SyncOutline = getIcon('sync', outline, getNode(newViewBox, 'M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z'));
  65373. exports.TableOutline = getIcon('table', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z'));
  65374. exports.TeamOutline = getIcon('team', outline, getNode(newViewBox, 'M824.2 699.9a301.55 301.55 0 0 0-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 0 1 612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 0 0 8-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 0 1 612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z'));
  65375. exports.TaobaoOutline = getIcon('taobao', outline, getNode(newViewBox, 'M168.5 273.7a68.7 68.7 0 1 0 137.4 0 68.7 68.7 0 1 0-137.4 0zm730 79.2s-23.7-184.4-426.9-70.1c17.3-30 25.6-49.5 25.6-49.5L396.4 205s-40.6 132.6-113 194.4c0 0 70.1 40.6 69.4 39.4 20.1-20.1 38.2-40.6 53.7-60.4 16.1-7 31.5-13.6 46.7-19.8-18.6 33.5-48.7 83.8-78.8 115.6l42.4 37s28.8-27.7 60.4-61.2h36v61.8H372.9v49.5h140.3v118.5c-1.7 0-3.6 0-5.4-.2-15.4-.7-39.5-3.3-49-18.2-11.5-18.1-3-51.5-2.4-71.9h-97l-3.4 1.8s-35.5 159.1 102.3 155.5c129.1 3.6 203-36 238.6-63.1l14.2 52.6 79.6-33.2-53.9-131.9-64.6 20.1 12.1 45.2c-16.6 12.4-35.6 21.7-56.2 28.4V561.3h137.1v-49.5H628.1V450h137.6v-49.5H521.3c17.6-21.4 31.5-41.1 35-53.6l-42.5-11.6c182.8-65.5 284.5-54.2 283.6 53.2v282.8s10.8 97.1-100.4 90.1l-60.2-12.9-14.2 57.1S882.5 880 903.7 680.2c21.3-200-5.2-327.3-5.2-327.3zm-707.4 18.3l-45.4 69.7 83.6 52.1s56 28.5 29.4 81.9C233.8 625.5 112 736.3 112 736.3l109 68.1c75.4-163.7 70.5-142 89.5-200.7 19.5-60.1 23.7-105.9-9.4-139.1-42.4-42.6-47-46.6-110-93.4z'));
  65376. exports.ToTopOutline = getIcon('to-top', outline, getNode(newViewBox, 'M885 780H165c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM400 325.7h73.9V664c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V325.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 171a8 8 0 0 0-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13z'));
  65377. exports.TrademarkOutline = getIcon('trademark', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm87.5-334.7c34.8-12.8 78.4-49 78.4-119.2 0-71.2-45.5-131.1-144.2-131.1H378c-4.4 0-8 3.6-8 8v410c0 4.4 3.6 8 8 8h54.5c4.4 0 8-3.6 8-8V561.2h88.7l74.6 159.2c1.3 2.8 4.1 4.6 7.2 4.6h62a7.9 7.9 0 0 0 7.1-11.5l-80.6-164.2zM522 505h-81.5V357h83.4c48 0 80.9 25.3 80.9 75.5 0 46.9-29.8 72.5-82.8 72.5z'));
  65378. exports.TransactionOutline = getIcon('transaction', outline, getNode(newViewBox, 'M668.6 320c0-4.4-3.6-8-8-8h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.5-1.1.9-2.4.9-3.7zM157.9 504.2a352.7 352.7 0 0 1 103.5-242.4c32.5-32.5 70.3-58.1 112.4-75.9 43.6-18.4 89.9-27.8 137.6-27.8 47.8 0 94.1 9.3 137.6 27.8 42.1 17.8 79.9 43.4 112.4 75.9 10 10 19.3 20.5 27.9 31.4l-50 39.1a8 8 0 0 0 3 14.1l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3l-47.8 37.4C770.7 146.3 648.6 82 511.5 82 277 82 86.3 270.1 82 503.8a8 8 0 0 0 8 8.2h60c4.3 0 7.8-3.5 7.9-7.8zM934 512h-60c-4.3 0-7.9 3.5-8 7.8a352.7 352.7 0 0 1-103.5 242.4 352.57 352.57 0 0 1-112.4 75.9c-43.6 18.4-89.9 27.8-137.6 27.8s-94.1-9.3-137.6-27.8a352.57 352.57 0 0 1-112.4-75.9c-10-10-19.3-20.5-27.9-31.4l49.9-39.1a8 8 0 0 0-3-14.1l-156.8-38.3c-5-1.2-9.9 2.6-9.9 7.7l-.8 161.7c0 6.7 7.7 10.5 12.9 6.3l47.8-37.4C253.3 877.7 375.4 942 512.5 942 747 942 937.7 753.9 942 520.2a8 8 0 0 0-8-8.2z'));
  65379. exports.TwitterOutline = getIcon('twitter', outline, getNode(newViewBox, 'M928 254.3c-30.6 13.2-63.9 22.7-98.2 26.4a170.1 170.1 0 0 0 75-94 336.64 336.64 0 0 1-108.2 41.2A170.1 170.1 0 0 0 672 174c-94.5 0-170.5 76.6-170.5 170.6 0 13.2 1.6 26.4 4.2 39.1-141.5-7.4-267.7-75-351.6-178.5a169.32 169.32 0 0 0-23.2 86.1c0 59.2 30.1 111.4 76 142.1a172 172 0 0 1-77.1-21.7v2.1c0 82.9 58.6 151.6 136.7 167.4a180.6 180.6 0 0 1-44.9 5.8c-11.1 0-21.6-1.1-32.2-2.6C211 652 273.9 701.1 348.8 702.7c-58.6 45.9-132 72.9-211.7 72.9-14.3 0-27.5-.5-41.2-2.1C171.5 822 261.2 850 357.8 850 671.4 850 843 590.2 843 364.7c0-7.4 0-14.8-.5-22.2 33.2-24.3 62.3-54.4 85.5-88.2z'));
  65380. exports.UnderlineOutline = getIcon('underline', outline, getNode(newViewBox, 'M824 804H200c-4.4 0-8 3.4-8 7.6v60.8c0 4.2 3.6 7.6 8 7.6h624c4.4 0 8-3.4 8-7.6v-60.8c0-4.2-3.6-7.6-8-7.6zm-312-76c69.4 0 134.6-27.1 183.8-76.2C745 602.7 772 537.4 772 468V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 97-79 176-176 176s-176-79-176-176V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 69.4 27.1 134.6 76.2 183.8C377.3 701 442.6 728 512 728z'));
  65381. exports.UndoOutline = getIcon('undo', outline, getNode(newViewBox, 'M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 0 0-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 0 0-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z'));
  65382. exports.UnorderedListOutline = getIcon('unordered-list', outline, getNode(newViewBox, 'M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
  65383. exports.UpOutline = getIcon('up', outline, getNode(newViewBox, 'M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 0 0 140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z'));
  65384. exports.UploadOutline = getIcon('upload', outline, getNode(newViewBox, 'M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 0 0-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z'));
  65385. exports.UserAddOutline = getIcon('user-add', outline, getNode(newViewBox, 'M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 0 0-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 0 0-80.4 119.5A373.6 373.6 0 0 0 137 888.8a8 8 0 0 0 8 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 0 0 8.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 0 1 340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 0 1 683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65386. exports.UsergroupAddOutline = getIcon('usergroup-add', outline, getNode(newViewBox, 'M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z'));
  65387. exports.UserOutline = getIcon('user', outline, getNode(newViewBox, 'M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z'));
  65388. exports.UserDeleteOutline = getIcon('user-delete', outline, getNode(newViewBox, 'M678.3 655.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 0 0-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 518 759.6 444.7 759.6 362c0-137-110.8-248-247.5-248S264.7 225 264.7 362c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 0 0-80.4 119.5A373.6 373.6 0 0 0 137 901.8a8 8 0 0 0 8 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 641.2 432.2 610 512.2 610c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 0 0 8.1.3zM512.2 534c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 0 1 340.5 362c0-45.9 17.9-89.1 50.3-121.6S466.3 190 512.2 190s88.9 17.9 121.4 50.4A171.2 171.2 0 0 1 683.9 362c0 45.9-17.9 89.1-50.3 121.6C601.1 516.1 558 534 512.2 534zM880 772H640c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
  65389. exports.UsergroupDeleteOutline = getIcon('usergroup-delete', outline, getNode(newViewBox, 'M888 784H664c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7zM824 484c0-109.4-87.9-198.3-196.9-200C516.3 282.3 424 373.2 424 484c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C357 754.6 326 826.8 324 903.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 707.7 563 684 624 684c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 598.7 658.2 612 624 612s-66.3-13.3-90.5-37.5a127.26 127.26 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z'));
  65390. exports.VerticalAlignBottomOutline = getIcon('vertical-align-bottom', outline, getNode(newViewBox, 'M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z'));
  65391. exports.VerticalAlignMiddleOutline = getIcon('vertical-align-middle', outline, getNode(newViewBox, 'M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 0 0-11.3 0L405.6 752.3a7.23 7.23 0 0 0 5.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z'));
  65392. exports.VerticalAlignTopOutline = getIcon('vertical-align-top', outline, getNode(newViewBox, 'M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z'));
  65393. exports.VerticalRightOutline = getIcon('vertical-right', outline, getNode(newViewBox, 'M326 164h-64c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V172c0-4.4-3.6-8-8-8zm444 72.4V164c0-6.8-7.9-10.5-13.1-6.1L335 512l421.9 354.1c5.2 4.4 13.1.7 13.1-6.1v-72.4c0-9.4-4.2-18.4-11.4-24.5L459.4 512l299.2-251.1c7.2-6.1 11.4-15.1 11.4-24.5z'));
  65394. exports.VerticalLeftOutline = getIcon('vertical-left', outline, getNode(newViewBox, 'M762 164h-64c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V172c0-4.4-3.6-8-8-8zm-508 0v72.4c0 9.5 4.2 18.4 11.4 24.5L564.6 512 265.4 763.1c-7.2 6.1-11.4 15-11.4 24.5V860c0 6.8 7.9 10.5 13.1 6.1L689 512 267.1 157.9A7.95 7.95 0 0 0 254 164z'));
  65395. exports.WifiOutline = getIcon('wifi', outline, getNode(newViewBox, 'M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 0 0-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 0 0-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 0 0-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 1 0 128 0 64 64 0 1 0-128 0z'));
  65396. exports.ZhihuOutline = getIcon('zhihu', outline, getNode(newViewBox, 'M564.7 230.1V803h60l25.2 71.4L756.3 803h131.5V230.1H564.7zm247.7 497h-59.9l-75.1 50.4-17.8-50.4h-18V308.3h170.7v418.8zM526.1 486.9H393.3c2.1-44.9 4.3-104.3 6.6-172.9h130.9l-.1-8.1c0-.6-.2-14.7-2.3-29.1-2.1-15-6.6-34.9-21-34.9H287.8c4.4-20.6 15.7-69.7 29.4-93.8l6.4-11.2-12.9-.7c-.8 0-19.6-.9-41.4 10.6-35.7 19-51.7 56.4-58.7 84.4-18.4 73.1-44.6 123.9-55.7 145.6-3.3 6.4-5.3 10.2-6.2 12.8-1.8 4.9-.8 9.8 2.8 13 10.5 9.5 38.2-2.9 38.5-3 .6-.3 1.3-.6 2.2-1 13.9-6.3 55.1-25 69.8-84.5h56.7c.7 32.2 3.1 138.4 2.9 172.9h-141l-2.1 1.5c-23.1 16.9-30.5 63.2-30.8 65.2l-1.4 9.2h167c-12.3 78.3-26.5 113.4-34 127.4-3.7 7-7.3 14-10.7 20.8-21.3 42.2-43.4 85.8-126.3 153.6-3.6 2.8-7 8-4.8 13.7 2.4 6.3 9.3 9.1 24.6 9.1 5.4 0 11.8-.3 19.4-1 49.9-4.4 100.8-18 135.1-87.6 17-35.1 31.7-71.7 43.9-108.9L497 850l5-12c.8-1.9 19-46.3 5.1-95.9l-.5-1.8-108.1-123-22 16.6c6.4-26.1 10.6-49.9 12.5-71.1h158.7v-8c0-40.1-18.5-63.9-19.2-64.9l-2.4-3z'));
  65397. exports.WeiboOutline = getIcon('weibo', outline, getNode(newViewBox, 'M457.3 543c-68.1-17.7-145 16.2-174.6 76.2-30.1 61.2-1 129.1 67.8 151.3 71.2 23 155.2-12.2 184.4-78.3 28.7-64.6-7.2-131-77.6-149.2zm-52 156.2c-13.8 22.1-43.5 31.7-65.8 21.6-22-10-28.5-35.7-14.6-57.2 13.7-21.4 42.3-31 64.4-21.7 22.4 9.5 29.6 35 16 57.3zm45.5-58.5c-5 8.6-16.1 12.7-24.7 9.1-8.5-3.5-11.2-13.1-6.4-21.5 5-8.4 15.6-12.4 24.1-9.1 8.7 3.2 11.8 12.9 7 21.5zm334.5-197.2c15 4.8 31-3.4 35.9-18.3 11.8-36.6 4.4-78.4-23.2-109a111.39 111.39 0 0 0-106-34.3 28.45 28.45 0 0 0-21.9 33.8 28.39 28.39 0 0 0 33.8 21.8c18.4-3.9 38.3 1.8 51.9 16.7a54.2 54.2 0 0 1 11.3 53.3 28.45 28.45 0 0 0 18.2 36zm99.8-206c-56.7-62.9-140.4-86.9-217.7-70.5a32.98 32.98 0 0 0-25.4 39.3 33.12 33.12 0 0 0 39.3 25.5c55-11.7 114.4 5.4 154.8 50.1 40.3 44.7 51.2 105.7 34 159.1-5.6 17.4 3.9 36 21.3 41.7 17.4 5.6 36-3.9 41.6-21.2v-.1c24.1-75.4 8.9-161.1-47.9-223.9zM729 499c-12.2-3.6-20.5-6.1-14.1-22.1 13.8-34.7 15.2-64.7.3-86-28-40.1-104.8-37.9-192.8-1.1 0 0-27.6 12.1-20.6-9.8 13.5-43.5 11.5-79.9-9.6-101-47.7-47.8-174.6 1.8-283.5 110.6C127.3 471.1 80 557.5 80 632.2 80 775.1 263.2 862 442.5 862c235 0 391.3-136.5 391.3-245 0-65.5-55.2-102.6-104.8-118zM443 810.8c-143 14.1-266.5-50.5-275.8-144.5-9.3-93.9 99.2-181.5 242.2-195.6 143-14.2 266.5 50.5 275.8 144.4C694.4 709 586 796.6 443 810.8z'));
  65398. exports.WomanOutline = getIcon('woman', outline, getNode(newViewBox, 'M712.8 548.8c53.6-53.6 83.2-125 83.2-200.8 0-75.9-29.5-147.2-83.2-200.8C659.2 93.6 587.8 64 512 64s-147.2 29.5-200.8 83.2C257.6 200.9 228 272.1 228 348c0 63.8 20.9 124.4 59.4 173.9 7.3 9.4 15.2 18.3 23.7 26.9 8.5 8.5 17.5 16.4 26.8 23.7 39.6 30.8 86.3 50.4 136.1 57V736H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h114v140c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V812h114c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H550V629.5c61.5-8.2 118.2-36.1 162.8-80.7zM512 556c-55.6 0-107.7-21.6-147.1-60.9C325.6 455.8 304 403.6 304 348s21.6-107.7 60.9-147.1C404.2 161.5 456.4 140 512 140s107.7 21.6 147.1 60.9C698.4 240.2 720 292.4 720 348s-21.6 107.7-60.9 147.1C619.7 534.4 567.6 556 512 556z'));
  65399. exports.ZoomInOutline = getIcon('zoom-in', outline, getNode(newViewBox, 'M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z'));
  65400. exports.AccountBookTwoTone = getIcon('account-book', twotone, function (primaryColor, secondaryColor) {
  65401. return getNode(newViewBox, [
  65402. secondaryColor,
  65403. 'M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v584h656V256H712v48zm-65.6 121.8l-89.3 164.1h49.1c4.4 0 8 3.6 8 8v21.3c0 4.4-3.6 8-8 8h-65.4v33.7h65.4c4.4 0 8 3.6 8 8v21.3c0 4.4-3.6 8-8 8h-65.4V752c0 4.4-3.6 8-8 8h-41.3c-4.4 0-8-3.6-8-8v-53.8h-65.1c-4.4 0-8-3.6-8-8v-21.3c0-4.4 3.6-8 8-8h65.1v-33.7h-65.1c-4.4 0-8-3.6-8-8v-21.3c0-4.4 3.6-8 8-8H467l-89.3-164c-2.1-3.9-.7-8.8 3.2-10.9 1.1-.7 2.5-1 3.8-1h46a8 8 0 0 1 7.1 4.4l73.4 145.4h2.8l73.4-145.4c1.3-2.7 4.1-4.4 7.1-4.4h45c4.5 0 8 3.6 7.9 8 0 1.3-.4 2.6-1 3.8z'
  65404. ], [
  65405. primaryColor,
  65406. 'M639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 0 0-7.1-4.4h-46c-1.3 0-2.7.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9l89.3 164h-48.6c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1v33.7h-65.1c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1V752c0 4.4 3.6 8 8 8h41.3c4.4 0 8-3.6 8-8v-53.8h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-65.4v-33.7h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-49.1l89.3-164.1c.6-1.2 1-2.5 1-3.8.1-4.4-3.4-8-7.9-8z'
  65407. ], [
  65408. primaryColor,
  65409. 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584z'
  65410. ]);
  65411. });
  65412. exports.ZoomOutOutline = getIcon('zoom-out', outline, getNode(newViewBox, 'M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z'));
  65413. exports.AlertTwoTone = getIcon('alert', twotone, function (primaryColor, secondaryColor) {
  65414. return getNode(newViewBox, [
  65415. secondaryColor,
  65416. 'M340 585c0-5.5 4.5-10 10-10h44c5.5 0 10 4.5 10 10v171h355V563c0-136.4-110.6-247-247-247S265 426.6 265 563v193h75V585z'
  65417. ], [
  65418. primaryColor,
  65419. 'M216.9 310.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 0 0-11.3 0l-39.6 39.6a8.03 8.03 0 0 0 0 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-67.9 67.9a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8zm348 712H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zm-639-96c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563z'
  65420. ]);
  65421. });
  65422. exports.ApiTwoTone = getIcon('api', twotone, function (primaryColor, secondaryColor) {
  65423. return getNode(newViewBox, [
  65424. secondaryColor,
  65425. 'M148.2 674.6zm106.7-92.3c-25 25-38.7 58.1-38.7 93.4s13.8 68.5 38.7 93.4c25 25 58.1 38.7 93.4 38.7 35.3 0 68.5-13.8 93.4-38.7l59.4-59.4-186.8-186.8-59.4 59.4zm420.8-366.1c-35.3 0-68.5 13.8-93.4 38.7l-59.4 59.4 186.8 186.8 59.4-59.4c24.9-25 38.7-58.1 38.7-93.4s-13.8-68.5-38.7-93.4c-25-25-58.1-38.7-93.4-38.7z'
  65426. ], [
  65427. primaryColor,
  65428. 'M578.9 546.7a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2a199.45 199.45 0 0 0-58.6 140.4c-.2 39.5 11.2 79.1 34.3 113.1l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7-24.9-24.9-38.7-58.1-38.7-93.4s13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4zm476-620.3l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7s68.4 13.7 93.4 38.7c24.9 24.9 38.7 58.1 38.7 93.4s-13.8 68.4-38.7 93.4z'
  65429. ]);
  65430. });
  65431. exports.AppstoreTwoTone = getIcon('appstore', twotone, function (primaryColor, secondaryColor) {
  65432. return getNode(newViewBox, [
  65433. primaryColor,
  65434. 'M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm52-668H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z'
  65435. ], [
  65436. secondaryColor,
  65437. 'M212 212h200v200H212zm400 0h200v200H612zM212 612h200v200H212zm400 0h200v200H612z'
  65438. ]);
  65439. });
  65440. exports.BankTwoTone = getIcon('bank', twotone, function (primaryColor, secondaryColor) {
  65441. return getNode(newViewBox, [secondaryColor, 'M240.9 393.9h542.2L512 196.7z'], [
  65442. primaryColor,
  65443. 'M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 0 0-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM381 836H264V462h117v374zm189 0H453V462h117v374zm190 0H642V462h118v374zM240.9 393.9L512 196.7l271.1 197.2H240.9z'
  65444. ]);
  65445. });
  65446. exports.AudioTwoTone = getIcon('audio', twotone, function (primaryColor, secondaryColor) {
  65447. return getNode(newViewBox, [
  65448. secondaryColor,
  65449. 'M512 552c54.3 0 98-43.2 98-96V232c0-52.8-43.7-96-98-96s-98 43.2-98 96v224c0 52.8 43.7 96 98 96z'
  65450. ], [
  65451. primaryColor,
  65452. 'M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z'
  65453. ], [
  65454. primaryColor,
  65455. 'M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-98-392c0-52.8 43.7-96 98-96s98 43.2 98 96v224c0 52.8-43.7 96-98 96s-98-43.2-98-96V232z'
  65456. ]);
  65457. });
  65458. exports.BellTwoTone = getIcon('bell', twotone, function (primaryColor, secondaryColor) {
  65459. return getNode(newViewBox, [
  65460. secondaryColor,
  65461. 'M512 220c-55.6 0-107.8 21.6-147.1 60.9S304 372.4 304 428v340h416V428c0-55.6-21.6-107.8-60.9-147.1S567.6 220 512 220zm280 208c0-141.1-104.3-257.8-240-277.2v.1c135.7 19.4 240 136 240 277.1zM472 150.9v-.1C336.3 170.2 232 286.9 232 428c0-141.1 104.3-257.7 240-277.1z'
  65462. ], [
  65463. primaryColor,
  65464. 'M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zm208-120H304V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340z'
  65465. ]);
  65466. });
  65467. exports.BookTwoTone = getIcon('book', twotone, function (primaryColor, secondaryColor) {
  65468. return getNode(newViewBox, [
  65469. primaryColor,
  65470. 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zM232 888V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0 0 22.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752H232z'
  65471. ], [secondaryColor, 'M668 345.9V136h-96v211.4l49.5-35.4z'], [
  65472. secondaryColor,
  65473. 'M727.9 136v296.5c0 8.8-7.2 16-16 16-3.4 0-6.7-1.1-9.4-3.1L621.1 386l-83.8 59.9a15.9 15.9 0 0 1-22.3-3.7c-2-2.7-3-6-3-9.3V136H232v752h559.9V136h-64z'
  65474. ]);
  65475. });
  65476. exports.BoxPlotTwoTone = getIcon('box-plot', twotone, function (primaryColor, secondaryColor) {
  65477. return getNode(newViewBox, [secondaryColor, 'M296 368h88v288h-88zm152 0h280v288H448z'], [
  65478. primaryColor,
  65479. 'M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H232c-4.4 0-8 3.6-8 8v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h560c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zM384 656h-88V368h88v288zm344 0H448V368h280v288z'
  65480. ]);
  65481. });
  65482. exports.BugTwoTone = getIcon('bug', twotone, function (primaryColor, secondaryColor) {
  65483. return getNode(newViewBox, [
  65484. primaryColor,
  65485. 'M308 412v268c0 36.78 9.68 71.96 27.8 102.9a205.39 205.39 0 0 0 73.3 73.3A202.68 202.68 0 0 0 512 884c36.78 0 71.96-9.68 102.9-27.8a205.39 205.39 0 0 0 73.3-73.3A202.68 202.68 0 0 0 716 680V412H308zm484 172v96c0 6.5-.22 12.95-.66 19.35C859.94 728.64 908 796.7 908 876a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-44.24-23.94-82.89-59.57-103.7a278.63 278.63 0 0 1-22.66 49.02 281.39 281.39 0 0 1-100.45 100.45C611.84 946.07 563.55 960 512 960s-99.84-13.93-141.32-38.23a281.39 281.39 0 0 1-100.45-100.45 278.63 278.63 0 0 1-22.66-49.02A119.95 119.95 0 0 0 188 876a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-79.3 48.07-147.36 116.66-176.65A284.12 284.12 0 0 1 232 680v-96H84a8 8 0 0 1-8-8v-56a8 8 0 0 1 8-8h148V412c-76.77 0-139-62.23-139-139a8 8 0 0 1 8-8h60a8 8 0 0 1 8 8 63 63 0 0 0 63 63h560a63 63 0 0 0 63-63 8 8 0 0 1 8-8h60a8 8 0 0 1 8 8c0 76.77-62.23 139-139 139v100h148a8 8 0 0 1 8 8v56a8 8 0 0 1-8 8H792zM368 272a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-40.04 8.78-76.75 25.9-108.07a184.57 184.57 0 0 1 74.03-74.03C427.25 72.78 463.96 64 504 64h16c40.04 0 76.75 8.78 108.07 25.9a184.57 184.57 0 0 1 74.03 74.03C719.22 195.25 728 231.96 728 272a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-28.33-5.94-53.15-17.08-73.53a112.56 112.56 0 0 0-45.39-45.4C573.15 141.95 548.33 136 520 136h-16c-28.33 0-53.15 5.94-73.53 17.08a112.56 112.56 0 0 0-45.4 45.39C373.95 218.85 368 243.67 368 272z'
  65486. ], [
  65487. secondaryColor,
  65488. 'M308 412v268c0 36.78 9.68 71.96 27.8 102.9a205.39 205.39 0 0 0 73.3 73.3A202.68 202.68 0 0 0 512 884c36.78 0 71.96-9.68 102.9-27.8a205.39 205.39 0 0 0 73.3-73.3A202.68 202.68 0 0 0 716 680V412H308z'
  65489. ]);
  65490. });
  65491. exports.BulbTwoTone = getIcon('bulb', twotone, function (primaryColor, secondaryColor) {
  65492. return getNode(newViewBox, [
  65493. secondaryColor,
  65494. 'M512 136c-141.4 0-256 114.6-256 256 0 92.5 49.4 176.3 128.1 221.8l35.9 20.8V752h184V634.6l35.9-20.8C718.6 568.3 768 484.5 768 392c0-141.4-114.6-256-256-256z'
  65495. ], [
  65496. primaryColor,
  65497. 'M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z'
  65498. ]);
  65499. });
  65500. exports.CalculatorTwoTone = getIcon('calculator', twotone, function (primaryColor, secondaryColor) {
  65501. return getNode(newViewBox, [
  65502. primaryColor,
  65503. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  65504. ], [
  65505. secondaryColor,
  65506. 'M184 840h656V184H184v656zm256.2-75h-50.8c-2.2 0-4.5-1.1-5.9-2.9L348 718.6l-35.5 43.5a7.38 7.38 0 0 1-5.9 2.9h-50.8c-6.6 0-10.2-7.9-5.8-13.1l62.7-76.8-61.2-74.9c-4.3-5.2-.7-13.1 5.9-13.1h50.9c2.2 0 4.5 1.1 5.9 2.9l34 41.6 34-41.6c1.5-1.9 3.6-2.9 5.9-2.9h50.8c6.6 0 10.2 7.9 5.9 13.1L383.5 675l62.7 76.8c4.2 5.3.6 13.2-6 13.2zM576 335c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zm0 265c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zm0 104c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zM248 335c0-2.2 1.4-4 3.2-4H320v-68.8c0-1.8 1.8-3.2 4-3.2h48c2.2 0 4 1.4 4 3.2V331h68.7c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H376v68.7c0 1.9-1.8 3.3-4 3.3h-48c-2.2 0-4-1.4-4-3.2V387h-68.8c-1.8 0-3.2-1.8-3.2-4v-48z'
  65507. ], [
  65508. primaryColor,
  65509. 'M383.5 675l61.3-74.8c4.3-5.2.7-13.1-5.9-13.1h-50.8c-2.3 0-4.4 1-5.9 2.9l-34 41.6-34-41.6a7.69 7.69 0 0 0-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.4-1 5.9-2.9l35.5-43.5 35.5 43.5c1.4 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 6-13.2L383.5 675zM251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 369h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0-104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0-265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4z'
  65510. ]);
  65511. });
  65512. exports.BuildTwoTone = getIcon('build', twotone, function (primaryColor, secondaryColor) {
  65513. return getNode(newViewBox, [secondaryColor, 'M144 546h200v200H144zm268-268h200v200H412z'], [
  65514. primaryColor,
  65515. 'M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zM344 746H144V546h200v200zm268 0H412V546h200v200zm0-268H412V278h200v200zm268 0H680V278h200v200z'
  65516. ]);
  65517. });
  65518. exports.CalendarTwoTone = getIcon('calendar', twotone, function (primaryColor, secondaryColor) {
  65519. return getNode(newViewBox, [
  65520. secondaryColor,
  65521. 'M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v136h656V256H712v48z'
  65522. ], [
  65523. primaryColor,
  65524. 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z'
  65525. ]);
  65526. });
  65527. exports.CameraTwoTone = getIcon('camera', twotone, function (primaryColor, secondaryColor) {
  65528. return getNode(newViewBox, [
  65529. secondaryColor,
  65530. 'M864 320H677.2l-17.1-47.8-22.9-64.2H386.7l-22.9 64.2-17.1 47.8H160c-4.4 0-8 3.6-8 8v456c0 4.4 3.6 8 8 8h704c4.4 0 8-3.6 8-8V328c0-4.4-3.6-8-8-8zM512 704c-88.4 0-160-71.6-160-160s71.6-160 160-160 160 71.6 160 160-71.6 160-160 160z'
  65531. ], [
  65532. primaryColor,
  65533. 'M512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z'
  65534. ], [
  65535. primaryColor,
  65536. 'M864 248H728l-32.4-90.8a32.07 32.07 0 0 0-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456z'
  65537. ]);
  65538. });
  65539. exports.CarTwoTone = getIcon('car', twotone, function (primaryColor, secondaryColor) {
  65540. return getNode(newViewBox, [
  65541. secondaryColor,
  65542. 'M199.6 474L184 517v237h656V517l-15.6-43H199.6zM264 621c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm388 75c0 4.4-3.6 8-8 8H380c-4.4 0-8-3.6-8-8v-84c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v36h168v-36c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v84zm108-75c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z'
  65543. ], [primaryColor, 'M720 581a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'], [
  65544. primaryColor,
  65545. 'M959 413.4L935.3 372a8 8 0 0 0-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 0 0-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 0 0-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 0 0 3-10.8zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM840 754H184V517l15.6-43h624.8l15.6 43v237z'
  65546. ], [
  65547. primaryColor,
  65548. 'M224 581a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm420 23h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8z'
  65549. ]);
  65550. });
  65551. exports.CarryOutTwoTone = getIcon('carry-out', twotone, function (primaryColor, secondaryColor) {
  65552. return getNode(newViewBox, [
  65553. primaryColor,
  65554. 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584z'
  65555. ], [
  65556. secondaryColor,
  65557. 'M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v584h656V256H712v48zm-17.5 128.8L481.9 725.5a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.9-6.6 13-6.6H688c6.5 0 10.3 7.4 6.5 12.8z'
  65558. ], [
  65559. primaryColor,
  65560. 'M688 420h-55.2c-5.1 0-10 2.5-13 6.6L468.9 634.4l-64.7-89c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.4 0-12.8-6.5-12.8z'
  65561. ]);
  65562. });
  65563. exports.CheckCircleTwoTone = getIcon('check-circle', twotone, function (primaryColor, secondaryColor) {
  65564. return getNode(newViewBox, [
  65565. primaryColor,
  65566. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  65567. ], [
  65568. secondaryColor,
  65569. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z'
  65570. ], [
  65571. primaryColor,
  65572. 'M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0 0 51.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z'
  65573. ]);
  65574. });
  65575. exports.CheckSquareTwoTone = getIcon('check-square', twotone, function (primaryColor, secondaryColor) {
  65576. return getNode(newViewBox, [
  65577. primaryColor,
  65578. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  65579. ], [
  65580. secondaryColor,
  65581. 'M184 840h656V184H184v656zm130-367.8h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H688c6.5 0 10.3 7.4 6.5 12.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L307.5 484.9c-3.8-5.3 0-12.7 6.5-12.7z'
  65582. ], [
  65583. primaryColor,
  65584. 'M432.2 657.7a31.8 31.8 0 0 0 51.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7h-46.9c-10.3 0-19.9 5-25.9 13.3L458 584.3l-71.2-98.8c-6-8.4-15.7-13.3-25.9-13.3H314c-6.5 0-10.3 7.4-6.5 12.7l124.7 172.8z'
  65585. ]);
  65586. });
  65587. exports.ClockCircleTwoTone = getIcon('clock-circle', twotone, function (primaryColor, secondaryColor) {
  65588. return getNode(newViewBox, [
  65589. primaryColor,
  65590. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  65591. ], [
  65592. secondaryColor,
  65593. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm176.5 509.7l-28.6 39a7.99 7.99 0 0 1-11.2 1.7L483.3 569.8a7.92 7.92 0 0 1-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z'
  65594. ], [
  65595. primaryColor,
  65596. 'M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.6-3.6 1.8-8.6-1.8-11.1z'
  65597. ]);
  65598. });
  65599. exports.CloseCircleTwoTone = getIcon('close-circle', twotone, function (primaryColor, secondaryColor) {
  65600. return getNode(newViewBox, [
  65601. primaryColor,
  65602. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  65603. ], [
  65604. secondaryColor,
  65605. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm171.8 527.1c1.2 1.5 1.9 3.3 1.9 5.2 0 4.5-3.6 8-8 8l-66-.3-99.3-118.4-99.3 118.5-66.1.3c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2L471 512.3l-130.1-155a8.32 8.32 0 0 1-1.9-5.2c0-4.5 3.6-8 8-8l66.1.3 99.3 118.4 99.4-118.5 66-.3c4.4 0 8 3.6 8 8 0 1.9-.6 3.8-1.8 5.2l-130.1 155 129.9 154.9z'
  65606. ], [
  65607. primaryColor,
  65608. 'M685.8 352c0-4.4-3.6-8-8-8l-66 .3-99.4 118.5-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155-130.1 154.9a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3 99.3-118.5L611.7 680l66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.9 512.2l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z'
  65609. ]);
  65610. });
  65611. exports.CloudTwoTone = getIcon('cloud', twotone, function (primaryColor, secondaryColor) {
  65612. return getNode(newViewBox, [
  65613. secondaryColor,
  65614. 'M791.9 492l-37.8-10-13.8-36.5c-8.6-22.7-20.6-44.1-35.7-63.4a245.73 245.73 0 0 0-52.4-49.9c-41.1-28.9-89.5-44.2-140-44.2s-98.9 15.3-140 44.2a245.6 245.6 0 0 0-52.4 49.9 240.47 240.47 0 0 0-35.7 63.4l-13.9 36.6-37.9 9.9a125.7 125.7 0 0 0-66.1 43.7A123.1 123.1 0 0 0 140 612c0 33.1 12.9 64.3 36.3 87.7 23.4 23.4 54.5 36.3 87.6 36.3h496.2c33.1 0 64.2-12.9 87.6-36.3A123.3 123.3 0 0 0 884 612c0-56.2-37.8-105.5-92.1-120z'
  65615. ], [
  65616. primaryColor,
  65617. 'M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 0 1-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 0 1 140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0 1 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z'
  65618. ]);
  65619. });
  65620. exports.CloseSquareTwoTone = getIcon('close-square', twotone, function (primaryColor, secondaryColor) {
  65621. return getNode(newViewBox, [
  65622. primaryColor,
  65623. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  65624. ], [
  65625. secondaryColor,
  65626. 'M184 840h656V184H184v656zm163.9-473.9A7.95 7.95 0 0 1 354 353h58.9c4.7 0 9.2 2.1 12.3 5.7L512 462.2l86.8-103.5c3-3.6 7.5-5.7 12.3-5.7H670c6.8 0 10.5 7.9 6.1 13.1L553.8 512l122.3 145.9c4.4 5.2.7 13.1-6.1 13.1h-58.9c-4.7 0-9.2-2.1-12.3-5.7L512 561.8l-86.8 103.5c-3 3.6-7.5 5.7-12.3 5.7H354c-6.8 0-10.5-7.9-6.1-13.1L470.2 512 347.9 366.1z'
  65627. ], [
  65628. primaryColor,
  65629. 'M354 671h58.9c4.8 0 9.3-2.1 12.3-5.7L512 561.8l86.8 103.5c3.1 3.6 7.6 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.3-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.8 0-9.3 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3.1-3.6-7.6-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 0 0 354 671z'
  65630. ]);
  65631. });
  65632. exports.CodeTwoTone = getIcon('code', twotone, function (primaryColor, secondaryColor) {
  65633. return getNode(newViewBox, [
  65634. primaryColor,
  65635. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  65636. ], [
  65637. secondaryColor,
  65638. 'M184 840h656V184H184v656zm339.5-223h185c4.1 0 7.5 3.6 7.5 8v48c0 4.4-3.4 8-7.5 8h-185c-4.1 0-7.5-3.6-7.5-8v-48c0-4.4 3.4-8 7.5-8zM308 610.3c0-2.3 1.1-4.6 2.9-6.1L420.7 512l-109.8-92.2a7.63 7.63 0 0 1-2.9-6.1V351c0-6.8 7.9-10.5 13.1-6.1l192 160.9c3.9 3.2 3.9 9.1 0 12.3l-192 161c-5.2 4.4-13.1.7-13.1-6.1v-62.7z'
  65639. ], [
  65640. primaryColor,
  65641. 'M321.1 679.1l192-161c3.9-3.2 3.9-9.1 0-12.3l-192-160.9A7.95 7.95 0 0 0 308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 0 0-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48z'
  65642. ]);
  65643. });
  65644. exports.CompassTwoTone = getIcon('compass', twotone, function (primaryColor, secondaryColor) {
  65645. return getNode(newViewBox, [
  65646. secondaryColor,
  65647. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM327.6 701.7c-2 .9-4.4 0-5.3-2.1-.4-1-.4-2.2 0-3.2L421 470.9 553.1 603l-225.5 98.7zm375.1-375.1L604 552.1 471.9 420l225.5-98.7c2-.9 4.4 0 5.3 2.1.4 1 .4 2.1 0 3.2z'
  65648. ], [
  65649. primaryColor,
  65650. 'M322.3 696.4c-.4 1-.4 2.2 0 3.2.9 2.1 3.3 3 5.3 2.1L553.1 603 421 470.9l-98.7 225.5zm375.1-375.1L471.9 420 604 552.1l98.7-225.5c.4-1.1.4-2.2 0-3.2-.9-2.1-3.3-3-5.3-2.1z'
  65651. ], [
  65652. primaryColor,
  65653. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  65654. ]);
  65655. });
  65656. exports.ContactsTwoTone = getIcon('contacts', twotone, function (primaryColor, secondaryColor) {
  65657. return getNode(newViewBox, [
  65658. secondaryColor,
  65659. 'M460.3 526a51.7 52 0 1 0 103.4 0 51.7 52 0 1 0-103.4 0z'
  65660. ], [
  65661. secondaryColor,
  65662. 'M768 352c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H548v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H328v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H136v496h752V296H768v56zM661 736h-43.8c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 39.9-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5h-43.9a8 8 0 0 1-8-8.4c2.8-53.3 31.9-99.6 74.6-126.1-18.1-20-29.1-46.4-29.1-75.5 0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.6-29.1 75.5 42.7 26.4 71.9 72.8 74.7 126.1a8 8 0 0 1-8 8.4z'
  65663. ], [
  65664. primaryColor,
  65665. 'M594.3 601.5a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1 8 8 0 0 0 8 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52z'
  65666. ], [
  65667. primaryColor,
  65668. 'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z'
  65669. ]);
  65670. });
  65671. exports.ContainerTwoTone = getIcon('container', twotone, function (primaryColor, secondaryColor) {
  65672. return getNode(newViewBox, [
  65673. secondaryColor,
  65674. 'M635 771.7c-34.5 28.6-78.2 44.3-123 44.3s-88.5-15.8-123-44.3a194.02 194.02 0 0 1-59.1-84.7H232v201h560V687h-97.9c-11.6 32.8-32 62.3-59.1 84.7z'
  65675. ], [
  65676. primaryColor,
  65677. 'M320 501h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
  65678. ], [
  65679. primaryColor,
  65680. 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v201zm0-264H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v488z'
  65681. ], [
  65682. primaryColor,
  65683. 'M320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
  65684. ]);
  65685. });
  65686. exports.ControlTwoTone = getIcon('control', twotone, function (primaryColor, secondaryColor) {
  65687. return getNode(newViewBox, [
  65688. primaryColor,
  65689. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  65690. ], [
  65691. secondaryColor,
  65692. 'M616 440a36 36 0 1 0 72 0 36 36 0 1 0-72 0zM340.4 601.5l1.5 2.4c0 .1.1.1.1.2l.9 1.2c.1.1.2.2.2.3 1 1.3 2 2.5 3.2 3.6l.2.2c.4.4.8.8 1.2 1.1.8.8 1.7 1.5 2.6 2.1h.1l1.2.9c.1.1.3.2.4.3 1.2.8 2.5 1.6 3.9 2.2.2.1.5.2.7.4.4.2.7.3 1.1.5.3.1.7.3 1 .4.5.2 1 .4 1.5.5.4.1.9.3 1.3.4l.9.3 1.4.3c.2.1.5.1.7.2.7.1 1.4.3 2.1.4.2 0 .4 0 .6.1.6.1 1.1.1 1.7.2.2 0 .4 0 .7.1.8 0 1.5.1 2.3.1s1.5 0 2.3-.1c.2 0 .4 0 .7-.1.6 0 1.2-.1 1.7-.2.2 0 .4 0 .6-.1.7-.1 1.4-.2 2.1-.4.2-.1.5-.1.7-.2l1.4-.3.9-.3c.4-.1.9-.3 1.3-.4.5-.2 1-.4 1.5-.5.3-.1.7-.3 1-.4.4-.2.7-.3 1.1-.5.2-.1.5-.2.7-.4 1.3-.7 2.6-1.4 3.9-2.2.1-.1.3-.2.4-.3l1.2-.9h.1c.9-.7 1.8-1.4 2.6-2.1.4-.4.8-.7 1.2-1.1l.2-.2c1.1-1.1 2.2-2.4 3.2-3.6.1-.1.2-.2.2-.3l.9-1.2c0-.1.1-.1.1-.2l1.5-2.4c.1-.2.2-.3.3-.5 2.7-5.1 4.3-10.9 4.3-17s-1.6-12-4.3-17c-.1-.2-.2-.4-.3-.5l-1.5-2.4c0-.1-.1-.1-.1-.2l-.9-1.2c-.1-.1-.2-.2-.2-.3-1-1.3-2-2.5-3.2-3.6l-.2-.2c-.4-.4-.8-.8-1.2-1.1-.8-.8-1.7-1.5-2.6-2.1h-.1l-1.2-.9c-.1-.1-.3-.2-.4-.3-1.2-.8-2.5-1.6-3.9-2.2-.2-.1-.5-.2-.7-.4-.4-.2-.7-.3-1.1-.5-.3-.1-.7-.3-1-.4-.5-.2-1-.4-1.5-.5-.4-.1-.9-.3-1.3-.4l-.9-.3-1.4-.3c-.2-.1-.5-.1-.7-.2-.7-.1-1.4-.3-2.1-.4-.2 0-.4 0-.6-.1-.6-.1-1.1-.1-1.7-.2-.2 0-.4 0-.7-.1-.8 0-1.5-.1-2.3-.1s-1.5 0-2.3.1c-.2 0-.4 0-.7.1-.6 0-1.2.1-1.7.2-.2 0-.4 0-.6.1-.7.1-1.4.2-2.1.4-.2.1-.5.1-.7.2l-1.4.3-.9.3c-.4.1-.9.3-1.3.4-.5.2-1 .4-1.5.5-.3.1-.7.3-1 .4-.4.2-.7.3-1.1.5-.2.1-.5.2-.7.4-1.3.7-2.6 1.4-3.9 2.2-.1.1-.3.2-.4.3l-1.2.9h-.1c-.9.7-1.8 1.4-2.6 2.1-.4.4-.8.7-1.2 1.1l-.2.2a54.8 54.8 0 0 0-3.2 3.6c-.1.1-.2.2-.2.3l-.9 1.2c0 .1-.1.1-.1.2l-1.5 2.4c-.1.2-.2.3-.3.5-2.7 5.1-4.3 10.9-4.3 17s1.6 12 4.3 17c.1.2.2.3.3.5z'
  65693. ], [
  65694. secondaryColor,
  65695. 'M184 840h656V184H184v656zm436.4-499.1c-.2 0-.3.1-.4.1v-77c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v77c-.2 0-.3-.1-.4-.1 42 13.4 72.4 52.7 72.4 99.1 0 46.4-30.4 85.7-72.4 99.1.2 0 .3-.1.4-.1v221c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V539c.2 0 .3.1.4.1-42-13.4-72.4-52.7-72.4-99.1 0-46.4 30.4-85.7 72.4-99.1zM340 485V264c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v221c41.7 13.6 72 52.8 72 99s-30.3 85.5-72 99v77c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-77c-41.7-13.6-72-52.8-72-99s30.3-85.5 72-99z'
  65696. ], [
  65697. primaryColor,
  65698. 'M340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c41.7-13.5 72-52.8 72-99s-30.3-85.4-72-99V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c-41.7 13.5-72 52.8-72 99s30.3 85.4 72 99zm.1-116c.1-.2.2-.3.3-.5l1.5-2.4c0-.1.1-.1.1-.2l.9-1.2c0-.1.1-.2.2-.3 1-1.2 2.1-2.5 3.2-3.6l.2-.2c.4-.4.8-.7 1.2-1.1.8-.7 1.7-1.4 2.6-2.1h.1l1.2-.9c.1-.1.3-.2.4-.3 1.3-.8 2.6-1.5 3.9-2.2.2-.2.5-.3.7-.4.4-.2.7-.3 1.1-.5.3-.1.7-.3 1-.4.5-.1 1-.3 1.5-.5.4-.1.9-.3 1.3-.4l.9-.3 1.4-.3c.2-.1.5-.1.7-.2.7-.2 1.4-.3 2.1-.4.2-.1.4-.1.6-.1.5-.1 1.1-.2 1.7-.2.3-.1.5-.1.7-.1.8-.1 1.5-.1 2.3-.1s1.5.1 2.3.1c.3.1.5.1.7.1.6.1 1.1.1 1.7.2.2.1.4.1.6.1.7.1 1.4.3 2.1.4.2.1.5.1.7.2l1.4.3.9.3c.4.1.9.3 1.3.4.5.1 1 .3 1.5.5.3.1.7.3 1 .4.4.2.7.3 1.1.5.2.2.5.3.7.4 1.4.6 2.7 1.4 3.9 2.2.1.1.3.2.4.3l1.2.9h.1c.9.6 1.8 1.3 2.6 2.1.4.3.8.7 1.2 1.1l.2.2c1.2 1.1 2.2 2.3 3.2 3.6 0 .1.1.2.2.3l.9 1.2c0 .1.1.1.1.2l1.5 2.4A36.03 36.03 0 0 1 408 584c0 6.1-1.6 11.9-4.3 17-.1.2-.2.3-.3.5l-1.5 2.4c0 .1-.1.1-.1.2l-.9 1.2c0 .1-.1.2-.2.3-1 1.2-2.1 2.5-3.2 3.6l-.2.2c-.4.4-.8.7-1.2 1.1-.8.7-1.7 1.4-2.6 2.1h-.1l-1.2.9c-.1.1-.3.2-.4.3-1.3.8-2.6 1.5-3.9 2.2-.2.2-.5.3-.7.4-.4.2-.7.3-1.1.5-.3.1-.7.3-1 .4-.5.1-1 .3-1.5.5-.4.1-.9.3-1.3.4l-.9.3-1.4.3c-.2.1-.5.1-.7.2-.7.2-1.4.3-2.1.4-.2.1-.4.1-.6.1-.5.1-1.1.2-1.7.2-.3.1-.5.1-.7.1-.8.1-1.5.1-2.3.1s-1.5-.1-2.3-.1c-.3-.1-.5-.1-.7-.1-.6-.1-1.1-.1-1.7-.2-.2-.1-.4-.1-.6-.1-.7-.1-1.4-.3-2.1-.4-.2-.1-.5-.1-.7-.2l-1.4-.3-.9-.3c-.4-.1-.9-.3-1.3-.4-.5-.1-1-.3-1.5-.5-.3-.1-.7-.3-1-.4-.4-.2-.7-.3-1.1-.5-.2-.2-.5-.3-.7-.4-1.4-.6-2.7-1.4-3.9-2.2-.1-.1-.3-.2-.4-.3l-1.2-.9h-.1c-.9-.6-1.8-1.3-2.6-2.1-.4-.3-.8-.7-1.2-1.1l-.2-.2c-1.2-1.1-2.2-2.3-3.2-3.6 0-.1-.1-.2-.2-.3l-.9-1.2c0-.1-.1-.1-.1-.2l-1.5-2.4c-.1-.2-.2-.3-.3-.5-2.7-5-4.3-10.9-4.3-17s1.6-11.9 4.3-17zm280.3-27.9c-.1 0-.2-.1-.4-.1v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-.1 0-.2.1-.4.1 42-13.4 72.4-52.7 72.4-99.1 0-46.4-30.4-85.7-72.4-99.1.1 0 .2.1.4.1v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c.1 0 .2-.1.4-.1-42 13.4-72.4 52.7-72.4 99.1 0 46.4 30.4 85.7 72.4 99.1zM652 404c19.9 0 36 16.1 36 36s-16.1 36-36 36-36-16.1-36-36 16.1-36 36-36z'
  65699. ]);
  65700. });
  65701. exports.CopyTwoTone = getIcon('copy', twotone, function (primaryColor, secondaryColor) {
  65702. return getNode(newViewBox, [secondaryColor, 'M232 706h142c22.1 0 40 17.9 40 40v142h250V264H232v442z'], [
  65703. primaryColor,
  65704. 'M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32z'
  65705. ], [
  65706. primaryColor,
  65707. 'M704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z'
  65708. ]);
  65709. });
  65710. exports.CreditCardTwoTone = getIcon('credit-card', twotone, function (primaryColor, secondaryColor) {
  65711. return getNode(newViewBox, [
  65712. secondaryColor,
  65713. 'M136 792h752V440H136v352zm507-144c0-4.4 3.6-8 8-8h165c4.4 0 8 3.6 8 8v72c0 4.4-3.6 8-8 8H651c-4.4 0-8-3.6-8-8v-72zM136 232h752v120H136z'
  65714. ], [
  65715. primaryColor,
  65716. 'M651 728h165c4.4 0 8-3.6 8-8v-72c0-4.4-3.6-8-8-8H651c-4.4 0-8 3.6-8 8v72c0 4.4 3.6 8 8 8z'
  65717. ], [
  65718. primaryColor,
  65719. 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V440h752v352zm0-440H136V232h752v120z'
  65720. ]);
  65721. });
  65722. exports.CrownTwoTone = getIcon('crown', twotone, function (primaryColor, secondaryColor) {
  65723. return getNode(newViewBox, [
  65724. secondaryColor,
  65725. 'M911.9 283.9v.5L835.5 865c-1 8-7.9 14-15.9 14H204.5c-8.1 0-14.9-6.1-16-14l-76.4-580.6v-.6 1.6L188.5 866c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.1-.5.1-1 0-1.5z'
  65726. ], [
  65727. secondaryColor,
  65728. 'M773.6 810.6l53.9-409.4-139.8 86.1L512 252.9 336.3 487.3l-139.8-86.1 53.8 409.4h523.3zm-374.2-189c0-62.1 50.5-112.6 112.6-112.6s112.6 50.5 112.6 112.6v1c0 62.1-50.5 112.6-112.6 112.6s-112.6-50.5-112.6-112.6v-1z'
  65729. ], [
  65730. primaryColor,
  65731. 'M512 734.2c61.9 0 112.3-50.2 112.6-112.1v-.5c0-62.1-50.5-112.6-112.6-112.6s-112.6 50.5-112.6 112.6v.5c.3 61.9 50.7 112.1 112.6 112.1zm0-160.9c26.6 0 48.2 21.6 48.2 48.3 0 26.6-21.6 48.3-48.2 48.3s-48.2-21.6-48.2-48.3c0-26.6 21.6-48.3 48.2-48.3z'
  65732. ], [
  65733. primaryColor,
  65734. 'M188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6v-.5c.3-6.4-6.7-10.8-12.3-7.4L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.5-3.4-12.6.9-12.2 7.3v.6L188.5 865zm147.8-377.7L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4H250.3l-53.8-409.4 139.8 86.1z'
  65735. ]);
  65736. });
  65737. exports.CustomerServiceTwoTone = getIcon('customer-service', twotone, function (primaryColor, secondaryColor) {
  65738. return getNode(newViewBox, [secondaryColor, 'M696 632h128v192H696zm-496 0h128v192H200z'], [
  65739. primaryColor,
  65740. 'M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z'
  65741. ]);
  65742. });
  65743. exports.DashboardTwoTone = getIcon('dashboard', twotone, function (primaryColor, secondaryColor) {
  65744. return getNode(newViewBox, [
  65745. secondaryColor,
  65746. 'M512 188c-99.3 0-192.7 38.7-263 109-70.3 70.2-109 163.6-109 263 0 105.6 44.5 205.5 122.6 276h498.8A371.12 371.12 0 0 0 884 560c0-99.3-38.7-192.7-109-263-70.2-70.3-163.6-109-263-109zm-30 44c0-4.4 3.6-8 8-8h44c4.4 0 8 3.6 8 8v80c0 4.4-3.6 8-8 8h-44c-4.4 0-8-3.6-8-8v-80zM270 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44zm90.7-204.4l-31.1 31.1a8.03 8.03 0 0 1-11.3 0l-56.6-56.6a8.03 8.03 0 0 1 0-11.3l31.1-31.1c3.1-3.1 8.2-3.1 11.3 0l56.6 56.6c3.1 3.1 3.1 8.2 0 11.3zm291.1 83.5l-84.5 84.5c5 18.7.2 39.4-14.5 54.1a55.95 55.95 0 0 1-79.2 0 55.95 55.95 0 0 1 0-79.2 55.87 55.87 0 0 1 54.1-14.5l84.5-84.5c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3c3.1 3.1 3.1 8.2 0 11.3zm43-52.4l-31.1-31.1a8.03 8.03 0 0 1 0-11.3l56.6-56.6c3.1-3.1 8.2-3.1 11.3 0l31.1 31.1c3.1 3.1 3.1 8.2 0 11.3l-56.6 56.6a8.03 8.03 0 0 1-11.3 0zM846 538v44c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8z'
  65747. ], [
  65748. primaryColor,
  65749. 'M623.5 421.5a8.03 8.03 0 0 0-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 0 0 0 79.2 55.95 55.95 0 0 0 79.2 0 55.87 55.87 0 0 0 14.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8z'
  65750. ], [
  65751. primaryColor,
  65752. 'M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 0 1 140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276z'
  65753. ], [
  65754. primaryColor,
  65755. 'M762.7 340.8l-31.1-31.1a8.03 8.03 0 0 0-11.3 0l-56.6 56.6a8.03 8.03 0 0 0 0 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zM750 538v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zM304.1 309.7a8.03 8.03 0 0 0-11.3 0l-31.1 31.1a8.03 8.03 0 0 0 0 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z'
  65756. ]);
  65757. });
  65758. exports.DeleteTwoTone = getIcon('delete', twotone, function (primaryColor, secondaryColor) {
  65759. return getNode(newViewBox, [secondaryColor, 'M292.7 840h438.6l24.2-512h-487z'], [
  65760. primaryColor,
  65761. 'M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z'
  65762. ]);
  65763. });
  65764. exports.DiffTwoTone = getIcon('diff', twotone, function (primaryColor, secondaryColor) {
  65765. return getNode(newViewBox, [
  65766. secondaryColor,
  65767. 'M232 264v624h432V413.8L514.2 264H232zm336 489c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-262v42c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7z'
  65768. ], [
  65769. primaryColor,
  65770. 'M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z'
  65771. ], [
  65772. primaryColor,
  65773. 'M553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888z'
  65774. ], [
  65775. primaryColor,
  65776. 'M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7z'
  65777. ]);
  65778. });
  65779. exports.DatabaseTwoTone = getIcon('database', twotone, function (primaryColor, secondaryColor) {
  65780. return getNode(newViewBox, [
  65781. secondaryColor,
  65782. 'M232 616h560V408H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 888h560V680H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 344h560V136H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
  65783. ], [
  65784. primaryColor,
  65785. 'M304 512a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 272a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0-544a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'
  65786. ], [
  65787. primaryColor,
  65788. 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V680h560v208zm0-272H232V408h560v208zm0-272H232V136h560v208z'
  65789. ]);
  65790. });
  65791. exports.DislikeTwoTone = getIcon('dislike', twotone, function (primaryColor, secondaryColor) {
  65792. return getNode(newViewBox, [
  65793. secondaryColor,
  65794. 'M273 100.1v428h.3l-.3-428zM820.4 525l-21.9-19 14-25.5a56.2 56.2 0 0 0 6.9-27.3c0-16.5-7.1-32.2-19.6-43l-21.9-19 13.9-25.4a56.2 56.2 0 0 0 6.9-27.3c0-16.5-7.1-32.2-19.6-43l-21.9-19 13.9-25.4a56.2 56.2 0 0 0 6.9-27.3c0-22.4-13.2-42.6-33.6-51.8H345v345.2c18.6 67.2 46.4 168 83.5 302.5a44.28 44.28 0 0 0 42.2 32.3c7.5.1 15-2.2 21.1-6.7 9.9-7.4 15.2-18.6 14.6-30.5l-9.6-198.4h314.4C829 605.5 840 587.1 840 568c0-16.5-7.1-32.2-19.6-43z'
  65795. ], [
  65796. primaryColor,
  65797. 'M112 132v364c0 17.7 14.3 32 32 32h65V100h-65c-17.7 0-32 14.3-32 32zm773.9 358.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 0 0-26.5-5.4H273l.3 428 85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zm-74.7 126.1H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 0 1-42.2-32.3c-37.1-134.4-64.9-235.2-83.5-302.5V172h399.4a56.85 56.85 0 0 1 33.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0 1 19.6 43c0 19.1-11 37.5-28.8 48.4z'
  65798. ]);
  65799. });
  65800. exports.DownCircleTwoTone = getIcon('down-circle', twotone, function (primaryColor, secondaryColor) {
  65801. return getNode(newViewBox, [
  65802. secondaryColor,
  65803. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm184.4 277.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 4.9 25.9 13.2L512 563.6l105.2-145.4c6-8.3 15.7-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.4 12.7z'
  65804. ], [
  65805. primaryColor,
  65806. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  65807. ], [
  65808. primaryColor,
  65809. 'M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z'
  65810. ]);
  65811. });
  65812. exports.DownSquareTwoTone = getIcon('down-square', twotone, function (primaryColor, secondaryColor) {
  65813. return getNode(newViewBox, [
  65814. primaryColor,
  65815. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  65816. ], [
  65817. secondaryColor,
  65818. 'M184 840h656V184H184v656zm150-440h46.9c10.3 0 19.9 4.9 25.9 13.2L512 558.6l105.2-145.4c6-8.3 15.7-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.4 12.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7z'
  65819. ], [
  65820. primaryColor,
  65821. 'M505.5 658.7c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 558.6 406.8 413.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246z'
  65822. ]);
  65823. });
  65824. exports.EnvironmentTwoTone = getIcon('environment', twotone, function (primaryColor, secondaryColor) {
  65825. return getNode(newViewBox, [
  65826. secondaryColor,
  65827. 'M724.4 224.9C667.7 169.5 592.3 139 512 139s-155.7 30.5-212.4 85.8C243.1 280 212 353.2 212 431.1c0 241.3 234.1 407.2 300 449.1 65.9-41.9 300-207.8 300-449.1 0-77.9-31.1-151.1-87.6-206.2zM512 615c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z'
  65828. ], [
  65829. primaryColor,
  65830. 'M512 263c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8S624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z'
  65831. ], [
  65832. primaryColor,
  65833. 'M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1z'
  65834. ]);
  65835. });
  65836. exports.EditTwoTone = getIcon('edit', twotone, function (primaryColor, secondaryColor) {
  65837. return getNode(newViewBox, [secondaryColor, 'M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z'], [
  65838. primaryColor,
  65839. 'M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89z'
  65840. ]);
  65841. });
  65842. exports.ExclamationCircleTwoTone = getIcon('exclamation-circle', twotone, function (primaryColor, secondaryColor) {
  65843. return getNode(newViewBox, [
  65844. primaryColor,
  65845. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  65846. ], [
  65847. secondaryColor,
  65848. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-32 156c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
  65849. ], [
  65850. primaryColor,
  65851. 'M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8zm-24 112a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
  65852. ]);
  65853. });
  65854. exports.ExperimentTwoTone = getIcon('experiment', twotone, function (primaryColor, secondaryColor) {
  65855. return getNode(newViewBox, [
  65856. secondaryColor,
  65857. 'M551.9 513c19.6 0 35.9-14.2 39.3-32.8A40.02 40.02 0 0 1 552 512a40 40 0 0 1-40-39.4v.5c0 22 17.9 39.9 39.9 39.9zM752 687.8l-.3-.3c-29-17.5-62.3-26.8-97-26.8-44.9 0-87.2 15.7-121 43.8a256.27 256.27 0 0 1-164.9 59.9c-41.2 0-81-9.8-116.7-28L210.5 844h603l-59.9-155.2-1.6-1z'
  65858. ], [
  65859. primaryColor,
  65860. 'M879 824.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 0 1-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.6-107.6.1-.2c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1l.6 1.6L813.5 844h-603z'
  65861. ], [
  65862. primaryColor,
  65863. 'M552 512c19.3 0 35.4-13.6 39.2-31.8.6-2.7.8-5.4.8-8.2 0-22.1-17.9-40-40-40s-40 17.9-40 40v.6a40 40 0 0 0 40 39.4z'
  65864. ]);
  65865. });
  65866. exports.EyeInvisibleTwoTone = getIcon('eye-invisible', twotone, function (primaryColor, secondaryColor) {
  65867. return getNode(newViewBox, [
  65868. secondaryColor,
  65869. 'M254.89 758.85l125.57-125.57a176 176 0 0 1 248.82-248.82L757 256.72Q651.69 186.07 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q69.27 145.91 173.09 221.05zM942.2 486.2Q889.46 375.11 816.7 305L672.48 449.27a176.09 176.09 0 0 1-227.22 227.21L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5z'
  65870. ], [
  65871. primaryColor,
  65872. 'M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zM878.63 165.56L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z'
  65873. ], [
  65874. primaryColor,
  65875. 'M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z'
  65876. ]);
  65877. });
  65878. exports.EyeTwoTone = getIcon('eye', twotone, function (primaryColor, secondaryColor) {
  65879. return getNode(newViewBox, [
  65880. secondaryColor,
  65881. 'M81.8 537.8a60.3 60.3 0 0 1 0-51.5C176.6 286.5 319.8 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c-192.1 0-335.4-100.5-430.2-300.2z'
  65882. ], [
  65883. secondaryColor,
  65884. 'M512 258c-161.3 0-279.4 81.8-362.7 254C232.6 684.2 350.7 766 512 766c161.4 0 279.5-81.8 362.7-254C791.4 339.8 673.3 258 512 258zm-4 430c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z'
  65885. ], [
  65886. primaryColor,
  65887. 'M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258s279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766z'
  65888. ], [
  65889. primaryColor,
  65890. 'M508 336c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z'
  65891. ]);
  65892. });
  65893. exports.FileAddTwoTone = getIcon('file-add', twotone, function (primaryColor, secondaryColor) {
  65894. return getNode(newViewBox, [
  65895. secondaryColor,
  65896. 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm126 236v48c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V644H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V472c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8z'
  65897. ], [
  65898. primaryColor,
  65899. 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
  65900. ], [
  65901. primaryColor,
  65902. 'M544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z'
  65903. ]);
  65904. });
  65905. exports.FileExclamationTwoTone = getIcon('file-exclamation', twotone, function (primaryColor, secondaryColor) {
  65906. return getNode(newViewBox, [
  65907. secondaryColor,
  65908. 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-54 96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V448zm32 336c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z'
  65909. ], [
  65910. primaryColor,
  65911. 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
  65912. ], [
  65913. primaryColor,
  65914. 'M488 640h48c4.4 0 8-3.6 8-8V448c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm-16 104a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'
  65915. ]);
  65916. });
  65917. exports.FileImageTwoTone = getIcon('file-image', twotone, function (primaryColor, secondaryColor) {
  65918. return getNode(newViewBox, [
  65919. secondaryColor,
  65920. 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-134 50c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328.1c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0 1 12.6 0l41.1 52.4 77.8-99.2a8.1 8.1 0 0 1 12.7 0l136.5 174c4.1 5.2.4 12.9-6.3 12.9z'
  65921. ], [
  65922. primaryColor,
  65923. 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
  65924. ], [
  65925. primaryColor,
  65926. 'M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 0 0-12.6 0l-99.8 127.2a7.98 7.98 0 0 0 6.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 0 0-12.7 0zM360 442a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'
  65927. ]);
  65928. });
  65929. exports.FileExcelTwoTone = getIcon('file-excel', twotone, function (primaryColor, secondaryColor) {
  65930. return getNode(newViewBox, [
  65931. secondaryColor,
  65932. 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm51.6 120h35.7a12.04 12.04 0 0 1 10.1 18.5L546.1 623l84 130.4c3.6 5.6 2 13-3.6 16.6-2 1.2-4.2 1.9-6.5 1.9h-37.5c-4.1 0-8-2.1-10.2-5.7L510 664.8l-62.7 101.5c-2.2 3.5-6 5.7-10.2 5.7h-34.5a12.04 12.04 0 0 1-10.2-18.4l83.4-132.8-82.3-130.4c-3.6-5.7-1.9-13.1 3.7-16.6 1.9-1.3 4.1-1.9 6.4-1.9H442c4.2 0 8.1 2.2 10.3 5.8l61.8 102.4 61.2-102.3c2.2-3.6 6.1-5.8 10.3-5.8z'
  65933. ], [
  65934. primaryColor,
  65935. 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
  65936. ], [
  65937. primaryColor,
  65938. 'M514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0 0 10.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 0 0-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z'
  65939. ]);
  65940. });
  65941. exports.FileMarkdownTwoTone = getIcon('file-markdown', twotone, function (primaryColor, secondaryColor) {
  65942. return getNode(newViewBox, [
  65943. secondaryColor,
  65944. 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm72.3 122H641c6.6 0 12 5.4 12 12v272c0 6.6-5.4 12-12 12h-27.2c-6.6 0-12-5.4-12-12V581.7L535 732.3c-2 4.3-6.3 7.1-11 7.1h-24.1a12 12 0 0 1-11-7.1l-66.8-150.2V758c0 6.6-5.4 12-12 12H383c-6.6 0-12-5.4-12-12V486c0-6.6 5.4-12 12-12h35c4.8 0 9.1 2.8 11 7.2l83.2 191 83.1-191c1.9-4.4 6.2-7.2 11-7.2z'
  65945. ], [
  65946. primaryColor,
  65947. 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
  65948. ], [
  65949. primaryColor,
  65950. 'M429 481.2c-1.9-4.4-6.2-7.2-11-7.2h-35c-6.6 0-12 5.4-12 12v272c0 6.6 5.4 12 12 12h27.1c6.6 0 12-5.4 12-12V582.1l66.8 150.2a12 12 0 0 0 11 7.1H524c4.7 0 9-2.8 11-7.1l66.8-150.6V758c0 6.6 5.4 12 12 12H641c6.6 0 12-5.4 12-12V486c0-6.6-5.4-12-12-12h-34.7c-4.8 0-9.1 2.8-11 7.2l-83.1 191-83.2-191z'
  65951. ]);
  65952. });
  65953. exports.FilePdfTwoTone = getIcon('file-pdf', twotone, function (primaryColor, secondaryColor) {
  65954. return getNode(newViewBox, [
  65955. secondaryColor,
  65956. 'M509.2 490.8c-.7-1.3-1.4-1.9-2.2-2-2.9 3.3-2.2 31.5 2.7 51.4 4-13.6 4.7-40.5-.5-49.4zm-1.6 120.5c-7.7 20-18.8 47.3-32.1 71.4 4-1.6 8.1-3.3 12.3-5 17.6-7.2 37.3-15.3 58.9-20.2-14.9-11.8-28.4-27.7-39.1-46.2z'
  65957. ], [
  65958. secondaryColor,
  65959. 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm55 287.6c16.1-1.9 30.6-2.8 44.3-2.3 12.8.4 23.6 2 32 5.1.2.1.3.1.5.2.4.2.8.3 1.2.5.5.2 1.1.4 1.6.7.1.1.3.1.4.2 4.1 1.8 7.5 4 10.1 6.6 9.1 9.1 11.8 26.1 6.2 39.6-3.2 7.7-11.7 20.5-33.3 20.5-21.8 0-53.9-9.7-82.1-24.8-25.5 4.3-53.7 13.9-80.9 23.1-5.8 2-11.8 4-17.6 5.9-38 65.2-66.5 79.4-84.1 79.4-4.2 0-7.8-.9-10.8-2-6.9-2.6-12.8-8-16.5-15-.9-1.7-1.6-3.4-2.2-5.2-1.6-4.8-2.1-9.6-1.3-13.6l.6-2.7c.1-.2.1-.4.2-.6.2-.7.4-1.4.7-2.1 0-.1.1-.2.1-.3 4.1-11.9 13.6-23.4 27.7-34.6 12.3-9.8 27.1-18.7 45.9-28.4 15.9-28 37.6-75.1 51.2-107.4-10.8-41.8-16.7-74.6-10.1-98.6.9-3.3 2.5-6.4 4.6-9.1.2-.2.3-.4.5-.6.1-.1.1-.2.2-.2 6.3-7.5 16.9-11.9 28.1-11.5 16.6.7 29.7 11.5 33 30.1 1.7 8 2.2 16.5 1.9 25.7v.7c0 .5 0 1-.1 1.5-.7 13.3-3 26.6-7.3 44.7-.4 1.6-.8 3.2-1.2 5.2l-1 4.1-.1.3c.1.2.1.3.2.5l1.8 4.5c.1.3.3.7.4 1 .7 1.6 1.4 3.3 2.1 4.8v.1c8.7 18.8 19.7 33.4 33.9 45.1 4.3 3.5 8.9 6.7 13.9 9.8 1.8-.5 3.5-.7 5.3-.9z'
  65960. ], [
  65961. secondaryColor,
  65962. 'M391.5 761c5.7-4.4 16.2-14.5 30.1-34.7-10.3 9.4-23.4 22.4-30.1 34.7zm270.9-83l.2-.3h.2c.6-.4.5-.7.4-.9-.1-.1-4.5-9.3-45.1-7.4 35.3 13.9 43.5 9.1 44.3 8.6z'
  65963. ], [
  65964. primaryColor,
  65965. 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
  65966. ], [
  65967. primaryColor,
  65968. 'M535.9 585.3c-.8-1.7-1.5-3.3-2.2-4.9-.1-.3-.3-.7-.4-1l-1.8-4.5c-.1-.2-.1-.3-.2-.5l.1-.3.2-1.1c4-16.3 8.6-35.3 9.4-54.4v-.7c.3-8.6-.2-17.2-2-25.6-3.8-21.3-19.5-29.6-32.9-30.2-11.3-.5-21.8 4-28.1 11.4-.1.1-.1.2-.2.2-.2.2-.4.4-.5.6-2.1 2.7-3.7 5.8-4.6 9.1-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.4-51.2 107.4v.1c-27.7 14.3-64.1 35.8-73.6 62.9 0 .1-.1.2-.1.3-.2.7-.5 1.4-.7 2.1-.1.2-.1.4-.2.6-.2.9-.5 1.8-.6 2.7-.9 4-.4 8.8 1.3 13.6.6 1.8 1.3 3.5 2.2 5.2 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-2.6-2.6-6-4.8-10.1-6.6-.1-.1-.3-.1-.4-.2-.5-.2-1.1-.4-1.6-.7-.4-.2-.8-.3-1.2-.5-.2-.1-.3-.1-.5-.2-16.2-5.8-41.7-6.7-76.3-2.8l-5.3.6c-5-3-9.6-6.3-13.9-9.8-14.2-11.3-25.1-25.8-33.8-44.7zM391.5 761c6.7-12.3 19.8-25.3 30.1-34.7-13.9 20.2-24.4 30.3-30.1 34.7zM507 488.8c.8.1 1.5.7 2.2 2 5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4zm-19.2 188.9c-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4 10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2zm175.4-.9c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4z'
  65969. ]);
  65970. });
  65971. exports.FilePptTwoTone = getIcon('file-ppt', twotone, function (primaryColor, secondaryColor) {
  65972. return getNode(newViewBox, [
  65973. secondaryColor,
  65974. 'M464.5 516.2v108.4h38.9c44.7 0 71.2-10.9 71.2-54.3 0-34.4-20.1-54.1-53.9-54.1h-56.2z'
  65975. ], [
  65976. secondaryColor,
  65977. 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm90 218.4c0 55.2-36.8 94.1-96.2 94.1h-63.3V760c0 4.4-3.6 8-8 8H424c-4.4 0-8-3.6-8-8V484c0-4.4 3.6-8 8-8v.1h104c59.7 0 96 39.8 96 94.3z'
  65978. ], [
  65979. primaryColor,
  65980. 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
  65981. ], [
  65982. primaryColor,
  65983. 'M424 476.1c-4.4-.1-8 3.5-8 7.9v276c0 4.4 3.6 8 8 8h32.5c4.4 0 8-3.6 8-8v-95.5h63.3c59.4 0 96.2-38.9 96.2-94.1 0-54.5-36.3-94.3-96-94.3H424zm150.6 94.2c0 43.4-26.5 54.3-71.2 54.3h-38.9V516.2h56.2c33.8 0 53.9 19.7 53.9 54.1z'
  65984. ]);
  65985. });
  65986. exports.FileTextTwoTone = getIcon('file-text', twotone, function (primaryColor, secondaryColor) {
  65987. return getNode(newViewBox, [
  65988. secondaryColor,
  65989. 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-22 322c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm200-184v48c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8z'
  65990. ], [
  65991. primaryColor,
  65992. 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
  65993. ], [
  65994. primaryColor,
  65995. 'M312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8zm192 128H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
  65996. ]);
  65997. });
  65998. exports.FileUnknownTwoTone = getIcon('file-unknown', twotone, function (primaryColor, secondaryColor) {
  65999. return getNode(newViewBox, [
  66000. secondaryColor,
  66001. 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-22 424c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm110-228.4c.7 44.9-29.7 84.5-74.3 98.9-5.7 1.8-9.7 7.3-9.7 13.3V672c0 5.5-4.5 10-10 10h-32c-5.5 0-10-4.5-10-10v-32c.2-19.8 15.4-37.3 34.7-40.1C549 596.2 570 574.3 570 549c0-28.1-25.8-51.5-58-51.5s-58 23.4-58 51.6c0 5.2-4.4 9.4-9.8 9.4h-32.4c-5.4 0-9.8-4.1-9.8-9.5 0-57.4 50.1-103.7 111.5-103 59.3.8 107.7 46.1 108.5 101.6z'
  66002. ], [
  66003. primaryColor,
  66004. 'M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
  66005. ], [
  66006. primaryColor,
  66007. 'M480 744a32 32 0 1 0 64 0 32 32 0 1 0-64 0zm-78-195c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103z'
  66008. ]);
  66009. });
  66010. exports.FileZipTwoTone = getIcon('file-zip', twotone, function (primaryColor, secondaryColor) {
  66011. return getNode(newViewBox, [secondaryColor, 'M344 630h32v2h-32z'], [
  66012. secondaryColor,
  66013. 'M534 352V136H360v64h64v64h-64v64h64v64h-64v64h64v64h-64v62h64v160H296V520h64v-64h-64v-64h64v-64h-64v-64h64v-64h-64v-64h-64v752h560V394H576a42 42 0 0 1-42-42z'
  66014. ], [
  66015. primaryColor,
  66016. 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h64v64h64v-64h174v216a42 42 0 0 0 42 42h216v494z'
  66017. ], [
  66018. primaryColor,
  66019. 'M296 392h64v64h-64zm0-128h64v64h-64zm0 318v160h128V582h-64v-62h-64v62zm48 50v-2h32v64h-32v-62zm16-432h64v64h-64zm0 256h64v64h-64zm0-128h64v64h-64z'
  66020. ]);
  66021. });
  66022. exports.FileWordTwoTone = getIcon('file-word', twotone, function (primaryColor, secondaryColor) {
  66023. return getNode(newViewBox, [
  66024. secondaryColor,
  66025. 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0 1 11.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0 1 11.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z'
  66026. ], [
  66027. primaryColor,
  66028. 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
  66029. ], [
  66030. primaryColor,
  66031. 'M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 0 0-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 0 0-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z'
  66032. ]);
  66033. });
  66034. exports.FileTwoTone = getIcon('file', twotone, function (primaryColor, secondaryColor) {
  66035. return getNode(newViewBox, [secondaryColor, 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42z'], [
  66036. primaryColor,
  66037. 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
  66038. ]);
  66039. });
  66040. exports.FilterTwoTone = getIcon('filter', twotone, function (primaryColor, secondaryColor) {
  66041. return getNode(newViewBox, [
  66042. secondaryColor,
  66043. 'M420.6 798h182.9V642H420.6zM411 561.4l9.5 16.6h183l9.5-16.6L811.3 226H212.7z'
  66044. ], [
  66045. primaryColor,
  66046. 'M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.5 798H420.6V642h182.9v156zm9.5-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z'
  66047. ]);
  66048. });
  66049. exports.FireTwoTone = getIcon('fire', twotone, function (primaryColor, secondaryColor) {
  66050. return getNode(newViewBox, [
  66051. secondaryColor,
  66052. 'M737 438.6c-9.6 15.5-21.1 30.7-34.4 45.6a73.1 73.1 0 0 1-51 24.4 73.36 73.36 0 0 1-53.4-18.8 74.01 74.01 0 0 1-24.4-59.8c3-47.4-12.4-103.1-45.8-165.7-16.9-31.4-37.1-58.2-61.2-80.4a240 240 0 0 1-12.1 46.5 354.26 354.26 0 0 1-58.2 101 349.6 349.6 0 0 1-58.6 56.8c-34 26.1-62 60-80.8 97.9a275.96 275.96 0 0 0-29.1 124c0 74.9 29.5 145.3 83 198.4 53.7 53.2 125 82.4 201 82.4s147.3-29.2 201-82.4c53.5-53 83-123.5 83-198.4 0-39.2-8.1-77.3-24-113.1-9.3-21-21-40.5-35-58.4z'
  66053. ], [
  66054. primaryColor,
  66055. 'M834.1 469.2A347.49 347.49 0 0 0 751.2 354l-29.1-26.7a8.09 8.09 0 0 0-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 0 1-47.5 46.1 352.6 352.6 0 0 0-100.3 121.5A347.75 347.75 0 0 0 160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0 0 75.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 0 0 760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0 0 27.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0 0 58.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0 0 12.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0 0 24.4 59.8 73.36 73.36 0 0 0 53.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z'
  66056. ]);
  66057. });
  66058. exports.FolderAddTwoTone = getIcon('folder-add', twotone, function (primaryColor, secondaryColor) {
  66059. return getNode(newViewBox, [
  66060. secondaryColor,
  66061. 'M372.5 256H184v512h656V370.4H492.1L372.5 256zM540 443.1V528h84.5c4.1 0 7.5 3.1 7.5 7v42c0 3.8-3.4 7-7.5 7H540v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V584h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H484v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1z'
  66062. ], [
  66063. primaryColor,
  66064. 'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z'
  66065. ], [
  66066. primaryColor,
  66067. 'M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1z'
  66068. ]);
  66069. });
  66070. exports.FlagTwoTone = getIcon('flag', twotone, function (primaryColor, secondaryColor) {
  66071. return getNode(newViewBox, [secondaryColor, 'M184 232h368v336H184z'], [secondaryColor, 'M624 632c0 4.4-3.6 8-8 8H504v73h336V377H624v255z'], [
  66072. primaryColor,
  66073. 'M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z'
  66074. ]);
  66075. });
  66076. exports.FolderTwoTone = getIcon('folder', twotone, function (primaryColor, secondaryColor) {
  66077. return getNode(newViewBox, [
  66078. primaryColor,
  66079. 'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z'
  66080. ], [secondaryColor, 'M372.5 256H184v512h656V370.4H492.1z']);
  66081. });
  66082. exports.FolderOpenTwoTone = getIcon('folder-open', twotone, function (primaryColor, secondaryColor) {
  66083. return getNode(newViewBox, [secondaryColor, 'M159 768h612.3l103.4-256H262.3z'], [
  66084. primaryColor,
  66085. 'M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 0 0-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z'
  66086. ]);
  66087. });
  66088. exports.FrownTwoTone = getIcon('frown', twotone, function (primaryColor, secondaryColor) {
  66089. return getNode(newViewBox, [
  66090. primaryColor,
  66091. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66092. ], [
  66093. secondaryColor,
  66094. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm376 272h-48.1c-4.2 0-7.8-3.2-8.1-7.4C604 636.1 562.5 597 512 597s-92.1 39.1-95.8 88.6c-.3 4.2-3.9 7.4-8.1 7.4H360a8 8 0 0 1-8-8.4c4.4-84.3 74.5-151.6 160-151.6s155.6 67.3 160 151.6a8 8 0 0 1-8 8.4zm24-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
  66095. ], [
  66096. primaryColor,
  66097. 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm224 112c-85.5 0-155.6 67.3-160 151.6a8 8 0 0 0 8 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4 3.7-49.5 45.3-88.6 95.8-88.6s92 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 0 0 8-8.4C667.6 600.3 597.5 533 512 533zm128-112a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
  66098. ]);
  66099. });
  66100. exports.FundTwoTone = getIcon('fund', twotone, function (primaryColor, secondaryColor) {
  66101. return getNode(newViewBox, [
  66102. primaryColor,
  66103. 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560z'
  66104. ], [
  66105. secondaryColor,
  66106. 'M136 792h752V232H136v560zm56.4-130.5l214.9-215c3.1-3.1 8.2-3.1 11.3 0L533 561l254.5-254.6c3.1-3.1 8.2-3.1 11.3 0l36.8 36.8c3.1 3.1 3.1 8.2 0 11.3l-297 297.2a8.03 8.03 0 0 1-11.3 0L412.9 537.2 240.4 709.7a8.03 8.03 0 0 1-11.3 0l-36.7-36.9a8.03 8.03 0 0 1 0-11.3z'
  66107. ], [
  66108. primaryColor,
  66109. 'M229.1 709.7c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 0 0-11.3 0L533 561 418.6 446.5a8.03 8.03 0 0 0-11.3 0l-214.9 215a8.03 8.03 0 0 0 0 11.3l36.7 36.9z'
  66110. ]);
  66111. });
  66112. exports.FunnelPlotTwoTone = getIcon('funnel-plot', twotone, function (primaryColor, secondaryColor) {
  66113. return getNode(newViewBox, [
  66114. secondaryColor,
  66115. 'M420.6 798h182.9V650H420.6zM297.7 374h428.6l85-148H212.7zm113.2 197.4l8.4 14.6h185.3l8.4-14.6L689.6 438H334.4z'
  66116. ], [
  66117. primaryColor,
  66118. 'M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 607.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V607.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.5 798H420.6V650h182.9v148zm9.5-226.6l-8.4 14.6H419.3l-8.4-14.6L334.4 438h355.2L613 571.4zM726.3 374H297.7l-85-148h598.6l-85 148z'
  66119. ]);
  66120. });
  66121. exports.GiftTwoTone = getIcon('gift', twotone, function (primaryColor, secondaryColor) {
  66122. return getNode(newViewBox, [
  66123. secondaryColor,
  66124. 'M546 378h298v104H546zM228 550h250v308H228zm-48-172h298v104H180zm366 172h250v308H546z'
  66125. ], [
  66126. primaryColor,
  66127. 'M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zM478 858H228V550h250v308zm0-376H180V378h298v104zm0-176h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70 70 31.4 70 70v70zm68-70c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm250 622H546V550h250v308zm48-376H546V378h298v104z'
  66128. ]);
  66129. });
  66130. exports.HddTwoTone = getIcon('hdd', twotone, function (primaryColor, secondaryColor) {
  66131. return getNode(newViewBox, [
  66132. secondaryColor,
  66133. 'M232 888h560V680H232v208zm448-140c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 616h560V408H232v208zm72-128c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H312c-4.4 0-8-3.6-8-8v-48zm-72-144h560V136H232v208zm72-128c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H312c-4.4 0-8-3.6-8-8v-48z'
  66134. ], [
  66135. primaryColor,
  66136. 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V680h560v208zm0-272H232V408h560v208zm0-272H232V136h560v208z'
  66137. ], [
  66138. primaryColor,
  66139. 'M312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-272h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 516a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'
  66140. ]);
  66141. });
  66142. exports.HeartTwoTone = getIcon('heart', twotone, function (primaryColor, secondaryColor) {
  66143. return getNode(newViewBox, [
  66144. primaryColor,
  66145. 'M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z'
  66146. ], [
  66147. secondaryColor,
  66148. 'M679.7 201c-73.1 0-136.5 40.8-167.7 100.4C480.8 241.8 417.4 201 344.3 201c-104 0-188.3 82.6-188.3 184.5 0 201.2 356 429.3 356 429.3s356-228.1 356-429.3C868 283.6 783.7 201 679.7 201z'
  66149. ]);
  66150. });
  66151. exports.HighlightTwoTone = getIcon('highlight', twotone, function (primaryColor, secondaryColor) {
  66152. return getNode(newViewBox, [
  66153. secondaryColor,
  66154. 'M229.6 796.3h160.2l54.3-54.1-80.1-78.9zm220.7-397.1l262.8 258.9 147.3-145-262.8-259zm-77.1 166.1l171.4 168.9 68.6-67.6-171.4-168.9z'
  66155. ], [
  66156. primaryColor,
  66157. 'M957.6 507.5L603.2 158.3a7.9 7.9 0 0 0-11.2 0L353.3 393.5a8.03 8.03 0 0 0-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 0 0-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8v55.2c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6L539 830a7.9 7.9 0 0 0 11.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0 0 11.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.3H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.3l68.6-67.6 171.4 168.9-68.6 67.6zm168.5-76.1L450.3 399.2l147.3-145.1 262.8 259-147.3 145z'
  66158. ]);
  66159. });
  66160. exports.HomeTwoTone = getIcon('home', twotone, function (primaryColor, secondaryColor) {
  66161. return getNode(newViewBox, [
  66162. secondaryColor,
  66163. 'M512.1 172.6l-370 369.7h96V868H392V640c0-22.1 17.9-40 40-40h160c22.1 0 40 17.9 40 40v228h153.9V542.3H882L535.2 195.7l-23.1-23.1zm434.5 422.9c-6 6-13.1 10.8-20.8 13.9 7.7-3.2 14.8-7.9 20.8-13.9zm-887-34.7c5 30.3 31.4 53.5 63.1 53.5h.9c-31.9 0-58.9-23-64-53.5zm-.9-10.5v-1.9 1.9zm.1-2.6c.1-3.1.5-6.1 1-9.1-.6 2.9-.9 6-1 9.1z'
  66164. ], [
  66165. primaryColor,
  66166. 'M951 510c0-.1-.1-.1-.1-.2l-1.8-2.1c-.1-.1-.2-.3-.4-.4-.7-.8-1.5-1.6-2.2-2.4L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.6 63.6 0 0 0-16 26.6l-.6 2.1-.3 1.1-.3 1.2c-.2.7-.3 1.4-.4 2.1 0 .1 0 .3-.1.4-.6 3-.9 6-1 9.1v3.3c0 .5 0 1 .1 1.5 0 .5 0 .9.1 1.4 0 .5.1 1 .1 1.5 0 .6.1 1.2.2 1.8 0 .3.1.6.1.9l.3 2.5v.1c5.1 30.5 32.2 53.5 64 53.5h42.5V940h691.7V614.3h43.4c8.6 0 16.9-1.7 24.5-4.9s14.7-7.9 20.8-13.9a63.6 63.6 0 0 0 18.7-45.3c0-14.7-5-28.8-14.3-40.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z'
  66167. ]);
  66168. });
  66169. exports.HourglassTwoTone = getIcon('hourglass', twotone, function (primaryColor, secondaryColor) {
  66170. return getNode(newViewBox, [
  66171. secondaryColor,
  66172. 'M512 548c-42.2 0-81.9 16.4-111.7 46.3A156.63 156.63 0 0 0 354 706v134h316V706c0-42.2-16.4-81.9-46.3-111.7A156.63 156.63 0 0 0 512 548zM354 318c0 42.2 16.4 81.9 46.3 111.7C430.1 459.6 469.8 476 512 476s81.9-16.4 111.7-46.3C653.6 399.9 670 360.2 670 318V184H354v134z'
  66173. ], [
  66174. primaryColor,
  66175. 'M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194zm-72 388v134H354V706c0-42.2 16.4-81.9 46.3-111.7C430.1 564.4 469.8 548 512 548s81.9 16.4 111.7 46.3C653.6 624.1 670 663.8 670 706zm0-388c0 42.2-16.4 81.9-46.3 111.7C593.9 459.6 554.2 476 512 476s-81.9-16.4-111.7-46.3A156.63 156.63 0 0 1 354 318V184h316v134z'
  66176. ]);
  66177. });
  66178. exports.Html5TwoTone = getIcon('html5', twotone, function (primaryColor, secondaryColor) {
  66179. return getNode(newViewBox, [
  66180. primaryColor,
  66181. 'M145 96l66 746.6L511.8 928l299.6-85.4L878.7 96H145zm610.9 700.6l-244.1 69.6-245.2-69.6-56.7-641.2h603.8l-57.8 641.2z'
  66182. ], [
  66183. secondaryColor,
  66184. 'M209.9 155.4l56.7 641.2 245.2 69.6 244.1-69.6 57.8-641.2H209.9zm530.4 117.9l-4.8 47.2-1.7 19.5H381.7l8.2 94.2H511v-.2h214.7l-3.2 24.3-21.2 242.2-1.7 16.3-187.7 51.7v.4h-1.7l-188.6-52-11.3-144.7h91l6.5 73.2 102.4 27.7h.8v-.2l102.4-27.7 11.4-118.5H511.9v.1H305.4l-22.7-253.5L281 249h461l-1.7 24.3z'
  66185. ], [
  66186. primaryColor,
  66187. 'M281 249l1.7 24.3 22.7 253.5h206.5v-.1h112.9l-11.4 118.5L511 672.9v.2h-.8l-102.4-27.7-6.5-73.2h-91l11.3 144.7 188.6 52h1.7v-.4l187.7-51.7 1.7-16.3 21.2-242.2 3.2-24.3H511v.2H389.9l-8.2-94.2h352.1l1.7-19.5 4.8-47.2L742 249H511z'
  66188. ]);
  66189. });
  66190. exports.IdcardTwoTone = getIcon('idcard', twotone, function (primaryColor, secondaryColor) {
  66191. return getNode(newViewBox, [
  66192. primaryColor,
  66193. 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560z'
  66194. ], [
  66195. secondaryColor,
  66196. 'M136 792h752V232H136v560zm472-372c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm0 144c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48c0 4.4-3.2 8-7.1 8H615.1c-3.9 0-7.1-3.6-7.1-8v-48zM216.2 664.6c2.8-53.3 31.9-99.6 74.6-126.1-18.1-20-29.1-46.4-29.1-75.5 0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.6-29.1 75.5 42.6 26.4 71.8 72.8 74.6 126.1a8 8 0 0 1-8 8.4h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224c-4.6 0-8.2-3.8-7.8-8.4z'
  66197. ], [
  66198. secondaryColor,
  66199. 'M321.3 463a51.7 52 0 1 0 103.4 0 51.7 52 0 1 0-103.4 0z'
  66200. ], [
  66201. primaryColor,
  66202. 'M610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z'
  66203. ]);
  66204. });
  66205. exports.InfoCircleTwoTone = getIcon('info-circle', twotone, function (primaryColor, secondaryColor) {
  66206. return getNode(newViewBox, [
  66207. primaryColor,
  66208. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66209. ], [
  66210. secondaryColor,
  66211. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm32 588c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
  66212. ], [
  66213. primaryColor,
  66214. 'M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z'
  66215. ]);
  66216. });
  66217. exports.InsuranceTwoTone = getIcon('insurance', twotone, function (primaryColor, secondaryColor) {
  66218. return getNode(newViewBox, [
  66219. primaryColor,
  66220. 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'
  66221. ], [secondaryColor, 'M521.9 358.8h97.9v41.6h-97.9z'], [
  66222. secondaryColor,
  66223. 'M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM413.3 656h-.2c0 4.4-3.6 8-8 8h-37.3c-4.4 0-8-3.6-8-8V471.4c-7.7 9.2-15.4 17.9-23.1 26a6.04 6.04 0 0 1-10.2-2.4l-13.2-43.5c-.6-2-.2-4.1 1.2-5.6 37-43.4 64.7-95.1 82.2-153.6 1.1-3.5 5-5.3 8.4-3.7l38.6 18.3c2.7 1.3 4.1 4.4 3.2 7.2a429.2 429.2 0 0 1-33.6 79V656zm257.9-340v127.2c0 4.4-3.6 8-8 8h-66.7v18.6h98.8c4.4 0 8 3.6 8 8v35.6c0 4.4-3.6 8-8 8h-59c18.1 29.1 41.8 54.3 72.3 76.9 2.6 2.1 3.2 5.9 1.2 8.5l-26.3 35.3a5.92 5.92 0 0 1-8.9.7c-30.6-29.3-56.8-65.2-78.1-106.9V656c0 4.4-3.6 8-8 8h-36.2c-4.4 0-8-3.6-8-8V536c-22 44.7-49 80.8-80.6 107.6a6.38 6.38 0 0 1-4.8 1.4c-1.7-.3-3.2-1.3-4.1-2.8L432 605.7a6 6 0 0 1 1.6-8.1c28.6-20.3 51.9-45.2 71-76h-55.1c-4.4 0-8-3.6-8-8V478c0-4.4 3.6-8 8-8h94.9v-18.6h-65.9c-4.4 0-8-3.6-8-8V316c0-4.4 3.6-8 8-8h184.7c4.4 0 8 3.6 8 8z'
  66224. ], [
  66225. primaryColor,
  66226. 'M443.7 306.9l-38.6-18.3c-3.4-1.6-7.3.2-8.4 3.7-17.5 58.5-45.2 110.2-82.2 153.6a5.7 5.7 0 0 0-1.2 5.6l13.2 43.5c1.4 4.5 7 5.8 10.2 2.4 7.7-8.1 15.4-16.8 23.1-26V656c0 4.4 3.6 8 8 8h37.3c4.4 0 8-3.6 8-8h.2V393.1a429.2 429.2 0 0 0 33.6-79c.9-2.8-.5-5.9-3.2-7.2zm26.8 9.1v127.4c0 4.4 3.6 8 8 8h65.9V470h-94.9c-4.4 0-8 3.6-8 8v35.6c0 4.4 3.6 8 8 8h55.1c-19.1 30.8-42.4 55.7-71 76a6 6 0 0 0-1.6 8.1l22.8 36.5c.9 1.5 2.4 2.5 4.1 2.8 1.7.3 3.5-.2 4.8-1.4 31.6-26.8 58.6-62.9 80.6-107.6v120c0 4.4 3.6 8 8 8h36.2c4.4 0 8-3.6 8-8V535.9c21.3 41.7 47.5 77.6 78.1 106.9 2.6 2.5 6.7 2.2 8.9-.7l26.3-35.3c2-2.6 1.4-6.4-1.2-8.5-30.5-22.6-54.2-47.8-72.3-76.9h59c4.4 0 8-3.6 8-8v-35.6c0-4.4-3.6-8-8-8h-98.8v-18.6h66.7c4.4 0 8-3.6 8-8V316c0-4.4-3.6-8-8-8H478.5c-4.4 0-8 3.6-8 8zm51.4 42.8h97.9v41.6h-97.9v-41.6z'
  66227. ]);
  66228. });
  66229. exports.InteractionTwoTone = getIcon('interaction', twotone, function (primaryColor, secondaryColor) {
  66230. return getNode(newViewBox, [
  66231. primaryColor,
  66232. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  66233. ], [
  66234. secondaryColor,
  66235. 'M184 840h656V184H184v656zm114-401.9c0-55.3 44.6-100.1 99.7-100.1h205.8v-53.4c0-5.6 6.5-8.8 10.9-5.3L723.5 365c3.5 2.7 3.5 8 0 10.7l-109.1 85.7c-4.4 3.5-10.9.4-10.9-5.3v-53.4H397.8c-19.6 0-35.5 15.9-35.5 35.6v78.9c0 3.8-3.1 6.8-6.8 6.8h-50.7c-3.8 0-6.8-3-6.8-7v-78.9zm2.6 210.3l109.1-85.7c4.4-3.5 10.9-.4 10.9 5.3v53.4h205.6c19.6 0 35.5-15.9 35.5-35.6v-78.9c0-3.8 3.1-6.8 6.8-6.8h50.7c3.8 0 6.8 3.1 6.8 6.8v78.9c0 55.3-44.6 100.1-99.7 100.1H420.6v53.4c0 5.6-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.5z'
  66236. ], [
  66237. primaryColor,
  66238. 'M304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z'
  66239. ]);
  66240. });
  66241. exports.InterationTwoTone = getIcon('interation', twotone, function (primaryColor, secondaryColor) {
  66242. return getNode(newViewBox, [
  66243. primaryColor,
  66244. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  66245. ], [
  66246. secondaryColor,
  66247. 'M184 840h656V184H184v656zm114-401.9c0-55.3 44.6-100.1 99.7-100.1h205.8v-53.4c0-5.6 6.5-8.8 10.9-5.3L723.5 365c3.5 2.7 3.5 8 0 10.7l-109.1 85.7c-4.4 3.5-10.9.4-10.9-5.3v-53.4H397.8c-19.6 0-35.5 15.9-35.5 35.6v78.9c0 3.8-3.1 6.8-6.8 6.8h-50.7c-3.8 0-6.8-3-6.8-7v-78.9zm2.6 210.3l109.1-85.7c4.4-3.5 10.9-.4 10.9 5.3v53.4h205.6c19.6 0 35.5-15.9 35.5-35.6v-78.9c0-3.8 3.1-6.8 6.8-6.8h50.7c3.8 0 6.8 3.1 6.8 6.8v78.9c0 55.3-44.6 100.1-99.7 100.1H420.6v53.4c0 5.6-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.5z'
  66248. ], [
  66249. primaryColor,
  66250. 'M304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z'
  66251. ]);
  66252. });
  66253. exports.LayoutTwoTone = getIcon('layout', twotone, function (primaryColor, secondaryColor) {
  66254. return getNode(newViewBox, [
  66255. secondaryColor,
  66256. 'M384 185h456v136H384zm-200 0h136v656H184zm696-73H144c-17.7 0-32 14.3-32 32v1c0-17.7 14.3-32 32-32h736c17.7 0 32 14.3 32 32v-1c0-17.7-14.3-32-32-32zM384 385h456v456H384z'
  66257. ], [
  66258. primaryColor,
  66259. 'M880 113H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V145c0-17.7-14.3-32-32-32zM320 841H184V185h136v656zm520 0H384V385h456v456zm0-520H384V185h456v136z'
  66260. ]);
  66261. });
  66262. exports.LeftCircleTwoTone = getIcon('left-circle', twotone, function (primaryColor, secondaryColor) {
  66263. return getNode(newViewBox, [
  66264. secondaryColor,
  66265. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm104 240.9c0 10.3-4.9 19.9-13.2 25.9L457.4 512l145.4 105.1c8.3 6 13.2 15.7 13.2 25.9v46.9c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 0 1 0-12.9l246-178c5.3-3.8 12.7 0 12.7 6.5v46.9z'
  66266. ], [
  66267. primaryColor,
  66268. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66269. ], [
  66270. primaryColor,
  66271. 'M603.3 327.5l-246 178a7.95 7.95 0 0 0 0 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z'
  66272. ]);
  66273. });
  66274. exports.LeftSquareTwoTone = getIcon('left-square', twotone, function (primaryColor, secondaryColor) {
  66275. return getNode(newViewBox, [
  66276. primaryColor,
  66277. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  66278. ], [
  66279. secondaryColor,
  66280. 'M184 840h656V184H184v656zm181.3-334.5l246-178c5.3-3.8 12.7 0 12.7 6.5v46.9c0 10.3-4.9 19.9-13.2 25.9L465.4 512l145.4 105.2c8.3 6 13.2 15.7 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.4l-246-178a7.95 7.95 0 0 1 0-12.9z'
  66281. ], [
  66282. primaryColor,
  66283. 'M365.3 518.4l246 178c5.3 3.9 12.7.1 12.7-6.4v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a7.95 7.95 0 0 0 0 12.9z'
  66284. ]);
  66285. });
  66286. exports.LikeTwoTone = getIcon('like', twotone, function (primaryColor, secondaryColor) {
  66287. return getNode(newViewBox, [
  66288. secondaryColor,
  66289. 'M273 495.9v428l.3-428zm538.2-88.3H496.8l9.6-198.4c.6-11.9-4.7-23.1-14.6-30.5-6.1-4.5-13.6-6.8-21.1-6.7-19.6.1-36.9 13.4-42.2 32.3-37.1 134.4-64.9 235.2-83.5 302.5V852h399.4a56.85 56.85 0 0 0 33.6-51.8c0-9.7-2.3-18.9-6.9-27.3l-13.9-25.4 21.9-19a56.76 56.76 0 0 0 19.6-43c0-9.7-2.3-18.9-6.9-27.3l-13.9-25.4 21.9-19a56.76 56.76 0 0 0 19.6-43c0-9.7-2.3-18.9-6.9-27.3l-14-25.5 21.9-19a56.76 56.76 0 0 0 19.6-43c0-19.1-11-37.5-28.8-48.4z'
  66290. ], [
  66291. primaryColor,
  66292. 'M112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32zm773.9 5.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.5-65.5-111a67.67 67.67 0 0 0-34.3-9.3H572.3l6-122.9c1.5-29.7-9-57.9-29.5-79.4a106.4 106.4 0 0 0-77.9-33.4c-52 0-98 35-111.8 85.1l-85.8 310.8-.3 428h472.1c9.3 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37zM820.4 499l-21.9 19 14 25.5a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.1 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.1 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 22.4-13.2 42.6-33.6 51.8H345V506.8c18.6-67.2 46.4-168 83.5-302.5a44.28 44.28 0 0 1 42.2-32.3c7.5-.1 15 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.1 32.2-19.6 43z'
  66293. ]);
  66294. });
  66295. exports.LockTwoTone = getIcon('lock', twotone, function (primaryColor, secondaryColor) {
  66296. return getNode(newViewBox, [
  66297. primaryColor,
  66298. 'M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304z'
  66299. ], [
  66300. secondaryColor,
  66301. 'M232 840h560V536H232v304zm280-226a48.01 48.01 0 0 1 28 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0 1 28-87z'
  66302. ], [
  66303. primaryColor,
  66304. 'M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z'
  66305. ]);
  66306. });
  66307. exports.MailTwoTone = getIcon('mail', twotone, function (primaryColor, secondaryColor) {
  66308. return getNode(newViewBox, [
  66309. secondaryColor,
  66310. 'M477.5 536.3L135.9 270.7l-27.5-21.4 27.6 21.5V792h752V270.8L546.2 536.3a55.99 55.99 0 0 1-68.7 0z'
  66311. ], [secondaryColor, 'M876.3 198.8l39.3 50.5-27.6 21.5 27.7-21.5-39.3-50.5z'], [
  66312. primaryColor,
  66313. 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-94.5 72.1L512 482 190.5 232.1h643zm54.5 38.7V792H136V270.8l-27.6-21.5 27.5 21.4 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5h.1l39.3 50.5-27.7 21.5z'
  66314. ]);
  66315. });
  66316. exports.MedicineBoxTwoTone = getIcon('medicine-box', twotone, function (primaryColor, secondaryColor) {
  66317. return getNode(newViewBox, [
  66318. secondaryColor,
  66319. 'M244.3 328L184 513.4V840h656V513.4L779.7 328H244.3zM660 628c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V636H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V464c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8v48z'
  66320. ], [
  66321. primaryColor,
  66322. 'M652 572H544V464c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V636h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
  66323. ], [
  66324. primaryColor,
  66325. 'M839.2 278.1a32 32 0 0 0-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 0 0-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM360 184h304v72H360v-72zm480 656H184V513.4L244.3 328h535.4L840 513.4V840z'
  66326. ]);
  66327. });
  66328. exports.MehTwoTone = getIcon('meh', twotone, function (primaryColor, secondaryColor) {
  66329. return getNode(newViewBox, [
  66330. primaryColor,
  66331. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66332. ], [
  66333. secondaryColor,
  66334. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm384 200c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h304c4.4 0 8 3.6 8 8v48zm16-152a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
  66335. ], [
  66336. primaryColor,
  66337. 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm376 144H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-24-144a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
  66338. ]);
  66339. });
  66340. exports.MessageTwoTone = getIcon('message', twotone, function (primaryColor, secondaryColor) {
  66341. return getNode(newViewBox, [
  66342. secondaryColor,
  66343. 'M775.3 248.9a369.62 369.62 0 0 0-119-80A370.2 370.2 0 0 0 512.1 140h-1.7c-99.7.4-193 39.4-262.8 109.9-69.9 70.5-108 164.1-107.6 263.8.3 60.3 15.3 120.2 43.5 173.1l4.5 8.4V836h140.8l8.4 4.5c52.9 28.2 112.8 43.2 173.1 43.5h1.7c99 0 192-38.2 262.1-107.6 70.4-69.8 109.5-163.1 110.1-262.7.2-50.6-9.5-99.6-28.9-145.8a370.15 370.15 0 0 0-80-119zM312 560a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96zm200 0a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96zm200 0a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
  66344. ], [
  66345. primaryColor,
  66346. 'M664 512a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm-400 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
  66347. ], [
  66348. primaryColor,
  66349. 'M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 0 0-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 0 0-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 0 0 112 714v152a46 46 0 0 0 46 46h152.1A449.4 449.4 0 0 0 510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 0 0 142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z'
  66350. ], [primaryColor, 'M464 512a48 48 0 1 0 96 0 48 48 0 1 0-96 0z']);
  66351. });
  66352. exports.MinusCircleTwoTone = getIcon('minus-circle', twotone, function (primaryColor, secondaryColor) {
  66353. return getNode(newViewBox, [
  66354. primaryColor,
  66355. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66356. ], [
  66357. secondaryColor,
  66358. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm192 396c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z'
  66359. ], [
  66360. primaryColor,
  66361. 'M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
  66362. ]);
  66363. });
  66364. exports.MinusSquareTwoTone = getIcon('minus-square', twotone, function (primaryColor, secondaryColor) {
  66365. return getNode(newViewBox, [
  66366. primaryColor,
  66367. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  66368. ], [
  66369. secondaryColor,
  66370. 'M184 840h656V184H184v656zm136-352c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48z'
  66371. ], [
  66372. primaryColor,
  66373. 'M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
  66374. ]);
  66375. });
  66376. exports.MobileTwoTone = getIcon('mobile', twotone, function (primaryColor, secondaryColor) {
  66377. return getNode(newViewBox, [
  66378. primaryColor,
  66379. 'M744 64H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H288V136h448v752z'
  66380. ], [
  66381. secondaryColor,
  66382. 'M288 888h448V136H288v752zm224-142c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
  66383. ], [primaryColor, 'M472 786a40 40 0 1 0 80 0 40 40 0 1 0-80 0z']);
  66384. });
  66385. exports.PauseCircleTwoTone = getIcon('pause-circle', twotone, function (primaryColor, secondaryColor) {
  66386. return getNode(newViewBox, [
  66387. primaryColor,
  66388. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66389. ], [
  66390. secondaryColor,
  66391. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-80 524c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z'
  66392. ], [
  66393. primaryColor,
  66394. 'M424 352h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z'
  66395. ]);
  66396. });
  66397. exports.MoneyCollectTwoTone = getIcon('money-collect', twotone, function (primaryColor, secondaryColor) {
  66398. return getNode(newViewBox, [
  66399. secondaryColor,
  66400. 'M256 744.4l256 93.1 256-93.1V184H256v560.4zM359.7 313c1.2-.7 2.5-1 3.8-1h55.7a8 8 0 0 1 7.1 4.4L511 485.2h3.3L599 316.4c1.3-2.7 4.1-4.4 7.1-4.4h54.5c4.4 0 8 3.6 8.1 7.9 0 1.3-.4 2.6-1 3.8L564 515.3h57.6c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3v39h76.3c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3V704c0 4.4-3.6 8-8 8h-49.9c-4.4 0-8-3.6-8-8v-63.4h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h76v-39h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h57L356.5 323.8c-2.1-3.8-.7-8.7 3.2-10.8z'
  66401. ], [
  66402. primaryColor,
  66403. 'M911.5 700.7a8 8 0 0 0-10.3-4.8L840 718.2V180c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V763c0 3.3 2.1 6.3 5.3 7.5L501 910.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zM768 744.4l-256 93.1-256-93.1V184h512v560.4z'
  66404. ], [
  66405. primaryColor,
  66406. 'M460.4 515.4h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.6-1.2 1-2.5 1-3.8-.1-4.3-3.7-7.9-8.1-7.9h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6z'
  66407. ]);
  66408. });
  66409. exports.NotificationTwoTone = getIcon('notification', twotone, function (primaryColor, secondaryColor) {
  66410. return getNode(newViewBox, [
  66411. secondaryColor,
  66412. 'M229.6 678.1c-3.7 11.6-5.6 23.9-5.6 36.4 0-12.5 2-24.8 5.7-36.4h-.1zm76.3-260.2H184v188.2h121.9l12.9 5.2L840 820.7V203.3L318.8 412.7z'
  66413. ], [
  66414. primaryColor,
  66415. 'M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z'
  66416. ]);
  66417. });
  66418. exports.PhoneTwoTone = getIcon('phone', twotone, function (primaryColor, secondaryColor) {
  66419. return getNode(newViewBox, [
  66420. secondaryColor,
  66421. 'M721.7 184.9L610.9 295.8l120.8 120.7-8 21.6A481.29 481.29 0 0 1 438 723.9l-21.6 8-.9-.9-119.8-120-110.8 110.9 104.5 104.5c10.8 10.7 26 15.7 40.8 13.2 117.9-19.5 235.4-82.9 330.9-178.4s158.9-213.1 178.4-331c2.5-14.8-2.5-30-13.3-40.8L721.7 184.9z'
  66422. ], [
  66423. primaryColor,
  66424. 'M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 0 1-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 0 0-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 0 0 285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z'
  66425. ]);
  66426. });
  66427. exports.PictureTwoTone = getIcon('picture', twotone, function (primaryColor, secondaryColor) {
  66428. return getNode(newViewBox, [
  66429. primaryColor,
  66430. 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z'
  66431. ], [
  66432. secondaryColor,
  66433. 'M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z'
  66434. ], [
  66435. secondaryColor,
  66436. 'M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 1 1 0 176 88 88 0 0 1 0-176z'
  66437. ], [secondaryColor, 'M276 368a28 28 0 1 0 56 0 28 28 0 1 0-56 0z'], [
  66438. primaryColor,
  66439. 'M304 456a88 88 0 1 0 0-176 88 88 0 0 0 0 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z'
  66440. ]);
  66441. });
  66442. exports.PlayCircleTwoTone = getIcon('play-circle', twotone, function (primaryColor, secondaryColor) {
  66443. return getNode(newViewBox, [
  66444. primaryColor,
  66445. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66446. ], [
  66447. secondaryColor,
  66448. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm164.1 378.2L457.7 677.1a8.02 8.02 0 0 1-12.7-6.5V353a8 8 0 0 1 12.7-6.5l218.4 158.8a7.9 7.9 0 0 1 0 12.9z'
  66449. ], [
  66450. primaryColor,
  66451. 'M676.1 505.3L457.7 346.5A8 8 0 0 0 445 353v317.6a8.02 8.02 0 0 0 12.7 6.5l218.4-158.9a7.9 7.9 0 0 0 0-12.9z'
  66452. ]);
  66453. });
  66454. exports.PlaySquareTwoTone = getIcon('play-square', twotone, function (primaryColor, secondaryColor) {
  66455. return getNode(newViewBox, [
  66456. primaryColor,
  66457. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  66458. ], [
  66459. secondaryColor,
  66460. 'M184 840h656V184H184v656zm240-484.7c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 0 1 0 17.6L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3z'
  66461. ], [
  66462. primaryColor,
  66463. 'M442.3 677.6l199.4-156.8a11.2 11.2 0 0 0 0-17.6L442.3 346.5c-7.4-5.9-18.3-.6-18.3 8.8v313.5c0 9.4 10.9 14.6 18.3 8.8z'
  66464. ]);
  66465. });
  66466. exports.PieChartTwoTone = getIcon('pie-chart', twotone, function (primaryColor, secondaryColor) {
  66467. return getNode(newViewBox, [
  66468. secondaryColor,
  66469. 'M316.2 920.5c-47.6-20.1-90.4-49-127.1-85.7a398.19 398.19 0 0 1-85.7-127.1A397.12 397.12 0 0 1 72 552.2v.2a398.57 398.57 0 0 0 117 282.5c36.7 36.7 79.4 65.5 127 85.6A396.64 396.64 0 0 0 471.6 952c27 0 53.6-2.7 79.7-7.9-25.9 5.2-52.4 7.8-79.3 7.8-54 .1-106.4-10.5-155.8-31.4zM560 472c-4.4 0-8-3.6-8-8V79.9c0-1.3.3-2.5.9-3.6-.9 1.3-1.5 2.9-1.5 4.6v383.7c0 4.4 3.6 8 8 8l383.6-1c1.6 0 3.1-.5 4.4-1.3-1 .5-2.2.7-3.4.7l-384 1z'
  66470. ], [
  66471. secondaryColor,
  66472. 'M619.8 147.6v256.6l256.4-.7c-13-62.5-44.3-120.5-90-166.1a332.24 332.24 0 0 0-166.4-89.8z'
  66473. ], [
  66474. secondaryColor,
  66475. 'M438 221.7c-75.9 7.6-146.2 40.9-200.8 95.5C174.5 379.9 140 463.3 140 552s34.5 172.1 97.2 234.8c62.3 62.3 145.1 96.8 233.2 97.2 88.2.4 172.7-34.1 235.3-96.2C761 733 794.6 662.3 802.3 586H438V221.7z'
  66476. ], [
  66477. primaryColor,
  66478. 'M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 0 0-282.8 117.1 398.19 398.19 0 0 0-85.7 127.1A397.61 397.61 0 0 0 72 552v.2c0 53.9 10.6 106.2 31.4 155.5 20.1 47.6 49 90.4 85.7 127.1 36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 0 0 472 952c26.9 0 53.4-2.6 79.3-7.8 26.1-5.3 51.7-13.1 76.4-23.6 47.6-20.1 90.4-49 127.1-85.7 36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 0 0 872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 0 1 470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552s34.5-172.1 97.2-234.8c54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8z'
  66479. ], [
  66480. primaryColor,
  66481. 'M952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 0 0 589 74.6L560.7 72c-3.4-.3-6.4 1.5-7.8 4.3a8.7 8.7 0 0 0-.9 3.6V464c0 4.4 3.6 8 8 8l384-1c1.2 0 2.3-.3 3.4-.7a8.1 8.1 0 0 0 4.6-7.9zm-332.2-58.2V147.6a332.24 332.24 0 0 1 166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z'
  66482. ]);
  66483. });
  66484. exports.PlusCircleTwoTone = getIcon('plus-circle', twotone, function (primaryColor, secondaryColor) {
  66485. return getNode(newViewBox, [
  66486. primaryColor,
  66487. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66488. ], [
  66489. secondaryColor,
  66490. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm192 396c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z'
  66491. ], [
  66492. primaryColor,
  66493. 'M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
  66494. ]);
  66495. });
  66496. exports.PlusSquareTwoTone = getIcon('plus-square', twotone, function (primaryColor, secondaryColor) {
  66497. return getNode(newViewBox, [
  66498. primaryColor,
  66499. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  66500. ], [
  66501. secondaryColor,
  66502. 'M184 840h656V184H184v656zm136-352c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48z'
  66503. ], [
  66504. primaryColor,
  66505. 'M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
  66506. ]);
  66507. });
  66508. exports.PoundCircleTwoTone = getIcon('pound-circle', twotone, function (primaryColor, secondaryColor) {
  66509. return getNode(newViewBox, [
  66510. primaryColor,
  66511. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66512. ], [
  66513. secondaryColor,
  66514. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm146 582.1c0 4.4-3.6 8-8 8H376.2c-4.4 0-8-3.6-8-8v-38.5c0-3.7 2.5-6.9 6.1-7.8 44-10.9 72.8-49 72.8-94.2 0-14.7-2.5-29.4-5.9-44.2H374c-4.4 0-8-3.6-8-8v-30c0-4.4 3.6-8 8-8h53.7c-7.8-25.1-14.6-50.7-14.6-77.1 0-75.8 58.6-120.3 151.5-120.3 26.5 0 51.4 5.5 70.3 12.7 3.1 1.2 5.2 4.2 5.2 7.5v39.5a8 8 0 0 1-10.6 7.6c-17.9-6.4-39-10.5-60.4-10.5-53.3 0-87.3 26.6-87.3 70.2 0 24.7 6.2 47.9 13.4 70.5h112c4.4 0 8 3.6 8 8v30c0 4.4-3.6 8-8 8h-98.6c3.1 13.2 5.3 26.9 5.3 41 0 40.7-16.5 73.9-43.9 91.1v4.7h180c4.4 0 8 3.6 8 8v39.8z'
  66515. ], [
  66516. primaryColor,
  66517. 'M650 674.3H470v-4.7c27.4-17.2 43.9-50.4 43.9-91.1 0-14.1-2.2-27.8-5.3-41h98.6c4.4 0 8-3.6 8-8v-30c0-4.4-3.6-8-8-8h-112c-7.2-22.6-13.4-45.8-13.4-70.5 0-43.6 34-70.2 87.3-70.2 21.4 0 42.5 4.1 60.4 10.5a8 8 0 0 0 10.6-7.6v-39.5c0-3.3-2.1-6.3-5.2-7.5-18.9-7.2-43.8-12.7-70.3-12.7-92.9 0-151.5 44.5-151.5 120.3 0 26.4 6.8 52 14.6 77.1H374c-4.4 0-8 3.6-8 8v30c0 4.4 3.6 8 8 8h67.2c3.4 14.8 5.9 29.5 5.9 44.2 0 45.2-28.8 83.3-72.8 94.2-3.6.9-6.1 4.1-6.1 7.8v38.5c0 4.4 3.6 8 8 8H650c4.4 0 8-3.6 8-8v-39.8c0-4.4-3.6-8-8-8z'
  66518. ]);
  66519. });
  66520. exports.PrinterTwoTone = getIcon('printer', twotone, function (primaryColor, secondaryColor) {
  66521. return getNode(newViewBox, [
  66522. secondaryColor,
  66523. 'M360 180h304v152H360zm492 220H172c-6.6 0-12 5.4-12 12v292h132V500h440v204h132V412c0-6.6-5.4-12-12-12zm-24 84c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-40c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v40z'
  66524. ], [
  66525. primaryColor,
  66526. 'M852 332H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z'
  66527. ], [
  66528. primaryColor,
  66529. 'M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8z'
  66530. ]);
  66531. });
  66532. exports.ProfileTwoTone = getIcon('profile', twotone, function (primaryColor, secondaryColor) {
  66533. return getNode(newViewBox, [
  66534. primaryColor,
  66535. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  66536. ], [
  66537. secondaryColor,
  66538. 'M184 840h656V184H184v656zm300-496c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zm0 144c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zm0 144c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zM380 328c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm0 144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm0 144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
  66539. ], [
  66540. primaryColor,
  66541. 'M340 656a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0-144a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0-144a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm152 320h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
  66542. ]);
  66543. });
  66544. exports.ProjectTwoTone = getIcon('project', twotone, function (primaryColor, secondaryColor) {
  66545. return getNode(newViewBox, [
  66546. primaryColor,
  66547. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  66548. ], [
  66549. secondaryColor,
  66550. 'M184 840h656V184H184v656zm472-560c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v256c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280zm-192 0c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280zm-192 0c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v464c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280z'
  66551. ], [
  66552. primaryColor,
  66553. 'M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8z'
  66554. ]);
  66555. });
  66556. exports.PushpinTwoTone = getIcon('pushpin', twotone, function (primaryColor, secondaryColor) {
  66557. return getNode(newViewBox, [
  66558. secondaryColor,
  66559. 'M474.8 357.7l-24.5 24.5-34.4-3.8c-9.6-1.1-19.3-1.6-28.9-1.6-29 0-57.5 4.7-84.7 14.1-14 4.8-27.4 10.8-40.3 17.9l353.1 353.3a259.92 259.92 0 0 0 30.4-153.9l-3.8-34.4 24.5-24.5L800 415.5 608.5 224 474.8 357.7z'
  66560. ], [
  66561. primaryColor,
  66562. 'M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 0 0-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 0 0-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 0 1-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z'
  66563. ]);
  66564. });
  66565. exports.PropertySafetyTwoTone = getIcon('property-safety', twotone, function (primaryColor, secondaryColor) {
  66566. return getNode(newViewBox, [
  66567. primaryColor,
  66568. 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'
  66569. ], [
  66570. secondaryColor,
  66571. 'M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM593.9 318h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V658c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8H418c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7H418c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3L585 323.5a10 10 0 0 1 8.9-5.5z'
  66572. ], [
  66573. primaryColor,
  66574. 'M438.9 323.5a9.88 9.88 0 0 0-8.9-5.5h-46c-1.7 0-3.3.4-4.8 1.2-4.9 2.7-6.6 8.8-4 13.6l88 161.1H418c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1v29.7H418c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1V658c0 5.5 4.5 10 10 10h41.3c5.5 0 10-4.5 10-10v-51.8h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-63.4v-29.7h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-45.7l87.7-161.1c.8-1.5 1.2-3.1 1.1-4.8 0-5.5-4.5-10-10-10h-45a10 10 0 0 0-8.9 5.5l-73.2 144.3-72.9-144.3z'
  66575. ]);
  66576. });
  66577. exports.QuestionCircleTwoTone = getIcon('question-circle', twotone, function (primaryColor, secondaryColor) {
  66578. return getNode(newViewBox, [
  66579. primaryColor,
  66580. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66581. ], [
  66582. secondaryColor,
  66583. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm0 632c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z'
  66584. ], [
  66585. primaryColor,
  66586. 'M472 732a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm151.6-415.3C593.6 290.5 554 276 512 276s-81.6 14.4-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.2 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0 1 30.9-44.8c59-22.7 97.1-74.7 97.1-132.5 0-39.3-17.2-76-48.4-103.3z'
  66587. ]);
  66588. });
  66589. exports.ReconciliationTwoTone = getIcon('reconciliation', twotone, function (primaryColor, secondaryColor) {
  66590. return getNode(newViewBox, [
  66591. secondaryColor,
  66592. 'M740 344H404V240H304v160h176c17.7 0 32 14.3 32 32v360h328V240H740v104zM584 448c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56zm92 301c-50.8 0-92-41.2-92-92s41.2-92 92-92 92 41.2 92 92-41.2 92-92 92zm92-341v96c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8z'
  66593. ], [secondaryColor, 'M642 657a34 34 0 1 0 68 0 34 34 0 1 0-68 0z'], [
  66594. primaryColor,
  66595. 'M592 512h48c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm112-104v96c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-96c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z'
  66596. ], [
  66597. primaryColor,
  66598. 'M880 168H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zm-412 64h72v-56h64v56h72v48H468v-48zm-20 616H176V616h272v232zm0-296H176v-88h272v88zm392 240H512V432c0-17.7-14.3-32-32-32H304V240h100v104h336V240h100v552z'
  66599. ], [
  66600. primaryColor,
  66601. 'M676 565c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34z'
  66602. ]);
  66603. });
  66604. exports.RedEnvelopeTwoTone = getIcon('red-envelope', twotone, function (primaryColor, secondaryColor) {
  66605. return getNode(newViewBox, [
  66606. primaryColor,
  66607. 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V193.1l260.3 204.1c11.6 9.1 27.9 9.1 39.5 0L792 193.1V888zm0-751.3h-31.7L512 331.3 263.7 136.7H232v-.7h560v.7z'
  66608. ], [
  66609. secondaryColor,
  66610. 'M492.3 397.2L232 193.1V888h560V193.1L531.8 397.2a31.99 31.99 0 0 1-39.5 0zm99.4 60.9h47.8a8.45 8.45 0 0 1 7.4 12.4l-87.2 161h45.9c4.6 0 8.4 3.8 8.4 8.4V665c0 4.6-3.8 8.4-8.4 8.4h-63.3V702h63.3c4.6 0 8.4 3.8 8.4 8.4v25c.2 4.7-3.5 8.5-8.2 8.5h-63.3v49.9c0 4.6-3.8 8.4-8.4 8.4h-43.7c-4.6 0-8.4-3.8-8.4-8.4v-49.9h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h63v-28.6h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h45.4L377 470.4a8.4 8.4 0 0 1 3.4-11.4c1.3-.6 2.6-1 3.9-1h48.8c3.2 0 6.1 1.8 7.5 4.6l71.7 142 71.9-141.9a8.6 8.6 0 0 1 7.5-4.6z'
  66611. ], [secondaryColor, 'M232 136.7h31.7L512 331.3l248.3-194.6H792v-.7H232z'], [
  66612. primaryColor,
  66613. 'M440.6 462.6a8.38 8.38 0 0 0-7.5-4.6h-48.8c-1.3 0-2.6.4-3.9 1a8.4 8.4 0 0 0-3.4 11.4l87.4 161.1H419c-4.6 0-8.4 3.8-8.4 8.4V665c0 4.6 3.8 8.4 8.4 8.4h63V702h-63c-4.6 0-8.4 3.8-8.4 8.4v25.1c0 4.6 3.8 8.4 8.4 8.4h63v49.9c0 4.6 3.8 8.4 8.4 8.4h43.7c4.6 0 8.4-3.8 8.4-8.4v-49.9h63.3c4.7 0 8.4-3.8 8.2-8.5v-25c0-4.6-3.8-8.4-8.4-8.4h-63.3v-28.6h63.3c4.6 0 8.4-3.8 8.4-8.4v-25.1c0-4.6-3.8-8.4-8.4-8.4h-45.9l87.2-161a8.45 8.45 0 0 0-7.4-12.4h-47.8c-3.1 0-6 1.8-7.5 4.6l-71.9 141.9-71.7-142z'
  66614. ]);
  66615. });
  66616. exports.RestTwoTone = getIcon('rest', twotone, function (primaryColor, secondaryColor) {
  66617. return getNode(newViewBox, [
  66618. secondaryColor,
  66619. 'M326.4 844h363.2l44.3-520H282l44.4 520zM508 416c79.5 0 144 64.5 144 144s-64.5 144-144 144-144-64.5-144-144 64.5-144 144-144z'
  66620. ], [
  66621. primaryColor,
  66622. 'M508 704c79.5 0 144-64.5 144-144s-64.5-144-144-144-144 64.5-144 144 64.5 144 144 144zm0-224c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z'
  66623. ], [
  66624. primaryColor,
  66625. 'M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0 0 31.9 29.3h429.2a32 32 0 0 0 31.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zm-518.6-76h397.2l22.4 76H291l22.4-76zm376.2 664H326.4L282 324h451.9l-44.3 520z'
  66626. ]);
  66627. });
  66628. exports.RightCircleTwoTone = getIcon('right-circle', twotone, function (primaryColor, secondaryColor) {
  66629. return getNode(newViewBox, [
  66630. secondaryColor,
  66631. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm154.7 378.4l-246 178c-5.3 3.8-12.7 0-12.7-6.5V643c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.7 0 12.9z'
  66632. ], [
  66633. primaryColor,
  66634. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66635. ], [
  66636. primaryColor,
  66637. 'M666.7 505.5l-246-178c-5.3-3.8-12.7 0-12.7 6.5v46.9c0 10.3 4.9 19.9 13.2 25.9L566.6 512 421.2 617.1c-8.3 6-13.2 15.7-13.2 25.9v46.9c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.7 0-12.9z'
  66638. ]);
  66639. });
  66640. exports.RocketTwoTone = getIcon('rocket', twotone, function (primaryColor, secondaryColor) {
  66641. return getNode(newViewBox, [
  66642. secondaryColor,
  66643. 'M261.7 621.4c-9.4 14.6-17 30.3-22.5 46.6H324V558.7c-24.8 16.2-46 37.5-62.3 62.7zM700 558.7V668h84.8c-5.5-16.3-13.1-32-22.5-46.6a211.6 211.6 0 0 0-62.3-62.7zm-64-239.9l-124-147-124 147V668h248V318.8zM512 448a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
  66644. ], [
  66645. primaryColor,
  66646. 'M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 0 0-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0 0 43.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0 0 43.1-30.5 97.52 97.52 0 0 0 21.4-60.8c0-8.4-1.1-16.4-3.1-23.8L864 736zm-540-68h-84.8c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668zm64-184.9V318.8l124-147 124 147V668H388V483.1zm240.1 301.1c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5s-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 0 1-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM700 668V558.7a211.6 211.6 0 0 1 62.3 62.7c9.4 14.6 17 30.3 22.5 46.6H700z'
  66647. ], [primaryColor, 'M464 400a48 48 0 1 0 96 0 48 48 0 1 0-96 0z']);
  66648. });
  66649. exports.RightSquareTwoTone = getIcon('right-square', twotone, function (primaryColor, secondaryColor) {
  66650. return getNode(newViewBox, [
  66651. primaryColor,
  66652. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  66653. ], [
  66654. secondaryColor,
  66655. 'M184 840h656V184H184v656zm216-196.9c0-10.2 4.9-19.9 13.2-25.9L558.6 512 413.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.7 0 12.9l-246 178c-5.3 3.9-12.7.1-12.7-6.4v-46.9z'
  66656. ], [
  66657. primaryColor,
  66658. 'M412.7 696.4l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5v46.9c0 10.3 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.7-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.4z'
  66659. ]);
  66660. });
  66661. exports.SafetyCertificateTwoTone = getIcon('safety-certificate', twotone, function (primaryColor, secondaryColor) {
  66662. return getNode(newViewBox, [
  66663. primaryColor,
  66664. 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'
  66665. ], [
  66666. secondaryColor,
  66667. 'M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM632.8 328H688c6.5 0 10.3 7.4 6.5 12.7L481.9 633.4a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89.1 150.9-207.8c3-4.1 7.9-6.6 13-6.6z'
  66668. ], [
  66669. primaryColor,
  66670. 'M404.2 453.3c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z'
  66671. ]);
  66672. });
  66673. exports.SaveTwoTone = getIcon('save', twotone, function (primaryColor, secondaryColor) {
  66674. return getNode(newViewBox, [
  66675. secondaryColor,
  66676. 'M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z'
  66677. ], [
  66678. primaryColor,
  66679. 'M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z'
  66680. ], [
  66681. primaryColor,
  66682. 'M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 0 0-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z'
  66683. ]);
  66684. });
  66685. exports.ScheduleTwoTone = getIcon('schedule', twotone, function (primaryColor, secondaryColor) {
  66686. return getNode(newViewBox, [
  66687. secondaryColor,
  66688. 'M768 352c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H548v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H328v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H136v496h752V296H768v56zM424 688c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-136c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm374.4-91.2l-165 228.7a15.9 15.9 0 0 1-25.8 0L493.5 531.3c-3.8-5.3 0-12.7 6.5-12.7h54.9c5.1 0 9.9 2.4 12.9 6.6l52.8 73.1 103.6-143.7c3-4.1 7.8-6.6 12.8-6.5h54.9c6.5 0 10.3 7.4 6.5 12.7z'
  66689. ], [
  66690. primaryColor,
  66691. 'M724.2 454.6L620.6 598.3l-52.8-73.1c-3-4.2-7.8-6.6-12.9-6.6H500c-6.5 0-10.3 7.4-6.5 12.7l114.1 158.2a15.9 15.9 0 0 0 25.8 0l165-228.7c3.8-5.3 0-12.7-6.5-12.7H737c-5-.1-9.8 2.4-12.8 6.5zM416 496H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
  66692. ], [
  66693. primaryColor,
  66694. 'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z'
  66695. ], [
  66696. primaryColor,
  66697. 'M416 632H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
  66698. ]);
  66699. });
  66700. exports.SecurityScanTwoTone = getIcon('security-scan', twotone, function (primaryColor, secondaryColor) {
  66701. return getNode(newViewBox, [
  66702. primaryColor,
  66703. 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'
  66704. ], [
  66705. secondaryColor,
  66706. 'M460.7 451.1a80.1 80.1 0 1 0 160.2 0 80.1 80.1 0 1 0-160.2 0z'
  66707. ], [
  66708. secondaryColor,
  66709. 'M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zm428.7 122.5c56.3 56.3 56.3 147.5 0 203.8-48.5 48.5-123 55.2-178.6 20.1l-77.5 77.5a8.03 8.03 0 0 1-11.3 0l-34-34a8.03 8.03 0 0 1 0-11.3l77.5-77.5c-35.1-55.7-28.4-130.1 20.1-178.6 56.3-56.3 147.5-56.3 203.8 0z'
  66710. ], [
  66711. primaryColor,
  66712. 'M418.8 527.8l-77.5 77.5a8.03 8.03 0 0 0 0 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.6 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 122.9-20.1 178.6zm65.4-133.3a80.1 80.1 0 0 1 113.3 0 80.1 80.1 0 0 1 0 113.3c-31.3 31.3-82 31.3-113.3 0s-31.3-82 0-113.3z'
  66713. ]);
  66714. });
  66715. exports.SettingTwoTone = getIcon('setting', twotone, function (primaryColor, secondaryColor) {
  66716. return getNode(newViewBox, [
  66717. secondaryColor,
  66718. 'M859.3 569.7l.2.1c3.1-18.9 4.6-38.2 4.6-57.3 0-17.1-1.3-34.3-3.7-51.1 2.4 16.7 3.6 33.6 3.6 50.5 0 19.4-1.6 38.8-4.7 57.8zM99 398.1c-.5-.4-.9-.8-1.4-1.3.7.7 1.4 1.4 2.2 2.1l65.5 55.9v-.1L99 398.1zm536.6-216h.1l-15.5-83.8c-.2-1-.4-1.9-.7-2.8.1.5.3 1.1.4 1.6l15.7 85zm54 546.5l31.4-25.8 92.8 32.9c17-22.9 31.3-47.5 42.6-73.6l-74.7-63.9 6.6-40.1c2.5-15.1 3.8-30.6 3.8-46.1s-1.3-31-3.8-46.1l-6.5-39.9 74.7-63.9c-11.4-26-25.6-50.7-42.6-73.6l-92.8 32.9-31.4-25.8c-23.9-19.6-50.6-35-79.3-45.8l-38.1-14.3-17.9-97a377.5 377.5 0 0 0-85 0l-17.9 97.2-37.9 14.3c-28.5 10.8-55 26.2-78.7 45.7l-31.4 25.9-93.4-33.2c-17 22.9-31.3 47.5-42.6 73.6l75.5 64.5-6.5 40c-2.5 14.9-3.7 30.2-3.7 45.5 0 15.2 1.3 30.6 3.7 45.5l6.5 40-75.5 64.5c11.4 26 25.6 50.7 42.6 73.6l93.4-33.2 31.4 25.9c23.7 19.5 50.2 34.9 78.7 45.7l37.8 14.5 17.9 97.2c28.2 3.2 56.9 3.2 85 0l17.9-97 38.1-14.3c28.8-10.8 55.4-26.2 79.3-45.8zm-177.1-50.3c-30.5 0-59.2-7.8-84.3-21.5C373.3 627 336 568.9 336 502c0-97.2 78.8-176 176-176 66.9 0 125 37.3 154.8 92.2 13.7 25 21.5 53.7 21.5 84.3 0 97.1-78.7 175.8-175.8 175.8zM207.2 812.8c-5.5 1.9-11.2 2.3-16.6 1.2 5.7 1.2 11.7 1 17.5-1l81.4-29c-.1-.1-.3-.2-.4-.3l-81.9 29.1zm717.6-414.7l-65.5 56c0 .2.1.5.1.7l65.4-55.9c7.1-6.1 11.1-14.9 11.2-24-.3 8.8-4.3 17.3-11.2 23.2z'
  66719. ], [
  66720. secondaryColor,
  66721. 'M935.8 646.6c.5 4.7 0 9.5-1.7 14.1l-.9 2.6a446.02 446.02 0 0 1-79.7 137.9l-1.8 2.1a32 32 0 0 1-35.1 9.5l-81.3-28.9a350 350 0 0 1-99.7 57.6l-15.7 85a32.05 32.05 0 0 1-25.8 25.7l-2.7.5a445.2 445.2 0 0 1-79.2 7.1h.3c26.7 0 53.4-2.4 79.4-7.1l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c1.6-4.7 2.1-9.7 1.5-14.5z'
  66722. ], [
  66723. primaryColor,
  66724. 'M688 502c0-30.3-7.7-58.9-21.2-83.8C637 363.3 578.9 326 512 326c-97.2 0-176 78.8-176 176 0 66.9 37.3 125 92.2 154.8 24.9 13.5 53.4 21.2 83.8 21.2 97.2 0 176-78.8 176-176zm-288 0c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502z'
  66725. ], [
  66726. primaryColor,
  66727. 'M594.1 952.2a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c1.7-4.6 2.2-9.4 1.7-14.1-.9-7.9-4.7-15.4-11-20.9l-65.3-55.9-.2-.1c3.1-19 4.7-38.4 4.7-57.8 0-16.9-1.2-33.9-3.6-50.5-.3-2.2-.7-4.4-1-6.6 0-.2-.1-.5-.1-.7l65.5-56c6.9-5.9 10.9-14.4 11.2-23.2.1-4-.5-8.1-1.9-12l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.4-44-99.6-57.6h-.1l-15.7-85c-.1-.5-.2-1.1-.4-1.6a32.08 32.08 0 0 0-25.4-24.1l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6a32.09 32.09 0 0 0 7.9 33.9c.5.4.9.9 1.4 1.3l66.3 56.6v.1c-3.1 18.8-4.6 37.9-4.6 57 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1c4.9 5.7 11.4 9.4 18.5 10.7 5.4 1 11.1.7 16.6-1.2l81.9-29.1c.1.1.3.2.4.3 29.7 24.3 62.8 43.6 98.6 57.1l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5c26.1 4.7 52.8 7.1 79.5 7.1h.3c26.6 0 53.3-2.4 79.2-7.1l2.7-.5zm-39.8-66.5a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97z'
  66728. ]);
  66729. });
  66730. exports.ShopTwoTone = getIcon('shop', twotone, function (primaryColor, secondaryColor) {
  66731. return getNode(newViewBox, [
  66732. secondaryColor,
  66733. 'M839.5 344h-655c-.3 0-.5.2-.5.5v91.2c0 59.8 49 108.3 109.3 108.3 40.7 0 76.2-22 95.1-54.7 2.9-5.1 8.4-8.3 14.3-8.3s11.3 3.2 14.3 8.3c18.8 32.7 54.3 54.7 95 54.7 40.8 0 76.4-22.1 95.1-54.9 2.9-5 8.2-8.1 13.9-8.1h.6c5.8 0 11 3.1 13.9 8.1 18.8 32.8 54.4 54.9 95.2 54.9C791 544 840 495.5 840 435.7v-91.2c0-.3-.2-.5-.5-.5z'
  66734. ], [
  66735. primaryColor,
  66736. 'M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0 0 14.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h676c17.7 0 32-14.3 32-32V535a175 175 0 0 0 15.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zM214 184h596v88H214v-88zm362 656.1H448V736h128v104.1zm234.4 0H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c3-1.3 6-2.6 9-4v242.2zM840 435.7c0 59.8-49 108.3-109.3 108.3-40.8 0-76.4-22.1-95.2-54.9-2.9-5-8.1-8.1-13.9-8.1h-.6c-5.7 0-11 3.1-13.9 8.1A109.24 109.24 0 0 1 512 544c-40.7 0-76.2-22-95-54.7-3-5.1-8.4-8.3-14.3-8.3s-11.4 3.2-14.3 8.3a109.63 109.63 0 0 1-95.1 54.7C233 544 184 495.5 184 435.7v-91.2c0-.3.2-.5.5-.5h655c.3 0 .5.2.5.5v91.2z'
  66737. ]);
  66738. });
  66739. exports.ShoppingTwoTone = getIcon('shopping', twotone, function (primaryColor, secondaryColor) {
  66740. return getNode(newViewBox, [
  66741. secondaryColor,
  66742. 'M696 472c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-88H400v88c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-88h-96v456h560V384h-96v88z'
  66743. ], [
  66744. primaryColor,
  66745. 'M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-432-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16H400v-16zm392 544H232V384h96v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h224v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h96v456z'
  66746. ]);
  66747. });
  66748. exports.SkinTwoTone = getIcon('skin', twotone, function (primaryColor, secondaryColor) {
  66749. return getNode(newViewBox, [
  66750. secondaryColor,
  66751. 'M512 318c-79.2 0-148.5-48.8-176.7-120H182v196h119v432h422V394h119V198H688.7c-28.2 71.2-97.5 120-176.7 120z'
  66752. ], [
  66753. primaryColor,
  66754. 'M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z'
  66755. ]);
  66756. });
  66757. exports.SlidersTwoTone = getIcon('sliders', twotone, function (primaryColor, secondaryColor) {
  66758. return getNode(newViewBox, [
  66759. secondaryColor,
  66760. 'M180 292h80v440h-80zm369 180h-74a3 3 0 0 0-3 3v74a3 3 0 0 0 3 3h74a3 3 0 0 0 3-3v-74a3 3 0 0 0-3-3zm215-108h80v296h-80z'
  66761. ], [
  66762. primaryColor,
  66763. 'M904 296h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 0 1-3 3h-74a3 3 0 0 1-3-3v-74a3 3 0 0 1 3-3h74a3 3 0 0 1 3 3v74zM320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440z'
  66764. ]);
  66765. });
  66766. exports.SmileTwoTone = getIcon('smile', twotone, function (primaryColor, secondaryColor) {
  66767. return getNode(newViewBox, [
  66768. primaryColor,
  66769. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66770. ], [
  66771. secondaryColor,
  66772. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 0 1 8-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 0 1 8 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
  66773. ], [
  66774. primaryColor,
  66775. 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm376 112h-48.1c-4.2 0-7.8 3.2-8.1 7.4-3.7 49.5-45.3 88.6-95.8 88.6s-92-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 0 0-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 0 0-8-8.4zm-24-112a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
  66776. ]);
  66777. });
  66778. exports.SnippetsTwoTone = getIcon('snippets', twotone, function (primaryColor, secondaryColor) {
  66779. return getNode(newViewBox, [
  66780. secondaryColor,
  66781. 'M450 510V336H232v552h432V550H490c-22.1 0-40-17.9-40-40z'
  66782. ], [
  66783. primaryColor,
  66784. 'M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 888H232V336h218v174c0 22.1 17.9 40 40 40h174v338zm0-402H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z'
  66785. ]);
  66786. });
  66787. exports.SoundTwoTone = getIcon('sound', twotone, function (primaryColor, secondaryColor) {
  66788. return getNode(newViewBox, [
  66789. secondaryColor,
  66790. 'M275.4 424H146v176h129.4l18 11.7L586 803V221L293.3 412.3z'
  66791. ], [
  66792. primaryColor,
  66793. 'M892.1 737.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM934 476H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344zM625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582z'
  66794. ]);
  66795. });
  66796. exports.StarTwoTone = getIcon('star', twotone, function (primaryColor, secondaryColor) {
  66797. return getNode(newViewBox, [
  66798. secondaryColor,
  66799. 'M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z'
  66800. ], [
  66801. primaryColor,
  66802. 'M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0 0 46.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z'
  66803. ]);
  66804. });
  66805. exports.StopTwoTone = getIcon('stop', twotone, function (primaryColor, secondaryColor) {
  66806. return getNode(newViewBox, [
  66807. primaryColor,
  66808. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm288.5 682.8L277.7 224C258 240 240 258 224 277.7l522.8 522.8C682.8 852.7 601 884 512 884c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372c0 89-31.3 170.8-83.5 234.8z'
  66809. ], [
  66810. secondaryColor,
  66811. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372c89 0 170.8-31.3 234.8-83.5L224 277.7c16-19.7 34-37.7 53.7-53.7l522.8 522.8C852.7 682.8 884 601 884 512c0-205.4-166.6-372-372-372z'
  66812. ]);
  66813. });
  66814. exports.SwitcherTwoTone = getIcon('switcher', twotone, function (primaryColor, secondaryColor) {
  66815. return getNode(newViewBox, [secondaryColor, 'M184 840h528V312H184v528zm116-290h296v64H300v-64z'], [
  66816. primaryColor,
  66817. 'M880 112H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32z'
  66818. ], [
  66819. primaryColor,
  66820. 'M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zm-40 600H184V312h528v528z'
  66821. ], [primaryColor, 'M300 550h296v64H300z']);
  66822. });
  66823. exports.TabletTwoTone = getIcon('tablet', twotone, function (primaryColor, secondaryColor) {
  66824. return getNode(newViewBox, [
  66825. primaryColor,
  66826. 'M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H232V136h560v752z'
  66827. ], [
  66828. secondaryColor,
  66829. 'M232 888h560V136H232v752zm280-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
  66830. ], [primaryColor, 'M472 784a40 40 0 1 0 80 0 40 40 0 1 0-80 0z']);
  66831. });
  66832. exports.TagTwoTone = getIcon('tag', twotone, function (primaryColor, secondaryColor) {
  66833. return getNode(newViewBox, [
  66834. secondaryColor,
  66835. 'M589 164.6L189.3 564.3l270.4 270.4L859.4 435 836 188l-247-23.4zM680 432c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88z'
  66836. ], [
  66837. primaryColor,
  66838. 'M680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z'
  66839. ], [
  66840. primaryColor,
  66841. 'M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8a9.9 9.9 0 0 0 7.1 2.9c2.7 0 5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7z'
  66842. ]);
  66843. });
  66844. exports.TagsTwoTone = getIcon('tags', twotone, function (primaryColor, secondaryColor) {
  66845. return getNode(newViewBox, [
  66846. secondaryColor,
  66847. 'M477.5 694l311.9-311.8-19-224.6-224.6-19-311.9 311.9L477.5 694zm116-415.5a47.81 47.81 0 0 1 33.9-33.9c16.6-4.4 34.2.3 46.4 12.4a47.93 47.93 0 0 1 12.4 46.4 47.81 47.81 0 0 1-33.9 33.9c-16.6 4.4-34.2-.3-46.4-12.4a48.3 48.3 0 0 1-12.4-46.4z'
  66848. ], [
  66849. secondaryColor,
  66850. 'M476.6 792.6c-1.7-.2-3.4-1-4.7-2.3L137.7 456.1a8.03 8.03 0 0 1 0-11.3L515.9 66.6c1.2-1.3 2.9-2.1 4.7-2.3h-.4c-2.3-.2-4.7.6-6.3 2.3L135.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c1.8 1.9 4.3 2.6 6.7 2.3z'
  66851. ], [
  66852. primaryColor,
  66853. 'M889.7 539.8l-39.6-39.5a8.03 8.03 0 0 0-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 0 0-11.3 0l-39.6 39.5a8.03 8.03 0 0 0 0 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3zM652.3 337.3a47.81 47.81 0 0 0 33.9-33.9c4.4-16.6-.3-34.2-12.4-46.4a47.93 47.93 0 0 0-46.4-12.4 47.81 47.81 0 0 0-33.9 33.9c-4.4 16.6.3 34.2 12.4 46.4a48.3 48.3 0 0 0 46.4 12.4z'
  66854. ], [
  66855. primaryColor,
  66856. 'M137.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c1.3 1.3 2.9 2.1 4.7 2.3 2.4.3 4.8-.5 6.6-2.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3h-1.6c-1.8.2-3.4 1-4.7 2.3L137.7 444.8zm408.1-306.2l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9z'
  66857. ]);
  66858. });
  66859. exports.ToolTwoTone = getIcon('tool', twotone, function (primaryColor, secondaryColor) {
  66860. return getNode(newViewBox, [
  66861. secondaryColor,
  66862. 'M706.8 488.7a32.05 32.05 0 0 1-45.3 0L537 364.2a32.05 32.05 0 0 1 0-45.3l132.9-132.8a184.2 184.2 0 0 0-144 53.5c-58.1 58.1-69.3 145.3-33.6 214.6L439.5 507c-.1 0-.1-.1-.1-.1L209.3 737l79.2 79.2 274-274.1.1.1 8.8-8.8c69.3 35.7 156.5 24.5 214.6-33.6 39.2-39.1 57.3-92.1 53.6-143.9L706.8 488.7z'
  66863. ], [
  66864. primaryColor,
  66865. 'M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 0 1 144-53.5L537 318.9a32.05 32.05 0 0 0 0 45.3l124.5 124.5a32.05 32.05 0 0 0 45.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z'
  66866. ]);
  66867. });
  66868. exports.TrademarkCircleTwoTone = getIcon('trademark-circle', twotone, function (primaryColor, secondaryColor) {
  66869. return getNode(newViewBox, [
  66870. primaryColor,
  66871. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66872. ], [
  66873. secondaryColor,
  66874. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm170.7 584.2c-1.1.5-2.3.8-3.5.8h-62c-3.1 0-5.9-1.8-7.2-4.6l-74.6-159.2h-88.7V717c0 4.4-3.6 8-8 8H384c-4.4 0-8-3.6-8-8V307c0-4.4 3.6-8 8-8h155.6c98.8 0 144.2 59.9 144.2 131.1 0 70.2-43.6 106.4-78.4 119.2l80.8 164.2c2.1 3.9.4 8.7-3.5 10.7z'
  66875. ], [
  66876. secondaryColor,
  66877. 'M529.9 357h-83.4v148H528c53 0 82.8-25.6 82.8-72.4 0-50.3-32.9-75.6-80.9-75.6z'
  66878. ], [
  66879. primaryColor,
  66880. 'M605.4 549.3c34.8-12.8 78.4-49 78.4-119.2 0-71.2-45.4-131.1-144.2-131.1H384c-4.4 0-8 3.6-8 8v410c0 4.4 3.6 8 8 8h54.7c4.4 0 8-3.6 8-8V561.2h88.7L610 720.4c1.3 2.8 4.1 4.6 7.2 4.6h62c1.2 0 2.4-.3 3.5-.8 3.9-2 5.6-6.8 3.5-10.7l-80.8-164.2zM528 505h-81.5V357h83.4c48 0 80.9 25.3 80.9 75.6 0 46.8-29.8 72.4-82.8 72.4z'
  66881. ]);
  66882. });
  66883. exports.UnlockTwoTone = getIcon('unlock', twotone, function (primaryColor, secondaryColor) {
  66884. return getNode(newViewBox, [
  66885. secondaryColor,
  66886. 'M232 840h560V536H232v304zm280-226a48.01 48.01 0 0 1 28 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0 1 28-87z'
  66887. ], [
  66888. primaryColor,
  66889. 'M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z'
  66890. ], [
  66891. primaryColor,
  66892. 'M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304z'
  66893. ]);
  66894. });
  66895. exports.TrophyTwoTone = getIcon('trophy', twotone, function (primaryColor, secondaryColor) {
  66896. return getNode(newViewBox, [
  66897. secondaryColor,
  66898. 'M320 480c0 49.1 19.1 95.3 53.9 130.1 34.7 34.8 81 53.9 130.1 53.9h16c49.1 0 95.3-19.1 130.1-53.9 34.8-34.7 53.9-81 53.9-130.1V184H320v296zM184 352c0 41 26.9 75.8 64 87.6-37.1-11.9-64-46.7-64-87.6zm364 382.5C665 721.8 758.4 630.2 773.8 514 758.3 630.2 665 721.7 548 734.5zM250.2 514C265.6 630.2 359 721.8 476 734.5 359 721.7 265.7 630.2 250.2 514z'
  66899. ], [
  66900. primaryColor,
  66901. 'M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 0 0-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 0 0-44-44zM248 439.6a91.99 91.99 0 0 1-64-87.6V232h64v207.6zM704 480c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z'
  66902. ]);
  66903. });
  66904. exports.UpCircleTwoTone = getIcon('up-circle', twotone, function (primaryColor, secondaryColor) {
  66905. return getNode(newViewBox, [
  66906. secondaryColor,
  66907. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm178 479h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 460.4 406.8 605.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z'
  66908. ], [
  66909. primaryColor,
  66910. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66911. ], [
  66912. primaryColor,
  66913. 'M518.4 360.3a7.95 7.95 0 0 0-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7h46.9c10.3 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.7 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.4-12.7l-178-246z'
  66914. ]);
  66915. });
  66916. exports.ThunderboltTwoTone = getIcon('thunderbolt', twotone, function (primaryColor, secondaryColor) {
  66917. return getNode(newViewBox, [
  66918. secondaryColor,
  66919. 'M695.4 164.1H470.8L281.2 491.5h157.4l-60.3 241 319.8-305.1h-211z'
  66920. ], [
  66921. primaryColor,
  66922. 'M848.1 359.3H627.8L825.9 109c4.1-5.3.4-13-6.3-13H436.1c-2.8 0-5.5 1.5-6.9 4L170.1 547.5c-3.1 5.3.7 12 6.9 12h174.4L262 917.1c-1.9 7.8 7.5 13.3 13.3 7.7L853.6 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.3 732.5l60.3-241H281.2l189.6-327.4h224.6L487.1 427.4h211L378.3 732.5z'
  66923. ]);
  66924. });
  66925. exports.UpSquareTwoTone = getIcon('up-square', twotone, function (primaryColor, secondaryColor) {
  66926. return getNode(newViewBox, [
  66927. primaryColor,
  66928. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
  66929. ], [
  66930. secondaryColor,
  66931. 'M184 840h656V184H184v656zm143.5-228.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 465.4 406.8 610.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7z'
  66932. ], [
  66933. primaryColor,
  66934. 'M334 624h46.9c10.3 0 19.9-4.9 25.9-13.2L512 465.4l105.2 145.4c6 8.3 15.7 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.4-12.7l-178-246a7.95 7.95 0 0 0-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7z'
  66935. ]);
  66936. });
  66937. exports.UsbTwoTone = getIcon('usb', twotone, function (primaryColor, secondaryColor) {
  66938. return getNode(newViewBox, [
  66939. secondaryColor,
  66940. 'M759.9 504H264.1c-26.5 0-48.1 19.7-48.1 44v292h592V548c0-24.3-21.6-44-48.1-44z'
  66941. ], [
  66942. primaryColor,
  66943. 'M456 248h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm160 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
  66944. ], [
  66945. primaryColor,
  66946. 'M760 432V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zM336 184h352v248H336V184zm472 656H216V548c0-24.3 21.6-44 48.1-44h495.8c26.5 0 48.1 19.7 48.1 44v292z'
  66947. ]);
  66948. });
  66949. exports.VideoCameraTwoTone = getIcon('video-camera', twotone, function (primaryColor, secondaryColor) {
  66950. return getNode(newViewBox, [
  66951. secondaryColor,
  66952. 'M136 792h576V232H136v560zm64-488c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48z'
  66953. ], [
  66954. primaryColor,
  66955. 'M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226z'
  66956. ], [
  66957. primaryColor,
  66958. 'M208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
  66959. ]);
  66960. });
  66961. exports.WalletTwoTone = getIcon('wallet', twotone, function (primaryColor, secondaryColor) {
  66962. return getNode(newViewBox, [
  66963. primaryColor,
  66964. 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0-192H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200H184V184h656v200z'
  66965. ], [
  66966. secondaryColor,
  66967. 'M528 576h312V448H528v128zm92-104c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
  66968. ], [primaryColor, 'M580 512a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'], [
  66969. secondaryColor,
  66970. 'M184 840h656V640H496c-17.7 0-32-14.3-32-32V416c0-17.7 14.3-32 32-32h344V184H184v656z'
  66971. ]);
  66972. });
  66973. exports.WarningTwoTone = getIcon('warning', twotone, function (primaryColor, secondaryColor) {
  66974. return getNode(newViewBox, [
  66975. primaryColor,
  66976. 'M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z'
  66977. ], [
  66978. secondaryColor,
  66979. 'M172.2 828.1h679.6L512 239.9 172.2 828.1zM560 720a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0zm-16-304v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8z'
  66980. ], [
  66981. primaryColor,
  66982. 'M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z'
  66983. ]);
  66984. });
  66985. exports.CiTwoTone = getIcon('ci', twotone, function (primaryColor, secondaryColor) {
  66986. return getNode(newViewBox, [
  66987. primaryColor,
  66988. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  66989. ], [
  66990. secondaryColor,
  66991. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-63.5 522.8c49.3 0 82.8-29.4 87-72.4.4-4.1 3.8-7.3 8-7.3h52.7c2.4 0 4.4 2 4.4 4.4 0 77.4-64.3 132.5-152.3 132.5C345.4 720 286 651.4 286 537.4v-49C286 373.5 345.4 304 448.3 304c88.3 0 152.3 56.9 152.3 138.1 0 2.4-2 4.4-4.4 4.4h-52.6c-4.2 0-7.6-3.2-8-7.4-3.9-46.1-37.5-77.6-87-77.6-61.1 0-95.6 45.4-95.7 126.8v49.3c0 80.3 34.5 125.2 95.6 125.2zM738 704.1c0 4.4-3.6 8-8 8h-50.4c-4.4 0-8-3.6-8-8V319.9c0-4.4 3.6-8 8-8H730c4.4 0 8 3.6 8 8v384.2z'
  66992. ], [
  66993. primaryColor,
  66994. 'M730 311.9h-50.4c-4.4 0-8 3.6-8 8v384.2c0 4.4 3.6 8 8 8H730c4.4 0 8-3.6 8-8V319.9c0-4.4-3.6-8-8-8zm-281.4 49.6c49.5 0 83.1 31.5 87 77.6.4 4.2 3.8 7.4 8 7.4h52.6c2.4 0 4.4-2 4.4-4.4 0-81.2-64-138.1-152.3-138.1C345.4 304 286 373.5 286 488.4v49c0 114 59.4 182.6 162.3 182.6 88 0 152.3-55.1 152.3-132.5 0-2.4-2-4.4-4.4-4.4h-52.7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c.1-81.4 34.6-126.8 95.7-126.8z'
  66995. ]);
  66996. });
  66997. exports.CopyrightTwoTone = getIcon('copyright', twotone, function (primaryColor, secondaryColor) {
  66998. return getNode(newViewBox, [
  66999. primaryColor,
  67000. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  67001. ], [
  67002. secondaryColor,
  67003. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm5.5 533c52.9 0 88.8-31.7 93-77.8.4-4.1 3.8-7.3 8-7.3h56.8c2.6 0 4.7 2.1 4.7 4.7 0 82.6-68.7 141.4-162.7 141.4C407.4 734 344 660.8 344 539.1v-52.3C344 364.2 407.4 290 517.3 290c94.3 0 162.7 60.7 162.7 147.4 0 2.6-2.1 4.7-4.7 4.7h-56.7c-4.2 0-7.7-3.2-8-7.4-4-49.6-40-83.4-93-83.4-65.2 0-102.1 48.5-102.2 135.5v52.6c0 85.7 36.8 133.6 102.1 133.6z'
  67004. ], [
  67005. primaryColor,
  67006. 'M517.6 351.3c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z'
  67007. ]);
  67008. });
  67009. exports.DollarTwoTone = getIcon('dollar', twotone, function (primaryColor, secondaryColor) {
  67010. return getNode(newViewBox, [
  67011. primaryColor,
  67012. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  67013. ], [
  67014. secondaryColor,
  67015. 'M426.6 410.3c0 25.4 15.7 45.1 49.5 57.3 4.7 1.9 9.4 3.4 15 5v-124c-37 4.7-64.5 25.4-64.5 61.7zm116.5 135.2c-2.9-.6-5.7-1.3-8.8-2.2V677c42.6-3.8 72-27.3 72-66.4 0-30.7-15.9-50.7-63.2-65.1z'
  67016. ], [
  67017. secondaryColor,
  67018. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm22.4 589.2l.2 31.7c0 4.5-3.6 8.1-8 8.1h-28.4c-4.4 0-8-3.6-8-8v-31.4c-89-6.5-130.7-57.1-135.2-112.1-.4-4.7 3.3-8.7 8-8.7h46.2c3.9 0 7.3 2.8 7.9 6.6 5.1 31.8 29.9 55.4 74.1 61.3V534l-24.7-6.3c-52.3-12.5-102.1-45.1-102.1-112.7 0-73 55.4-112.1 126.2-119v-33c0-4.4 3.6-8 8-8h28.1c4.4 0 8 3.6 8 8v32.7c68.5 6.9 119.8 46.9 125.9 109.2a8.1 8.1 0 0 1-8 8.8h-44.9c-4 0-7.4-2.9-7.9-6.9-4-29.2-27.5-53-65.5-58.2v134.3l25.4 5.9c64.8 16 108.9 47 109 116.4 0 75.2-56 117.1-134.3 124z'
  67019. ], [
  67020. primaryColor,
  67021. 'M559.7 488.8l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z'
  67022. ]);
  67023. });
  67024. exports.EuroTwoTone = getIcon('euro', twotone, function (primaryColor, secondaryColor) {
  67025. return getNode(newViewBox, [
  67026. primaryColor,
  67027. 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
  67028. ], [
  67029. secondaryColor,
  67030. 'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm117.1 581.1c0 3.8-2.7 7-6.4 7.8-15.9 3.4-34.4 5.1-55.3 5.1-109.8 0-183-58.8-200.2-158H337c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h26.1v-36.9c0-4.4 0-8.7.3-12.8H337c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h31.8C388.5 345.7 460.7 290 567.4 290c20.9 0 39.4 1.9 55.3 5.4 3.7.8 6.3 4 6.3 7.8V346a8 8 0 0 1-9.6 7.8c-14.6-2.9-31.8-4.4-51.7-4.4-65.3 0-110.4 33.5-127.6 90.4h128.3c4.4 0 8 3.6 8 8V475c0 4.4-3.6 8-8 8H432.5c-.3 4.4-.3 9.1-.3 13.8v36h136.4c4.4 0 8 3.6 8 8V568c0 4.4-3.6 8-8 8H438c15.3 62 61.3 98.6 129.8 98.6 19.9 0 37.1-1.3 51.8-4.1 4.9-1 9.5 2.8 9.5 7.8v42.8z'
  67031. ], [
  67032. primaryColor,
  67033. 'M619.6 670.5c-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H432.2v-36c0-4.7 0-9.4.3-13.8h135.9c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H440.1c17.2-56.9 62.3-90.4 127.6-90.4 19.9 0 37.1 1.5 51.7 4.4a8 8 0 0 0 9.6-7.8v-42.8c0-3.8-2.6-7-6.3-7.8-15.9-3.5-34.4-5.4-55.3-5.4-106.7 0-178.9 55.7-198.6 149.9H337c-4.4 0-8 3.6-8 8v27.2c0 4.4 3.6 8 8 8h26.4c-.3 4.1-.3 8.4-.3 12.8v36.9H337c-4.4 0-8 3.6-8 8V568c0 4.4 3.6 8 8 8h30.2c17.2 99.2 90.4 158 200.2 158 20.9 0 39.4-1.7 55.3-5.1 3.7-.8 6.4-4 6.4-7.8v-42.8c0-5-4.6-8.8-9.5-7.8z'
  67034. ]);
  67035. });
  67036. exports.GoldTwoTone = getIcon('gold', twotone, function (primaryColor, secondaryColor) {
  67037. return getNode(newViewBox, [
  67038. primaryColor,
  67039. 'M435.7 558.7c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM196.5 748l20.7-128h159.5l20.7 128H196.5zm709.4 58.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zM626.5 748l20.7-128h159.5l20.7 128H626.5zM342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8zm91.2-196h159.5l20.7 128h-201l20.8-128z'
  67040. ], [
  67041. secondaryColor,
  67042. 'M592.7 276H433.2l-20.8 128h201zM217.2 620l-20.7 128h200.9l-20.7-128zm430 0l-20.7 128h200.9l-20.7-128z'
  67043. ]);
  67044. });
  67045. exports.CanlendarTwoTone = getIcon('canlendar', twotone, function (primaryColor, secondaryColor) {
  67046. return getNode(newViewBox, [
  67047. secondaryColor,
  67048. 'M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v136h656V256H712v48z'
  67049. ], [
  67050. primaryColor,
  67051. 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z'
  67052. ]);
  67053. });
  67054. /***/ }),
  67055. /***/ "./node_modules/add-dom-event-listener/lib/EventBaseObject.js":
  67056. /*!********************************************************************!*\
  67057. !*** ./node_modules/add-dom-event-listener/lib/EventBaseObject.js ***!
  67058. \********************************************************************/
  67059. /*! no static exports found */
  67060. /***/ (function(module, exports, __webpack_require__) {
  67061. "use strict";
  67062. /**
  67063. * @ignore
  67064. * base event object for custom and dom event.
  67065. * @author yiminghe@gmail.com
  67066. */
  67067. Object.defineProperty(exports, "__esModule", {
  67068. value: true
  67069. });
  67070. function returnFalse() {
  67071. return false;
  67072. }
  67073. function returnTrue() {
  67074. return true;
  67075. }
  67076. function EventBaseObject() {
  67077. this.timeStamp = Date.now();
  67078. this.target = undefined;
  67079. this.currentTarget = undefined;
  67080. }
  67081. EventBaseObject.prototype = {
  67082. isEventObject: 1,
  67083. constructor: EventBaseObject,
  67084. isDefaultPrevented: returnFalse,
  67085. isPropagationStopped: returnFalse,
  67086. isImmediatePropagationStopped: returnFalse,
  67087. preventDefault: function preventDefault() {
  67088. this.isDefaultPrevented = returnTrue;
  67089. },
  67090. stopPropagation: function stopPropagation() {
  67091. this.isPropagationStopped = returnTrue;
  67092. },
  67093. stopImmediatePropagation: function stopImmediatePropagation() {
  67094. this.isImmediatePropagationStopped = returnTrue;
  67095. // fixed 1.2
  67096. // call stopPropagation implicitly
  67097. this.stopPropagation();
  67098. },
  67099. halt: function halt(immediate) {
  67100. if (immediate) {
  67101. this.stopImmediatePropagation();
  67102. } else {
  67103. this.stopPropagation();
  67104. }
  67105. this.preventDefault();
  67106. }
  67107. };
  67108. exports["default"] = EventBaseObject;
  67109. module.exports = exports["default"];
  67110. /***/ }),
  67111. /***/ "./node_modules/add-dom-event-listener/lib/EventObject.js":
  67112. /*!****************************************************************!*\
  67113. !*** ./node_modules/add-dom-event-listener/lib/EventObject.js ***!
  67114. \****************************************************************/
  67115. /*! no static exports found */
  67116. /***/ (function(module, exports, __webpack_require__) {
  67117. "use strict";
  67118. /**
  67119. * @ignore
  67120. * event object for dom
  67121. * @author yiminghe@gmail.com
  67122. */
  67123. Object.defineProperty(exports, '__esModule', {
  67124. value: true
  67125. });
  67126. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
  67127. var _EventBaseObject = __webpack_require__(/*! ./EventBaseObject */ "./node_modules/add-dom-event-listener/lib/EventBaseObject.js");
  67128. var _EventBaseObject2 = _interopRequireDefault(_EventBaseObject);
  67129. var _objectAssign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
  67130. var _objectAssign2 = _interopRequireDefault(_objectAssign);
  67131. var TRUE = true;
  67132. var FALSE = false;
  67133. var commonProps = ['altKey', 'bubbles', 'cancelable', 'ctrlKey', 'currentTarget', 'eventPhase', 'metaKey', 'shiftKey', 'target', 'timeStamp', 'view', 'type'];
  67134. function isNullOrUndefined(w) {
  67135. return w === null || w === undefined;
  67136. }
  67137. var eventNormalizers = [{
  67138. reg: /^key/,
  67139. props: ['char', 'charCode', 'key', 'keyCode', 'which'],
  67140. fix: function fix(event, nativeEvent) {
  67141. if (isNullOrUndefined(event.which)) {
  67142. event.which = !isNullOrUndefined(nativeEvent.charCode) ? nativeEvent.charCode : nativeEvent.keyCode;
  67143. }
  67144. // add metaKey to non-Mac browsers (use ctrl for PC 's and Meta for Macs)
  67145. if (event.metaKey === undefined) {
  67146. event.metaKey = event.ctrlKey;
  67147. }
  67148. }
  67149. }, {
  67150. reg: /^touch/,
  67151. props: ['touches', 'changedTouches', 'targetTouches']
  67152. }, {
  67153. reg: /^hashchange$/,
  67154. props: ['newURL', 'oldURL']
  67155. }, {
  67156. reg: /^gesturechange$/i,
  67157. props: ['rotation', 'scale']
  67158. }, {
  67159. reg: /^(mousewheel|DOMMouseScroll)$/,
  67160. props: [],
  67161. fix: function fix(event, nativeEvent) {
  67162. var deltaX = undefined;
  67163. var deltaY = undefined;
  67164. var delta = undefined;
  67165. var wheelDelta = nativeEvent.wheelDelta;
  67166. var axis = nativeEvent.axis;
  67167. var wheelDeltaY = nativeEvent.wheelDeltaY;
  67168. var wheelDeltaX = nativeEvent.wheelDeltaX;
  67169. var detail = nativeEvent.detail;
  67170. // ie/webkit
  67171. if (wheelDelta) {
  67172. delta = wheelDelta / 120;
  67173. }
  67174. // gecko
  67175. if (detail) {
  67176. // press control e.detail == 1 else e.detail == 3
  67177. delta = 0 - (detail % 3 === 0 ? detail / 3 : detail);
  67178. }
  67179. // Gecko
  67180. if (axis !== undefined) {
  67181. if (axis === event.HORIZONTAL_AXIS) {
  67182. deltaY = 0;
  67183. deltaX = 0 - delta;
  67184. } else if (axis === event.VERTICAL_AXIS) {
  67185. deltaX = 0;
  67186. deltaY = delta;
  67187. }
  67188. }
  67189. // Webkit
  67190. if (wheelDeltaY !== undefined) {
  67191. deltaY = wheelDeltaY / 120;
  67192. }
  67193. if (wheelDeltaX !== undefined) {
  67194. deltaX = -1 * wheelDeltaX / 120;
  67195. }
  67196. // 默认 deltaY (ie)
  67197. if (!deltaX && !deltaY) {
  67198. deltaY = delta;
  67199. }
  67200. if (deltaX !== undefined) {
  67201. /**
  67202. * deltaX of mousewheel event
  67203. * @property deltaX
  67204. * @member Event.DomEvent.Object
  67205. */
  67206. event.deltaX = deltaX;
  67207. }
  67208. if (deltaY !== undefined) {
  67209. /**
  67210. * deltaY of mousewheel event
  67211. * @property deltaY
  67212. * @member Event.DomEvent.Object
  67213. */
  67214. event.deltaY = deltaY;
  67215. }
  67216. if (delta !== undefined) {
  67217. /**
  67218. * delta of mousewheel event
  67219. * @property delta
  67220. * @member Event.DomEvent.Object
  67221. */
  67222. event.delta = delta;
  67223. }
  67224. }
  67225. }, {
  67226. reg: /^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,
  67227. props: ['buttons', 'clientX', 'clientY', 'button', 'offsetX', 'relatedTarget', 'which', 'fromElement', 'toElement', 'offsetY', 'pageX', 'pageY', 'screenX', 'screenY'],
  67228. fix: function fix(event, nativeEvent) {
  67229. var eventDoc = undefined;
  67230. var doc = undefined;
  67231. var body = undefined;
  67232. var target = event.target;
  67233. var button = nativeEvent.button;
  67234. // Calculate pageX/Y if missing and clientX/Y available
  67235. if (target && isNullOrUndefined(event.pageX) && !isNullOrUndefined(nativeEvent.clientX)) {
  67236. eventDoc = target.ownerDocument || document;
  67237. doc = eventDoc.documentElement;
  67238. body = eventDoc.body;
  67239. event.pageX = nativeEvent.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
  67240. event.pageY = nativeEvent.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);
  67241. }
  67242. // which for click: 1 === left; 2 === middle; 3 === right
  67243. // do not use button
  67244. if (!event.which && button !== undefined) {
  67245. if (button & 1) {
  67246. event.which = 1;
  67247. } else if (button & 2) {
  67248. event.which = 3;
  67249. } else if (button & 4) {
  67250. event.which = 2;
  67251. } else {
  67252. event.which = 0;
  67253. }
  67254. }
  67255. // add relatedTarget, if necessary
  67256. if (!event.relatedTarget && event.fromElement) {
  67257. event.relatedTarget = event.fromElement === target ? event.toElement : event.fromElement;
  67258. }
  67259. return event;
  67260. }
  67261. }];
  67262. function retTrue() {
  67263. return TRUE;
  67264. }
  67265. function retFalse() {
  67266. return FALSE;
  67267. }
  67268. function DomEventObject(nativeEvent) {
  67269. var type = nativeEvent.type;
  67270. var isNative = typeof nativeEvent.stopPropagation === 'function' || typeof nativeEvent.cancelBubble === 'boolean';
  67271. _EventBaseObject2['default'].call(this);
  67272. this.nativeEvent = nativeEvent;
  67273. // in case dom event has been mark as default prevented by lower dom node
  67274. var isDefaultPrevented = retFalse;
  67275. if ('defaultPrevented' in nativeEvent) {
  67276. isDefaultPrevented = nativeEvent.defaultPrevented ? retTrue : retFalse;
  67277. } else if ('getPreventDefault' in nativeEvent) {
  67278. // https://bugzilla.mozilla.org/show_bug.cgi?id=691151
  67279. isDefaultPrevented = nativeEvent.getPreventDefault() ? retTrue : retFalse;
  67280. } else if ('returnValue' in nativeEvent) {
  67281. isDefaultPrevented = nativeEvent.returnValue === FALSE ? retTrue : retFalse;
  67282. }
  67283. this.isDefaultPrevented = isDefaultPrevented;
  67284. var fixFns = [];
  67285. var fixFn = undefined;
  67286. var l = undefined;
  67287. var prop = undefined;
  67288. var props = commonProps.concat();
  67289. eventNormalizers.forEach(function (normalizer) {
  67290. if (type.match(normalizer.reg)) {
  67291. props = props.concat(normalizer.props);
  67292. if (normalizer.fix) {
  67293. fixFns.push(normalizer.fix);
  67294. }
  67295. }
  67296. });
  67297. l = props.length;
  67298. // clone properties of the original event object
  67299. while (l) {
  67300. prop = props[--l];
  67301. this[prop] = nativeEvent[prop];
  67302. }
  67303. // fix target property, if necessary
  67304. if (!this.target && isNative) {
  67305. this.target = nativeEvent.srcElement || document; // srcElement might not be defined either
  67306. }
  67307. // check if target is a text node (safari)
  67308. if (this.target && this.target.nodeType === 3) {
  67309. this.target = this.target.parentNode;
  67310. }
  67311. l = fixFns.length;
  67312. while (l) {
  67313. fixFn = fixFns[--l];
  67314. fixFn(this, nativeEvent);
  67315. }
  67316. this.timeStamp = nativeEvent.timeStamp || Date.now();
  67317. }
  67318. var EventBaseObjectProto = _EventBaseObject2['default'].prototype;
  67319. (0, _objectAssign2['default'])(DomEventObject.prototype, EventBaseObjectProto, {
  67320. constructor: DomEventObject,
  67321. preventDefault: function preventDefault() {
  67322. var e = this.nativeEvent;
  67323. // if preventDefault exists run it on the original event
  67324. if (e.preventDefault) {
  67325. e.preventDefault();
  67326. } else {
  67327. // otherwise set the returnValue property of the original event to FALSE (IE)
  67328. e.returnValue = FALSE;
  67329. }
  67330. EventBaseObjectProto.preventDefault.call(this);
  67331. },
  67332. stopPropagation: function stopPropagation() {
  67333. var e = this.nativeEvent;
  67334. // if stopPropagation exists run it on the original event
  67335. if (e.stopPropagation) {
  67336. e.stopPropagation();
  67337. } else {
  67338. // otherwise set the cancelBubble property of the original event to TRUE (IE)
  67339. e.cancelBubble = TRUE;
  67340. }
  67341. EventBaseObjectProto.stopPropagation.call(this);
  67342. }
  67343. });
  67344. exports['default'] = DomEventObject;
  67345. module.exports = exports['default'];
  67346. /***/ }),
  67347. /***/ "./node_modules/add-dom-event-listener/lib/index.js":
  67348. /*!**********************************************************!*\
  67349. !*** ./node_modules/add-dom-event-listener/lib/index.js ***!
  67350. \**********************************************************/
  67351. /*! no static exports found */
  67352. /***/ (function(module, exports, __webpack_require__) {
  67353. "use strict";
  67354. Object.defineProperty(exports, '__esModule', {
  67355. value: true
  67356. });
  67357. exports['default'] = addEventListener;
  67358. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
  67359. var _EventObject = __webpack_require__(/*! ./EventObject */ "./node_modules/add-dom-event-listener/lib/EventObject.js");
  67360. var _EventObject2 = _interopRequireDefault(_EventObject);
  67361. function addEventListener(target, eventType, callback, option) {
  67362. function wrapCallback(e) {
  67363. var ne = new _EventObject2['default'](e);
  67364. callback.call(target, ne);
  67365. }
  67366. if (target.addEventListener) {
  67367. var _ret = (function () {
  67368. var useCapture = false;
  67369. if (typeof option === 'object') {
  67370. useCapture = option.capture || false;
  67371. } else if (typeof option === 'boolean') {
  67372. useCapture = option;
  67373. }
  67374. target.addEventListener(eventType, wrapCallback, option || false);
  67375. return {
  67376. v: {
  67377. remove: function remove() {
  67378. target.removeEventListener(eventType, wrapCallback, useCapture);
  67379. }
  67380. }
  67381. };
  67382. })();
  67383. if (typeof _ret === 'object') return _ret.v;
  67384. } else if (target.attachEvent) {
  67385. target.attachEvent('on' + eventType, wrapCallback);
  67386. return {
  67387. remove: function remove() {
  67388. target.detachEvent('on' + eventType, wrapCallback);
  67389. }
  67390. };
  67391. }
  67392. }
  67393. module.exports = exports['default'];
  67394. /***/ }),
  67395. /***/ "./node_modules/array-tree-filter/lib/index.js":
  67396. /*!*****************************************************!*\
  67397. !*** ./node_modules/array-tree-filter/lib/index.js ***!
  67398. \*****************************************************/
  67399. /*! no static exports found */
  67400. /***/ (function(module, exports, __webpack_require__) {
  67401. (function (global, factory) {
  67402. true ? module.exports = factory() :
  67403. undefined;
  67404. }(this, (function () { 'use strict';
  67405. function arrayTreeFilter(data, filterFn, options) {
  67406. options = options || {};
  67407. options.childrenKeyName = options.childrenKeyName || "children";
  67408. var children = data || [];
  67409. var result = [];
  67410. var level = 0;
  67411. do {
  67412. var foundItem = children.filter(function (item) {
  67413. return filterFn(item, level);
  67414. })[0];
  67415. if (!foundItem) {
  67416. break;
  67417. }
  67418. result.push(foundItem);
  67419. children = foundItem[options.childrenKeyName] || [];
  67420. level += 1;
  67421. } while (children.length > 0);
  67422. return result;
  67423. }
  67424. return arrayTreeFilter;
  67425. })));
  67426. /***/ }),
  67427. /***/ "./node_modules/async-validator/dist-web/index.js":
  67428. /*!********************************************************!*\
  67429. !*** ./node_modules/async-validator/dist-web/index.js ***!
  67430. \********************************************************/
  67431. /*! exports provided: default */
  67432. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  67433. "use strict";
  67434. __webpack_require__.r(__webpack_exports__);
  67435. /* WEBPACK VAR INJECTION */(function(process) {function _extends() {
  67436. _extends = Object.assign || function (target) {
  67437. for (var i = 1; i < arguments.length; i++) {
  67438. var source = arguments[i];
  67439. for (var key in source) {
  67440. if (Object.prototype.hasOwnProperty.call(source, key)) {
  67441. target[key] = source[key];
  67442. }
  67443. }
  67444. }
  67445. return target;
  67446. };
  67447. return _extends.apply(this, arguments);
  67448. }
  67449. function _inheritsLoose(subClass, superClass) {
  67450. subClass.prototype = Object.create(superClass.prototype);
  67451. subClass.prototype.constructor = subClass;
  67452. subClass.__proto__ = superClass;
  67453. }
  67454. function _getPrototypeOf(o) {
  67455. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
  67456. return o.__proto__ || Object.getPrototypeOf(o);
  67457. };
  67458. return _getPrototypeOf(o);
  67459. }
  67460. function _setPrototypeOf(o, p) {
  67461. _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  67462. o.__proto__ = p;
  67463. return o;
  67464. };
  67465. return _setPrototypeOf(o, p);
  67466. }
  67467. function _isNativeReflectConstruct() {
  67468. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  67469. if (Reflect.construct.sham) return false;
  67470. if (typeof Proxy === "function") return true;
  67471. try {
  67472. Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
  67473. return true;
  67474. } catch (e) {
  67475. return false;
  67476. }
  67477. }
  67478. function _construct(Parent, args, Class) {
  67479. if (_isNativeReflectConstruct()) {
  67480. _construct = Reflect.construct;
  67481. } else {
  67482. _construct = function _construct(Parent, args, Class) {
  67483. var a = [null];
  67484. a.push.apply(a, args);
  67485. var Constructor = Function.bind.apply(Parent, a);
  67486. var instance = new Constructor();
  67487. if (Class) _setPrototypeOf(instance, Class.prototype);
  67488. return instance;
  67489. };
  67490. }
  67491. return _construct.apply(null, arguments);
  67492. }
  67493. function _isNativeFunction(fn) {
  67494. return Function.toString.call(fn).indexOf("[native code]") !== -1;
  67495. }
  67496. function _wrapNativeSuper(Class) {
  67497. var _cache = typeof Map === "function" ? new Map() : undefined;
  67498. _wrapNativeSuper = function _wrapNativeSuper(Class) {
  67499. if (Class === null || !_isNativeFunction(Class)) return Class;
  67500. if (typeof Class !== "function") {
  67501. throw new TypeError("Super expression must either be null or a function");
  67502. }
  67503. if (typeof _cache !== "undefined") {
  67504. if (_cache.has(Class)) return _cache.get(Class);
  67505. _cache.set(Class, Wrapper);
  67506. }
  67507. function Wrapper() {
  67508. return _construct(Class, arguments, _getPrototypeOf(this).constructor);
  67509. }
  67510. Wrapper.prototype = Object.create(Class.prototype, {
  67511. constructor: {
  67512. value: Wrapper,
  67513. enumerable: false,
  67514. writable: true,
  67515. configurable: true
  67516. }
  67517. });
  67518. return _setPrototypeOf(Wrapper, Class);
  67519. };
  67520. return _wrapNativeSuper(Class);
  67521. }
  67522. /* eslint no-console:0 */
  67523. var formatRegExp = /%[sdj%]/g;
  67524. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  67525. if (typeof process !== 'undefined' && process.env && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  67526. warning = function warning(type, errors) {
  67527. if (typeof console !== 'undefined' && console.warn) {
  67528. if (errors.every(function (e) {
  67529. return typeof e === 'string';
  67530. })) {
  67531. console.warn(type, errors);
  67532. }
  67533. }
  67534. };
  67535. }
  67536. function convertFieldsError(errors) {
  67537. if (!errors || !errors.length) return null;
  67538. var fields = {};
  67539. errors.forEach(function (error) {
  67540. var field = error.field;
  67541. fields[field] = fields[field] || [];
  67542. fields[field].push(error);
  67543. });
  67544. return fields;
  67545. }
  67546. function format() {
  67547. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  67548. args[_key] = arguments[_key];
  67549. }
  67550. var i = 1;
  67551. var f = args[0];
  67552. var len = args.length;
  67553. if (typeof f === 'function') {
  67554. return f.apply(null, args.slice(1));
  67555. }
  67556. if (typeof f === 'string') {
  67557. var str = String(f).replace(formatRegExp, function (x) {
  67558. if (x === '%%') {
  67559. return '%';
  67560. }
  67561. if (i >= len) {
  67562. return x;
  67563. }
  67564. switch (x) {
  67565. case '%s':
  67566. return String(args[i++]);
  67567. case '%d':
  67568. return Number(args[i++]);
  67569. case '%j':
  67570. try {
  67571. return JSON.stringify(args[i++]);
  67572. } catch (_) {
  67573. return '[Circular]';
  67574. }
  67575. break;
  67576. default:
  67577. return x;
  67578. }
  67579. });
  67580. return str;
  67581. }
  67582. return f;
  67583. }
  67584. function isNativeStringType(type) {
  67585. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'date' || type === 'pattern';
  67586. }
  67587. function isEmptyValue(value, type) {
  67588. if (value === undefined || value === null) {
  67589. return true;
  67590. }
  67591. if (type === 'array' && Array.isArray(value) && !value.length) {
  67592. return true;
  67593. }
  67594. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  67595. return true;
  67596. }
  67597. return false;
  67598. }
  67599. function asyncParallelArray(arr, func, callback) {
  67600. var results = [];
  67601. var total = 0;
  67602. var arrLength = arr.length;
  67603. function count(errors) {
  67604. results.push.apply(results, errors);
  67605. total++;
  67606. if (total === arrLength) {
  67607. callback(results);
  67608. }
  67609. }
  67610. arr.forEach(function (a) {
  67611. func(a, count);
  67612. });
  67613. }
  67614. function asyncSerialArray(arr, func, callback) {
  67615. var index = 0;
  67616. var arrLength = arr.length;
  67617. function next(errors) {
  67618. if (errors && errors.length) {
  67619. callback(errors);
  67620. return;
  67621. }
  67622. var original = index;
  67623. index = index + 1;
  67624. if (original < arrLength) {
  67625. func(arr[original], next);
  67626. } else {
  67627. callback([]);
  67628. }
  67629. }
  67630. next([]);
  67631. }
  67632. function flattenObjArr(objArr) {
  67633. var ret = [];
  67634. Object.keys(objArr).forEach(function (k) {
  67635. ret.push.apply(ret, objArr[k]);
  67636. });
  67637. return ret;
  67638. }
  67639. var AsyncValidationError = /*#__PURE__*/function (_Error) {
  67640. _inheritsLoose(AsyncValidationError, _Error);
  67641. function AsyncValidationError(errors, fields) {
  67642. var _this;
  67643. _this = _Error.call(this, 'Async Validation Error') || this;
  67644. _this.errors = errors;
  67645. _this.fields = fields;
  67646. return _this;
  67647. }
  67648. return AsyncValidationError;
  67649. }( /*#__PURE__*/_wrapNativeSuper(Error));
  67650. function asyncMap(objArr, option, func, callback) {
  67651. if (option.first) {
  67652. var _pending = new Promise(function (resolve, reject) {
  67653. var next = function next(errors) {
  67654. callback(errors);
  67655. return errors.length ? reject(new AsyncValidationError(errors, convertFieldsError(errors))) : resolve();
  67656. };
  67657. var flattenArr = flattenObjArr(objArr);
  67658. asyncSerialArray(flattenArr, func, next);
  67659. });
  67660. _pending["catch"](function (e) {
  67661. return e;
  67662. });
  67663. return _pending;
  67664. }
  67665. var firstFields = option.firstFields || [];
  67666. if (firstFields === true) {
  67667. firstFields = Object.keys(objArr);
  67668. }
  67669. var objArrKeys = Object.keys(objArr);
  67670. var objArrLength = objArrKeys.length;
  67671. var total = 0;
  67672. var results = [];
  67673. var pending = new Promise(function (resolve, reject) {
  67674. var next = function next(errors) {
  67675. results.push.apply(results, errors);
  67676. total++;
  67677. if (total === objArrLength) {
  67678. callback(results);
  67679. return results.length ? reject(new AsyncValidationError(results, convertFieldsError(results))) : resolve();
  67680. }
  67681. };
  67682. if (!objArrKeys.length) {
  67683. callback(results);
  67684. resolve();
  67685. }
  67686. objArrKeys.forEach(function (key) {
  67687. var arr = objArr[key];
  67688. if (firstFields.indexOf(key) !== -1) {
  67689. asyncSerialArray(arr, func, next);
  67690. } else {
  67691. asyncParallelArray(arr, func, next);
  67692. }
  67693. });
  67694. });
  67695. pending["catch"](function (e) {
  67696. return e;
  67697. });
  67698. return pending;
  67699. }
  67700. function complementError(rule) {
  67701. return function (oe) {
  67702. if (oe && oe.message) {
  67703. oe.field = oe.field || rule.fullField;
  67704. return oe;
  67705. }
  67706. return {
  67707. message: typeof oe === 'function' ? oe() : oe,
  67708. field: oe.field || rule.fullField
  67709. };
  67710. };
  67711. }
  67712. function deepMerge(target, source) {
  67713. if (source) {
  67714. for (var s in source) {
  67715. if (source.hasOwnProperty(s)) {
  67716. var value = source[s];
  67717. if (typeof value === 'object' && typeof target[s] === 'object') {
  67718. target[s] = _extends(_extends({}, target[s]), value);
  67719. } else {
  67720. target[s] = value;
  67721. }
  67722. }
  67723. }
  67724. }
  67725. return target;
  67726. }
  67727. /**
  67728. * Rule for validating required fields.
  67729. *
  67730. * @param rule The validation rule.
  67731. * @param value The value of the field on the source object.
  67732. * @param source The source object being validated.
  67733. * @param errors An array of errors that this rule may add
  67734. * validation errors to.
  67735. * @param options The validation options.
  67736. * @param options.messages The validation messages.
  67737. */
  67738. function required(rule, value, source, errors, options, type) {
  67739. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  67740. errors.push(format(options.messages.required, rule.fullField));
  67741. }
  67742. }
  67743. /**
  67744. * Rule for validating whitespace.
  67745. *
  67746. * @param rule The validation rule.
  67747. * @param value The value of the field on the source object.
  67748. * @param source The source object being validated.
  67749. * @param errors An array of errors that this rule may add
  67750. * validation errors to.
  67751. * @param options The validation options.
  67752. * @param options.messages The validation messages.
  67753. */
  67754. function whitespace(rule, value, source, errors, options) {
  67755. if (/^\s+$/.test(value) || value === '') {
  67756. errors.push(format(options.messages.whitespace, rule.fullField));
  67757. }
  67758. }
  67759. /* eslint max-len:0 */
  67760. var pattern = {
  67761. // http://emailregex.com/
  67762. email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
  67763. url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'),
  67764. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  67765. };
  67766. var types = {
  67767. integer: function integer(value) {
  67768. return types.number(value) && parseInt(value, 10) === value;
  67769. },
  67770. "float": function float(value) {
  67771. return types.number(value) && !types.integer(value);
  67772. },
  67773. array: function array(value) {
  67774. return Array.isArray(value);
  67775. },
  67776. regexp: function regexp(value) {
  67777. if (value instanceof RegExp) {
  67778. return true;
  67779. }
  67780. try {
  67781. return !!new RegExp(value);
  67782. } catch (e) {
  67783. return false;
  67784. }
  67785. },
  67786. date: function date(value) {
  67787. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function' && !isNaN(value.getTime());
  67788. },
  67789. number: function number(value) {
  67790. if (isNaN(value)) {
  67791. return false;
  67792. }
  67793. return typeof value === 'number';
  67794. },
  67795. object: function object(value) {
  67796. return typeof value === 'object' && !types.array(value);
  67797. },
  67798. method: function method(value) {
  67799. return typeof value === 'function';
  67800. },
  67801. email: function email(value) {
  67802. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  67803. },
  67804. url: function url(value) {
  67805. return typeof value === 'string' && !!value.match(pattern.url);
  67806. },
  67807. hex: function hex(value) {
  67808. return typeof value === 'string' && !!value.match(pattern.hex);
  67809. }
  67810. };
  67811. /**
  67812. * Rule for validating the type of a value.
  67813. *
  67814. * @param rule The validation rule.
  67815. * @param value The value of the field on the source object.
  67816. * @param source The source object being validated.
  67817. * @param errors An array of errors that this rule may add
  67818. * validation errors to.
  67819. * @param options The validation options.
  67820. * @param options.messages The validation messages.
  67821. */
  67822. function type(rule, value, source, errors, options) {
  67823. if (rule.required && value === undefined) {
  67824. required(rule, value, source, errors, options);
  67825. return;
  67826. }
  67827. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  67828. var ruleType = rule.type;
  67829. if (custom.indexOf(ruleType) > -1) {
  67830. if (!types[ruleType](value)) {
  67831. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  67832. } // straight typeof check
  67833. } else if (ruleType && typeof value !== rule.type) {
  67834. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  67835. }
  67836. }
  67837. /**
  67838. * Rule for validating minimum and maximum allowed values.
  67839. *
  67840. * @param rule The validation rule.
  67841. * @param value The value of the field on the source object.
  67842. * @param source The source object being validated.
  67843. * @param errors An array of errors that this rule may add
  67844. * validation errors to.
  67845. * @param options The validation options.
  67846. * @param options.messages The validation messages.
  67847. */
  67848. function range(rule, value, source, errors, options) {
  67849. var len = typeof rule.len === 'number';
  67850. var min = typeof rule.min === 'number';
  67851. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  67852. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  67853. var val = value;
  67854. var key = null;
  67855. var num = typeof value === 'number';
  67856. var str = typeof value === 'string';
  67857. var arr = Array.isArray(value);
  67858. if (num) {
  67859. key = 'number';
  67860. } else if (str) {
  67861. key = 'string';
  67862. } else if (arr) {
  67863. key = 'array';
  67864. } // if the value is not of a supported type for range validation
  67865. // the validation rule rule should use the
  67866. // type property to also test for a particular type
  67867. if (!key) {
  67868. return false;
  67869. }
  67870. if (arr) {
  67871. val = value.length;
  67872. }
  67873. if (str) {
  67874. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  67875. val = value.replace(spRegexp, '_').length;
  67876. }
  67877. if (len) {
  67878. if (val !== rule.len) {
  67879. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  67880. }
  67881. } else if (min && !max && val < rule.min) {
  67882. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  67883. } else if (max && !min && val > rule.max) {
  67884. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  67885. } else if (min && max && (val < rule.min || val > rule.max)) {
  67886. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  67887. }
  67888. }
  67889. var ENUM = 'enum';
  67890. /**
  67891. * Rule for validating a value exists in an enumerable list.
  67892. *
  67893. * @param rule The validation rule.
  67894. * @param value The value of the field on the source object.
  67895. * @param source The source object being validated.
  67896. * @param errors An array of errors that this rule may add
  67897. * validation errors to.
  67898. * @param options The validation options.
  67899. * @param options.messages The validation messages.
  67900. */
  67901. function enumerable(rule, value, source, errors, options) {
  67902. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  67903. if (rule[ENUM].indexOf(value) === -1) {
  67904. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  67905. }
  67906. }
  67907. /**
  67908. * Rule for validating a regular expression pattern.
  67909. *
  67910. * @param rule The validation rule.
  67911. * @param value The value of the field on the source object.
  67912. * @param source The source object being validated.
  67913. * @param errors An array of errors that this rule may add
  67914. * validation errors to.
  67915. * @param options The validation options.
  67916. * @param options.messages The validation messages.
  67917. */
  67918. function pattern$1(rule, value, source, errors, options) {
  67919. if (rule.pattern) {
  67920. if (rule.pattern instanceof RegExp) {
  67921. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  67922. // flag is accidentally set to `true`, which in a validation scenario
  67923. // is not necessary and the result might be misleading
  67924. rule.pattern.lastIndex = 0;
  67925. if (!rule.pattern.test(value)) {
  67926. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  67927. }
  67928. } else if (typeof rule.pattern === 'string') {
  67929. var _pattern = new RegExp(rule.pattern);
  67930. if (!_pattern.test(value)) {
  67931. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  67932. }
  67933. }
  67934. }
  67935. }
  67936. var rules = {
  67937. required: required,
  67938. whitespace: whitespace,
  67939. type: type,
  67940. range: range,
  67941. "enum": enumerable,
  67942. pattern: pattern$1
  67943. };
  67944. /**
  67945. * Performs validation for string types.
  67946. *
  67947. * @param rule The validation rule.
  67948. * @param value The value of the field on the source object.
  67949. * @param callback The callback function.
  67950. * @param source The source object being validated.
  67951. * @param options The validation options.
  67952. * @param options.messages The validation messages.
  67953. */
  67954. function string(rule, value, callback, source, options) {
  67955. var errors = [];
  67956. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  67957. if (validate) {
  67958. if (isEmptyValue(value, 'string') && !rule.required) {
  67959. return callback();
  67960. }
  67961. rules.required(rule, value, source, errors, options, 'string');
  67962. if (!isEmptyValue(value, 'string')) {
  67963. rules.type(rule, value, source, errors, options);
  67964. rules.range(rule, value, source, errors, options);
  67965. rules.pattern(rule, value, source, errors, options);
  67966. if (rule.whitespace === true) {
  67967. rules.whitespace(rule, value, source, errors, options);
  67968. }
  67969. }
  67970. }
  67971. callback(errors);
  67972. }
  67973. /**
  67974. * Validates a function.
  67975. *
  67976. * @param rule The validation rule.
  67977. * @param value The value of the field on the source object.
  67978. * @param callback The callback function.
  67979. * @param source The source object being validated.
  67980. * @param options The validation options.
  67981. * @param options.messages The validation messages.
  67982. */
  67983. function method(rule, value, callback, source, options) {
  67984. var errors = [];
  67985. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  67986. if (validate) {
  67987. if (isEmptyValue(value) && !rule.required) {
  67988. return callback();
  67989. }
  67990. rules.required(rule, value, source, errors, options);
  67991. if (value !== undefined) {
  67992. rules.type(rule, value, source, errors, options);
  67993. }
  67994. }
  67995. callback(errors);
  67996. }
  67997. /**
  67998. * Validates a number.
  67999. *
  68000. * @param rule The validation rule.
  68001. * @param value The value of the field on the source object.
  68002. * @param callback The callback function.
  68003. * @param source The source object being validated.
  68004. * @param options The validation options.
  68005. * @param options.messages The validation messages.
  68006. */
  68007. function number(rule, value, callback, source, options) {
  68008. var errors = [];
  68009. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  68010. if (validate) {
  68011. if (value === '') {
  68012. value = undefined;
  68013. }
  68014. if (isEmptyValue(value) && !rule.required) {
  68015. return callback();
  68016. }
  68017. rules.required(rule, value, source, errors, options);
  68018. if (value !== undefined) {
  68019. rules.type(rule, value, source, errors, options);
  68020. rules.range(rule, value, source, errors, options);
  68021. }
  68022. }
  68023. callback(errors);
  68024. }
  68025. /**
  68026. * Validates a boolean.
  68027. *
  68028. * @param rule The validation rule.
  68029. * @param value The value of the field on the source object.
  68030. * @param callback The callback function.
  68031. * @param source The source object being validated.
  68032. * @param options The validation options.
  68033. * @param options.messages The validation messages.
  68034. */
  68035. function _boolean(rule, value, callback, source, options) {
  68036. var errors = [];
  68037. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  68038. if (validate) {
  68039. if (isEmptyValue(value) && !rule.required) {
  68040. return callback();
  68041. }
  68042. rules.required(rule, value, source, errors, options);
  68043. if (value !== undefined) {
  68044. rules.type(rule, value, source, errors, options);
  68045. }
  68046. }
  68047. callback(errors);
  68048. }
  68049. /**
  68050. * Validates the regular expression type.
  68051. *
  68052. * @param rule The validation rule.
  68053. * @param value The value of the field on the source object.
  68054. * @param callback The callback function.
  68055. * @param source The source object being validated.
  68056. * @param options The validation options.
  68057. * @param options.messages The validation messages.
  68058. */
  68059. function regexp(rule, value, callback, source, options) {
  68060. var errors = [];
  68061. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  68062. if (validate) {
  68063. if (isEmptyValue(value) && !rule.required) {
  68064. return callback();
  68065. }
  68066. rules.required(rule, value, source, errors, options);
  68067. if (!isEmptyValue(value)) {
  68068. rules.type(rule, value, source, errors, options);
  68069. }
  68070. }
  68071. callback(errors);
  68072. }
  68073. /**
  68074. * Validates a number is an integer.
  68075. *
  68076. * @param rule The validation rule.
  68077. * @param value The value of the field on the source object.
  68078. * @param callback The callback function.
  68079. * @param source The source object being validated.
  68080. * @param options The validation options.
  68081. * @param options.messages The validation messages.
  68082. */
  68083. function integer(rule, value, callback, source, options) {
  68084. var errors = [];
  68085. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  68086. if (validate) {
  68087. if (isEmptyValue(value) && !rule.required) {
  68088. return callback();
  68089. }
  68090. rules.required(rule, value, source, errors, options);
  68091. if (value !== undefined) {
  68092. rules.type(rule, value, source, errors, options);
  68093. rules.range(rule, value, source, errors, options);
  68094. }
  68095. }
  68096. callback(errors);
  68097. }
  68098. /**
  68099. * Validates a number is a floating point number.
  68100. *
  68101. * @param rule The validation rule.
  68102. * @param value The value of the field on the source object.
  68103. * @param callback The callback function.
  68104. * @param source The source object being validated.
  68105. * @param options The validation options.
  68106. * @param options.messages The validation messages.
  68107. */
  68108. function floatFn(rule, value, callback, source, options) {
  68109. var errors = [];
  68110. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  68111. if (validate) {
  68112. if (isEmptyValue(value) && !rule.required) {
  68113. return callback();
  68114. }
  68115. rules.required(rule, value, source, errors, options);
  68116. if (value !== undefined) {
  68117. rules.type(rule, value, source, errors, options);
  68118. rules.range(rule, value, source, errors, options);
  68119. }
  68120. }
  68121. callback(errors);
  68122. }
  68123. /**
  68124. * Validates an array.
  68125. *
  68126. * @param rule The validation rule.
  68127. * @param value The value of the field on the source object.
  68128. * @param callback The callback function.
  68129. * @param source The source object being validated.
  68130. * @param options The validation options.
  68131. * @param options.messages The validation messages.
  68132. */
  68133. function array(rule, value, callback, source, options) {
  68134. var errors = [];
  68135. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  68136. if (validate) {
  68137. if ((value === undefined || value === null) && !rule.required) {
  68138. return callback();
  68139. }
  68140. rules.required(rule, value, source, errors, options, 'array');
  68141. if (value !== undefined && value !== null) {
  68142. rules.type(rule, value, source, errors, options);
  68143. rules.range(rule, value, source, errors, options);
  68144. }
  68145. }
  68146. callback(errors);
  68147. }
  68148. /**
  68149. * Validates an object.
  68150. *
  68151. * @param rule The validation rule.
  68152. * @param value The value of the field on the source object.
  68153. * @param callback The callback function.
  68154. * @param source The source object being validated.
  68155. * @param options The validation options.
  68156. * @param options.messages The validation messages.
  68157. */
  68158. function object(rule, value, callback, source, options) {
  68159. var errors = [];
  68160. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  68161. if (validate) {
  68162. if (isEmptyValue(value) && !rule.required) {
  68163. return callback();
  68164. }
  68165. rules.required(rule, value, source, errors, options);
  68166. if (value !== undefined) {
  68167. rules.type(rule, value, source, errors, options);
  68168. }
  68169. }
  68170. callback(errors);
  68171. }
  68172. var ENUM$1 = 'enum';
  68173. /**
  68174. * Validates an enumerable list.
  68175. *
  68176. * @param rule The validation rule.
  68177. * @param value The value of the field on the source object.
  68178. * @param callback The callback function.
  68179. * @param source The source object being validated.
  68180. * @param options The validation options.
  68181. * @param options.messages The validation messages.
  68182. */
  68183. function enumerable$1(rule, value, callback, source, options) {
  68184. var errors = [];
  68185. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  68186. if (validate) {
  68187. if (isEmptyValue(value) && !rule.required) {
  68188. return callback();
  68189. }
  68190. rules.required(rule, value, source, errors, options);
  68191. if (value !== undefined) {
  68192. rules[ENUM$1](rule, value, source, errors, options);
  68193. }
  68194. }
  68195. callback(errors);
  68196. }
  68197. /**
  68198. * Validates a regular expression pattern.
  68199. *
  68200. * Performs validation when a rule only contains
  68201. * a pattern property but is not declared as a string type.
  68202. *
  68203. * @param rule The validation rule.
  68204. * @param value The value of the field on the source object.
  68205. * @param callback The callback function.
  68206. * @param source The source object being validated.
  68207. * @param options The validation options.
  68208. * @param options.messages The validation messages.
  68209. */
  68210. function pattern$2(rule, value, callback, source, options) {
  68211. var errors = [];
  68212. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  68213. if (validate) {
  68214. if (isEmptyValue(value, 'string') && !rule.required) {
  68215. return callback();
  68216. }
  68217. rules.required(rule, value, source, errors, options);
  68218. if (!isEmptyValue(value, 'string')) {
  68219. rules.pattern(rule, value, source, errors, options);
  68220. }
  68221. }
  68222. callback(errors);
  68223. }
  68224. function date(rule, value, callback, source, options) {
  68225. // console.log('integer rule called %j', rule);
  68226. var errors = [];
  68227. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); // console.log('validate on %s value', value);
  68228. if (validate) {
  68229. if (isEmptyValue(value, 'date') && !rule.required) {
  68230. return callback();
  68231. }
  68232. rules.required(rule, value, source, errors, options);
  68233. if (!isEmptyValue(value, 'date')) {
  68234. var dateObject;
  68235. if (value instanceof Date) {
  68236. dateObject = value;
  68237. } else {
  68238. dateObject = new Date(value);
  68239. }
  68240. rules.type(rule, dateObject, source, errors, options);
  68241. if (dateObject) {
  68242. rules.range(rule, dateObject.getTime(), source, errors, options);
  68243. }
  68244. }
  68245. }
  68246. callback(errors);
  68247. }
  68248. function required$1(rule, value, callback, source, options) {
  68249. var errors = [];
  68250. var type = Array.isArray(value) ? 'array' : typeof value;
  68251. rules.required(rule, value, source, errors, options, type);
  68252. callback(errors);
  68253. }
  68254. function type$1(rule, value, callback, source, options) {
  68255. var ruleType = rule.type;
  68256. var errors = [];
  68257. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  68258. if (validate) {
  68259. if (isEmptyValue(value, ruleType) && !rule.required) {
  68260. return callback();
  68261. }
  68262. rules.required(rule, value, source, errors, options, ruleType);
  68263. if (!isEmptyValue(value, ruleType)) {
  68264. rules.type(rule, value, source, errors, options);
  68265. }
  68266. }
  68267. callback(errors);
  68268. }
  68269. /**
  68270. * Performs validation for any type.
  68271. *
  68272. * @param rule The validation rule.
  68273. * @param value The value of the field on the source object.
  68274. * @param callback The callback function.
  68275. * @param source The source object being validated.
  68276. * @param options The validation options.
  68277. * @param options.messages The validation messages.
  68278. */
  68279. function any(rule, value, callback, source, options) {
  68280. var errors = [];
  68281. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  68282. if (validate) {
  68283. if (isEmptyValue(value) && !rule.required) {
  68284. return callback();
  68285. }
  68286. rules.required(rule, value, source, errors, options);
  68287. }
  68288. callback(errors);
  68289. }
  68290. var validators = {
  68291. string: string,
  68292. method: method,
  68293. number: number,
  68294. "boolean": _boolean,
  68295. regexp: regexp,
  68296. integer: integer,
  68297. "float": floatFn,
  68298. array: array,
  68299. object: object,
  68300. "enum": enumerable$1,
  68301. pattern: pattern$2,
  68302. date: date,
  68303. url: type$1,
  68304. hex: type$1,
  68305. email: type$1,
  68306. required: required$1,
  68307. any: any
  68308. };
  68309. function newMessages() {
  68310. return {
  68311. "default": 'Validation error on field %s',
  68312. required: '%s is required',
  68313. "enum": '%s must be one of %s',
  68314. whitespace: '%s cannot be empty',
  68315. date: {
  68316. format: '%s date %s is invalid for format %s',
  68317. parse: '%s date could not be parsed, %s is invalid ',
  68318. invalid: '%s date %s is invalid'
  68319. },
  68320. types: {
  68321. string: '%s is not a %s',
  68322. method: '%s is not a %s (function)',
  68323. array: '%s is not an %s',
  68324. object: '%s is not an %s',
  68325. number: '%s is not a %s',
  68326. date: '%s is not a %s',
  68327. "boolean": '%s is not a %s',
  68328. integer: '%s is not an %s',
  68329. "float": '%s is not a %s',
  68330. regexp: '%s is not a valid %s',
  68331. email: '%s is not a valid %s',
  68332. url: '%s is not a valid %s',
  68333. hex: '%s is not a valid %s'
  68334. },
  68335. string: {
  68336. len: '%s must be exactly %s characters',
  68337. min: '%s must be at least %s characters',
  68338. max: '%s cannot be longer than %s characters',
  68339. range: '%s must be between %s and %s characters'
  68340. },
  68341. number: {
  68342. len: '%s must equal %s',
  68343. min: '%s cannot be less than %s',
  68344. max: '%s cannot be greater than %s',
  68345. range: '%s must be between %s and %s'
  68346. },
  68347. array: {
  68348. len: '%s must be exactly %s in length',
  68349. min: '%s cannot be less than %s in length',
  68350. max: '%s cannot be greater than %s in length',
  68351. range: '%s must be between %s and %s in length'
  68352. },
  68353. pattern: {
  68354. mismatch: '%s value %s does not match pattern %s'
  68355. },
  68356. clone: function clone() {
  68357. var cloned = JSON.parse(JSON.stringify(this));
  68358. cloned.clone = this.clone;
  68359. return cloned;
  68360. }
  68361. };
  68362. }
  68363. var messages = newMessages();
  68364. /**
  68365. * Encapsulates a validation schema.
  68366. *
  68367. * @param descriptor An object declaring validation rules
  68368. * for this schema.
  68369. */
  68370. function Schema(descriptor) {
  68371. this.rules = null;
  68372. this._messages = messages;
  68373. this.define(descriptor);
  68374. }
  68375. Schema.prototype = {
  68376. messages: function messages(_messages) {
  68377. if (_messages) {
  68378. this._messages = deepMerge(newMessages(), _messages);
  68379. }
  68380. return this._messages;
  68381. },
  68382. define: function define(rules) {
  68383. if (!rules) {
  68384. throw new Error('Cannot configure a schema with no rules');
  68385. }
  68386. if (typeof rules !== 'object' || Array.isArray(rules)) {
  68387. throw new Error('Rules must be an object');
  68388. }
  68389. this.rules = {};
  68390. var z;
  68391. var item;
  68392. for (z in rules) {
  68393. if (rules.hasOwnProperty(z)) {
  68394. item = rules[z];
  68395. this.rules[z] = Array.isArray(item) ? item : [item];
  68396. }
  68397. }
  68398. },
  68399. validate: function validate(source_, o, oc) {
  68400. var _this = this;
  68401. if (o === void 0) {
  68402. o = {};
  68403. }
  68404. if (oc === void 0) {
  68405. oc = function oc() {};
  68406. }
  68407. var source = source_;
  68408. var options = o;
  68409. var callback = oc;
  68410. if (typeof options === 'function') {
  68411. callback = options;
  68412. options = {};
  68413. }
  68414. if (!this.rules || Object.keys(this.rules).length === 0) {
  68415. if (callback) {
  68416. callback();
  68417. }
  68418. return Promise.resolve();
  68419. }
  68420. function complete(results) {
  68421. var i;
  68422. var errors = [];
  68423. var fields = {};
  68424. function add(e) {
  68425. if (Array.isArray(e)) {
  68426. var _errors;
  68427. errors = (_errors = errors).concat.apply(_errors, e);
  68428. } else {
  68429. errors.push(e);
  68430. }
  68431. }
  68432. for (i = 0; i < results.length; i++) {
  68433. add(results[i]);
  68434. }
  68435. if (!errors.length) {
  68436. errors = null;
  68437. fields = null;
  68438. } else {
  68439. fields = convertFieldsError(errors);
  68440. }
  68441. callback(errors, fields);
  68442. }
  68443. if (options.messages) {
  68444. var messages$1 = this.messages();
  68445. if (messages$1 === messages) {
  68446. messages$1 = newMessages();
  68447. }
  68448. deepMerge(messages$1, options.messages);
  68449. options.messages = messages$1;
  68450. } else {
  68451. options.messages = this.messages();
  68452. }
  68453. var arr;
  68454. var value;
  68455. var series = {};
  68456. var keys = options.keys || Object.keys(this.rules);
  68457. keys.forEach(function (z) {
  68458. arr = _this.rules[z];
  68459. value = source[z];
  68460. arr.forEach(function (r) {
  68461. var rule = r;
  68462. if (typeof rule.transform === 'function') {
  68463. if (source === source_) {
  68464. source = _extends({}, source);
  68465. }
  68466. value = source[z] = rule.transform(value);
  68467. }
  68468. if (typeof rule === 'function') {
  68469. rule = {
  68470. validator: rule
  68471. };
  68472. } else {
  68473. rule = _extends({}, rule);
  68474. }
  68475. rule.validator = _this.getValidationMethod(rule);
  68476. rule.field = z;
  68477. rule.fullField = rule.fullField || z;
  68478. rule.type = _this.getType(rule);
  68479. if (!rule.validator) {
  68480. return;
  68481. }
  68482. series[z] = series[z] || [];
  68483. series[z].push({
  68484. rule: rule,
  68485. value: value,
  68486. source: source,
  68487. field: z
  68488. });
  68489. });
  68490. });
  68491. var errorFields = {};
  68492. return asyncMap(series, options, function (data, doIt) {
  68493. var rule = data.rule;
  68494. var deep = (rule.type === 'object' || rule.type === 'array') && (typeof rule.fields === 'object' || typeof rule.defaultField === 'object');
  68495. deep = deep && (rule.required || !rule.required && data.value);
  68496. rule.field = data.field;
  68497. function addFullfield(key, schema) {
  68498. return _extends(_extends({}, schema), {}, {
  68499. fullField: rule.fullField + "." + key
  68500. });
  68501. }
  68502. function cb(e) {
  68503. if (e === void 0) {
  68504. e = [];
  68505. }
  68506. var errors = e;
  68507. if (!Array.isArray(errors)) {
  68508. errors = [errors];
  68509. }
  68510. if (!options.suppressWarning && errors.length) {
  68511. Schema.warning('async-validator:', errors);
  68512. }
  68513. if (errors.length && rule.message !== undefined) {
  68514. errors = [].concat(rule.message);
  68515. }
  68516. errors = errors.map(complementError(rule));
  68517. if (options.first && errors.length) {
  68518. errorFields[rule.field] = 1;
  68519. return doIt(errors);
  68520. }
  68521. if (!deep) {
  68522. doIt(errors);
  68523. } else {
  68524. // if rule is required but the target object
  68525. // does not exist fail at the rule level and don't
  68526. // go deeper
  68527. if (rule.required && !data.value) {
  68528. if (rule.message !== undefined) {
  68529. errors = [].concat(rule.message).map(complementError(rule));
  68530. } else if (options.error) {
  68531. errors = [options.error(rule, format(options.messages.required, rule.field))];
  68532. }
  68533. return doIt(errors);
  68534. }
  68535. var fieldsSchema = {};
  68536. if (rule.defaultField) {
  68537. for (var k in data.value) {
  68538. if (data.value.hasOwnProperty(k)) {
  68539. fieldsSchema[k] = rule.defaultField;
  68540. }
  68541. }
  68542. }
  68543. fieldsSchema = _extends(_extends({}, fieldsSchema), data.rule.fields);
  68544. for (var f in fieldsSchema) {
  68545. if (fieldsSchema.hasOwnProperty(f)) {
  68546. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  68547. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  68548. }
  68549. }
  68550. var schema = new Schema(fieldsSchema);
  68551. schema.messages(options.messages);
  68552. if (data.rule.options) {
  68553. data.rule.options.messages = options.messages;
  68554. data.rule.options.error = options.error;
  68555. }
  68556. schema.validate(data.value, data.rule.options || options, function (errs) {
  68557. var finalErrors = [];
  68558. if (errors && errors.length) {
  68559. finalErrors.push.apply(finalErrors, errors);
  68560. }
  68561. if (errs && errs.length) {
  68562. finalErrors.push.apply(finalErrors, errs);
  68563. }
  68564. doIt(finalErrors.length ? finalErrors : null);
  68565. });
  68566. }
  68567. }
  68568. var res;
  68569. if (rule.asyncValidator) {
  68570. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  68571. } else if (rule.validator) {
  68572. res = rule.validator(rule, data.value, cb, data.source, options);
  68573. if (res === true) {
  68574. cb();
  68575. } else if (res === false) {
  68576. cb(rule.message || rule.field + " fails");
  68577. } else if (res instanceof Array) {
  68578. cb(res);
  68579. } else if (res instanceof Error) {
  68580. cb(res.message);
  68581. }
  68582. }
  68583. if (res && res.then) {
  68584. res.then(function () {
  68585. return cb();
  68586. }, function (e) {
  68587. return cb(e);
  68588. });
  68589. }
  68590. }, function (results) {
  68591. complete(results);
  68592. });
  68593. },
  68594. getType: function getType(rule) {
  68595. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  68596. rule.type = 'pattern';
  68597. }
  68598. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  68599. throw new Error(format('Unknown rule type %s', rule.type));
  68600. }
  68601. return rule.type || 'string';
  68602. },
  68603. getValidationMethod: function getValidationMethod(rule) {
  68604. if (typeof rule.validator === 'function') {
  68605. return rule.validator;
  68606. }
  68607. var keys = Object.keys(rule);
  68608. var messageIndex = keys.indexOf('message');
  68609. if (messageIndex !== -1) {
  68610. keys.splice(messageIndex, 1);
  68611. }
  68612. if (keys.length === 1 && keys[0] === 'required') {
  68613. return validators.required;
  68614. }
  68615. return validators[this.getType(rule)] || false;
  68616. }
  68617. };
  68618. Schema.register = function register(type, validator) {
  68619. if (typeof validator !== 'function') {
  68620. throw new Error('Cannot register a validator by type, validator is not a function');
  68621. }
  68622. validators[type] = validator;
  68623. };
  68624. Schema.warning = warning;
  68625. Schema.messages = messages;
  68626. Schema.validators = validators;
  68627. /* harmony default export */ __webpack_exports__["default"] = (Schema);
  68628. //# sourceMappingURL=index.js.map
  68629. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js")))
  68630. /***/ }),
  68631. /***/ "./node_modules/babel-helper-vue-jsx-merge-props/index.js":
  68632. /*!****************************************************************!*\
  68633. !*** ./node_modules/babel-helper-vue-jsx-merge-props/index.js ***!
  68634. \****************************************************************/
  68635. /*! no static exports found */
  68636. /***/ (function(module, exports) {
  68637. var nestRE = /^(attrs|props|on|nativeOn|class|style|hook)$/
  68638. module.exports = function mergeJSXProps (objs) {
  68639. return objs.reduce(function (a, b) {
  68640. var aa, bb, key, nestedKey, temp
  68641. for (key in b) {
  68642. aa = a[key]
  68643. bb = b[key]
  68644. if (aa && nestRE.test(key)) {
  68645. // normalize class
  68646. if (key === 'class') {
  68647. if (typeof aa === 'string') {
  68648. temp = aa
  68649. a[key] = aa = {}
  68650. aa[temp] = true
  68651. }
  68652. if (typeof bb === 'string') {
  68653. temp = bb
  68654. b[key] = bb = {}
  68655. bb[temp] = true
  68656. }
  68657. }
  68658. if (key === 'on' || key === 'nativeOn' || key === 'hook') {
  68659. // merge functions
  68660. for (nestedKey in bb) {
  68661. aa[nestedKey] = mergeFn(aa[nestedKey], bb[nestedKey])
  68662. }
  68663. } else if (Array.isArray(aa)) {
  68664. a[key] = aa.concat(bb)
  68665. } else if (Array.isArray(bb)) {
  68666. a[key] = [aa].concat(bb)
  68667. } else {
  68668. for (nestedKey in bb) {
  68669. aa[nestedKey] = bb[nestedKey]
  68670. }
  68671. }
  68672. } else {
  68673. a[key] = b[key]
  68674. }
  68675. }
  68676. return a
  68677. }, {})
  68678. }
  68679. function mergeFn (a, b) {
  68680. return function () {
  68681. a && a.apply(this, arguments)
  68682. b && b.apply(this, arguments)
  68683. }
  68684. }
  68685. /***/ }),
  68686. /***/ "./node_modules/babel-runtime/core-js/array/from.js":
  68687. /*!**********************************************************!*\
  68688. !*** ./node_modules/babel-runtime/core-js/array/from.js ***!
  68689. \**********************************************************/
  68690. /*! no static exports found */
  68691. /***/ (function(module, exports, __webpack_require__) {
  68692. module.exports = { "default": __webpack_require__(/*! core-js/library/fn/array/from */ "./node_modules/core-js/library/fn/array/from.js"), __esModule: true };
  68693. /***/ }),
  68694. /***/ "./node_modules/babel-runtime/core-js/get-iterator.js":
  68695. /*!************************************************************!*\
  68696. !*** ./node_modules/babel-runtime/core-js/get-iterator.js ***!
  68697. \************************************************************/
  68698. /*! no static exports found */
  68699. /***/ (function(module, exports, __webpack_require__) {
  68700. module.exports = { "default": __webpack_require__(/*! core-js/library/fn/get-iterator */ "./node_modules/core-js/library/fn/get-iterator.js"), __esModule: true };
  68701. /***/ }),
  68702. /***/ "./node_modules/babel-runtime/core-js/is-iterable.js":
  68703. /*!***********************************************************!*\
  68704. !*** ./node_modules/babel-runtime/core-js/is-iterable.js ***!
  68705. \***********************************************************/
  68706. /*! no static exports found */
  68707. /***/ (function(module, exports, __webpack_require__) {
  68708. module.exports = { "default": __webpack_require__(/*! core-js/library/fn/is-iterable */ "./node_modules/core-js/library/fn/is-iterable.js"), __esModule: true };
  68709. /***/ }),
  68710. /***/ "./node_modules/babel-runtime/core-js/object/assign.js":
  68711. /*!*************************************************************!*\
  68712. !*** ./node_modules/babel-runtime/core-js/object/assign.js ***!
  68713. \*************************************************************/
  68714. /*! no static exports found */
  68715. /***/ (function(module, exports, __webpack_require__) {
  68716. module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/assign */ "./node_modules/core-js/library/fn/object/assign.js"), __esModule: true };
  68717. /***/ }),
  68718. /***/ "./node_modules/babel-runtime/core-js/object/define-property.js":
  68719. /*!**********************************************************************!*\
  68720. !*** ./node_modules/babel-runtime/core-js/object/define-property.js ***!
  68721. \**********************************************************************/
  68722. /*! no static exports found */
  68723. /***/ (function(module, exports, __webpack_require__) {
  68724. module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/define-property */ "./node_modules/core-js/library/fn/object/define-property.js"), __esModule: true };
  68725. /***/ }),
  68726. /***/ "./node_modules/babel-runtime/core-js/symbol.js":
  68727. /*!******************************************************!*\
  68728. !*** ./node_modules/babel-runtime/core-js/symbol.js ***!
  68729. \******************************************************/
  68730. /*! no static exports found */
  68731. /***/ (function(module, exports, __webpack_require__) {
  68732. module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol */ "./node_modules/core-js/library/fn/symbol/index.js"), __esModule: true };
  68733. /***/ }),
  68734. /***/ "./node_modules/babel-runtime/core-js/symbol/iterator.js":
  68735. /*!***************************************************************!*\
  68736. !*** ./node_modules/babel-runtime/core-js/symbol/iterator.js ***!
  68737. \***************************************************************/
  68738. /*! no static exports found */
  68739. /***/ (function(module, exports, __webpack_require__) {
  68740. module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol/iterator */ "./node_modules/core-js/library/fn/symbol/iterator.js"), __esModule: true };
  68741. /***/ }),
  68742. /***/ "./node_modules/babel-runtime/helpers/classCallCheck.js":
  68743. /*!**************************************************************!*\
  68744. !*** ./node_modules/babel-runtime/helpers/classCallCheck.js ***!
  68745. \**************************************************************/
  68746. /*! no static exports found */
  68747. /***/ (function(module, exports, __webpack_require__) {
  68748. "use strict";
  68749. exports.__esModule = true;
  68750. exports.default = function (instance, Constructor) {
  68751. if (!(instance instanceof Constructor)) {
  68752. throw new TypeError("Cannot call a class as a function");
  68753. }
  68754. };
  68755. /***/ }),
  68756. /***/ "./node_modules/babel-runtime/helpers/createClass.js":
  68757. /*!***********************************************************!*\
  68758. !*** ./node_modules/babel-runtime/helpers/createClass.js ***!
  68759. \***********************************************************/
  68760. /*! no static exports found */
  68761. /***/ (function(module, exports, __webpack_require__) {
  68762. "use strict";
  68763. exports.__esModule = true;
  68764. var _defineProperty = __webpack_require__(/*! ../core-js/object/define-property */ "./node_modules/babel-runtime/core-js/object/define-property.js");
  68765. var _defineProperty2 = _interopRequireDefault(_defineProperty);
  68766. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  68767. exports.default = function () {
  68768. function defineProperties(target, props) {
  68769. for (var i = 0; i < props.length; i++) {
  68770. var descriptor = props[i];
  68771. descriptor.enumerable = descriptor.enumerable || false;
  68772. descriptor.configurable = true;
  68773. if ("value" in descriptor) descriptor.writable = true;
  68774. (0, _defineProperty2.default)(target, descriptor.key, descriptor);
  68775. }
  68776. }
  68777. return function (Constructor, protoProps, staticProps) {
  68778. if (protoProps) defineProperties(Constructor.prototype, protoProps);
  68779. if (staticProps) defineProperties(Constructor, staticProps);
  68780. return Constructor;
  68781. };
  68782. }();
  68783. /***/ }),
  68784. /***/ "./node_modules/babel-runtime/helpers/defineProperty.js":
  68785. /*!**************************************************************!*\
  68786. !*** ./node_modules/babel-runtime/helpers/defineProperty.js ***!
  68787. \**************************************************************/
  68788. /*! no static exports found */
  68789. /***/ (function(module, exports, __webpack_require__) {
  68790. "use strict";
  68791. exports.__esModule = true;
  68792. var _defineProperty = __webpack_require__(/*! ../core-js/object/define-property */ "./node_modules/babel-runtime/core-js/object/define-property.js");
  68793. var _defineProperty2 = _interopRequireDefault(_defineProperty);
  68794. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  68795. exports.default = function (obj, key, value) {
  68796. if (key in obj) {
  68797. (0, _defineProperty2.default)(obj, key, {
  68798. value: value,
  68799. enumerable: true,
  68800. configurable: true,
  68801. writable: true
  68802. });
  68803. } else {
  68804. obj[key] = value;
  68805. }
  68806. return obj;
  68807. };
  68808. /***/ }),
  68809. /***/ "./node_modules/babel-runtime/helpers/extends.js":
  68810. /*!*******************************************************!*\
  68811. !*** ./node_modules/babel-runtime/helpers/extends.js ***!
  68812. \*******************************************************/
  68813. /*! no static exports found */
  68814. /***/ (function(module, exports, __webpack_require__) {
  68815. "use strict";
  68816. exports.__esModule = true;
  68817. var _assign = __webpack_require__(/*! ../core-js/object/assign */ "./node_modules/babel-runtime/core-js/object/assign.js");
  68818. var _assign2 = _interopRequireDefault(_assign);
  68819. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  68820. exports.default = _assign2.default || function (target) {
  68821. for (var i = 1; i < arguments.length; i++) {
  68822. var source = arguments[i];
  68823. for (var key in source) {
  68824. if (Object.prototype.hasOwnProperty.call(source, key)) {
  68825. target[key] = source[key];
  68826. }
  68827. }
  68828. }
  68829. return target;
  68830. };
  68831. /***/ }),
  68832. /***/ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js":
  68833. /*!***********************************************************************!*\
  68834. !*** ./node_modules/babel-runtime/helpers/objectWithoutProperties.js ***!
  68835. \***********************************************************************/
  68836. /*! no static exports found */
  68837. /***/ (function(module, exports, __webpack_require__) {
  68838. "use strict";
  68839. exports.__esModule = true;
  68840. exports.default = function (obj, keys) {
  68841. var target = {};
  68842. for (var i in obj) {
  68843. if (keys.indexOf(i) >= 0) continue;
  68844. if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
  68845. target[i] = obj[i];
  68846. }
  68847. return target;
  68848. };
  68849. /***/ }),
  68850. /***/ "./node_modules/babel-runtime/helpers/slicedToArray.js":
  68851. /*!*************************************************************!*\
  68852. !*** ./node_modules/babel-runtime/helpers/slicedToArray.js ***!
  68853. \*************************************************************/
  68854. /*! no static exports found */
  68855. /***/ (function(module, exports, __webpack_require__) {
  68856. "use strict";
  68857. exports.__esModule = true;
  68858. var _isIterable2 = __webpack_require__(/*! ../core-js/is-iterable */ "./node_modules/babel-runtime/core-js/is-iterable.js");
  68859. var _isIterable3 = _interopRequireDefault(_isIterable2);
  68860. var _getIterator2 = __webpack_require__(/*! ../core-js/get-iterator */ "./node_modules/babel-runtime/core-js/get-iterator.js");
  68861. var _getIterator3 = _interopRequireDefault(_getIterator2);
  68862. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  68863. exports.default = function () {
  68864. function sliceIterator(arr, i) {
  68865. var _arr = [];
  68866. var _n = true;
  68867. var _d = false;
  68868. var _e = undefined;
  68869. try {
  68870. for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
  68871. _arr.push(_s.value);
  68872. if (i && _arr.length === i) break;
  68873. }
  68874. } catch (err) {
  68875. _d = true;
  68876. _e = err;
  68877. } finally {
  68878. try {
  68879. if (!_n && _i["return"]) _i["return"]();
  68880. } finally {
  68881. if (_d) throw _e;
  68882. }
  68883. }
  68884. return _arr;
  68885. }
  68886. return function (arr, i) {
  68887. if (Array.isArray(arr)) {
  68888. return arr;
  68889. } else if ((0, _isIterable3.default)(Object(arr))) {
  68890. return sliceIterator(arr, i);
  68891. } else {
  68892. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  68893. }
  68894. };
  68895. }();
  68896. /***/ }),
  68897. /***/ "./node_modules/babel-runtime/helpers/toConsumableArray.js":
  68898. /*!*****************************************************************!*\
  68899. !*** ./node_modules/babel-runtime/helpers/toConsumableArray.js ***!
  68900. \*****************************************************************/
  68901. /*! no static exports found */
  68902. /***/ (function(module, exports, __webpack_require__) {
  68903. "use strict";
  68904. exports.__esModule = true;
  68905. var _from = __webpack_require__(/*! ../core-js/array/from */ "./node_modules/babel-runtime/core-js/array/from.js");
  68906. var _from2 = _interopRequireDefault(_from);
  68907. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  68908. exports.default = function (arr) {
  68909. if (Array.isArray(arr)) {
  68910. for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
  68911. arr2[i] = arr[i];
  68912. }
  68913. return arr2;
  68914. } else {
  68915. return (0, _from2.default)(arr);
  68916. }
  68917. };
  68918. /***/ }),
  68919. /***/ "./node_modules/babel-runtime/helpers/typeof.js":
  68920. /*!******************************************************!*\
  68921. !*** ./node_modules/babel-runtime/helpers/typeof.js ***!
  68922. \******************************************************/
  68923. /*! no static exports found */
  68924. /***/ (function(module, exports, __webpack_require__) {
  68925. "use strict";
  68926. exports.__esModule = true;
  68927. var _iterator = __webpack_require__(/*! ../core-js/symbol/iterator */ "./node_modules/babel-runtime/core-js/symbol/iterator.js");
  68928. var _iterator2 = _interopRequireDefault(_iterator);
  68929. var _symbol = __webpack_require__(/*! ../core-js/symbol */ "./node_modules/babel-runtime/core-js/symbol.js");
  68930. var _symbol2 = _interopRequireDefault(_symbol);
  68931. var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
  68932. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  68933. exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
  68934. return typeof obj === "undefined" ? "undefined" : _typeof(obj);
  68935. } : function (obj) {
  68936. return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
  68937. };
  68938. /***/ }),
  68939. /***/ "./node_modules/classnames/index.js":
  68940. /*!******************************************!*\
  68941. !*** ./node_modules/classnames/index.js ***!
  68942. \******************************************/
  68943. /*! no static exports found */
  68944. /***/ (function(module, exports, __webpack_require__) {
  68945. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  68946. Copyright (c) 2018 Jed Watson.
  68947. Licensed under the MIT License (MIT), see
  68948. http://jedwatson.github.io/classnames
  68949. */
  68950. /* global define */
  68951. (function () {
  68952. 'use strict';
  68953. var hasOwn = {}.hasOwnProperty;
  68954. function classNames() {
  68955. var classes = [];
  68956. for (var i = 0; i < arguments.length; i++) {
  68957. var arg = arguments[i];
  68958. if (!arg) continue;
  68959. var argType = typeof arg;
  68960. if (argType === 'string' || argType === 'number') {
  68961. classes.push(arg);
  68962. } else if (Array.isArray(arg)) {
  68963. if (arg.length) {
  68964. var inner = classNames.apply(null, arg);
  68965. if (inner) {
  68966. classes.push(inner);
  68967. }
  68968. }
  68969. } else if (argType === 'object') {
  68970. if (arg.toString === Object.prototype.toString) {
  68971. for (var key in arg) {
  68972. if (hasOwn.call(arg, key) && arg[key]) {
  68973. classes.push(key);
  68974. }
  68975. }
  68976. } else {
  68977. classes.push(arg.toString());
  68978. }
  68979. }
  68980. }
  68981. return classes.join(' ');
  68982. }
  68983. if ( true && module.exports) {
  68984. classNames.default = classNames;
  68985. module.exports = classNames;
  68986. } else if (true) {
  68987. // register as 'classnames', consistent with npm package name
  68988. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  68989. return classNames;
  68990. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  68991. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  68992. } else {}
  68993. }());
  68994. /***/ }),
  68995. /***/ "./node_modules/component-classes/index.js":
  68996. /*!*************************************************!*\
  68997. !*** ./node_modules/component-classes/index.js ***!
  68998. \*************************************************/
  68999. /*! no static exports found */
  69000. /***/ (function(module, exports, __webpack_require__) {
  69001. /**
  69002. * Module dependencies.
  69003. */
  69004. try {
  69005. var index = __webpack_require__(/*! indexof */ "./node_modules/component-indexof/index.js");
  69006. } catch (err) {
  69007. var index = __webpack_require__(/*! component-indexof */ "./node_modules/component-indexof/index.js");
  69008. }
  69009. /**
  69010. * Whitespace regexp.
  69011. */
  69012. var re = /\s+/;
  69013. /**
  69014. * toString reference.
  69015. */
  69016. var toString = Object.prototype.toString;
  69017. /**
  69018. * Wrap `el` in a `ClassList`.
  69019. *
  69020. * @param {Element} el
  69021. * @return {ClassList}
  69022. * @api public
  69023. */
  69024. module.exports = function(el){
  69025. return new ClassList(el);
  69026. };
  69027. /**
  69028. * Initialize a new ClassList for `el`.
  69029. *
  69030. * @param {Element} el
  69031. * @api private
  69032. */
  69033. function ClassList(el) {
  69034. if (!el || !el.nodeType) {
  69035. throw new Error('A DOM element reference is required');
  69036. }
  69037. this.el = el;
  69038. this.list = el.classList;
  69039. }
  69040. /**
  69041. * Add class `name` if not already present.
  69042. *
  69043. * @param {String} name
  69044. * @return {ClassList}
  69045. * @api public
  69046. */
  69047. ClassList.prototype.add = function(name){
  69048. // classList
  69049. if (this.list) {
  69050. this.list.add(name);
  69051. return this;
  69052. }
  69053. // fallback
  69054. var arr = this.array();
  69055. var i = index(arr, name);
  69056. if (!~i) arr.push(name);
  69057. this.el.className = arr.join(' ');
  69058. return this;
  69059. };
  69060. /**
  69061. * Remove class `name` when present, or
  69062. * pass a regular expression to remove
  69063. * any which match.
  69064. *
  69065. * @param {String|RegExp} name
  69066. * @return {ClassList}
  69067. * @api public
  69068. */
  69069. ClassList.prototype.remove = function(name){
  69070. if ('[object RegExp]' == toString.call(name)) {
  69071. return this.removeMatching(name);
  69072. }
  69073. // classList
  69074. if (this.list) {
  69075. this.list.remove(name);
  69076. return this;
  69077. }
  69078. // fallback
  69079. var arr = this.array();
  69080. var i = index(arr, name);
  69081. if (~i) arr.splice(i, 1);
  69082. this.el.className = arr.join(' ');
  69083. return this;
  69084. };
  69085. /**
  69086. * Remove all classes matching `re`.
  69087. *
  69088. * @param {RegExp} re
  69089. * @return {ClassList}
  69090. * @api private
  69091. */
  69092. ClassList.prototype.removeMatching = function(re){
  69093. var arr = this.array();
  69094. for (var i = 0; i < arr.length; i++) {
  69095. if (re.test(arr[i])) {
  69096. this.remove(arr[i]);
  69097. }
  69098. }
  69099. return this;
  69100. };
  69101. /**
  69102. * Toggle class `name`, can force state via `force`.
  69103. *
  69104. * For browsers that support classList, but do not support `force` yet,
  69105. * the mistake will be detected and corrected.
  69106. *
  69107. * @param {String} name
  69108. * @param {Boolean} force
  69109. * @return {ClassList}
  69110. * @api public
  69111. */
  69112. ClassList.prototype.toggle = function(name, force){
  69113. // classList
  69114. if (this.list) {
  69115. if ("undefined" !== typeof force) {
  69116. if (force !== this.list.toggle(name, force)) {
  69117. this.list.toggle(name); // toggle again to correct
  69118. }
  69119. } else {
  69120. this.list.toggle(name);
  69121. }
  69122. return this;
  69123. }
  69124. // fallback
  69125. if ("undefined" !== typeof force) {
  69126. if (!force) {
  69127. this.remove(name);
  69128. } else {
  69129. this.add(name);
  69130. }
  69131. } else {
  69132. if (this.has(name)) {
  69133. this.remove(name);
  69134. } else {
  69135. this.add(name);
  69136. }
  69137. }
  69138. return this;
  69139. };
  69140. /**
  69141. * Return an array of classes.
  69142. *
  69143. * @return {Array}
  69144. * @api public
  69145. */
  69146. ClassList.prototype.array = function(){
  69147. var className = this.el.getAttribute('class') || '';
  69148. var str = className.replace(/^\s+|\s+$/g, '');
  69149. var arr = str.split(re);
  69150. if ('' === arr[0]) arr.shift();
  69151. return arr;
  69152. };
  69153. /**
  69154. * Check if class `name` is present.
  69155. *
  69156. * @param {String} name
  69157. * @return {ClassList}
  69158. * @api public
  69159. */
  69160. ClassList.prototype.has =
  69161. ClassList.prototype.contains = function(name){
  69162. return this.list
  69163. ? this.list.contains(name)
  69164. : !! ~index(this.array(), name);
  69165. };
  69166. /***/ }),
  69167. /***/ "./node_modules/component-indexof/index.js":
  69168. /*!*************************************************!*\
  69169. !*** ./node_modules/component-indexof/index.js ***!
  69170. \*************************************************/
  69171. /*! no static exports found */
  69172. /***/ (function(module, exports) {
  69173. module.exports = function(arr, obj){
  69174. if (arr.indexOf) return arr.indexOf(obj);
  69175. for (var i = 0; i < arr.length; ++i) {
  69176. if (arr[i] === obj) return i;
  69177. }
  69178. return -1;
  69179. };
  69180. /***/ }),
  69181. /***/ "./node_modules/core-js/library/fn/array/from.js":
  69182. /*!*******************************************************!*\
  69183. !*** ./node_modules/core-js/library/fn/array/from.js ***!
  69184. \*******************************************************/
  69185. /*! no static exports found */
  69186. /***/ (function(module, exports, __webpack_require__) {
  69187. __webpack_require__(/*! ../../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
  69188. __webpack_require__(/*! ../../modules/es6.array.from */ "./node_modules/core-js/library/modules/es6.array.from.js");
  69189. module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Array.from;
  69190. /***/ }),
  69191. /***/ "./node_modules/core-js/library/fn/get-iterator.js":
  69192. /*!*********************************************************!*\
  69193. !*** ./node_modules/core-js/library/fn/get-iterator.js ***!
  69194. \*********************************************************/
  69195. /*! no static exports found */
  69196. /***/ (function(module, exports, __webpack_require__) {
  69197. __webpack_require__(/*! ../modules/web.dom.iterable */ "./node_modules/core-js/library/modules/web.dom.iterable.js");
  69198. __webpack_require__(/*! ../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
  69199. module.exports = __webpack_require__(/*! ../modules/core.get-iterator */ "./node_modules/core-js/library/modules/core.get-iterator.js");
  69200. /***/ }),
  69201. /***/ "./node_modules/core-js/library/fn/is-iterable.js":
  69202. /*!********************************************************!*\
  69203. !*** ./node_modules/core-js/library/fn/is-iterable.js ***!
  69204. \********************************************************/
  69205. /*! no static exports found */
  69206. /***/ (function(module, exports, __webpack_require__) {
  69207. __webpack_require__(/*! ../modules/web.dom.iterable */ "./node_modules/core-js/library/modules/web.dom.iterable.js");
  69208. __webpack_require__(/*! ../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
  69209. module.exports = __webpack_require__(/*! ../modules/core.is-iterable */ "./node_modules/core-js/library/modules/core.is-iterable.js");
  69210. /***/ }),
  69211. /***/ "./node_modules/core-js/library/fn/object/assign.js":
  69212. /*!**********************************************************!*\
  69213. !*** ./node_modules/core-js/library/fn/object/assign.js ***!
  69214. \**********************************************************/
  69215. /*! no static exports found */
  69216. /***/ (function(module, exports, __webpack_require__) {
  69217. __webpack_require__(/*! ../../modules/es6.object.assign */ "./node_modules/core-js/library/modules/es6.object.assign.js");
  69218. module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object.assign;
  69219. /***/ }),
  69220. /***/ "./node_modules/core-js/library/fn/object/define-property.js":
  69221. /*!*******************************************************************!*\
  69222. !*** ./node_modules/core-js/library/fn/object/define-property.js ***!
  69223. \*******************************************************************/
  69224. /*! no static exports found */
  69225. /***/ (function(module, exports, __webpack_require__) {
  69226. __webpack_require__(/*! ../../modules/es6.object.define-property */ "./node_modules/core-js/library/modules/es6.object.define-property.js");
  69227. var $Object = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object;
  69228. module.exports = function defineProperty(it, key, desc) {
  69229. return $Object.defineProperty(it, key, desc);
  69230. };
  69231. /***/ }),
  69232. /***/ "./node_modules/core-js/library/fn/symbol/index.js":
  69233. /*!*********************************************************!*\
  69234. !*** ./node_modules/core-js/library/fn/symbol/index.js ***!
  69235. \*********************************************************/
  69236. /*! no static exports found */
  69237. /***/ (function(module, exports, __webpack_require__) {
  69238. __webpack_require__(/*! ../../modules/es6.symbol */ "./node_modules/core-js/library/modules/es6.symbol.js");
  69239. __webpack_require__(/*! ../../modules/es6.object.to-string */ "./node_modules/core-js/library/modules/es6.object.to-string.js");
  69240. __webpack_require__(/*! ../../modules/es7.symbol.async-iterator */ "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js");
  69241. __webpack_require__(/*! ../../modules/es7.symbol.observable */ "./node_modules/core-js/library/modules/es7.symbol.observable.js");
  69242. module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Symbol;
  69243. /***/ }),
  69244. /***/ "./node_modules/core-js/library/fn/symbol/iterator.js":
  69245. /*!************************************************************!*\
  69246. !*** ./node_modules/core-js/library/fn/symbol/iterator.js ***!
  69247. \************************************************************/
  69248. /*! no static exports found */
  69249. /***/ (function(module, exports, __webpack_require__) {
  69250. __webpack_require__(/*! ../../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
  69251. __webpack_require__(/*! ../../modules/web.dom.iterable */ "./node_modules/core-js/library/modules/web.dom.iterable.js");
  69252. module.exports = __webpack_require__(/*! ../../modules/_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js").f('iterator');
  69253. /***/ }),
  69254. /***/ "./node_modules/core-js/library/modules/_a-function.js":
  69255. /*!*************************************************************!*\
  69256. !*** ./node_modules/core-js/library/modules/_a-function.js ***!
  69257. \*************************************************************/
  69258. /*! no static exports found */
  69259. /***/ (function(module, exports) {
  69260. module.exports = function (it) {
  69261. if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  69262. return it;
  69263. };
  69264. /***/ }),
  69265. /***/ "./node_modules/core-js/library/modules/_add-to-unscopables.js":
  69266. /*!*********************************************************************!*\
  69267. !*** ./node_modules/core-js/library/modules/_add-to-unscopables.js ***!
  69268. \*********************************************************************/
  69269. /*! no static exports found */
  69270. /***/ (function(module, exports) {
  69271. module.exports = function () { /* empty */ };
  69272. /***/ }),
  69273. /***/ "./node_modules/core-js/library/modules/_an-object.js":
  69274. /*!************************************************************!*\
  69275. !*** ./node_modules/core-js/library/modules/_an-object.js ***!
  69276. \************************************************************/
  69277. /*! no static exports found */
  69278. /***/ (function(module, exports, __webpack_require__) {
  69279. var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
  69280. module.exports = function (it) {
  69281. if (!isObject(it)) throw TypeError(it + ' is not an object!');
  69282. return it;
  69283. };
  69284. /***/ }),
  69285. /***/ "./node_modules/core-js/library/modules/_array-includes.js":
  69286. /*!*****************************************************************!*\
  69287. !*** ./node_modules/core-js/library/modules/_array-includes.js ***!
  69288. \*****************************************************************/
  69289. /*! no static exports found */
  69290. /***/ (function(module, exports, __webpack_require__) {
  69291. // false -> Array#indexOf
  69292. // true -> Array#includes
  69293. var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
  69294. var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/core-js/library/modules/_to-length.js");
  69295. var toAbsoluteIndex = __webpack_require__(/*! ./_to-absolute-index */ "./node_modules/core-js/library/modules/_to-absolute-index.js");
  69296. module.exports = function (IS_INCLUDES) {
  69297. return function ($this, el, fromIndex) {
  69298. var O = toIObject($this);
  69299. var length = toLength(O.length);
  69300. var index = toAbsoluteIndex(fromIndex, length);
  69301. var value;
  69302. // Array#includes uses SameValueZero equality algorithm
  69303. // eslint-disable-next-line no-self-compare
  69304. if (IS_INCLUDES && el != el) while (length > index) {
  69305. value = O[index++];
  69306. // eslint-disable-next-line no-self-compare
  69307. if (value != value) return true;
  69308. // Array#indexOf ignores holes, Array#includes - not
  69309. } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
  69310. if (O[index] === el) return IS_INCLUDES || index || 0;
  69311. } return !IS_INCLUDES && -1;
  69312. };
  69313. };
  69314. /***/ }),
  69315. /***/ "./node_modules/core-js/library/modules/_classof.js":
  69316. /*!**********************************************************!*\
  69317. !*** ./node_modules/core-js/library/modules/_classof.js ***!
  69318. \**********************************************************/
  69319. /*! no static exports found */
  69320. /***/ (function(module, exports, __webpack_require__) {
  69321. // getting tag from 19.1.3.6 Object.prototype.toString()
  69322. var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
  69323. var TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('toStringTag');
  69324. // ES3 wrong here
  69325. var ARG = cof(function () { return arguments; }()) == 'Arguments';
  69326. // fallback for IE11 Script Access Denied error
  69327. var tryGet = function (it, key) {
  69328. try {
  69329. return it[key];
  69330. } catch (e) { /* empty */ }
  69331. };
  69332. module.exports = function (it) {
  69333. var O, T, B;
  69334. return it === undefined ? 'Undefined' : it === null ? 'Null'
  69335. // @@toStringTag case
  69336. : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
  69337. // builtinTag case
  69338. : ARG ? cof(O)
  69339. // ES3 arguments fallback
  69340. : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
  69341. };
  69342. /***/ }),
  69343. /***/ "./node_modules/core-js/library/modules/_cof.js":
  69344. /*!******************************************************!*\
  69345. !*** ./node_modules/core-js/library/modules/_cof.js ***!
  69346. \******************************************************/
  69347. /*! no static exports found */
  69348. /***/ (function(module, exports) {
  69349. var toString = {}.toString;
  69350. module.exports = function (it) {
  69351. return toString.call(it).slice(8, -1);
  69352. };
  69353. /***/ }),
  69354. /***/ "./node_modules/core-js/library/modules/_core.js":
  69355. /*!*******************************************************!*\
  69356. !*** ./node_modules/core-js/library/modules/_core.js ***!
  69357. \*******************************************************/
  69358. /*! no static exports found */
  69359. /***/ (function(module, exports) {
  69360. var core = module.exports = { version: '2.6.12' };
  69361. if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
  69362. /***/ }),
  69363. /***/ "./node_modules/core-js/library/modules/_create-property.js":
  69364. /*!******************************************************************!*\
  69365. !*** ./node_modules/core-js/library/modules/_create-property.js ***!
  69366. \******************************************************************/
  69367. /*! no static exports found */
  69368. /***/ (function(module, exports, __webpack_require__) {
  69369. "use strict";
  69370. var $defineProperty = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
  69371. var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
  69372. module.exports = function (object, index, value) {
  69373. if (index in object) $defineProperty.f(object, index, createDesc(0, value));
  69374. else object[index] = value;
  69375. };
  69376. /***/ }),
  69377. /***/ "./node_modules/core-js/library/modules/_ctx.js":
  69378. /*!******************************************************!*\
  69379. !*** ./node_modules/core-js/library/modules/_ctx.js ***!
  69380. \******************************************************/
  69381. /*! no static exports found */
  69382. /***/ (function(module, exports, __webpack_require__) {
  69383. // optional / simple context binding
  69384. var aFunction = __webpack_require__(/*! ./_a-function */ "./node_modules/core-js/library/modules/_a-function.js");
  69385. module.exports = function (fn, that, length) {
  69386. aFunction(fn);
  69387. if (that === undefined) return fn;
  69388. switch (length) {
  69389. case 1: return function (a) {
  69390. return fn.call(that, a);
  69391. };
  69392. case 2: return function (a, b) {
  69393. return fn.call(that, a, b);
  69394. };
  69395. case 3: return function (a, b, c) {
  69396. return fn.call(that, a, b, c);
  69397. };
  69398. }
  69399. return function (/* ...args */) {
  69400. return fn.apply(that, arguments);
  69401. };
  69402. };
  69403. /***/ }),
  69404. /***/ "./node_modules/core-js/library/modules/_defined.js":
  69405. /*!**********************************************************!*\
  69406. !*** ./node_modules/core-js/library/modules/_defined.js ***!
  69407. \**********************************************************/
  69408. /*! no static exports found */
  69409. /***/ (function(module, exports) {
  69410. // 7.2.1 RequireObjectCoercible(argument)
  69411. module.exports = function (it) {
  69412. if (it == undefined) throw TypeError("Can't call method on " + it);
  69413. return it;
  69414. };
  69415. /***/ }),
  69416. /***/ "./node_modules/core-js/library/modules/_descriptors.js":
  69417. /*!**************************************************************!*\
  69418. !*** ./node_modules/core-js/library/modules/_descriptors.js ***!
  69419. \**************************************************************/
  69420. /*! no static exports found */
  69421. /***/ (function(module, exports, __webpack_require__) {
  69422. // Thank's IE8 for his funny defineProperty
  69423. module.exports = !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
  69424. return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
  69425. });
  69426. /***/ }),
  69427. /***/ "./node_modules/core-js/library/modules/_dom-create.js":
  69428. /*!*************************************************************!*\
  69429. !*** ./node_modules/core-js/library/modules/_dom-create.js ***!
  69430. \*************************************************************/
  69431. /*! no static exports found */
  69432. /***/ (function(module, exports, __webpack_require__) {
  69433. var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
  69434. var document = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").document;
  69435. // typeof document.createElement is 'object' in old IE
  69436. var is = isObject(document) && isObject(document.createElement);
  69437. module.exports = function (it) {
  69438. return is ? document.createElement(it) : {};
  69439. };
  69440. /***/ }),
  69441. /***/ "./node_modules/core-js/library/modules/_enum-bug-keys.js":
  69442. /*!****************************************************************!*\
  69443. !*** ./node_modules/core-js/library/modules/_enum-bug-keys.js ***!
  69444. \****************************************************************/
  69445. /*! no static exports found */
  69446. /***/ (function(module, exports) {
  69447. // IE 8- don't enum bug keys
  69448. module.exports = (
  69449. 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
  69450. ).split(',');
  69451. /***/ }),
  69452. /***/ "./node_modules/core-js/library/modules/_enum-keys.js":
  69453. /*!************************************************************!*\
  69454. !*** ./node_modules/core-js/library/modules/_enum-keys.js ***!
  69455. \************************************************************/
  69456. /*! no static exports found */
  69457. /***/ (function(module, exports, __webpack_require__) {
  69458. // all enumerable object keys, includes symbols
  69459. var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
  69460. var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js");
  69461. var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
  69462. module.exports = function (it) {
  69463. var result = getKeys(it);
  69464. var getSymbols = gOPS.f;
  69465. if (getSymbols) {
  69466. var symbols = getSymbols(it);
  69467. var isEnum = pIE.f;
  69468. var i = 0;
  69469. var key;
  69470. while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
  69471. } return result;
  69472. };
  69473. /***/ }),
  69474. /***/ "./node_modules/core-js/library/modules/_export.js":
  69475. /*!*********************************************************!*\
  69476. !*** ./node_modules/core-js/library/modules/_export.js ***!
  69477. \*********************************************************/
  69478. /*! no static exports found */
  69479. /***/ (function(module, exports, __webpack_require__) {
  69480. var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
  69481. var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
  69482. var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/core-js/library/modules/_ctx.js");
  69483. var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
  69484. var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
  69485. var PROTOTYPE = 'prototype';
  69486. var $export = function (type, name, source) {
  69487. var IS_FORCED = type & $export.F;
  69488. var IS_GLOBAL = type & $export.G;
  69489. var IS_STATIC = type & $export.S;
  69490. var IS_PROTO = type & $export.P;
  69491. var IS_BIND = type & $export.B;
  69492. var IS_WRAP = type & $export.W;
  69493. var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  69494. var expProto = exports[PROTOTYPE];
  69495. var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
  69496. var key, own, out;
  69497. if (IS_GLOBAL) source = name;
  69498. for (key in source) {
  69499. // contains in native
  69500. own = !IS_FORCED && target && target[key] !== undefined;
  69501. if (own && has(exports, key)) continue;
  69502. // export native or passed
  69503. out = own ? target[key] : source[key];
  69504. // prevent global pollution for namespaces
  69505. exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
  69506. // bind timers to global for call from export context
  69507. : IS_BIND && own ? ctx(out, global)
  69508. // wrap global constructors for prevent change them in library
  69509. : IS_WRAP && target[key] == out ? (function (C) {
  69510. var F = function (a, b, c) {
  69511. if (this instanceof C) {
  69512. switch (arguments.length) {
  69513. case 0: return new C();
  69514. case 1: return new C(a);
  69515. case 2: return new C(a, b);
  69516. } return new C(a, b, c);
  69517. } return C.apply(this, arguments);
  69518. };
  69519. F[PROTOTYPE] = C[PROTOTYPE];
  69520. return F;
  69521. // make static versions for prototype methods
  69522. })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
  69523. // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
  69524. if (IS_PROTO) {
  69525. (exports.virtual || (exports.virtual = {}))[key] = out;
  69526. // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
  69527. if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
  69528. }
  69529. }
  69530. };
  69531. // type bitmap
  69532. $export.F = 1; // forced
  69533. $export.G = 2; // global
  69534. $export.S = 4; // static
  69535. $export.P = 8; // proto
  69536. $export.B = 16; // bind
  69537. $export.W = 32; // wrap
  69538. $export.U = 64; // safe
  69539. $export.R = 128; // real proto method for `library`
  69540. module.exports = $export;
  69541. /***/ }),
  69542. /***/ "./node_modules/core-js/library/modules/_fails.js":
  69543. /*!********************************************************!*\
  69544. !*** ./node_modules/core-js/library/modules/_fails.js ***!
  69545. \********************************************************/
  69546. /*! no static exports found */
  69547. /***/ (function(module, exports) {
  69548. module.exports = function (exec) {
  69549. try {
  69550. return !!exec();
  69551. } catch (e) {
  69552. return true;
  69553. }
  69554. };
  69555. /***/ }),
  69556. /***/ "./node_modules/core-js/library/modules/_global.js":
  69557. /*!*********************************************************!*\
  69558. !*** ./node_modules/core-js/library/modules/_global.js ***!
  69559. \*********************************************************/
  69560. /*! no static exports found */
  69561. /***/ (function(module, exports) {
  69562. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  69563. var global = module.exports = typeof window != 'undefined' && window.Math == Math
  69564. ? window : typeof self != 'undefined' && self.Math == Math ? self
  69565. // eslint-disable-next-line no-new-func
  69566. : Function('return this')();
  69567. if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
  69568. /***/ }),
  69569. /***/ "./node_modules/core-js/library/modules/_has.js":
  69570. /*!******************************************************!*\
  69571. !*** ./node_modules/core-js/library/modules/_has.js ***!
  69572. \******************************************************/
  69573. /*! no static exports found */
  69574. /***/ (function(module, exports) {
  69575. var hasOwnProperty = {}.hasOwnProperty;
  69576. module.exports = function (it, key) {
  69577. return hasOwnProperty.call(it, key);
  69578. };
  69579. /***/ }),
  69580. /***/ "./node_modules/core-js/library/modules/_hide.js":
  69581. /*!*******************************************************!*\
  69582. !*** ./node_modules/core-js/library/modules/_hide.js ***!
  69583. \*******************************************************/
  69584. /*! no static exports found */
  69585. /***/ (function(module, exports, __webpack_require__) {
  69586. var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
  69587. var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
  69588. module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? function (object, key, value) {
  69589. return dP.f(object, key, createDesc(1, value));
  69590. } : function (object, key, value) {
  69591. object[key] = value;
  69592. return object;
  69593. };
  69594. /***/ }),
  69595. /***/ "./node_modules/core-js/library/modules/_html.js":
  69596. /*!*******************************************************!*\
  69597. !*** ./node_modules/core-js/library/modules/_html.js ***!
  69598. \*******************************************************/
  69599. /*! no static exports found */
  69600. /***/ (function(module, exports, __webpack_require__) {
  69601. var document = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").document;
  69602. module.exports = document && document.documentElement;
  69603. /***/ }),
  69604. /***/ "./node_modules/core-js/library/modules/_ie8-dom-define.js":
  69605. /*!*****************************************************************!*\
  69606. !*** ./node_modules/core-js/library/modules/_ie8-dom-define.js ***!
  69607. \*****************************************************************/
  69608. /*! no static exports found */
  69609. /***/ (function(module, exports, __webpack_require__) {
  69610. module.exports = !__webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") && !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
  69611. return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ "./node_modules/core-js/library/modules/_dom-create.js")('div'), 'a', { get: function () { return 7; } }).a != 7;
  69612. });
  69613. /***/ }),
  69614. /***/ "./node_modules/core-js/library/modules/_iobject.js":
  69615. /*!**********************************************************!*\
  69616. !*** ./node_modules/core-js/library/modules/_iobject.js ***!
  69617. \**********************************************************/
  69618. /*! no static exports found */
  69619. /***/ (function(module, exports, __webpack_require__) {
  69620. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  69621. var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
  69622. // eslint-disable-next-line no-prototype-builtins
  69623. module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  69624. return cof(it) == 'String' ? it.split('') : Object(it);
  69625. };
  69626. /***/ }),
  69627. /***/ "./node_modules/core-js/library/modules/_is-array-iter.js":
  69628. /*!****************************************************************!*\
  69629. !*** ./node_modules/core-js/library/modules/_is-array-iter.js ***!
  69630. \****************************************************************/
  69631. /*! no static exports found */
  69632. /***/ (function(module, exports, __webpack_require__) {
  69633. // check on default Array iterator
  69634. var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
  69635. var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
  69636. var ArrayProto = Array.prototype;
  69637. module.exports = function (it) {
  69638. return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
  69639. };
  69640. /***/ }),
  69641. /***/ "./node_modules/core-js/library/modules/_is-array.js":
  69642. /*!***********************************************************!*\
  69643. !*** ./node_modules/core-js/library/modules/_is-array.js ***!
  69644. \***********************************************************/
  69645. /*! no static exports found */
  69646. /***/ (function(module, exports, __webpack_require__) {
  69647. // 7.2.2 IsArray(argument)
  69648. var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
  69649. module.exports = Array.isArray || function isArray(arg) {
  69650. return cof(arg) == 'Array';
  69651. };
  69652. /***/ }),
  69653. /***/ "./node_modules/core-js/library/modules/_is-object.js":
  69654. /*!************************************************************!*\
  69655. !*** ./node_modules/core-js/library/modules/_is-object.js ***!
  69656. \************************************************************/
  69657. /*! no static exports found */
  69658. /***/ (function(module, exports) {
  69659. module.exports = function (it) {
  69660. return typeof it === 'object' ? it !== null : typeof it === 'function';
  69661. };
  69662. /***/ }),
  69663. /***/ "./node_modules/core-js/library/modules/_iter-call.js":
  69664. /*!************************************************************!*\
  69665. !*** ./node_modules/core-js/library/modules/_iter-call.js ***!
  69666. \************************************************************/
  69667. /*! no static exports found */
  69668. /***/ (function(module, exports, __webpack_require__) {
  69669. // call something on iterator step with safe closing on error
  69670. var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
  69671. module.exports = function (iterator, fn, value, entries) {
  69672. try {
  69673. return entries ? fn(anObject(value)[0], value[1]) : fn(value);
  69674. // 7.4.6 IteratorClose(iterator, completion)
  69675. } catch (e) {
  69676. var ret = iterator['return'];
  69677. if (ret !== undefined) anObject(ret.call(iterator));
  69678. throw e;
  69679. }
  69680. };
  69681. /***/ }),
  69682. /***/ "./node_modules/core-js/library/modules/_iter-create.js":
  69683. /*!**************************************************************!*\
  69684. !*** ./node_modules/core-js/library/modules/_iter-create.js ***!
  69685. \**************************************************************/
  69686. /*! no static exports found */
  69687. /***/ (function(module, exports, __webpack_require__) {
  69688. "use strict";
  69689. var create = __webpack_require__(/*! ./_object-create */ "./node_modules/core-js/library/modules/_object-create.js");
  69690. var descriptor = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
  69691. var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
  69692. var IteratorPrototype = {};
  69693. // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
  69694. __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js")(IteratorPrototype, __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator'), function () { return this; });
  69695. module.exports = function (Constructor, NAME, next) {
  69696. Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
  69697. setToStringTag(Constructor, NAME + ' Iterator');
  69698. };
  69699. /***/ }),
  69700. /***/ "./node_modules/core-js/library/modules/_iter-define.js":
  69701. /*!**************************************************************!*\
  69702. !*** ./node_modules/core-js/library/modules/_iter-define.js ***!
  69703. \**************************************************************/
  69704. /*! no static exports found */
  69705. /***/ (function(module, exports, __webpack_require__) {
  69706. "use strict";
  69707. var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js");
  69708. var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
  69709. var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/core-js/library/modules/_redefine.js");
  69710. var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
  69711. var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
  69712. var $iterCreate = __webpack_require__(/*! ./_iter-create */ "./node_modules/core-js/library/modules/_iter-create.js");
  69713. var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
  69714. var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "./node_modules/core-js/library/modules/_object-gpo.js");
  69715. var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
  69716. var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
  69717. var FF_ITERATOR = '@@iterator';
  69718. var KEYS = 'keys';
  69719. var VALUES = 'values';
  69720. var returnThis = function () { return this; };
  69721. module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
  69722. $iterCreate(Constructor, NAME, next);
  69723. var getMethod = function (kind) {
  69724. if (!BUGGY && kind in proto) return proto[kind];
  69725. switch (kind) {
  69726. case KEYS: return function keys() { return new Constructor(this, kind); };
  69727. case VALUES: return function values() { return new Constructor(this, kind); };
  69728. } return function entries() { return new Constructor(this, kind); };
  69729. };
  69730. var TAG = NAME + ' Iterator';
  69731. var DEF_VALUES = DEFAULT == VALUES;
  69732. var VALUES_BUG = false;
  69733. var proto = Base.prototype;
  69734. var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
  69735. var $default = $native || getMethod(DEFAULT);
  69736. var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
  69737. var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
  69738. var methods, key, IteratorPrototype;
  69739. // Fix native
  69740. if ($anyNative) {
  69741. IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
  69742. if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
  69743. // Set @@toStringTag to native iterators
  69744. setToStringTag(IteratorPrototype, TAG, true);
  69745. // fix for some old engines
  69746. if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
  69747. }
  69748. }
  69749. // fix Array#{values, @@iterator}.name in V8 / FF
  69750. if (DEF_VALUES && $native && $native.name !== VALUES) {
  69751. VALUES_BUG = true;
  69752. $default = function values() { return $native.call(this); };
  69753. }
  69754. // Define iterator
  69755. if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
  69756. hide(proto, ITERATOR, $default);
  69757. }
  69758. // Plug for library
  69759. Iterators[NAME] = $default;
  69760. Iterators[TAG] = returnThis;
  69761. if (DEFAULT) {
  69762. methods = {
  69763. values: DEF_VALUES ? $default : getMethod(VALUES),
  69764. keys: IS_SET ? $default : getMethod(KEYS),
  69765. entries: $entries
  69766. };
  69767. if (FORCED) for (key in methods) {
  69768. if (!(key in proto)) redefine(proto, key, methods[key]);
  69769. } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
  69770. }
  69771. return methods;
  69772. };
  69773. /***/ }),
  69774. /***/ "./node_modules/core-js/library/modules/_iter-detect.js":
  69775. /*!**************************************************************!*\
  69776. !*** ./node_modules/core-js/library/modules/_iter-detect.js ***!
  69777. \**************************************************************/
  69778. /*! no static exports found */
  69779. /***/ (function(module, exports, __webpack_require__) {
  69780. var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
  69781. var SAFE_CLOSING = false;
  69782. try {
  69783. var riter = [7][ITERATOR]();
  69784. riter['return'] = function () { SAFE_CLOSING = true; };
  69785. // eslint-disable-next-line no-throw-literal
  69786. Array.from(riter, function () { throw 2; });
  69787. } catch (e) { /* empty */ }
  69788. module.exports = function (exec, skipClosing) {
  69789. if (!skipClosing && !SAFE_CLOSING) return false;
  69790. var safe = false;
  69791. try {
  69792. var arr = [7];
  69793. var iter = arr[ITERATOR]();
  69794. iter.next = function () { return { done: safe = true }; };
  69795. arr[ITERATOR] = function () { return iter; };
  69796. exec(arr);
  69797. } catch (e) { /* empty */ }
  69798. return safe;
  69799. };
  69800. /***/ }),
  69801. /***/ "./node_modules/core-js/library/modules/_iter-step.js":
  69802. /*!************************************************************!*\
  69803. !*** ./node_modules/core-js/library/modules/_iter-step.js ***!
  69804. \************************************************************/
  69805. /*! no static exports found */
  69806. /***/ (function(module, exports) {
  69807. module.exports = function (done, value) {
  69808. return { value: value, done: !!done };
  69809. };
  69810. /***/ }),
  69811. /***/ "./node_modules/core-js/library/modules/_iterators.js":
  69812. /*!************************************************************!*\
  69813. !*** ./node_modules/core-js/library/modules/_iterators.js ***!
  69814. \************************************************************/
  69815. /*! no static exports found */
  69816. /***/ (function(module, exports) {
  69817. module.exports = {};
  69818. /***/ }),
  69819. /***/ "./node_modules/core-js/library/modules/_library.js":
  69820. /*!**********************************************************!*\
  69821. !*** ./node_modules/core-js/library/modules/_library.js ***!
  69822. \**********************************************************/
  69823. /*! no static exports found */
  69824. /***/ (function(module, exports) {
  69825. module.exports = true;
  69826. /***/ }),
  69827. /***/ "./node_modules/core-js/library/modules/_meta.js":
  69828. /*!*******************************************************!*\
  69829. !*** ./node_modules/core-js/library/modules/_meta.js ***!
  69830. \*******************************************************/
  69831. /*! no static exports found */
  69832. /***/ (function(module, exports, __webpack_require__) {
  69833. var META = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js")('meta');
  69834. var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
  69835. var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
  69836. var setDesc = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
  69837. var id = 0;
  69838. var isExtensible = Object.isExtensible || function () {
  69839. return true;
  69840. };
  69841. var FREEZE = !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
  69842. return isExtensible(Object.preventExtensions({}));
  69843. });
  69844. var setMeta = function (it) {
  69845. setDesc(it, META, { value: {
  69846. i: 'O' + ++id, // object ID
  69847. w: {} // weak collections IDs
  69848. } });
  69849. };
  69850. var fastKey = function (it, create) {
  69851. // return primitive with prefix
  69852. if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
  69853. if (!has(it, META)) {
  69854. // can't set metadata to uncaught frozen object
  69855. if (!isExtensible(it)) return 'F';
  69856. // not necessary to add metadata
  69857. if (!create) return 'E';
  69858. // add missing metadata
  69859. setMeta(it);
  69860. // return object ID
  69861. } return it[META].i;
  69862. };
  69863. var getWeak = function (it, create) {
  69864. if (!has(it, META)) {
  69865. // can't set metadata to uncaught frozen object
  69866. if (!isExtensible(it)) return true;
  69867. // not necessary to add metadata
  69868. if (!create) return false;
  69869. // add missing metadata
  69870. setMeta(it);
  69871. // return hash weak collections IDs
  69872. } return it[META].w;
  69873. };
  69874. // add metadata on freeze-family methods calling
  69875. var onFreeze = function (it) {
  69876. if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
  69877. return it;
  69878. };
  69879. var meta = module.exports = {
  69880. KEY: META,
  69881. NEED: false,
  69882. fastKey: fastKey,
  69883. getWeak: getWeak,
  69884. onFreeze: onFreeze
  69885. };
  69886. /***/ }),
  69887. /***/ "./node_modules/core-js/library/modules/_object-assign.js":
  69888. /*!****************************************************************!*\
  69889. !*** ./node_modules/core-js/library/modules/_object-assign.js ***!
  69890. \****************************************************************/
  69891. /*! no static exports found */
  69892. /***/ (function(module, exports, __webpack_require__) {
  69893. "use strict";
  69894. // 19.1.2.1 Object.assign(target, source, ...)
  69895. var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js");
  69896. var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
  69897. var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js");
  69898. var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
  69899. var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
  69900. var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/core-js/library/modules/_iobject.js");
  69901. var $assign = Object.assign;
  69902. // should work with symbols and should have deterministic property order (V8 bug)
  69903. module.exports = !$assign || __webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
  69904. var A = {};
  69905. var B = {};
  69906. // eslint-disable-next-line no-undef
  69907. var S = Symbol();
  69908. var K = 'abcdefghijklmnopqrst';
  69909. A[S] = 7;
  69910. K.split('').forEach(function (k) { B[k] = k; });
  69911. return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
  69912. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
  69913. var T = toObject(target);
  69914. var aLen = arguments.length;
  69915. var index = 1;
  69916. var getSymbols = gOPS.f;
  69917. var isEnum = pIE.f;
  69918. while (aLen > index) {
  69919. var S = IObject(arguments[index++]);
  69920. var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
  69921. var length = keys.length;
  69922. var j = 0;
  69923. var key;
  69924. while (length > j) {
  69925. key = keys[j++];
  69926. if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
  69927. }
  69928. } return T;
  69929. } : $assign;
  69930. /***/ }),
  69931. /***/ "./node_modules/core-js/library/modules/_object-create.js":
  69932. /*!****************************************************************!*\
  69933. !*** ./node_modules/core-js/library/modules/_object-create.js ***!
  69934. \****************************************************************/
  69935. /*! no static exports found */
  69936. /***/ (function(module, exports, __webpack_require__) {
  69937. // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
  69938. var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
  69939. var dPs = __webpack_require__(/*! ./_object-dps */ "./node_modules/core-js/library/modules/_object-dps.js");
  69940. var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js");
  69941. var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
  69942. var Empty = function () { /* empty */ };
  69943. var PROTOTYPE = 'prototype';
  69944. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  69945. var createDict = function () {
  69946. // Thrash, waste and sodomy: IE GC bug
  69947. var iframe = __webpack_require__(/*! ./_dom-create */ "./node_modules/core-js/library/modules/_dom-create.js")('iframe');
  69948. var i = enumBugKeys.length;
  69949. var lt = '<';
  69950. var gt = '>';
  69951. var iframeDocument;
  69952. iframe.style.display = 'none';
  69953. __webpack_require__(/*! ./_html */ "./node_modules/core-js/library/modules/_html.js").appendChild(iframe);
  69954. iframe.src = 'javascript:'; // eslint-disable-line no-script-url
  69955. // createDict = iframe.contentWindow.Object;
  69956. // html.removeChild(iframe);
  69957. iframeDocument = iframe.contentWindow.document;
  69958. iframeDocument.open();
  69959. iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
  69960. iframeDocument.close();
  69961. createDict = iframeDocument.F;
  69962. while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
  69963. return createDict();
  69964. };
  69965. module.exports = Object.create || function create(O, Properties) {
  69966. var result;
  69967. if (O !== null) {
  69968. Empty[PROTOTYPE] = anObject(O);
  69969. result = new Empty();
  69970. Empty[PROTOTYPE] = null;
  69971. // add "__proto__" for Object.getPrototypeOf polyfill
  69972. result[IE_PROTO] = O;
  69973. } else result = createDict();
  69974. return Properties === undefined ? result : dPs(result, Properties);
  69975. };
  69976. /***/ }),
  69977. /***/ "./node_modules/core-js/library/modules/_object-dp.js":
  69978. /*!************************************************************!*\
  69979. !*** ./node_modules/core-js/library/modules/_object-dp.js ***!
  69980. \************************************************************/
  69981. /*! no static exports found */
  69982. /***/ (function(module, exports, __webpack_require__) {
  69983. var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
  69984. var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/core-js/library/modules/_ie8-dom-define.js");
  69985. var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
  69986. var dP = Object.defineProperty;
  69987. exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  69988. anObject(O);
  69989. P = toPrimitive(P, true);
  69990. anObject(Attributes);
  69991. if (IE8_DOM_DEFINE) try {
  69992. return dP(O, P, Attributes);
  69993. } catch (e) { /* empty */ }
  69994. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  69995. if ('value' in Attributes) O[P] = Attributes.value;
  69996. return O;
  69997. };
  69998. /***/ }),
  69999. /***/ "./node_modules/core-js/library/modules/_object-dps.js":
  70000. /*!*************************************************************!*\
  70001. !*** ./node_modules/core-js/library/modules/_object-dps.js ***!
  70002. \*************************************************************/
  70003. /*! no static exports found */
  70004. /***/ (function(module, exports, __webpack_require__) {
  70005. var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
  70006. var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
  70007. var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
  70008. module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperties : function defineProperties(O, Properties) {
  70009. anObject(O);
  70010. var keys = getKeys(Properties);
  70011. var length = keys.length;
  70012. var i = 0;
  70013. var P;
  70014. while (length > i) dP.f(O, P = keys[i++], Properties[P]);
  70015. return O;
  70016. };
  70017. /***/ }),
  70018. /***/ "./node_modules/core-js/library/modules/_object-gopd.js":
  70019. /*!**************************************************************!*\
  70020. !*** ./node_modules/core-js/library/modules/_object-gopd.js ***!
  70021. \**************************************************************/
  70022. /*! no static exports found */
  70023. /***/ (function(module, exports, __webpack_require__) {
  70024. var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
  70025. var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
  70026. var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
  70027. var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
  70028. var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
  70029. var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/core-js/library/modules/_ie8-dom-define.js");
  70030. var gOPD = Object.getOwnPropertyDescriptor;
  70031. exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? gOPD : function getOwnPropertyDescriptor(O, P) {
  70032. O = toIObject(O);
  70033. P = toPrimitive(P, true);
  70034. if (IE8_DOM_DEFINE) try {
  70035. return gOPD(O, P);
  70036. } catch (e) { /* empty */ }
  70037. if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
  70038. };
  70039. /***/ }),
  70040. /***/ "./node_modules/core-js/library/modules/_object-gopn-ext.js":
  70041. /*!******************************************************************!*\
  70042. !*** ./node_modules/core-js/library/modules/_object-gopn-ext.js ***!
  70043. \******************************************************************/
  70044. /*! no static exports found */
  70045. /***/ (function(module, exports, __webpack_require__) {
  70046. // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
  70047. var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
  70048. var gOPN = __webpack_require__(/*! ./_object-gopn */ "./node_modules/core-js/library/modules/_object-gopn.js").f;
  70049. var toString = {}.toString;
  70050. var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  70051. ? Object.getOwnPropertyNames(window) : [];
  70052. var getWindowNames = function (it) {
  70053. try {
  70054. return gOPN(it);
  70055. } catch (e) {
  70056. return windowNames.slice();
  70057. }
  70058. };
  70059. module.exports.f = function getOwnPropertyNames(it) {
  70060. return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
  70061. };
  70062. /***/ }),
  70063. /***/ "./node_modules/core-js/library/modules/_object-gopn.js":
  70064. /*!**************************************************************!*\
  70065. !*** ./node_modules/core-js/library/modules/_object-gopn.js ***!
  70066. \**************************************************************/
  70067. /*! no static exports found */
  70068. /***/ (function(module, exports, __webpack_require__) {
  70069. // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
  70070. var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/core-js/library/modules/_object-keys-internal.js");
  70071. var hiddenKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js").concat('length', 'prototype');
  70072. exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  70073. return $keys(O, hiddenKeys);
  70074. };
  70075. /***/ }),
  70076. /***/ "./node_modules/core-js/library/modules/_object-gops.js":
  70077. /*!**************************************************************!*\
  70078. !*** ./node_modules/core-js/library/modules/_object-gops.js ***!
  70079. \**************************************************************/
  70080. /*! no static exports found */
  70081. /***/ (function(module, exports) {
  70082. exports.f = Object.getOwnPropertySymbols;
  70083. /***/ }),
  70084. /***/ "./node_modules/core-js/library/modules/_object-gpo.js":
  70085. /*!*************************************************************!*\
  70086. !*** ./node_modules/core-js/library/modules/_object-gpo.js ***!
  70087. \*************************************************************/
  70088. /*! no static exports found */
  70089. /***/ (function(module, exports, __webpack_require__) {
  70090. // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
  70091. var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
  70092. var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
  70093. var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
  70094. var ObjectProto = Object.prototype;
  70095. module.exports = Object.getPrototypeOf || function (O) {
  70096. O = toObject(O);
  70097. if (has(O, IE_PROTO)) return O[IE_PROTO];
  70098. if (typeof O.constructor == 'function' && O instanceof O.constructor) {
  70099. return O.constructor.prototype;
  70100. } return O instanceof Object ? ObjectProto : null;
  70101. };
  70102. /***/ }),
  70103. /***/ "./node_modules/core-js/library/modules/_object-keys-internal.js":
  70104. /*!***********************************************************************!*\
  70105. !*** ./node_modules/core-js/library/modules/_object-keys-internal.js ***!
  70106. \***********************************************************************/
  70107. /*! no static exports found */
  70108. /***/ (function(module, exports, __webpack_require__) {
  70109. var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
  70110. var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
  70111. var arrayIndexOf = __webpack_require__(/*! ./_array-includes */ "./node_modules/core-js/library/modules/_array-includes.js")(false);
  70112. var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
  70113. module.exports = function (object, names) {
  70114. var O = toIObject(object);
  70115. var i = 0;
  70116. var result = [];
  70117. var key;
  70118. for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
  70119. // Don't enum bug & hidden keys
  70120. while (names.length > i) if (has(O, key = names[i++])) {
  70121. ~arrayIndexOf(result, key) || result.push(key);
  70122. }
  70123. return result;
  70124. };
  70125. /***/ }),
  70126. /***/ "./node_modules/core-js/library/modules/_object-keys.js":
  70127. /*!**************************************************************!*\
  70128. !*** ./node_modules/core-js/library/modules/_object-keys.js ***!
  70129. \**************************************************************/
  70130. /*! no static exports found */
  70131. /***/ (function(module, exports, __webpack_require__) {
  70132. // 19.1.2.14 / 15.2.3.14 Object.keys(O)
  70133. var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/core-js/library/modules/_object-keys-internal.js");
  70134. var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js");
  70135. module.exports = Object.keys || function keys(O) {
  70136. return $keys(O, enumBugKeys);
  70137. };
  70138. /***/ }),
  70139. /***/ "./node_modules/core-js/library/modules/_object-pie.js":
  70140. /*!*************************************************************!*\
  70141. !*** ./node_modules/core-js/library/modules/_object-pie.js ***!
  70142. \*************************************************************/
  70143. /*! no static exports found */
  70144. /***/ (function(module, exports) {
  70145. exports.f = {}.propertyIsEnumerable;
  70146. /***/ }),
  70147. /***/ "./node_modules/core-js/library/modules/_property-desc.js":
  70148. /*!****************************************************************!*\
  70149. !*** ./node_modules/core-js/library/modules/_property-desc.js ***!
  70150. \****************************************************************/
  70151. /*! no static exports found */
  70152. /***/ (function(module, exports) {
  70153. module.exports = function (bitmap, value) {
  70154. return {
  70155. enumerable: !(bitmap & 1),
  70156. configurable: !(bitmap & 2),
  70157. writable: !(bitmap & 4),
  70158. value: value
  70159. };
  70160. };
  70161. /***/ }),
  70162. /***/ "./node_modules/core-js/library/modules/_redefine.js":
  70163. /*!***********************************************************!*\
  70164. !*** ./node_modules/core-js/library/modules/_redefine.js ***!
  70165. \***********************************************************/
  70166. /*! no static exports found */
  70167. /***/ (function(module, exports, __webpack_require__) {
  70168. module.exports = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
  70169. /***/ }),
  70170. /***/ "./node_modules/core-js/library/modules/_set-to-string-tag.js":
  70171. /*!********************************************************************!*\
  70172. !*** ./node_modules/core-js/library/modules/_set-to-string-tag.js ***!
  70173. \********************************************************************/
  70174. /*! no static exports found */
  70175. /***/ (function(module, exports, __webpack_require__) {
  70176. var def = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
  70177. var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
  70178. var TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('toStringTag');
  70179. module.exports = function (it, tag, stat) {
  70180. if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
  70181. };
  70182. /***/ }),
  70183. /***/ "./node_modules/core-js/library/modules/_shared-key.js":
  70184. /*!*************************************************************!*\
  70185. !*** ./node_modules/core-js/library/modules/_shared-key.js ***!
  70186. \*************************************************************/
  70187. /*! no static exports found */
  70188. /***/ (function(module, exports, __webpack_require__) {
  70189. var shared = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js")('keys');
  70190. var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
  70191. module.exports = function (key) {
  70192. return shared[key] || (shared[key] = uid(key));
  70193. };
  70194. /***/ }),
  70195. /***/ "./node_modules/core-js/library/modules/_shared.js":
  70196. /*!*********************************************************!*\
  70197. !*** ./node_modules/core-js/library/modules/_shared.js ***!
  70198. \*********************************************************/
  70199. /*! no static exports found */
  70200. /***/ (function(module, exports, __webpack_require__) {
  70201. var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
  70202. var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
  70203. var SHARED = '__core-js_shared__';
  70204. var store = global[SHARED] || (global[SHARED] = {});
  70205. (module.exports = function (key, value) {
  70206. return store[key] || (store[key] = value !== undefined ? value : {});
  70207. })('versions', []).push({
  70208. version: core.version,
  70209. mode: __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js") ? 'pure' : 'global',
  70210. copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
  70211. });
  70212. /***/ }),
  70213. /***/ "./node_modules/core-js/library/modules/_string-at.js":
  70214. /*!************************************************************!*\
  70215. !*** ./node_modules/core-js/library/modules/_string-at.js ***!
  70216. \************************************************************/
  70217. /*! no static exports found */
  70218. /***/ (function(module, exports, __webpack_require__) {
  70219. var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
  70220. var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
  70221. // true -> String#at
  70222. // false -> String#codePointAt
  70223. module.exports = function (TO_STRING) {
  70224. return function (that, pos) {
  70225. var s = String(defined(that));
  70226. var i = toInteger(pos);
  70227. var l = s.length;
  70228. var a, b;
  70229. if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
  70230. a = s.charCodeAt(i);
  70231. return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
  70232. ? TO_STRING ? s.charAt(i) : a
  70233. : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
  70234. };
  70235. };
  70236. /***/ }),
  70237. /***/ "./node_modules/core-js/library/modules/_to-absolute-index.js":
  70238. /*!********************************************************************!*\
  70239. !*** ./node_modules/core-js/library/modules/_to-absolute-index.js ***!
  70240. \********************************************************************/
  70241. /*! no static exports found */
  70242. /***/ (function(module, exports, __webpack_require__) {
  70243. var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
  70244. var max = Math.max;
  70245. var min = Math.min;
  70246. module.exports = function (index, length) {
  70247. index = toInteger(index);
  70248. return index < 0 ? max(index + length, 0) : min(index, length);
  70249. };
  70250. /***/ }),
  70251. /***/ "./node_modules/core-js/library/modules/_to-integer.js":
  70252. /*!*************************************************************!*\
  70253. !*** ./node_modules/core-js/library/modules/_to-integer.js ***!
  70254. \*************************************************************/
  70255. /*! no static exports found */
  70256. /***/ (function(module, exports) {
  70257. // 7.1.4 ToInteger
  70258. var ceil = Math.ceil;
  70259. var floor = Math.floor;
  70260. module.exports = function (it) {
  70261. return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
  70262. };
  70263. /***/ }),
  70264. /***/ "./node_modules/core-js/library/modules/_to-iobject.js":
  70265. /*!*************************************************************!*\
  70266. !*** ./node_modules/core-js/library/modules/_to-iobject.js ***!
  70267. \*************************************************************/
  70268. /*! no static exports found */
  70269. /***/ (function(module, exports, __webpack_require__) {
  70270. // to indexed object, toObject with fallback for non-array-like ES3 strings
  70271. var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/core-js/library/modules/_iobject.js");
  70272. var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
  70273. module.exports = function (it) {
  70274. return IObject(defined(it));
  70275. };
  70276. /***/ }),
  70277. /***/ "./node_modules/core-js/library/modules/_to-length.js":
  70278. /*!************************************************************!*\
  70279. !*** ./node_modules/core-js/library/modules/_to-length.js ***!
  70280. \************************************************************/
  70281. /*! no static exports found */
  70282. /***/ (function(module, exports, __webpack_require__) {
  70283. // 7.1.15 ToLength
  70284. var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
  70285. var min = Math.min;
  70286. module.exports = function (it) {
  70287. return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
  70288. };
  70289. /***/ }),
  70290. /***/ "./node_modules/core-js/library/modules/_to-object.js":
  70291. /*!************************************************************!*\
  70292. !*** ./node_modules/core-js/library/modules/_to-object.js ***!
  70293. \************************************************************/
  70294. /*! no static exports found */
  70295. /***/ (function(module, exports, __webpack_require__) {
  70296. // 7.1.13 ToObject(argument)
  70297. var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
  70298. module.exports = function (it) {
  70299. return Object(defined(it));
  70300. };
  70301. /***/ }),
  70302. /***/ "./node_modules/core-js/library/modules/_to-primitive.js":
  70303. /*!***************************************************************!*\
  70304. !*** ./node_modules/core-js/library/modules/_to-primitive.js ***!
  70305. \***************************************************************/
  70306. /*! no static exports found */
  70307. /***/ (function(module, exports, __webpack_require__) {
  70308. // 7.1.1 ToPrimitive(input [, PreferredType])
  70309. var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
  70310. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  70311. // and the second argument - flag - preferred type is a string
  70312. module.exports = function (it, S) {
  70313. if (!isObject(it)) return it;
  70314. var fn, val;
  70315. if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  70316. if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  70317. if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  70318. throw TypeError("Can't convert object to primitive value");
  70319. };
  70320. /***/ }),
  70321. /***/ "./node_modules/core-js/library/modules/_uid.js":
  70322. /*!******************************************************!*\
  70323. !*** ./node_modules/core-js/library/modules/_uid.js ***!
  70324. \******************************************************/
  70325. /*! no static exports found */
  70326. /***/ (function(module, exports) {
  70327. var id = 0;
  70328. var px = Math.random();
  70329. module.exports = function (key) {
  70330. return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
  70331. };
  70332. /***/ }),
  70333. /***/ "./node_modules/core-js/library/modules/_wks-define.js":
  70334. /*!*************************************************************!*\
  70335. !*** ./node_modules/core-js/library/modules/_wks-define.js ***!
  70336. \*************************************************************/
  70337. /*! no static exports found */
  70338. /***/ (function(module, exports, __webpack_require__) {
  70339. var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
  70340. var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
  70341. var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js");
  70342. var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js");
  70343. var defineProperty = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
  70344. module.exports = function (name) {
  70345. var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
  70346. if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
  70347. };
  70348. /***/ }),
  70349. /***/ "./node_modules/core-js/library/modules/_wks-ext.js":
  70350. /*!**********************************************************!*\
  70351. !*** ./node_modules/core-js/library/modules/_wks-ext.js ***!
  70352. \**********************************************************/
  70353. /*! no static exports found */
  70354. /***/ (function(module, exports, __webpack_require__) {
  70355. exports.f = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js");
  70356. /***/ }),
  70357. /***/ "./node_modules/core-js/library/modules/_wks.js":
  70358. /*!******************************************************!*\
  70359. !*** ./node_modules/core-js/library/modules/_wks.js ***!
  70360. \******************************************************/
  70361. /*! no static exports found */
  70362. /***/ (function(module, exports, __webpack_require__) {
  70363. var store = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js")('wks');
  70364. var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
  70365. var Symbol = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").Symbol;
  70366. var USE_SYMBOL = typeof Symbol == 'function';
  70367. var $exports = module.exports = function (name) {
  70368. return store[name] || (store[name] =
  70369. USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
  70370. };
  70371. $exports.store = store;
  70372. /***/ }),
  70373. /***/ "./node_modules/core-js/library/modules/core.get-iterator-method.js":
  70374. /*!**************************************************************************!*\
  70375. !*** ./node_modules/core-js/library/modules/core.get-iterator-method.js ***!
  70376. \**************************************************************************/
  70377. /*! no static exports found */
  70378. /***/ (function(module, exports, __webpack_require__) {
  70379. var classof = __webpack_require__(/*! ./_classof */ "./node_modules/core-js/library/modules/_classof.js");
  70380. var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
  70381. var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
  70382. module.exports = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js").getIteratorMethod = function (it) {
  70383. if (it != undefined) return it[ITERATOR]
  70384. || it['@@iterator']
  70385. || Iterators[classof(it)];
  70386. };
  70387. /***/ }),
  70388. /***/ "./node_modules/core-js/library/modules/core.get-iterator.js":
  70389. /*!*******************************************************************!*\
  70390. !*** ./node_modules/core-js/library/modules/core.get-iterator.js ***!
  70391. \*******************************************************************/
  70392. /*! no static exports found */
  70393. /***/ (function(module, exports, __webpack_require__) {
  70394. var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
  70395. var get = __webpack_require__(/*! ./core.get-iterator-method */ "./node_modules/core-js/library/modules/core.get-iterator-method.js");
  70396. module.exports = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js").getIterator = function (it) {
  70397. var iterFn = get(it);
  70398. if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
  70399. return anObject(iterFn.call(it));
  70400. };
  70401. /***/ }),
  70402. /***/ "./node_modules/core-js/library/modules/core.is-iterable.js":
  70403. /*!******************************************************************!*\
  70404. !*** ./node_modules/core-js/library/modules/core.is-iterable.js ***!
  70405. \******************************************************************/
  70406. /*! no static exports found */
  70407. /***/ (function(module, exports, __webpack_require__) {
  70408. var classof = __webpack_require__(/*! ./_classof */ "./node_modules/core-js/library/modules/_classof.js");
  70409. var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
  70410. var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
  70411. module.exports = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js").isIterable = function (it) {
  70412. var O = Object(it);
  70413. return O[ITERATOR] !== undefined
  70414. || '@@iterator' in O
  70415. // eslint-disable-next-line no-prototype-builtins
  70416. || Iterators.hasOwnProperty(classof(O));
  70417. };
  70418. /***/ }),
  70419. /***/ "./node_modules/core-js/library/modules/es6.array.from.js":
  70420. /*!****************************************************************!*\
  70421. !*** ./node_modules/core-js/library/modules/es6.array.from.js ***!
  70422. \****************************************************************/
  70423. /*! no static exports found */
  70424. /***/ (function(module, exports, __webpack_require__) {
  70425. "use strict";
  70426. var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/core-js/library/modules/_ctx.js");
  70427. var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
  70428. var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
  70429. var call = __webpack_require__(/*! ./_iter-call */ "./node_modules/core-js/library/modules/_iter-call.js");
  70430. var isArrayIter = __webpack_require__(/*! ./_is-array-iter */ "./node_modules/core-js/library/modules/_is-array-iter.js");
  70431. var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/core-js/library/modules/_to-length.js");
  70432. var createProperty = __webpack_require__(/*! ./_create-property */ "./node_modules/core-js/library/modules/_create-property.js");
  70433. var getIterFn = __webpack_require__(/*! ./core.get-iterator-method */ "./node_modules/core-js/library/modules/core.get-iterator-method.js");
  70434. $export($export.S + $export.F * !__webpack_require__(/*! ./_iter-detect */ "./node_modules/core-js/library/modules/_iter-detect.js")(function (iter) { Array.from(iter); }), 'Array', {
  70435. // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
  70436. from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
  70437. var O = toObject(arrayLike);
  70438. var C = typeof this == 'function' ? this : Array;
  70439. var aLen = arguments.length;
  70440. var mapfn = aLen > 1 ? arguments[1] : undefined;
  70441. var mapping = mapfn !== undefined;
  70442. var index = 0;
  70443. var iterFn = getIterFn(O);
  70444. var length, result, step, iterator;
  70445. if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
  70446. // if object isn't iterable or it's array with default iterator - use simple case
  70447. if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
  70448. for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
  70449. createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
  70450. }
  70451. } else {
  70452. length = toLength(O.length);
  70453. for (result = new C(length); length > index; index++) {
  70454. createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
  70455. }
  70456. }
  70457. result.length = index;
  70458. return result;
  70459. }
  70460. });
  70461. /***/ }),
  70462. /***/ "./node_modules/core-js/library/modules/es6.array.iterator.js":
  70463. /*!********************************************************************!*\
  70464. !*** ./node_modules/core-js/library/modules/es6.array.iterator.js ***!
  70465. \********************************************************************/
  70466. /*! no static exports found */
  70467. /***/ (function(module, exports, __webpack_require__) {
  70468. "use strict";
  70469. var addToUnscopables = __webpack_require__(/*! ./_add-to-unscopables */ "./node_modules/core-js/library/modules/_add-to-unscopables.js");
  70470. var step = __webpack_require__(/*! ./_iter-step */ "./node_modules/core-js/library/modules/_iter-step.js");
  70471. var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
  70472. var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
  70473. // 22.1.3.4 Array.prototype.entries()
  70474. // 22.1.3.13 Array.prototype.keys()
  70475. // 22.1.3.29 Array.prototype.values()
  70476. // 22.1.3.30 Array.prototype[@@iterator]()
  70477. module.exports = __webpack_require__(/*! ./_iter-define */ "./node_modules/core-js/library/modules/_iter-define.js")(Array, 'Array', function (iterated, kind) {
  70478. this._t = toIObject(iterated); // target
  70479. this._i = 0; // next index
  70480. this._k = kind; // kind
  70481. // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
  70482. }, function () {
  70483. var O = this._t;
  70484. var kind = this._k;
  70485. var index = this._i++;
  70486. if (!O || index >= O.length) {
  70487. this._t = undefined;
  70488. return step(1);
  70489. }
  70490. if (kind == 'keys') return step(0, index);
  70491. if (kind == 'values') return step(0, O[index]);
  70492. return step(0, [index, O[index]]);
  70493. }, 'values');
  70494. // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
  70495. Iterators.Arguments = Iterators.Array;
  70496. addToUnscopables('keys');
  70497. addToUnscopables('values');
  70498. addToUnscopables('entries');
  70499. /***/ }),
  70500. /***/ "./node_modules/core-js/library/modules/es6.object.assign.js":
  70501. /*!*******************************************************************!*\
  70502. !*** ./node_modules/core-js/library/modules/es6.object.assign.js ***!
  70503. \*******************************************************************/
  70504. /*! no static exports found */
  70505. /***/ (function(module, exports, __webpack_require__) {
  70506. // 19.1.3.1 Object.assign(target, source)
  70507. var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
  70508. $export($export.S + $export.F, 'Object', { assign: __webpack_require__(/*! ./_object-assign */ "./node_modules/core-js/library/modules/_object-assign.js") });
  70509. /***/ }),
  70510. /***/ "./node_modules/core-js/library/modules/es6.object.define-property.js":
  70511. /*!****************************************************************************!*\
  70512. !*** ./node_modules/core-js/library/modules/es6.object.define-property.js ***!
  70513. \****************************************************************************/
  70514. /*! no static exports found */
  70515. /***/ (function(module, exports, __webpack_require__) {
  70516. var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
  70517. // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
  70518. $export($export.S + $export.F * !__webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js"), 'Object', { defineProperty: __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f });
  70519. /***/ }),
  70520. /***/ "./node_modules/core-js/library/modules/es6.object.to-string.js":
  70521. /*!**********************************************************************!*\
  70522. !*** ./node_modules/core-js/library/modules/es6.object.to-string.js ***!
  70523. \**********************************************************************/
  70524. /*! no static exports found */
  70525. /***/ (function(module, exports) {
  70526. /***/ }),
  70527. /***/ "./node_modules/core-js/library/modules/es6.string.iterator.js":
  70528. /*!*********************************************************************!*\
  70529. !*** ./node_modules/core-js/library/modules/es6.string.iterator.js ***!
  70530. \*********************************************************************/
  70531. /*! no static exports found */
  70532. /***/ (function(module, exports, __webpack_require__) {
  70533. "use strict";
  70534. var $at = __webpack_require__(/*! ./_string-at */ "./node_modules/core-js/library/modules/_string-at.js")(true);
  70535. // 21.1.3.27 String.prototype[@@iterator]()
  70536. __webpack_require__(/*! ./_iter-define */ "./node_modules/core-js/library/modules/_iter-define.js")(String, 'String', function (iterated) {
  70537. this._t = String(iterated); // target
  70538. this._i = 0; // next index
  70539. // 21.1.5.2.1 %StringIteratorPrototype%.next()
  70540. }, function () {
  70541. var O = this._t;
  70542. var index = this._i;
  70543. var point;
  70544. if (index >= O.length) return { value: undefined, done: true };
  70545. point = $at(O, index);
  70546. this._i += point.length;
  70547. return { value: point, done: false };
  70548. });
  70549. /***/ }),
  70550. /***/ "./node_modules/core-js/library/modules/es6.symbol.js":
  70551. /*!************************************************************!*\
  70552. !*** ./node_modules/core-js/library/modules/es6.symbol.js ***!
  70553. \************************************************************/
  70554. /*! no static exports found */
  70555. /***/ (function(module, exports, __webpack_require__) {
  70556. "use strict";
  70557. // ECMAScript 6 symbols shim
  70558. var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
  70559. var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
  70560. var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js");
  70561. var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
  70562. var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/core-js/library/modules/_redefine.js");
  70563. var META = __webpack_require__(/*! ./_meta */ "./node_modules/core-js/library/modules/_meta.js").KEY;
  70564. var $fails = __webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js");
  70565. var shared = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js");
  70566. var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
  70567. var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
  70568. var wks = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js");
  70569. var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js");
  70570. var wksDefine = __webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js");
  70571. var enumKeys = __webpack_require__(/*! ./_enum-keys */ "./node_modules/core-js/library/modules/_enum-keys.js");
  70572. var isArray = __webpack_require__(/*! ./_is-array */ "./node_modules/core-js/library/modules/_is-array.js");
  70573. var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
  70574. var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
  70575. var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
  70576. var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
  70577. var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
  70578. var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
  70579. var _create = __webpack_require__(/*! ./_object-create */ "./node_modules/core-js/library/modules/_object-create.js");
  70580. var gOPNExt = __webpack_require__(/*! ./_object-gopn-ext */ "./node_modules/core-js/library/modules/_object-gopn-ext.js");
  70581. var $GOPD = __webpack_require__(/*! ./_object-gopd */ "./node_modules/core-js/library/modules/_object-gopd.js");
  70582. var $GOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js");
  70583. var $DP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
  70584. var $keys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
  70585. var gOPD = $GOPD.f;
  70586. var dP = $DP.f;
  70587. var gOPN = gOPNExt.f;
  70588. var $Symbol = global.Symbol;
  70589. var $JSON = global.JSON;
  70590. var _stringify = $JSON && $JSON.stringify;
  70591. var PROTOTYPE = 'prototype';
  70592. var HIDDEN = wks('_hidden');
  70593. var TO_PRIMITIVE = wks('toPrimitive');
  70594. var isEnum = {}.propertyIsEnumerable;
  70595. var SymbolRegistry = shared('symbol-registry');
  70596. var AllSymbols = shared('symbols');
  70597. var OPSymbols = shared('op-symbols');
  70598. var ObjectProto = Object[PROTOTYPE];
  70599. var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
  70600. var QObject = global.QObject;
  70601. // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
  70602. var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
  70603. // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
  70604. var setSymbolDesc = DESCRIPTORS && $fails(function () {
  70605. return _create(dP({}, 'a', {
  70606. get: function () { return dP(this, 'a', { value: 7 }).a; }
  70607. })).a != 7;
  70608. }) ? function (it, key, D) {
  70609. var protoDesc = gOPD(ObjectProto, key);
  70610. if (protoDesc) delete ObjectProto[key];
  70611. dP(it, key, D);
  70612. if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
  70613. } : dP;
  70614. var wrap = function (tag) {
  70615. var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
  70616. sym._k = tag;
  70617. return sym;
  70618. };
  70619. var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
  70620. return typeof it == 'symbol';
  70621. } : function (it) {
  70622. return it instanceof $Symbol;
  70623. };
  70624. var $defineProperty = function defineProperty(it, key, D) {
  70625. if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
  70626. anObject(it);
  70627. key = toPrimitive(key, true);
  70628. anObject(D);
  70629. if (has(AllSymbols, key)) {
  70630. if (!D.enumerable) {
  70631. if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
  70632. it[HIDDEN][key] = true;
  70633. } else {
  70634. if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
  70635. D = _create(D, { enumerable: createDesc(0, false) });
  70636. } return setSymbolDesc(it, key, D);
  70637. } return dP(it, key, D);
  70638. };
  70639. var $defineProperties = function defineProperties(it, P) {
  70640. anObject(it);
  70641. var keys = enumKeys(P = toIObject(P));
  70642. var i = 0;
  70643. var l = keys.length;
  70644. var key;
  70645. while (l > i) $defineProperty(it, key = keys[i++], P[key]);
  70646. return it;
  70647. };
  70648. var $create = function create(it, P) {
  70649. return P === undefined ? _create(it) : $defineProperties(_create(it), P);
  70650. };
  70651. var $propertyIsEnumerable = function propertyIsEnumerable(key) {
  70652. var E = isEnum.call(this, key = toPrimitive(key, true));
  70653. if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
  70654. return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
  70655. };
  70656. var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
  70657. it = toIObject(it);
  70658. key = toPrimitive(key, true);
  70659. if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
  70660. var D = gOPD(it, key);
  70661. if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
  70662. return D;
  70663. };
  70664. var $getOwnPropertyNames = function getOwnPropertyNames(it) {
  70665. var names = gOPN(toIObject(it));
  70666. var result = [];
  70667. var i = 0;
  70668. var key;
  70669. while (names.length > i) {
  70670. if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
  70671. } return result;
  70672. };
  70673. var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
  70674. var IS_OP = it === ObjectProto;
  70675. var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
  70676. var result = [];
  70677. var i = 0;
  70678. var key;
  70679. while (names.length > i) {
  70680. if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
  70681. } return result;
  70682. };
  70683. // 19.4.1.1 Symbol([description])
  70684. if (!USE_NATIVE) {
  70685. $Symbol = function Symbol() {
  70686. if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
  70687. var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
  70688. var $set = function (value) {
  70689. if (this === ObjectProto) $set.call(OPSymbols, value);
  70690. if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
  70691. setSymbolDesc(this, tag, createDesc(1, value));
  70692. };
  70693. if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
  70694. return wrap(tag);
  70695. };
  70696. redefine($Symbol[PROTOTYPE], 'toString', function toString() {
  70697. return this._k;
  70698. });
  70699. $GOPD.f = $getOwnPropertyDescriptor;
  70700. $DP.f = $defineProperty;
  70701. __webpack_require__(/*! ./_object-gopn */ "./node_modules/core-js/library/modules/_object-gopn.js").f = gOPNExt.f = $getOwnPropertyNames;
  70702. __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js").f = $propertyIsEnumerable;
  70703. $GOPS.f = $getOwnPropertySymbols;
  70704. if (DESCRIPTORS && !__webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js")) {
  70705. redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
  70706. }
  70707. wksExt.f = function (name) {
  70708. return wrap(wks(name));
  70709. };
  70710. }
  70711. $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
  70712. for (var es6Symbols = (
  70713. // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
  70714. 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
  70715. ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
  70716. for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
  70717. $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
  70718. // 19.4.2.1 Symbol.for(key)
  70719. 'for': function (key) {
  70720. return has(SymbolRegistry, key += '')
  70721. ? SymbolRegistry[key]
  70722. : SymbolRegistry[key] = $Symbol(key);
  70723. },
  70724. // 19.4.2.5 Symbol.keyFor(sym)
  70725. keyFor: function keyFor(sym) {
  70726. if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
  70727. for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
  70728. },
  70729. useSetter: function () { setter = true; },
  70730. useSimple: function () { setter = false; }
  70731. });
  70732. $export($export.S + $export.F * !USE_NATIVE, 'Object', {
  70733. // 19.1.2.2 Object.create(O [, Properties])
  70734. create: $create,
  70735. // 19.1.2.4 Object.defineProperty(O, P, Attributes)
  70736. defineProperty: $defineProperty,
  70737. // 19.1.2.3 Object.defineProperties(O, Properties)
  70738. defineProperties: $defineProperties,
  70739. // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
  70740. getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
  70741. // 19.1.2.7 Object.getOwnPropertyNames(O)
  70742. getOwnPropertyNames: $getOwnPropertyNames,
  70743. // 19.1.2.8 Object.getOwnPropertySymbols(O)
  70744. getOwnPropertySymbols: $getOwnPropertySymbols
  70745. });
  70746. // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
  70747. // https://bugs.chromium.org/p/v8/issues/detail?id=3443
  70748. var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
  70749. $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
  70750. getOwnPropertySymbols: function getOwnPropertySymbols(it) {
  70751. return $GOPS.f(toObject(it));
  70752. }
  70753. });
  70754. // 24.3.2 JSON.stringify(value [, replacer [, space]])
  70755. $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
  70756. var S = $Symbol();
  70757. // MS Edge converts symbol values to JSON as {}
  70758. // WebKit converts symbol values to JSON as null
  70759. // V8 throws on boxed symbols
  70760. return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
  70761. })), 'JSON', {
  70762. stringify: function stringify(it) {
  70763. var args = [it];
  70764. var i = 1;
  70765. var replacer, $replacer;
  70766. while (arguments.length > i) args.push(arguments[i++]);
  70767. $replacer = replacer = args[1];
  70768. if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
  70769. if (!isArray(replacer)) replacer = function (key, value) {
  70770. if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
  70771. if (!isSymbol(value)) return value;
  70772. };
  70773. args[1] = replacer;
  70774. return _stringify.apply($JSON, args);
  70775. }
  70776. });
  70777. // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
  70778. $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
  70779. // 19.4.3.5 Symbol.prototype[@@toStringTag]
  70780. setToStringTag($Symbol, 'Symbol');
  70781. // 20.2.1.9 Math[@@toStringTag]
  70782. setToStringTag(Math, 'Math', true);
  70783. // 24.3.3 JSON[@@toStringTag]
  70784. setToStringTag(global.JSON, 'JSON', true);
  70785. /***/ }),
  70786. /***/ "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js":
  70787. /*!***************************************************************************!*\
  70788. !*** ./node_modules/core-js/library/modules/es7.symbol.async-iterator.js ***!
  70789. \***************************************************************************/
  70790. /*! no static exports found */
  70791. /***/ (function(module, exports, __webpack_require__) {
  70792. __webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js")('asyncIterator');
  70793. /***/ }),
  70794. /***/ "./node_modules/core-js/library/modules/es7.symbol.observable.js":
  70795. /*!***********************************************************************!*\
  70796. !*** ./node_modules/core-js/library/modules/es7.symbol.observable.js ***!
  70797. \***********************************************************************/
  70798. /*! no static exports found */
  70799. /***/ (function(module, exports, __webpack_require__) {
  70800. __webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js")('observable');
  70801. /***/ }),
  70802. /***/ "./node_modules/core-js/library/modules/web.dom.iterable.js":
  70803. /*!******************************************************************!*\
  70804. !*** ./node_modules/core-js/library/modules/web.dom.iterable.js ***!
  70805. \******************************************************************/
  70806. /*! no static exports found */
  70807. /***/ (function(module, exports, __webpack_require__) {
  70808. __webpack_require__(/*! ./es6.array.iterator */ "./node_modules/core-js/library/modules/es6.array.iterator.js");
  70809. var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
  70810. var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
  70811. var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
  70812. var TO_STRING_TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('toStringTag');
  70813. var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
  70814. 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
  70815. 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
  70816. 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
  70817. 'TextTrackList,TouchList').split(',');
  70818. for (var i = 0; i < DOMIterables.length; i++) {
  70819. var NAME = DOMIterables[i];
  70820. var Collection = global[NAME];
  70821. var proto = Collection && Collection.prototype;
  70822. if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
  70823. Iterators[NAME] = Iterators.Array;
  70824. }
  70825. /***/ }),
  70826. /***/ "./node_modules/dom-align/dist-web/index.js":
  70827. /*!**************************************************!*\
  70828. !*** ./node_modules/dom-align/dist-web/index.js ***!
  70829. \**************************************************/
  70830. /*! exports provided: default, alignElement, alignPoint */
  70831. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  70832. "use strict";
  70833. __webpack_require__.r(__webpack_exports__);
  70834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignElement", function() { return alignElement; });
  70835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignPoint", function() { return alignPoint; });
  70836. function _typeof(obj) {
  70837. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  70838. _typeof = function (obj) {
  70839. return typeof obj;
  70840. };
  70841. } else {
  70842. _typeof = function (obj) {
  70843. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  70844. };
  70845. }
  70846. return _typeof(obj);
  70847. }
  70848. function _defineProperty(obj, key, value) {
  70849. if (key in obj) {
  70850. Object.defineProperty(obj, key, {
  70851. value: value,
  70852. enumerable: true,
  70853. configurable: true,
  70854. writable: true
  70855. });
  70856. } else {
  70857. obj[key] = value;
  70858. }
  70859. return obj;
  70860. }
  70861. function ownKeys(object, enumerableOnly) {
  70862. var keys = Object.keys(object);
  70863. if (Object.getOwnPropertySymbols) {
  70864. var symbols = Object.getOwnPropertySymbols(object);
  70865. if (enumerableOnly) symbols = symbols.filter(function (sym) {
  70866. return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  70867. });
  70868. keys.push.apply(keys, symbols);
  70869. }
  70870. return keys;
  70871. }
  70872. function _objectSpread2(target) {
  70873. for (var i = 1; i < arguments.length; i++) {
  70874. var source = arguments[i] != null ? arguments[i] : {};
  70875. if (i % 2) {
  70876. ownKeys(source, true).forEach(function (key) {
  70877. _defineProperty(target, key, source[key]);
  70878. });
  70879. } else if (Object.getOwnPropertyDescriptors) {
  70880. Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
  70881. } else {
  70882. ownKeys(source).forEach(function (key) {
  70883. Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
  70884. });
  70885. }
  70886. }
  70887. return target;
  70888. }
  70889. var vendorPrefix;
  70890. var jsCssMap = {
  70891. Webkit: '-webkit-',
  70892. Moz: '-moz-',
  70893. // IE did it wrong again ...
  70894. ms: '-ms-',
  70895. O: '-o-'
  70896. };
  70897. function getVendorPrefix() {
  70898. if (vendorPrefix !== undefined) {
  70899. return vendorPrefix;
  70900. }
  70901. vendorPrefix = '';
  70902. var style = document.createElement('p').style;
  70903. var testProp = 'Transform';
  70904. for (var key in jsCssMap) {
  70905. if (key + testProp in style) {
  70906. vendorPrefix = key;
  70907. }
  70908. }
  70909. return vendorPrefix;
  70910. }
  70911. function getTransitionName() {
  70912. return getVendorPrefix() ? "".concat(getVendorPrefix(), "TransitionProperty") : 'transitionProperty';
  70913. }
  70914. function getTransformName() {
  70915. return getVendorPrefix() ? "".concat(getVendorPrefix(), "Transform") : 'transform';
  70916. }
  70917. function setTransitionProperty(node, value) {
  70918. var name = getTransitionName();
  70919. if (name) {
  70920. node.style[name] = value;
  70921. if (name !== 'transitionProperty') {
  70922. node.style.transitionProperty = value;
  70923. }
  70924. }
  70925. }
  70926. function setTransform(node, value) {
  70927. var name = getTransformName();
  70928. if (name) {
  70929. node.style[name] = value;
  70930. if (name !== 'transform') {
  70931. node.style.transform = value;
  70932. }
  70933. }
  70934. }
  70935. function getTransitionProperty(node) {
  70936. return node.style.transitionProperty || node.style[getTransitionName()];
  70937. }
  70938. function getTransformXY(node) {
  70939. var style = window.getComputedStyle(node, null);
  70940. var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());
  70941. if (transform && transform !== 'none') {
  70942. var matrix = transform.replace(/[^0-9\-.,]/g, '').split(',');
  70943. return {
  70944. x: parseFloat(matrix[12] || matrix[4], 0),
  70945. y: parseFloat(matrix[13] || matrix[5], 0)
  70946. };
  70947. }
  70948. return {
  70949. x: 0,
  70950. y: 0
  70951. };
  70952. }
  70953. var matrix2d = /matrix\((.*)\)/;
  70954. var matrix3d = /matrix3d\((.*)\)/;
  70955. function setTransformXY(node, xy) {
  70956. var style = window.getComputedStyle(node, null);
  70957. var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());
  70958. if (transform && transform !== 'none') {
  70959. var arr;
  70960. var match2d = transform.match(matrix2d);
  70961. if (match2d) {
  70962. match2d = match2d[1];
  70963. arr = match2d.split(',').map(function (item) {
  70964. return parseFloat(item, 10);
  70965. });
  70966. arr[4] = xy.x;
  70967. arr[5] = xy.y;
  70968. setTransform(node, "matrix(".concat(arr.join(','), ")"));
  70969. } else {
  70970. var match3d = transform.match(matrix3d)[1];
  70971. arr = match3d.split(',').map(function (item) {
  70972. return parseFloat(item, 10);
  70973. });
  70974. arr[12] = xy.x;
  70975. arr[13] = xy.y;
  70976. setTransform(node, "matrix3d(".concat(arr.join(','), ")"));
  70977. }
  70978. } else {
  70979. setTransform(node, "translateX(".concat(xy.x, "px) translateY(").concat(xy.y, "px) translateZ(0)"));
  70980. }
  70981. }
  70982. var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
  70983. var getComputedStyleX; // https://stackoverflow.com/a/3485654/3040605
  70984. function forceRelayout(elem) {
  70985. var originalStyle = elem.style.display;
  70986. elem.style.display = 'none';
  70987. elem.offsetHeight; // eslint-disable-line
  70988. elem.style.display = originalStyle;
  70989. }
  70990. function css(el, name, v) {
  70991. var value = v;
  70992. if (_typeof(name) === 'object') {
  70993. for (var i in name) {
  70994. if (name.hasOwnProperty(i)) {
  70995. css(el, i, name[i]);
  70996. }
  70997. }
  70998. return undefined;
  70999. }
  71000. if (typeof value !== 'undefined') {
  71001. if (typeof value === 'number') {
  71002. value = "".concat(value, "px");
  71003. }
  71004. el.style[name] = value;
  71005. return undefined;
  71006. }
  71007. return getComputedStyleX(el, name);
  71008. }
  71009. function getClientPosition(elem) {
  71010. var box;
  71011. var x;
  71012. var y;
  71013. var doc = elem.ownerDocument;
  71014. var body = doc.body;
  71015. var docElem = doc && doc.documentElement; // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式
  71016. box = elem.getBoundingClientRect(); // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop
  71017. // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
  71018. // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
  71019. x = box.left;
  71020. y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left
  71021. // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
  71022. // IE6 standards mode, this border can be overridden by setting the
  71023. // document element's border to zero -- thus, we cannot rely on the
  71024. // offset always being 2 pixels.
  71025. // In quirks mode, the offset can be determined by querying the body's
  71026. // clientLeft/clientTop, but in standards mode, it is found by querying
  71027. // the document element's clientLeft/clientTop. Since we already called
  71028. // getClientBoundingRect we have already forced a reflow, so it is not
  71029. // too expensive just to query them all.
  71030. // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的
  71031. // 窗口边框标准是设 documentElement ,quirks 时设置 body
  71032. // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去
  71033. // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置
  71034. // 标准 ie 下 docElem.clientTop 就是 border-top
  71035. // ie7 html 即窗口边框改变不了。永远为 2
  71036. // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0
  71037. x -= docElem.clientLeft || body.clientLeft || 0;
  71038. y -= docElem.clientTop || body.clientTop || 0;
  71039. return {
  71040. left: x,
  71041. top: y
  71042. };
  71043. }
  71044. function getScroll(w, top) {
  71045. var ret = w["page".concat(top ? 'Y' : 'X', "Offset")];
  71046. var method = "scroll".concat(top ? 'Top' : 'Left');
  71047. if (typeof ret !== 'number') {
  71048. var d = w.document; // ie6,7,8 standard mode
  71049. ret = d.documentElement[method];
  71050. if (typeof ret !== 'number') {
  71051. // quirks mode
  71052. ret = d.body[method];
  71053. }
  71054. }
  71055. return ret;
  71056. }
  71057. function getScrollLeft(w) {
  71058. return getScroll(w);
  71059. }
  71060. function getScrollTop(w) {
  71061. return getScroll(w, true);
  71062. }
  71063. function getOffset(el) {
  71064. var pos = getClientPosition(el);
  71065. var doc = el.ownerDocument;
  71066. var w = doc.defaultView || doc.parentWindow;
  71067. pos.left += getScrollLeft(w);
  71068. pos.top += getScrollTop(w);
  71069. return pos;
  71070. }
  71071. /**
  71072. * A crude way of determining if an object is a window
  71073. * @member util
  71074. */
  71075. function isWindow(obj) {
  71076. // must use == for ie8
  71077. /* eslint eqeqeq:0 */
  71078. return obj !== null && obj !== undefined && obj == obj.window;
  71079. }
  71080. function getDocument(node) {
  71081. if (isWindow(node)) {
  71082. return node.document;
  71083. }
  71084. if (node.nodeType === 9) {
  71085. return node;
  71086. }
  71087. return node.ownerDocument;
  71088. }
  71089. function _getComputedStyle(elem, name, cs) {
  71090. var computedStyle = cs;
  71091. var val = '';
  71092. var d = getDocument(elem);
  71093. computedStyle = computedStyle || d.defaultView.getComputedStyle(elem, null); // https://github.com/kissyteam/kissy/issues/61
  71094. if (computedStyle) {
  71095. val = computedStyle.getPropertyValue(name) || computedStyle[name];
  71096. }
  71097. return val;
  71098. }
  71099. var _RE_NUM_NO_PX = new RegExp("^(".concat(RE_NUM, ")(?!px)[a-z%]+$"), 'i');
  71100. var RE_POS = /^(top|right|bottom|left)$/;
  71101. var CURRENT_STYLE = 'currentStyle';
  71102. var RUNTIME_STYLE = 'runtimeStyle';
  71103. var LEFT = 'left';
  71104. var PX = 'px';
  71105. function _getComputedStyleIE(elem, name) {
  71106. // currentStyle maybe null
  71107. // http://msdn.microsoft.com/en-us/library/ms535231.aspx
  71108. var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值
  71109. // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
  71110. // 在 ie 下不对,需要直接用 offset 方式
  71111. // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了
  71112. // From the awesome hack by Dean Edwards
  71113. // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
  71114. // If we're not dealing with a regular pixel number
  71115. // but a number that has a weird ending, we need to convert it to pixels
  71116. // exclude left right for relativity
  71117. if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
  71118. // Remember the original values
  71119. var style = elem.style;
  71120. var left = style[LEFT];
  71121. var rsLeft = elem[RUNTIME_STYLE][LEFT]; // prevent flashing of content
  71122. elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; // Put in the new values to get a computed value out
  71123. style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;
  71124. ret = style.pixelLeft + PX; // Revert the changed values
  71125. style[LEFT] = left;
  71126. elem[RUNTIME_STYLE][LEFT] = rsLeft;
  71127. }
  71128. return ret === '' ? 'auto' : ret;
  71129. }
  71130. if (typeof window !== 'undefined') {
  71131. getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
  71132. }
  71133. function getOffsetDirection(dir, option) {
  71134. if (dir === 'left') {
  71135. return option.useCssRight ? 'right' : dir;
  71136. }
  71137. return option.useCssBottom ? 'bottom' : dir;
  71138. }
  71139. function oppositeOffsetDirection(dir) {
  71140. if (dir === 'left') {
  71141. return 'right';
  71142. } else if (dir === 'right') {
  71143. return 'left';
  71144. } else if (dir === 'top') {
  71145. return 'bottom';
  71146. } else if (dir === 'bottom') {
  71147. return 'top';
  71148. }
  71149. } // 设置 elem 相对 elem.ownerDocument 的坐标
  71150. function setLeftTop(elem, offset, option) {
  71151. // set position first, in-case top/left are set even on static elem
  71152. if (css(elem, 'position') === 'static') {
  71153. elem.style.position = 'relative';
  71154. }
  71155. var presetH = -999;
  71156. var presetV = -999;
  71157. var horizontalProperty = getOffsetDirection('left', option);
  71158. var verticalProperty = getOffsetDirection('top', option);
  71159. var oppositeHorizontalProperty = oppositeOffsetDirection(horizontalProperty);
  71160. var oppositeVerticalProperty = oppositeOffsetDirection(verticalProperty);
  71161. if (horizontalProperty !== 'left') {
  71162. presetH = 999;
  71163. }
  71164. if (verticalProperty !== 'top') {
  71165. presetV = 999;
  71166. }
  71167. var originalTransition = '';
  71168. var originalOffset = getOffset(elem);
  71169. if ('left' in offset || 'top' in offset) {
  71170. originalTransition = getTransitionProperty(elem) || '';
  71171. setTransitionProperty(elem, 'none');
  71172. }
  71173. if ('left' in offset) {
  71174. elem.style[oppositeHorizontalProperty] = '';
  71175. elem.style[horizontalProperty] = "".concat(presetH, "px");
  71176. }
  71177. if ('top' in offset) {
  71178. elem.style[oppositeVerticalProperty] = '';
  71179. elem.style[verticalProperty] = "".concat(presetV, "px");
  71180. } // force relayout
  71181. forceRelayout(elem);
  71182. var old = getOffset(elem);
  71183. var originalStyle = {};
  71184. for (var key in offset) {
  71185. if (offset.hasOwnProperty(key)) {
  71186. var dir = getOffsetDirection(key, option);
  71187. var preset = key === 'left' ? presetH : presetV;
  71188. var off = originalOffset[key] - old[key];
  71189. if (dir === key) {
  71190. originalStyle[dir] = preset + off;
  71191. } else {
  71192. originalStyle[dir] = preset - off;
  71193. }
  71194. }
  71195. }
  71196. css(elem, originalStyle); // force relayout
  71197. forceRelayout(elem);
  71198. if ('left' in offset || 'top' in offset) {
  71199. setTransitionProperty(elem, originalTransition);
  71200. }
  71201. var ret = {};
  71202. for (var _key in offset) {
  71203. if (offset.hasOwnProperty(_key)) {
  71204. var _dir = getOffsetDirection(_key, option);
  71205. var _off = offset[_key] - originalOffset[_key];
  71206. if (_key === _dir) {
  71207. ret[_dir] = originalStyle[_dir] + _off;
  71208. } else {
  71209. ret[_dir] = originalStyle[_dir] - _off;
  71210. }
  71211. }
  71212. }
  71213. css(elem, ret);
  71214. }
  71215. function setTransform$1(elem, offset) {
  71216. var originalOffset = getOffset(elem);
  71217. var originalXY = getTransformXY(elem);
  71218. var resultXY = {
  71219. x: originalXY.x,
  71220. y: originalXY.y
  71221. };
  71222. if ('left' in offset) {
  71223. resultXY.x = originalXY.x + offset.left - originalOffset.left;
  71224. }
  71225. if ('top' in offset) {
  71226. resultXY.y = originalXY.y + offset.top - originalOffset.top;
  71227. }
  71228. setTransformXY(elem, resultXY);
  71229. }
  71230. function setOffset(elem, offset, option) {
  71231. if (option.ignoreShake) {
  71232. var oriOffset = getOffset(elem);
  71233. var oLeft = oriOffset.left.toFixed(0);
  71234. var oTop = oriOffset.top.toFixed(0);
  71235. var tLeft = offset.left.toFixed(0);
  71236. var tTop = offset.top.toFixed(0);
  71237. if (oLeft === tLeft && oTop === tTop) {
  71238. return;
  71239. }
  71240. }
  71241. if (option.useCssRight || option.useCssBottom) {
  71242. setLeftTop(elem, offset, option);
  71243. } else if (option.useCssTransform && getTransformName() in document.body.style) {
  71244. setTransform$1(elem, offset);
  71245. } else {
  71246. setLeftTop(elem, offset, option);
  71247. }
  71248. }
  71249. function each(arr, fn) {
  71250. for (var i = 0; i < arr.length; i++) {
  71251. fn(arr[i]);
  71252. }
  71253. }
  71254. function isBorderBoxFn(elem) {
  71255. return getComputedStyleX(elem, 'boxSizing') === 'border-box';
  71256. }
  71257. var BOX_MODELS = ['margin', 'border', 'padding'];
  71258. var CONTENT_INDEX = -1;
  71259. var PADDING_INDEX = 2;
  71260. var BORDER_INDEX = 1;
  71261. var MARGIN_INDEX = 0;
  71262. function swap(elem, options, callback) {
  71263. var old = {};
  71264. var style = elem.style;
  71265. var name; // Remember the old values, and insert the new ones
  71266. for (name in options) {
  71267. if (options.hasOwnProperty(name)) {
  71268. old[name] = style[name];
  71269. style[name] = options[name];
  71270. }
  71271. }
  71272. callback.call(elem); // Revert the old values
  71273. for (name in options) {
  71274. if (options.hasOwnProperty(name)) {
  71275. style[name] = old[name];
  71276. }
  71277. }
  71278. }
  71279. function getPBMWidth(elem, props, which) {
  71280. var value = 0;
  71281. var prop;
  71282. var j;
  71283. var i;
  71284. for (j = 0; j < props.length; j++) {
  71285. prop = props[j];
  71286. if (prop) {
  71287. for (i = 0; i < which.length; i++) {
  71288. var cssProp = void 0;
  71289. if (prop === 'border') {
  71290. cssProp = "".concat(prop).concat(which[i], "Width");
  71291. } else {
  71292. cssProp = prop + which[i];
  71293. }
  71294. value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;
  71295. }
  71296. }
  71297. }
  71298. return value;
  71299. }
  71300. var domUtils = {
  71301. getParent: function getParent(element) {
  71302. var parent = element;
  71303. do {
  71304. if (parent.nodeType === 11 && parent.host) {
  71305. parent = parent.host;
  71306. } else {
  71307. parent = parent.parentNode;
  71308. }
  71309. } while (parent && parent.nodeType !== 1 && parent.nodeType !== 9);
  71310. return parent;
  71311. }
  71312. };
  71313. each(['Width', 'Height'], function (name) {
  71314. domUtils["doc".concat(name)] = function (refWin) {
  71315. var d = refWin.document;
  71316. return Math.max( // firefox chrome documentElement.scrollHeight< body.scrollHeight
  71317. // ie standard mode : documentElement.scrollHeight> body.scrollHeight
  71318. d.documentElement["scroll".concat(name)], // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
  71319. d.body["scroll".concat(name)], domUtils["viewport".concat(name)](d));
  71320. };
  71321. domUtils["viewport".concat(name)] = function (win) {
  71322. // pc browser includes scrollbar in window.innerWidth
  71323. var prop = "client".concat(name);
  71324. var doc = win.document;
  71325. var body = doc.body;
  71326. var documentElement = doc.documentElement;
  71327. var documentElementProp = documentElement[prop]; // 标准模式取 documentElement
  71328. // backcompat 取 body
  71329. return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;
  71330. };
  71331. });
  71332. /*
  71333. 得到元素的大小信息
  71334. @param elem
  71335. @param name
  71336. @param {String} [extra] 'padding' : (css width) + padding
  71337. 'border' : (css width) + padding + border
  71338. 'margin' : (css width) + padding + border + margin
  71339. */
  71340. function getWH(elem, name, ex) {
  71341. var extra = ex;
  71342. if (isWindow(elem)) {
  71343. return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);
  71344. } else if (elem.nodeType === 9) {
  71345. return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem);
  71346. }
  71347. var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
  71348. var borderBoxValue = name === 'width' ? elem.getBoundingClientRect().width : elem.getBoundingClientRect().height;
  71349. var computedStyle = getComputedStyleX(elem);
  71350. var isBorderBox = isBorderBoxFn(elem);
  71351. var cssBoxValue = 0;
  71352. if (borderBoxValue === null || borderBoxValue === undefined || borderBoxValue <= 0) {
  71353. borderBoxValue = undefined; // Fall back to computed then un computed css if necessary
  71354. cssBoxValue = getComputedStyleX(elem, name);
  71355. if (cssBoxValue === null || cssBoxValue === undefined || Number(cssBoxValue) < 0) {
  71356. cssBoxValue = elem.style[name] || 0;
  71357. } // Normalize '', auto, and prepare for extra
  71358. cssBoxValue = parseFloat(cssBoxValue) || 0;
  71359. }
  71360. if (extra === undefined) {
  71361. extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;
  71362. }
  71363. var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox;
  71364. var val = borderBoxValue || cssBoxValue;
  71365. if (extra === CONTENT_INDEX) {
  71366. if (borderBoxValueOrIsBorderBox) {
  71367. return val - getPBMWidth(elem, ['border', 'padding'], which);
  71368. }
  71369. return cssBoxValue;
  71370. } else if (borderBoxValueOrIsBorderBox) {
  71371. if (extra === BORDER_INDEX) {
  71372. return val;
  71373. }
  71374. return val + (extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which) : getPBMWidth(elem, ['margin'], which));
  71375. }
  71376. return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which);
  71377. }
  71378. var cssShow = {
  71379. position: 'absolute',
  71380. visibility: 'hidden',
  71381. display: 'block'
  71382. }; // fix #119 : https://github.com/kissyteam/kissy/issues/119
  71383. function getWHIgnoreDisplay() {
  71384. for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
  71385. args[_key2] = arguments[_key2];
  71386. }
  71387. var val;
  71388. var elem = args[0]; // in case elem is window
  71389. // elem.offsetWidth === undefined
  71390. if (elem.offsetWidth !== 0) {
  71391. val = getWH.apply(undefined, args);
  71392. } else {
  71393. swap(elem, cssShow, function () {
  71394. val = getWH.apply(undefined, args);
  71395. });
  71396. }
  71397. return val;
  71398. }
  71399. each(['width', 'height'], function (name) {
  71400. var first = name.charAt(0).toUpperCase() + name.slice(1);
  71401. domUtils["outer".concat(first)] = function (el, includeMargin) {
  71402. return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);
  71403. };
  71404. var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
  71405. domUtils[name] = function (elem, v) {
  71406. var val = v;
  71407. if (val !== undefined) {
  71408. if (elem) {
  71409. var computedStyle = getComputedStyleX(elem);
  71410. var isBorderBox = isBorderBoxFn(elem);
  71411. if (isBorderBox) {
  71412. val += getPBMWidth(elem, ['padding', 'border'], which);
  71413. }
  71414. return css(elem, name, val);
  71415. }
  71416. return undefined;
  71417. }
  71418. return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);
  71419. };
  71420. });
  71421. function mix(to, from) {
  71422. for (var i in from) {
  71423. if (from.hasOwnProperty(i)) {
  71424. to[i] = from[i];
  71425. }
  71426. }
  71427. return to;
  71428. }
  71429. var utils = {
  71430. getWindow: function getWindow(node) {
  71431. if (node && node.document && node.setTimeout) {
  71432. return node;
  71433. }
  71434. var doc = node.ownerDocument || node;
  71435. return doc.defaultView || doc.parentWindow;
  71436. },
  71437. getDocument: getDocument,
  71438. offset: function offset(el, value, option) {
  71439. if (typeof value !== 'undefined') {
  71440. setOffset(el, value, option || {});
  71441. } else {
  71442. return getOffset(el);
  71443. }
  71444. },
  71445. isWindow: isWindow,
  71446. each: each,
  71447. css: css,
  71448. clone: function clone(obj) {
  71449. var i;
  71450. var ret = {};
  71451. for (i in obj) {
  71452. if (obj.hasOwnProperty(i)) {
  71453. ret[i] = obj[i];
  71454. }
  71455. }
  71456. var overflow = obj.overflow;
  71457. if (overflow) {
  71458. for (i in obj) {
  71459. if (obj.hasOwnProperty(i)) {
  71460. ret.overflow[i] = obj.overflow[i];
  71461. }
  71462. }
  71463. }
  71464. return ret;
  71465. },
  71466. mix: mix,
  71467. getWindowScrollLeft: function getWindowScrollLeft(w) {
  71468. return getScrollLeft(w);
  71469. },
  71470. getWindowScrollTop: function getWindowScrollTop(w) {
  71471. return getScrollTop(w);
  71472. },
  71473. merge: function merge() {
  71474. var ret = {};
  71475. for (var i = 0; i < arguments.length; i++) {
  71476. utils.mix(ret, i < 0 || arguments.length <= i ? undefined : arguments[i]);
  71477. }
  71478. return ret;
  71479. },
  71480. viewportWidth: 0,
  71481. viewportHeight: 0
  71482. };
  71483. mix(utils, domUtils);
  71484. /**
  71485. * 得到会导致元素显示不全的祖先元素
  71486. */
  71487. var getParent = utils.getParent;
  71488. function getOffsetParent(element) {
  71489. if (utils.isWindow(element) || element.nodeType === 9) {
  71490. return null;
  71491. } // ie 这个也不是完全可行
  71492. /*
  71493. <div style="width: 50px;height: 100px;overflow: hidden">
  71494. <div style="width: 50px;height: 100px;position: relative;" id="d6">
  71495. 元素 6 高 100px 宽 50px<br/>
  71496. </div>
  71497. </div>
  71498. */
  71499. // element.offsetParent does the right thing in ie7 and below. Return parent with layout!
  71500. // In other browsers it only includes elements with position absolute, relative or
  71501. // fixed, not elements with overflow set to auto or scroll.
  71502. // if (UA.ie && ieMode < 8) {
  71503. // return element.offsetParent;
  71504. // }
  71505. // 统一的 offsetParent 方法
  71506. var doc = utils.getDocument(element);
  71507. var body = doc.body;
  71508. var parent;
  71509. var positionStyle = utils.css(element, 'position');
  71510. var skipStatic = positionStyle === 'fixed' || positionStyle === 'absolute';
  71511. if (!skipStatic) {
  71512. return element.nodeName.toLowerCase() === 'html' ? null : getParent(element);
  71513. }
  71514. for (parent = getParent(element); parent && parent !== body && parent.nodeType !== 9; parent = getParent(parent)) {
  71515. positionStyle = utils.css(parent, 'position');
  71516. if (positionStyle !== 'static') {
  71517. return parent;
  71518. }
  71519. }
  71520. return null;
  71521. }
  71522. var getParent$1 = utils.getParent;
  71523. function isAncestorFixed(element) {
  71524. if (utils.isWindow(element) || element.nodeType === 9) {
  71525. return false;
  71526. }
  71527. var doc = utils.getDocument(element);
  71528. var body = doc.body;
  71529. var parent = null;
  71530. for (parent = getParent$1(element); parent && parent !== body; parent = getParent$1(parent)) {
  71531. var positionStyle = utils.css(parent, 'position');
  71532. if (positionStyle === 'fixed') {
  71533. return true;
  71534. }
  71535. }
  71536. return false;
  71537. }
  71538. /**
  71539. * 获得元素的显示部分的区域
  71540. */
  71541. function getVisibleRectForElement(element, alwaysByViewport) {
  71542. var visibleRect = {
  71543. left: 0,
  71544. right: Infinity,
  71545. top: 0,
  71546. bottom: Infinity
  71547. };
  71548. var el = getOffsetParent(element);
  71549. var doc = utils.getDocument(element);
  71550. var win = doc.defaultView || doc.parentWindow;
  71551. var body = doc.body;
  71552. var documentElement = doc.documentElement; // Determine the size of the visible rect by climbing the dom accounting for
  71553. // all scrollable containers.
  71554. while (el) {
  71555. // clientWidth is zero for inline block elements in ie.
  71556. if ((navigator.userAgent.indexOf('MSIE') === -1 || el.clientWidth !== 0) && // body may have overflow set on it, yet we still get the entire
  71557. // viewport. In some browsers, el.offsetParent may be
  71558. // document.documentElement, so check for that too.
  71559. el !== body && el !== documentElement && utils.css(el, 'overflow') !== 'visible') {
  71560. var pos = utils.offset(el); // add border
  71561. pos.left += el.clientLeft;
  71562. pos.top += el.clientTop;
  71563. visibleRect.top = Math.max(visibleRect.top, pos.top);
  71564. visibleRect.right = Math.min(visibleRect.right, // consider area without scrollBar
  71565. pos.left + el.clientWidth);
  71566. visibleRect.bottom = Math.min(visibleRect.bottom, pos.top + el.clientHeight);
  71567. visibleRect.left = Math.max(visibleRect.left, pos.left);
  71568. } else if (el === body || el === documentElement) {
  71569. break;
  71570. }
  71571. el = getOffsetParent(el);
  71572. } // Set element position to fixed
  71573. // make sure absolute element itself don't affect it's visible area
  71574. // https://github.com/ant-design/ant-design/issues/7601
  71575. var originalPosition = null;
  71576. if (!utils.isWindow(element) && element.nodeType !== 9) {
  71577. originalPosition = element.style.position;
  71578. var position = utils.css(element, 'position');
  71579. if (position === 'absolute') {
  71580. element.style.position = 'fixed';
  71581. }
  71582. }
  71583. var scrollX = utils.getWindowScrollLeft(win);
  71584. var scrollY = utils.getWindowScrollTop(win);
  71585. var viewportWidth = utils.viewportWidth(win);
  71586. var viewportHeight = utils.viewportHeight(win);
  71587. var documentWidth = documentElement.scrollWidth;
  71588. var documentHeight = documentElement.scrollHeight; // scrollXXX on html is sync with body which means overflow: hidden on body gets wrong scrollXXX.
  71589. // We should cut this ourself.
  71590. var bodyStyle = window.getComputedStyle(body);
  71591. if (bodyStyle.overflowX === 'hidden') {
  71592. documentWidth = win.innerWidth;
  71593. }
  71594. if (bodyStyle.overflowY === 'hidden') {
  71595. documentHeight = win.innerHeight;
  71596. } // Reset element position after calculate the visible area
  71597. if (element.style) {
  71598. element.style.position = originalPosition;
  71599. }
  71600. if (alwaysByViewport || isAncestorFixed(element)) {
  71601. // Clip by viewport's size.
  71602. visibleRect.left = Math.max(visibleRect.left, scrollX);
  71603. visibleRect.top = Math.max(visibleRect.top, scrollY);
  71604. visibleRect.right = Math.min(visibleRect.right, scrollX + viewportWidth);
  71605. visibleRect.bottom = Math.min(visibleRect.bottom, scrollY + viewportHeight);
  71606. } else {
  71607. // Clip by document's size.
  71608. var maxVisibleWidth = Math.max(documentWidth, scrollX + viewportWidth);
  71609. visibleRect.right = Math.min(visibleRect.right, maxVisibleWidth);
  71610. var maxVisibleHeight = Math.max(documentHeight, scrollY + viewportHeight);
  71611. visibleRect.bottom = Math.min(visibleRect.bottom, maxVisibleHeight);
  71612. }
  71613. return visibleRect.top >= 0 && visibleRect.left >= 0 && visibleRect.bottom > visibleRect.top && visibleRect.right > visibleRect.left ? visibleRect : null;
  71614. }
  71615. function adjustForViewport(elFuturePos, elRegion, visibleRect, overflow) {
  71616. var pos = utils.clone(elFuturePos);
  71617. var size = {
  71618. width: elRegion.width,
  71619. height: elRegion.height
  71620. };
  71621. if (overflow.adjustX && pos.left < visibleRect.left) {
  71622. pos.left = visibleRect.left;
  71623. } // Left edge inside and right edge outside viewport, try to resize it.
  71624. if (overflow.resizeWidth && pos.left >= visibleRect.left && pos.left + size.width > visibleRect.right) {
  71625. size.width -= pos.left + size.width - visibleRect.right;
  71626. } // Right edge outside viewport, try to move it.
  71627. if (overflow.adjustX && pos.left + size.width > visibleRect.right) {
  71628. // 保证左边界和可视区域左边界对齐
  71629. pos.left = Math.max(visibleRect.right - size.width, visibleRect.left);
  71630. } // Top edge outside viewport, try to move it.
  71631. if (overflow.adjustY && pos.top < visibleRect.top) {
  71632. pos.top = visibleRect.top;
  71633. } // Top edge inside and bottom edge outside viewport, try to resize it.
  71634. if (overflow.resizeHeight && pos.top >= visibleRect.top && pos.top + size.height > visibleRect.bottom) {
  71635. size.height -= pos.top + size.height - visibleRect.bottom;
  71636. } // Bottom edge outside viewport, try to move it.
  71637. if (overflow.adjustY && pos.top + size.height > visibleRect.bottom) {
  71638. // 保证上边界和可视区域上边界对齐
  71639. pos.top = Math.max(visibleRect.bottom - size.height, visibleRect.top);
  71640. }
  71641. return utils.mix(pos, size);
  71642. }
  71643. function getRegion(node) {
  71644. var offset;
  71645. var w;
  71646. var h;
  71647. if (!utils.isWindow(node) && node.nodeType !== 9) {
  71648. offset = utils.offset(node);
  71649. w = utils.outerWidth(node);
  71650. h = utils.outerHeight(node);
  71651. } else {
  71652. var win = utils.getWindow(node);
  71653. offset = {
  71654. left: utils.getWindowScrollLeft(win),
  71655. top: utils.getWindowScrollTop(win)
  71656. };
  71657. w = utils.viewportWidth(win);
  71658. h = utils.viewportHeight(win);
  71659. }
  71660. offset.width = w;
  71661. offset.height = h;
  71662. return offset;
  71663. }
  71664. /**
  71665. * 获取 node 上的 align 对齐点 相对于页面的坐标
  71666. */
  71667. function getAlignOffset(region, align) {
  71668. var V = align.charAt(0);
  71669. var H = align.charAt(1);
  71670. var w = region.width;
  71671. var h = region.height;
  71672. var x = region.left;
  71673. var y = region.top;
  71674. if (V === 'c') {
  71675. y += h / 2;
  71676. } else if (V === 'b') {
  71677. y += h;
  71678. }
  71679. if (H === 'c') {
  71680. x += w / 2;
  71681. } else if (H === 'r') {
  71682. x += w;
  71683. }
  71684. return {
  71685. left: x,
  71686. top: y
  71687. };
  71688. }
  71689. function getElFuturePos(elRegion, refNodeRegion, points, offset, targetOffset) {
  71690. var p1 = getAlignOffset(refNodeRegion, points[1]);
  71691. var p2 = getAlignOffset(elRegion, points[0]);
  71692. var diff = [p2.left - p1.left, p2.top - p1.top];
  71693. return {
  71694. left: Math.round(elRegion.left - diff[0] + offset[0] - targetOffset[0]),
  71695. top: Math.round(elRegion.top - diff[1] + offset[1] - targetOffset[1])
  71696. };
  71697. }
  71698. /**
  71699. * align dom node flexibly
  71700. * @author yiminghe@gmail.com
  71701. */
  71702. function isFailX(elFuturePos, elRegion, visibleRect) {
  71703. return elFuturePos.left < visibleRect.left || elFuturePos.left + elRegion.width > visibleRect.right;
  71704. }
  71705. function isFailY(elFuturePos, elRegion, visibleRect) {
  71706. return elFuturePos.top < visibleRect.top || elFuturePos.top + elRegion.height > visibleRect.bottom;
  71707. }
  71708. function isCompleteFailX(elFuturePos, elRegion, visibleRect) {
  71709. return elFuturePos.left > visibleRect.right || elFuturePos.left + elRegion.width < visibleRect.left;
  71710. }
  71711. function isCompleteFailY(elFuturePos, elRegion, visibleRect) {
  71712. return elFuturePos.top > visibleRect.bottom || elFuturePos.top + elRegion.height < visibleRect.top;
  71713. }
  71714. function flip(points, reg, map) {
  71715. var ret = [];
  71716. utils.each(points, function (p) {
  71717. ret.push(p.replace(reg, function (m) {
  71718. return map[m];
  71719. }));
  71720. });
  71721. return ret;
  71722. }
  71723. function flipOffset(offset, index) {
  71724. offset[index] = -offset[index];
  71725. return offset;
  71726. }
  71727. function convertOffset(str, offsetLen) {
  71728. var n;
  71729. if (/%$/.test(str)) {
  71730. n = parseInt(str.substring(0, str.length - 1), 10) / 100 * offsetLen;
  71731. } else {
  71732. n = parseInt(str, 10);
  71733. }
  71734. return n || 0;
  71735. }
  71736. function normalizeOffset(offset, el) {
  71737. offset[0] = convertOffset(offset[0], el.width);
  71738. offset[1] = convertOffset(offset[1], el.height);
  71739. }
  71740. /**
  71741. * @param el
  71742. * @param tgtRegion 参照节点所占的区域: { left, top, width, height }
  71743. * @param align
  71744. */
  71745. function doAlign(el, tgtRegion, align, isTgtRegionVisible) {
  71746. var points = align.points;
  71747. var offset = align.offset || [0, 0];
  71748. var targetOffset = align.targetOffset || [0, 0];
  71749. var overflow = align.overflow;
  71750. var source = align.source || el;
  71751. offset = [].concat(offset);
  71752. targetOffset = [].concat(targetOffset);
  71753. overflow = overflow || {};
  71754. var newOverflowCfg = {};
  71755. var fail = 0;
  71756. var alwaysByViewport = !!(overflow && overflow.alwaysByViewport); // 当前节点可以被放置的显示区域
  71757. var visibleRect = getVisibleRectForElement(source, alwaysByViewport); // 当前节点所占的区域, left/top/width/height
  71758. var elRegion = getRegion(source); // 将 offset 转换成数值,支持百分比
  71759. normalizeOffset(offset, elRegion);
  71760. normalizeOffset(targetOffset, tgtRegion); // 当前节点将要被放置的位置
  71761. var elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset); // 当前节点将要所处的区域
  71762. var newElRegion = utils.merge(elRegion, elFuturePos); // 如果可视区域不能完全放置当前节点时允许调整
  71763. if (visibleRect && (overflow.adjustX || overflow.adjustY) && isTgtRegionVisible) {
  71764. if (overflow.adjustX) {
  71765. // 如果横向不能放下
  71766. if (isFailX(elFuturePos, elRegion, visibleRect)) {
  71767. // 对齐位置反下
  71768. var newPoints = flip(points, /[lr]/gi, {
  71769. l: 'r',
  71770. r: 'l'
  71771. }); // 偏移量也反下
  71772. var newOffset = flipOffset(offset, 0);
  71773. var newTargetOffset = flipOffset(targetOffset, 0);
  71774. var newElFuturePos = getElFuturePos(elRegion, tgtRegion, newPoints, newOffset, newTargetOffset);
  71775. if (!isCompleteFailX(newElFuturePos, elRegion, visibleRect)) {
  71776. fail = 1;
  71777. points = newPoints;
  71778. offset = newOffset;
  71779. targetOffset = newTargetOffset;
  71780. }
  71781. }
  71782. }
  71783. if (overflow.adjustY) {
  71784. // 如果纵向不能放下
  71785. if (isFailY(elFuturePos, elRegion, visibleRect)) {
  71786. // 对齐位置反下
  71787. var _newPoints = flip(points, /[tb]/gi, {
  71788. t: 'b',
  71789. b: 't'
  71790. }); // 偏移量也反下
  71791. var _newOffset = flipOffset(offset, 1);
  71792. var _newTargetOffset = flipOffset(targetOffset, 1);
  71793. var _newElFuturePos = getElFuturePos(elRegion, tgtRegion, _newPoints, _newOffset, _newTargetOffset);
  71794. if (!isCompleteFailY(_newElFuturePos, elRegion, visibleRect)) {
  71795. fail = 1;
  71796. points = _newPoints;
  71797. offset = _newOffset;
  71798. targetOffset = _newTargetOffset;
  71799. }
  71800. }
  71801. } // 如果失败,重新计算当前节点将要被放置的位置
  71802. if (fail) {
  71803. elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset);
  71804. utils.mix(newElRegion, elFuturePos);
  71805. }
  71806. var isStillFailX = isFailX(elFuturePos, elRegion, visibleRect);
  71807. var isStillFailY = isFailY(elFuturePos, elRegion, visibleRect); // 检查反下后的位置是否可以放下了,如果仍然放不下:
  71808. // 1. 复原修改过的定位参数
  71809. if (isStillFailX || isStillFailY) {
  71810. var _newPoints2 = points; // 重置对应部分的翻转逻辑
  71811. if (isStillFailX) {
  71812. _newPoints2 = flip(points, /[lr]/gi, {
  71813. l: 'r',
  71814. r: 'l'
  71815. });
  71816. }
  71817. if (isStillFailY) {
  71818. _newPoints2 = flip(points, /[tb]/gi, {
  71819. t: 'b',
  71820. b: 't'
  71821. });
  71822. }
  71823. points = _newPoints2;
  71824. offset = align.offset || [0, 0];
  71825. targetOffset = align.targetOffset || [0, 0];
  71826. } // 2. 只有指定了可以调整当前方向才调整
  71827. newOverflowCfg.adjustX = overflow.adjustX && isStillFailX;
  71828. newOverflowCfg.adjustY = overflow.adjustY && isStillFailY; // 确实要调整,甚至可能会调整高度宽度
  71829. if (newOverflowCfg.adjustX || newOverflowCfg.adjustY) {
  71830. newElRegion = adjustForViewport(elFuturePos, elRegion, visibleRect, newOverflowCfg);
  71831. }
  71832. } // need judge to in case set fixed with in css on height auto element
  71833. if (newElRegion.width !== elRegion.width) {
  71834. utils.css(source, 'width', utils.width(source) + newElRegion.width - elRegion.width);
  71835. }
  71836. if (newElRegion.height !== elRegion.height) {
  71837. utils.css(source, 'height', utils.height(source) + newElRegion.height - elRegion.height);
  71838. } // https://github.com/kissyteam/kissy/issues/190
  71839. // 相对于屏幕位置没变,而 left/top 变了
  71840. // 例如 <div 'relative'><el absolute></div>
  71841. utils.offset(source, {
  71842. left: newElRegion.left,
  71843. top: newElRegion.top
  71844. }, {
  71845. useCssRight: align.useCssRight,
  71846. useCssBottom: align.useCssBottom,
  71847. useCssTransform: align.useCssTransform,
  71848. ignoreShake: align.ignoreShake
  71849. });
  71850. return {
  71851. points: points,
  71852. offset: offset,
  71853. targetOffset: targetOffset,
  71854. overflow: newOverflowCfg
  71855. };
  71856. }
  71857. /**
  71858. * 2012-04-26 yiminghe@gmail.com
  71859. * - 优化智能对齐算法
  71860. * - 慎用 resizeXX
  71861. *
  71862. * 2011-07-13 yiminghe@gmail.com note:
  71863. * - 增加智能对齐,以及大小调整选项
  71864. **/
  71865. function isOutOfVisibleRect(target, alwaysByViewport) {
  71866. var visibleRect = getVisibleRectForElement(target, alwaysByViewport);
  71867. var targetRegion = getRegion(target);
  71868. return !visibleRect || targetRegion.left + targetRegion.width <= visibleRect.left || targetRegion.top + targetRegion.height <= visibleRect.top || targetRegion.left >= visibleRect.right || targetRegion.top >= visibleRect.bottom;
  71869. }
  71870. function alignElement(el, refNode, align) {
  71871. var target = align.target || refNode;
  71872. var refNodeRegion = getRegion(target);
  71873. var isTargetNotOutOfVisible = !isOutOfVisibleRect(target, align.overflow && align.overflow.alwaysByViewport);
  71874. return doAlign(el, refNodeRegion, align, isTargetNotOutOfVisible);
  71875. }
  71876. alignElement.__getOffsetParent = getOffsetParent;
  71877. alignElement.__getVisibleRectForElement = getVisibleRectForElement;
  71878. /**
  71879. * `tgtPoint`: { pageX, pageY } or { clientX, clientY }.
  71880. * If client position provided, will internal convert to page position.
  71881. */
  71882. function alignPoint(el, tgtPoint, align) {
  71883. var pageX;
  71884. var pageY;
  71885. var doc = utils.getDocument(el);
  71886. var win = doc.defaultView || doc.parentWindow;
  71887. var scrollX = utils.getWindowScrollLeft(win);
  71888. var scrollY = utils.getWindowScrollTop(win);
  71889. var viewportWidth = utils.viewportWidth(win);
  71890. var viewportHeight = utils.viewportHeight(win);
  71891. if ('pageX' in tgtPoint) {
  71892. pageX = tgtPoint.pageX;
  71893. } else {
  71894. pageX = scrollX + tgtPoint.clientX;
  71895. }
  71896. if ('pageY' in tgtPoint) {
  71897. pageY = tgtPoint.pageY;
  71898. } else {
  71899. pageY = scrollY + tgtPoint.clientY;
  71900. }
  71901. var tgtRegion = {
  71902. left: pageX,
  71903. top: pageY,
  71904. width: 0,
  71905. height: 0
  71906. };
  71907. var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight; // Provide default target point
  71908. var points = [align.points[0], 'cc'];
  71909. return doAlign(el, tgtRegion, _objectSpread2({}, align, {
  71910. points: points
  71911. }), pointInView);
  71912. }
  71913. /* harmony default export */ __webpack_exports__["default"] = (alignElement);
  71914. //# sourceMappingURL=index.js.map
  71915. /***/ }),
  71916. /***/ "./node_modules/dom-closest/index.js":
  71917. /*!*******************************************!*\
  71918. !*** ./node_modules/dom-closest/index.js ***!
  71919. \*******************************************/
  71920. /*! no static exports found */
  71921. /***/ (function(module, exports, __webpack_require__) {
  71922. /**
  71923. * Module dependencies
  71924. */
  71925. var matches = __webpack_require__(/*! dom-matches */ "./node_modules/dom-matches/index.js");
  71926. /**
  71927. * @param element {Element}
  71928. * @param selector {String}
  71929. * @param context {Element}
  71930. * @return {Element}
  71931. */
  71932. module.exports = function (element, selector, context) {
  71933. context = context || document;
  71934. // guard against orphans
  71935. element = { parentNode: element };
  71936. while ((element = element.parentNode) && element !== context) {
  71937. if (matches(element, selector)) {
  71938. return element;
  71939. }
  71940. }
  71941. };
  71942. /***/ }),
  71943. /***/ "./node_modules/dom-matches/index.js":
  71944. /*!*******************************************!*\
  71945. !*** ./node_modules/dom-matches/index.js ***!
  71946. \*******************************************/
  71947. /*! no static exports found */
  71948. /***/ (function(module, exports, __webpack_require__) {
  71949. "use strict";
  71950. /**
  71951. * Determine if a DOM element matches a CSS selector
  71952. *
  71953. * @param {Element} elem
  71954. * @param {String} selector
  71955. * @return {Boolean}
  71956. * @api public
  71957. */
  71958. function matches(elem, selector) {
  71959. // Vendor-specific implementations of `Element.prototype.matches()`.
  71960. var proto = window.Element.prototype;
  71961. var nativeMatches = proto.matches ||
  71962. proto.mozMatchesSelector ||
  71963. proto.msMatchesSelector ||
  71964. proto.oMatchesSelector ||
  71965. proto.webkitMatchesSelector;
  71966. if (!elem || elem.nodeType !== 1) {
  71967. return false;
  71968. }
  71969. var parentElem = elem.parentNode;
  71970. // use native 'matches'
  71971. if (nativeMatches) {
  71972. return nativeMatches.call(elem, selector);
  71973. }
  71974. // native support for `matches` is missing and a fallback is required
  71975. var nodes = parentElem.querySelectorAll(selector);
  71976. var len = nodes.length;
  71977. for (var i = 0; i < len; i++) {
  71978. if (nodes[i] === elem) {
  71979. return true;
  71980. }
  71981. }
  71982. return false;
  71983. }
  71984. /**
  71985. * Expose `matches`
  71986. */
  71987. module.exports = matches;
  71988. /***/ }),
  71989. /***/ "./node_modules/dom-scroll-into-view/dist-web/index.js":
  71990. /*!*************************************************************!*\
  71991. !*** ./node_modules/dom-scroll-into-view/dist-web/index.js ***!
  71992. \*************************************************************/
  71993. /*! exports provided: default */
  71994. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  71995. "use strict";
  71996. __webpack_require__.r(__webpack_exports__);
  71997. function _typeof(obj) {
  71998. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  71999. _typeof = function (obj) {
  72000. return typeof obj;
  72001. };
  72002. } else {
  72003. _typeof = function (obj) {
  72004. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  72005. };
  72006. }
  72007. return _typeof(obj);
  72008. }
  72009. function _defineProperty(obj, key, value) {
  72010. if (key in obj) {
  72011. Object.defineProperty(obj, key, {
  72012. value: value,
  72013. enumerable: true,
  72014. configurable: true,
  72015. writable: true
  72016. });
  72017. } else {
  72018. obj[key] = value;
  72019. }
  72020. return obj;
  72021. }
  72022. function ownKeys(object, enumerableOnly) {
  72023. var keys = Object.keys(object);
  72024. if (Object.getOwnPropertySymbols) {
  72025. var symbols = Object.getOwnPropertySymbols(object);
  72026. if (enumerableOnly) symbols = symbols.filter(function (sym) {
  72027. return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  72028. });
  72029. keys.push.apply(keys, symbols);
  72030. }
  72031. return keys;
  72032. }
  72033. function _objectSpread2(target) {
  72034. for (var i = 1; i < arguments.length; i++) {
  72035. var source = arguments[i] != null ? arguments[i] : {};
  72036. if (i % 2) {
  72037. ownKeys(source, true).forEach(function (key) {
  72038. _defineProperty(target, key, source[key]);
  72039. });
  72040. } else if (Object.getOwnPropertyDescriptors) {
  72041. Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
  72042. } else {
  72043. ownKeys(source).forEach(function (key) {
  72044. Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
  72045. });
  72046. }
  72047. }
  72048. return target;
  72049. }
  72050. var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
  72051. function getClientPosition(elem) {
  72052. var box;
  72053. var x;
  72054. var y;
  72055. var doc = elem.ownerDocument;
  72056. var body = doc.body;
  72057. var docElem = doc && doc.documentElement; // 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式
  72058. box = elem.getBoundingClientRect(); // 注:jQuery 还考虑减去 docElem.clientLeft/clientTop
  72059. // 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
  72060. // 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
  72061. x = box.left;
  72062. y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left
  72063. // due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
  72064. // IE6 standards mode, this border can be overridden by setting the
  72065. // document element's border to zero -- thus, we cannot rely on the
  72066. // offset always being 2 pixels.
  72067. // In quirks mode, the offset can be determined by querying the body's
  72068. // clientLeft/clientTop, but in standards mode, it is found by querying
  72069. // the document element's clientLeft/clientTop. Since we already called
  72070. // getClientBoundingRect we have already forced a reflow, so it is not
  72071. // too expensive just to query them all.
  72072. // ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的
  72073. // 窗口边框标准是设 documentElement ,quirks 时设置 body
  72074. // 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去
  72075. // 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置
  72076. // 标准 ie 下 docElem.clientTop 就是 border-top
  72077. // ie7 html 即窗口边框改变不了。永远为 2
  72078. // 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0
  72079. x -= docElem.clientLeft || body.clientLeft || 0;
  72080. y -= docElem.clientTop || body.clientTop || 0;
  72081. return {
  72082. left: x,
  72083. top: y
  72084. };
  72085. }
  72086. function getScroll(w, top) {
  72087. var ret = w["page".concat(top ? 'Y' : 'X', "Offset")];
  72088. var method = "scroll".concat(top ? 'Top' : 'Left');
  72089. if (typeof ret !== 'number') {
  72090. var d = w.document; // ie6,7,8 standard mode
  72091. ret = d.documentElement[method];
  72092. if (typeof ret !== 'number') {
  72093. // quirks mode
  72094. ret = d.body[method];
  72095. }
  72096. }
  72097. return ret;
  72098. }
  72099. function getScrollLeft(w) {
  72100. return getScroll(w);
  72101. }
  72102. function getScrollTop(w) {
  72103. return getScroll(w, true);
  72104. }
  72105. function getOffset(el) {
  72106. var pos = getClientPosition(el);
  72107. var doc = el.ownerDocument;
  72108. var w = doc.defaultView || doc.parentWindow;
  72109. pos.left += getScrollLeft(w);
  72110. pos.top += getScrollTop(w);
  72111. return pos;
  72112. }
  72113. function _getComputedStyle(elem, name, computedStyle_) {
  72114. var val = '';
  72115. var d = elem.ownerDocument;
  72116. var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null); // https://github.com/kissyteam/kissy/issues/61
  72117. if (computedStyle) {
  72118. val = computedStyle.getPropertyValue(name) || computedStyle[name];
  72119. }
  72120. return val;
  72121. }
  72122. var _RE_NUM_NO_PX = new RegExp("^(".concat(RE_NUM, ")(?!px)[a-z%]+$"), 'i');
  72123. var RE_POS = /^(top|right|bottom|left)$/;
  72124. var CURRENT_STYLE = 'currentStyle';
  72125. var RUNTIME_STYLE = 'runtimeStyle';
  72126. var LEFT = 'left';
  72127. var PX = 'px';
  72128. function _getComputedStyleIE(elem, name) {
  72129. // currentStyle maybe null
  72130. // http://msdn.microsoft.com/en-us/library/ms535231.aspx
  72131. var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值
  72132. // 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
  72133. // 在 ie 下不对,需要直接用 offset 方式
  72134. // borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了
  72135. // From the awesome hack by Dean Edwards
  72136. // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
  72137. // If we're not dealing with a regular pixel number
  72138. // but a number that has a weird ending, we need to convert it to pixels
  72139. // exclude left right for relativity
  72140. if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
  72141. // Remember the original values
  72142. var style = elem.style;
  72143. var left = style[LEFT];
  72144. var rsLeft = elem[RUNTIME_STYLE][LEFT]; // prevent flashing of content
  72145. elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; // Put in the new values to get a computed value out
  72146. style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;
  72147. ret = style.pixelLeft + PX; // Revert the changed values
  72148. style[LEFT] = left;
  72149. elem[RUNTIME_STYLE][LEFT] = rsLeft;
  72150. }
  72151. return ret === '' ? 'auto' : ret;
  72152. }
  72153. var getComputedStyleX;
  72154. if (typeof window !== 'undefined') {
  72155. getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
  72156. }
  72157. function each(arr, fn) {
  72158. for (var i = 0; i < arr.length; i++) {
  72159. fn(arr[i]);
  72160. }
  72161. }
  72162. function isBorderBoxFn(elem) {
  72163. return getComputedStyleX(elem, 'boxSizing') === 'border-box';
  72164. }
  72165. var BOX_MODELS = ['margin', 'border', 'padding'];
  72166. var CONTENT_INDEX = -1;
  72167. var PADDING_INDEX = 2;
  72168. var BORDER_INDEX = 1;
  72169. var MARGIN_INDEX = 0;
  72170. function swap(elem, options, callback) {
  72171. var old = {};
  72172. var style = elem.style;
  72173. var name; // Remember the old values, and insert the new ones
  72174. for (name in options) {
  72175. if (options.hasOwnProperty(name)) {
  72176. old[name] = style[name];
  72177. style[name] = options[name];
  72178. }
  72179. }
  72180. callback.call(elem); // Revert the old values
  72181. for (name in options) {
  72182. if (options.hasOwnProperty(name)) {
  72183. style[name] = old[name];
  72184. }
  72185. }
  72186. }
  72187. function getPBMWidth(elem, props, which) {
  72188. var value = 0;
  72189. var prop;
  72190. var j;
  72191. var i;
  72192. for (j = 0; j < props.length; j++) {
  72193. prop = props[j];
  72194. if (prop) {
  72195. for (i = 0; i < which.length; i++) {
  72196. var cssProp = void 0;
  72197. if (prop === 'border') {
  72198. cssProp = "".concat(prop + which[i], "Width");
  72199. } else {
  72200. cssProp = prop + which[i];
  72201. }
  72202. value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;
  72203. }
  72204. }
  72205. }
  72206. return value;
  72207. }
  72208. /**
  72209. * A crude way of determining if an object is a window
  72210. * @member util
  72211. */
  72212. function isWindow(obj) {
  72213. // must use == for ie8
  72214. /* eslint eqeqeq:0 */
  72215. return obj != null && obj == obj.window;
  72216. }
  72217. var domUtils = {};
  72218. each(['Width', 'Height'], function (name) {
  72219. domUtils["doc".concat(name)] = function (refWin) {
  72220. var d = refWin.document;
  72221. return Math.max( // firefox chrome documentElement.scrollHeight< body.scrollHeight
  72222. // ie standard mode : documentElement.scrollHeight> body.scrollHeight
  72223. d.documentElement["scroll".concat(name)], // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
  72224. d.body["scroll".concat(name)], domUtils["viewport".concat(name)](d));
  72225. };
  72226. domUtils["viewport".concat(name)] = function (win) {
  72227. // pc browser includes scrollbar in window.innerWidth
  72228. var prop = "client".concat(name);
  72229. var doc = win.document;
  72230. var body = doc.body;
  72231. var documentElement = doc.documentElement;
  72232. var documentElementProp = documentElement[prop]; // 标准模式取 documentElement
  72233. // backcompat 取 body
  72234. return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;
  72235. };
  72236. });
  72237. /*
  72238. 得到元素的大小信息
  72239. @param elem
  72240. @param name
  72241. @param {String} [extra] 'padding' : (css width) + padding
  72242. 'border' : (css width) + padding + border
  72243. 'margin' : (css width) + padding + border + margin
  72244. */
  72245. function getWH(elem, name, extra) {
  72246. if (isWindow(elem)) {
  72247. return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);
  72248. } else if (elem.nodeType === 9) {
  72249. return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem);
  72250. }
  72251. var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
  72252. var borderBoxValue = name === 'width' ? elem.offsetWidth : elem.offsetHeight;
  72253. var computedStyle = getComputedStyleX(elem);
  72254. var isBorderBox = isBorderBoxFn(elem);
  72255. var cssBoxValue = 0;
  72256. if (borderBoxValue == null || borderBoxValue <= 0) {
  72257. borderBoxValue = undefined; // Fall back to computed then un computed css if necessary
  72258. cssBoxValue = getComputedStyleX(elem, name);
  72259. if (cssBoxValue == null || Number(cssBoxValue) < 0) {
  72260. cssBoxValue = elem.style[name] || 0;
  72261. } // Normalize '', auto, and prepare for extra
  72262. cssBoxValue = parseFloat(cssBoxValue) || 0;
  72263. }
  72264. if (extra === undefined) {
  72265. extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;
  72266. }
  72267. var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox;
  72268. var val = borderBoxValue || cssBoxValue;
  72269. if (extra === CONTENT_INDEX) {
  72270. if (borderBoxValueOrIsBorderBox) {
  72271. return val - getPBMWidth(elem, ['border', 'padding'], which);
  72272. }
  72273. return cssBoxValue;
  72274. }
  72275. if (borderBoxValueOrIsBorderBox) {
  72276. var padding = extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which) : getPBMWidth(elem, ['margin'], which);
  72277. return val + (extra === BORDER_INDEX ? 0 : padding);
  72278. }
  72279. return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which);
  72280. }
  72281. var cssShow = {
  72282. position: 'absolute',
  72283. visibility: 'hidden',
  72284. display: 'block'
  72285. }; // fix #119 : https://github.com/kissyteam/kissy/issues/119
  72286. function getWHIgnoreDisplay(elem) {
  72287. var val;
  72288. var args = arguments; // in case elem is window
  72289. // elem.offsetWidth === undefined
  72290. if (elem.offsetWidth !== 0) {
  72291. val = getWH.apply(undefined, args);
  72292. } else {
  72293. swap(elem, cssShow, function () {
  72294. val = getWH.apply(undefined, args);
  72295. });
  72296. }
  72297. return val;
  72298. }
  72299. function css(el, name, v) {
  72300. var value = v;
  72301. if (_typeof(name) === 'object') {
  72302. for (var i in name) {
  72303. if (name.hasOwnProperty(i)) {
  72304. css(el, i, name[i]);
  72305. }
  72306. }
  72307. return undefined;
  72308. }
  72309. if (typeof value !== 'undefined') {
  72310. if (typeof value === 'number') {
  72311. value += 'px';
  72312. }
  72313. el.style[name] = value;
  72314. return undefined;
  72315. }
  72316. return getComputedStyleX(el, name);
  72317. }
  72318. each(['width', 'height'], function (name) {
  72319. var first = name.charAt(0).toUpperCase() + name.slice(1);
  72320. domUtils["outer".concat(first)] = function (el, includeMargin) {
  72321. return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);
  72322. };
  72323. var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
  72324. domUtils[name] = function (elem, val) {
  72325. if (val !== undefined) {
  72326. if (elem) {
  72327. var computedStyle = getComputedStyleX(elem);
  72328. var isBorderBox = isBorderBoxFn(elem);
  72329. if (isBorderBox) {
  72330. val += getPBMWidth(elem, ['padding', 'border'], which);
  72331. }
  72332. return css(elem, name, val);
  72333. }
  72334. return undefined;
  72335. }
  72336. return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);
  72337. };
  72338. }); // 设置 elem 相对 elem.ownerDocument 的坐标
  72339. function setOffset(elem, offset) {
  72340. // set position first, in-case top/left are set even on static elem
  72341. if (css(elem, 'position') === 'static') {
  72342. elem.style.position = 'relative';
  72343. }
  72344. var old = getOffset(elem);
  72345. var ret = {};
  72346. var current;
  72347. var key;
  72348. for (key in offset) {
  72349. if (offset.hasOwnProperty(key)) {
  72350. current = parseFloat(css(elem, key)) || 0;
  72351. ret[key] = current + offset[key] - old[key];
  72352. }
  72353. }
  72354. css(elem, ret);
  72355. }
  72356. var util = _objectSpread2({
  72357. getWindow: function getWindow(node) {
  72358. var doc = node.ownerDocument || node;
  72359. return doc.defaultView || doc.parentWindow;
  72360. },
  72361. offset: function offset(el, value) {
  72362. if (typeof value !== 'undefined') {
  72363. setOffset(el, value);
  72364. } else {
  72365. return getOffset(el);
  72366. }
  72367. },
  72368. isWindow: isWindow,
  72369. each: each,
  72370. css: css,
  72371. clone: function clone(obj) {
  72372. var ret = {};
  72373. for (var i in obj) {
  72374. if (obj.hasOwnProperty(i)) {
  72375. ret[i] = obj[i];
  72376. }
  72377. }
  72378. var overflow = obj.overflow;
  72379. if (overflow) {
  72380. for (var _i in obj) {
  72381. if (obj.hasOwnProperty(_i)) {
  72382. ret.overflow[_i] = obj.overflow[_i];
  72383. }
  72384. }
  72385. }
  72386. return ret;
  72387. },
  72388. scrollLeft: function scrollLeft(w, v) {
  72389. if (isWindow(w)) {
  72390. if (v === undefined) {
  72391. return getScrollLeft(w);
  72392. }
  72393. window.scrollTo(v, getScrollTop(w));
  72394. } else {
  72395. if (v === undefined) {
  72396. return w.scrollLeft;
  72397. }
  72398. w.scrollLeft = v;
  72399. }
  72400. },
  72401. scrollTop: function scrollTop(w, v) {
  72402. if (isWindow(w)) {
  72403. if (v === undefined) {
  72404. return getScrollTop(w);
  72405. }
  72406. window.scrollTo(getScrollLeft(w), v);
  72407. } else {
  72408. if (v === undefined) {
  72409. return w.scrollTop;
  72410. }
  72411. w.scrollTop = v;
  72412. }
  72413. },
  72414. viewportWidth: 0,
  72415. viewportHeight: 0
  72416. }, domUtils);
  72417. function scrollIntoView(elem, container, config) {
  72418. config = config || {}; // document 归一化到 window
  72419. if (container.nodeType === 9) {
  72420. container = util.getWindow(container);
  72421. }
  72422. var allowHorizontalScroll = config.allowHorizontalScroll;
  72423. var onlyScrollIfNeeded = config.onlyScrollIfNeeded;
  72424. var alignWithTop = config.alignWithTop;
  72425. var alignWithLeft = config.alignWithLeft;
  72426. var offsetTop = config.offsetTop || 0;
  72427. var offsetLeft = config.offsetLeft || 0;
  72428. var offsetBottom = config.offsetBottom || 0;
  72429. var offsetRight = config.offsetRight || 0;
  72430. allowHorizontalScroll = allowHorizontalScroll === undefined ? true : allowHorizontalScroll;
  72431. var isWin = util.isWindow(container);
  72432. var elemOffset = util.offset(elem);
  72433. var eh = util.outerHeight(elem);
  72434. var ew = util.outerWidth(elem);
  72435. var containerOffset;
  72436. var ch;
  72437. var cw;
  72438. var containerScroll;
  72439. var diffTop;
  72440. var diffBottom;
  72441. var win;
  72442. var winScroll;
  72443. var ww;
  72444. var wh;
  72445. if (isWin) {
  72446. win = container;
  72447. wh = util.height(win);
  72448. ww = util.width(win);
  72449. winScroll = {
  72450. left: util.scrollLeft(win),
  72451. top: util.scrollTop(win)
  72452. }; // elem 相对 container 可视视窗的距离
  72453. diffTop = {
  72454. left: elemOffset.left - winScroll.left - offsetLeft,
  72455. top: elemOffset.top - winScroll.top - offsetTop
  72456. };
  72457. diffBottom = {
  72458. left: elemOffset.left + ew - (winScroll.left + ww) + offsetRight,
  72459. top: elemOffset.top + eh - (winScroll.top + wh) + offsetBottom
  72460. };
  72461. containerScroll = winScroll;
  72462. } else {
  72463. containerOffset = util.offset(container);
  72464. ch = container.clientHeight;
  72465. cw = container.clientWidth;
  72466. containerScroll = {
  72467. left: container.scrollLeft,
  72468. top: container.scrollTop
  72469. }; // elem 相对 container 可视视窗的距离
  72470. // 注意边框, offset 是边框到根节点
  72471. diffTop = {
  72472. left: elemOffset.left - (containerOffset.left + (parseFloat(util.css(container, 'borderLeftWidth')) || 0)) - offsetLeft,
  72473. top: elemOffset.top - (containerOffset.top + (parseFloat(util.css(container, 'borderTopWidth')) || 0)) - offsetTop
  72474. };
  72475. diffBottom = {
  72476. left: elemOffset.left + ew - (containerOffset.left + cw + (parseFloat(util.css(container, 'borderRightWidth')) || 0)) + offsetRight,
  72477. top: elemOffset.top + eh - (containerOffset.top + ch + (parseFloat(util.css(container, 'borderBottomWidth')) || 0)) + offsetBottom
  72478. };
  72479. }
  72480. if (diffTop.top < 0 || diffBottom.top > 0) {
  72481. // 强制向上
  72482. if (alignWithTop === true) {
  72483. util.scrollTop(container, containerScroll.top + diffTop.top);
  72484. } else if (alignWithTop === false) {
  72485. util.scrollTop(container, containerScroll.top + diffBottom.top);
  72486. } else {
  72487. // 自动调整
  72488. if (diffTop.top < 0) {
  72489. util.scrollTop(container, containerScroll.top + diffTop.top);
  72490. } else {
  72491. util.scrollTop(container, containerScroll.top + diffBottom.top);
  72492. }
  72493. }
  72494. } else {
  72495. if (!onlyScrollIfNeeded) {
  72496. alignWithTop = alignWithTop === undefined ? true : !!alignWithTop;
  72497. if (alignWithTop) {
  72498. util.scrollTop(container, containerScroll.top + diffTop.top);
  72499. } else {
  72500. util.scrollTop(container, containerScroll.top + diffBottom.top);
  72501. }
  72502. }
  72503. }
  72504. if (allowHorizontalScroll) {
  72505. if (diffTop.left < 0 || diffBottom.left > 0) {
  72506. // 强制向上
  72507. if (alignWithLeft === true) {
  72508. util.scrollLeft(container, containerScroll.left + diffTop.left);
  72509. } else if (alignWithLeft === false) {
  72510. util.scrollLeft(container, containerScroll.left + diffBottom.left);
  72511. } else {
  72512. // 自动调整
  72513. if (diffTop.left < 0) {
  72514. util.scrollLeft(container, containerScroll.left + diffTop.left);
  72515. } else {
  72516. util.scrollLeft(container, containerScroll.left + diffBottom.left);
  72517. }
  72518. }
  72519. } else {
  72520. if (!onlyScrollIfNeeded) {
  72521. alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft;
  72522. if (alignWithLeft) {
  72523. util.scrollLeft(container, containerScroll.left + diffTop.left);
  72524. } else {
  72525. util.scrollLeft(container, containerScroll.left + diffBottom.left);
  72526. }
  72527. }
  72528. }
  72529. }
  72530. }
  72531. /* harmony default export */ __webpack_exports__["default"] = (scrollIntoView);
  72532. //# sourceMappingURL=index.js.map
  72533. /***/ }),
  72534. /***/ "./node_modules/enquire.js/src/MediaQuery.js":
  72535. /*!***************************************************!*\
  72536. !*** ./node_modules/enquire.js/src/MediaQuery.js ***!
  72537. \***************************************************/
  72538. /*! no static exports found */
  72539. /***/ (function(module, exports, __webpack_require__) {
  72540. var QueryHandler = __webpack_require__(/*! ./QueryHandler */ "./node_modules/enquire.js/src/QueryHandler.js");
  72541. var each = __webpack_require__(/*! ./Util */ "./node_modules/enquire.js/src/Util.js").each;
  72542. /**
  72543. * Represents a single media query, manages it's state and registered handlers for this query
  72544. *
  72545. * @constructor
  72546. * @param {string} query the media query string
  72547. * @param {boolean} [isUnconditional=false] whether the media query should run regardless of whether the conditions are met. Primarily for helping older browsers deal with mobile-first design
  72548. */
  72549. function MediaQuery(query, isUnconditional) {
  72550. this.query = query;
  72551. this.isUnconditional = isUnconditional;
  72552. this.handlers = [];
  72553. this.mql = window.matchMedia(query);
  72554. var self = this;
  72555. this.listener = function(mql) {
  72556. // Chrome passes an MediaQueryListEvent object, while other browsers pass MediaQueryList directly
  72557. self.mql = mql.currentTarget || mql;
  72558. self.assess();
  72559. };
  72560. this.mql.addListener(this.listener);
  72561. }
  72562. MediaQuery.prototype = {
  72563. constuctor : MediaQuery,
  72564. /**
  72565. * add a handler for this query, triggering if already active
  72566. *
  72567. * @param {object} handler
  72568. * @param {function} handler.match callback for when query is activated
  72569. * @param {function} [handler.unmatch] callback for when query is deactivated
  72570. * @param {function} [handler.setup] callback for immediate execution when a query handler is registered
  72571. * @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched?
  72572. */
  72573. addHandler : function(handler) {
  72574. var qh = new QueryHandler(handler);
  72575. this.handlers.push(qh);
  72576. this.matches() && qh.on();
  72577. },
  72578. /**
  72579. * removes the given handler from the collection, and calls it's destroy methods
  72580. *
  72581. * @param {object || function} handler the handler to remove
  72582. */
  72583. removeHandler : function(handler) {
  72584. var handlers = this.handlers;
  72585. each(handlers, function(h, i) {
  72586. if(h.equals(handler)) {
  72587. h.destroy();
  72588. return !handlers.splice(i,1); //remove from array and exit each early
  72589. }
  72590. });
  72591. },
  72592. /**
  72593. * Determine whether the media query should be considered a match
  72594. *
  72595. * @return {Boolean} true if media query can be considered a match, false otherwise
  72596. */
  72597. matches : function() {
  72598. return this.mql.matches || this.isUnconditional;
  72599. },
  72600. /**
  72601. * Clears all handlers and unbinds events
  72602. */
  72603. clear : function() {
  72604. each(this.handlers, function(handler) {
  72605. handler.destroy();
  72606. });
  72607. this.mql.removeListener(this.listener);
  72608. this.handlers.length = 0; //clear array
  72609. },
  72610. /*
  72611. * Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match
  72612. */
  72613. assess : function() {
  72614. var action = this.matches() ? 'on' : 'off';
  72615. each(this.handlers, function(handler) {
  72616. handler[action]();
  72617. });
  72618. }
  72619. };
  72620. module.exports = MediaQuery;
  72621. /***/ }),
  72622. /***/ "./node_modules/enquire.js/src/MediaQueryDispatch.js":
  72623. /*!***********************************************************!*\
  72624. !*** ./node_modules/enquire.js/src/MediaQueryDispatch.js ***!
  72625. \***********************************************************/
  72626. /*! no static exports found */
  72627. /***/ (function(module, exports, __webpack_require__) {
  72628. var MediaQuery = __webpack_require__(/*! ./MediaQuery */ "./node_modules/enquire.js/src/MediaQuery.js");
  72629. var Util = __webpack_require__(/*! ./Util */ "./node_modules/enquire.js/src/Util.js");
  72630. var each = Util.each;
  72631. var isFunction = Util.isFunction;
  72632. var isArray = Util.isArray;
  72633. /**
  72634. * Allows for registration of query handlers.
  72635. * Manages the query handler's state and is responsible for wiring up browser events
  72636. *
  72637. * @constructor
  72638. */
  72639. function MediaQueryDispatch () {
  72640. if(!window.matchMedia) {
  72641. throw new Error('matchMedia not present, legacy browsers require a polyfill');
  72642. }
  72643. this.queries = {};
  72644. this.browserIsIncapable = !window.matchMedia('only all').matches;
  72645. }
  72646. MediaQueryDispatch.prototype = {
  72647. constructor : MediaQueryDispatch,
  72648. /**
  72649. * Registers a handler for the given media query
  72650. *
  72651. * @param {string} q the media query
  72652. * @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers
  72653. * @param {function} options.match fired when query matched
  72654. * @param {function} [options.unmatch] fired when a query is no longer matched
  72655. * @param {function} [options.setup] fired when handler first triggered
  72656. * @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched
  72657. * @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers
  72658. */
  72659. register : function(q, options, shouldDegrade) {
  72660. var queries = this.queries,
  72661. isUnconditional = shouldDegrade && this.browserIsIncapable;
  72662. if(!queries[q]) {
  72663. queries[q] = new MediaQuery(q, isUnconditional);
  72664. }
  72665. //normalise to object in an array
  72666. if(isFunction(options)) {
  72667. options = { match : options };
  72668. }
  72669. if(!isArray(options)) {
  72670. options = [options];
  72671. }
  72672. each(options, function(handler) {
  72673. if (isFunction(handler)) {
  72674. handler = { match : handler };
  72675. }
  72676. queries[q].addHandler(handler);
  72677. });
  72678. return this;
  72679. },
  72680. /**
  72681. * unregisters a query and all it's handlers, or a specific handler for a query
  72682. *
  72683. * @param {string} q the media query to target
  72684. * @param {object || function} [handler] specific handler to unregister
  72685. */
  72686. unregister : function(q, handler) {
  72687. var query = this.queries[q];
  72688. if(query) {
  72689. if(handler) {
  72690. query.removeHandler(handler);
  72691. }
  72692. else {
  72693. query.clear();
  72694. delete this.queries[q];
  72695. }
  72696. }
  72697. return this;
  72698. }
  72699. };
  72700. module.exports = MediaQueryDispatch;
  72701. /***/ }),
  72702. /***/ "./node_modules/enquire.js/src/QueryHandler.js":
  72703. /*!*****************************************************!*\
  72704. !*** ./node_modules/enquire.js/src/QueryHandler.js ***!
  72705. \*****************************************************/
  72706. /*! no static exports found */
  72707. /***/ (function(module, exports) {
  72708. /**
  72709. * Delegate to handle a media query being matched and unmatched.
  72710. *
  72711. * @param {object} options
  72712. * @param {function} options.match callback for when the media query is matched
  72713. * @param {function} [options.unmatch] callback for when the media query is unmatched
  72714. * @param {function} [options.setup] one-time callback triggered the first time a query is matched
  72715. * @param {boolean} [options.deferSetup=false] should the setup callback be run immediately, rather than first time query is matched?
  72716. * @constructor
  72717. */
  72718. function QueryHandler(options) {
  72719. this.options = options;
  72720. !options.deferSetup && this.setup();
  72721. }
  72722. QueryHandler.prototype = {
  72723. constructor : QueryHandler,
  72724. /**
  72725. * coordinates setup of the handler
  72726. *
  72727. * @function
  72728. */
  72729. setup : function() {
  72730. if(this.options.setup) {
  72731. this.options.setup();
  72732. }
  72733. this.initialised = true;
  72734. },
  72735. /**
  72736. * coordinates setup and triggering of the handler
  72737. *
  72738. * @function
  72739. */
  72740. on : function() {
  72741. !this.initialised && this.setup();
  72742. this.options.match && this.options.match();
  72743. },
  72744. /**
  72745. * coordinates the unmatch event for the handler
  72746. *
  72747. * @function
  72748. */
  72749. off : function() {
  72750. this.options.unmatch && this.options.unmatch();
  72751. },
  72752. /**
  72753. * called when a handler is to be destroyed.
  72754. * delegates to the destroy or unmatch callbacks, depending on availability.
  72755. *
  72756. * @function
  72757. */
  72758. destroy : function() {
  72759. this.options.destroy ? this.options.destroy() : this.off();
  72760. },
  72761. /**
  72762. * determines equality by reference.
  72763. * if object is supplied compare options, if function, compare match callback
  72764. *
  72765. * @function
  72766. * @param {object || function} [target] the target for comparison
  72767. */
  72768. equals : function(target) {
  72769. return this.options === target || this.options.match === target;
  72770. }
  72771. };
  72772. module.exports = QueryHandler;
  72773. /***/ }),
  72774. /***/ "./node_modules/enquire.js/src/Util.js":
  72775. /*!*********************************************!*\
  72776. !*** ./node_modules/enquire.js/src/Util.js ***!
  72777. \*********************************************/
  72778. /*! no static exports found */
  72779. /***/ (function(module, exports) {
  72780. /**
  72781. * Helper function for iterating over a collection
  72782. *
  72783. * @param collection
  72784. * @param fn
  72785. */
  72786. function each(collection, fn) {
  72787. var i = 0,
  72788. length = collection.length,
  72789. cont;
  72790. for(i; i < length; i++) {
  72791. cont = fn(collection[i], i);
  72792. if(cont === false) {
  72793. break; //allow early exit
  72794. }
  72795. }
  72796. }
  72797. /**
  72798. * Helper function for determining whether target object is an array
  72799. *
  72800. * @param target the object under test
  72801. * @return {Boolean} true if array, false otherwise
  72802. */
  72803. function isArray(target) {
  72804. return Object.prototype.toString.apply(target) === '[object Array]';
  72805. }
  72806. /**
  72807. * Helper function for determining whether target object is a function
  72808. *
  72809. * @param target the object under test
  72810. * @return {Boolean} true if function, false otherwise
  72811. */
  72812. function isFunction(target) {
  72813. return typeof target === 'function';
  72814. }
  72815. module.exports = {
  72816. isFunction : isFunction,
  72817. isArray : isArray,
  72818. each : each
  72819. };
  72820. /***/ }),
  72821. /***/ "./node_modules/enquire.js/src/index.js":
  72822. /*!**********************************************!*\
  72823. !*** ./node_modules/enquire.js/src/index.js ***!
  72824. \**********************************************/
  72825. /*! no static exports found */
  72826. /***/ (function(module, exports, __webpack_require__) {
  72827. var MediaQueryDispatch = __webpack_require__(/*! ./MediaQueryDispatch */ "./node_modules/enquire.js/src/MediaQueryDispatch.js");
  72828. module.exports = new MediaQueryDispatch();
  72829. /***/ }),
  72830. /***/ "./node_modules/is-mobile/index.js":
  72831. /*!*****************************************!*\
  72832. !*** ./node_modules/is-mobile/index.js ***!
  72833. \*****************************************/
  72834. /*! no static exports found */
  72835. /***/ (function(module, exports, __webpack_require__) {
  72836. "use strict";
  72837. module.exports = isMobile
  72838. module.exports.isMobile = isMobile
  72839. module.exports.default = isMobile
  72840. var mobileRE = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i
  72841. var tabletRE = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i
  72842. function isMobile (opts) {
  72843. if (!opts) opts = {}
  72844. var ua = opts.ua
  72845. if (!ua && typeof navigator !== 'undefined') ua = navigator.userAgent
  72846. if (ua && ua.headers && typeof ua.headers['user-agent'] === 'string') {
  72847. ua = ua.headers['user-agent']
  72848. }
  72849. if (typeof ua !== 'string') return false
  72850. var result = opts.tablet ? tabletRE.test(ua) : mobileRE.test(ua)
  72851. if (
  72852. !result &&
  72853. opts.tablet &&
  72854. opts.featureDetect &&
  72855. navigator &&
  72856. navigator.maxTouchPoints > 1 &&
  72857. ua.indexOf('Macintosh') !== -1 &&
  72858. ua.indexOf('Safari') !== -1
  72859. ) {
  72860. result = true
  72861. }
  72862. return result
  72863. }
  72864. /***/ }),
  72865. /***/ "./node_modules/json2mq/index.js":
  72866. /*!***************************************!*\
  72867. !*** ./node_modules/json2mq/index.js ***!
  72868. \***************************************/
  72869. /*! no static exports found */
  72870. /***/ (function(module, exports, __webpack_require__) {
  72871. var camel2hyphen = __webpack_require__(/*! string-convert/camel2hyphen */ "./node_modules/string-convert/camel2hyphen.js");
  72872. var isDimension = function (feature) {
  72873. var re = /[height|width]$/;
  72874. return re.test(feature);
  72875. };
  72876. var obj2mq = function (obj) {
  72877. var mq = '';
  72878. var features = Object.keys(obj);
  72879. features.forEach(function (feature, index) {
  72880. var value = obj[feature];
  72881. feature = camel2hyphen(feature);
  72882. // Add px to dimension features
  72883. if (isDimension(feature) && typeof value === 'number') {
  72884. value = value + 'px';
  72885. }
  72886. if (value === true) {
  72887. mq += feature;
  72888. } else if (value === false) {
  72889. mq += 'not ' + feature;
  72890. } else {
  72891. mq += '(' + feature + ': ' + value + ')';
  72892. }
  72893. if (index < features.length-1) {
  72894. mq += ' and '
  72895. }
  72896. });
  72897. return mq;
  72898. };
  72899. var json2mq = function (query) {
  72900. var mq = '';
  72901. if (typeof query === 'string') {
  72902. return query;
  72903. }
  72904. // Handling array of media queries
  72905. if (query instanceof Array) {
  72906. query.forEach(function (q, index) {
  72907. mq += obj2mq(q);
  72908. if (index < query.length-1) {
  72909. mq += ', '
  72910. }
  72911. });
  72912. return mq;
  72913. }
  72914. // Handling single media query
  72915. return obj2mq(query);
  72916. };
  72917. module.exports = json2mq;
  72918. /***/ }),
  72919. /***/ "./node_modules/lodash/_DataView.js":
  72920. /*!******************************************!*\
  72921. !*** ./node_modules/lodash/_DataView.js ***!
  72922. \******************************************/
  72923. /*! no static exports found */
  72924. /***/ (function(module, exports, __webpack_require__) {
  72925. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
  72926. root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  72927. /* Built-in method references that are verified to be native. */
  72928. var DataView = getNative(root, 'DataView');
  72929. module.exports = DataView;
  72930. /***/ }),
  72931. /***/ "./node_modules/lodash/_Hash.js":
  72932. /*!**************************************!*\
  72933. !*** ./node_modules/lodash/_Hash.js ***!
  72934. \**************************************/
  72935. /*! no static exports found */
  72936. /***/ (function(module, exports, __webpack_require__) {
  72937. var hashClear = __webpack_require__(/*! ./_hashClear */ "./node_modules/lodash/_hashClear.js"),
  72938. hashDelete = __webpack_require__(/*! ./_hashDelete */ "./node_modules/lodash/_hashDelete.js"),
  72939. hashGet = __webpack_require__(/*! ./_hashGet */ "./node_modules/lodash/_hashGet.js"),
  72940. hashHas = __webpack_require__(/*! ./_hashHas */ "./node_modules/lodash/_hashHas.js"),
  72941. hashSet = __webpack_require__(/*! ./_hashSet */ "./node_modules/lodash/_hashSet.js");
  72942. /**
  72943. * Creates a hash object.
  72944. *
  72945. * @private
  72946. * @constructor
  72947. * @param {Array} [entries] The key-value pairs to cache.
  72948. */
  72949. function Hash(entries) {
  72950. var index = -1,
  72951. length = entries == null ? 0 : entries.length;
  72952. this.clear();
  72953. while (++index < length) {
  72954. var entry = entries[index];
  72955. this.set(entry[0], entry[1]);
  72956. }
  72957. }
  72958. // Add methods to `Hash`.
  72959. Hash.prototype.clear = hashClear;
  72960. Hash.prototype['delete'] = hashDelete;
  72961. Hash.prototype.get = hashGet;
  72962. Hash.prototype.has = hashHas;
  72963. Hash.prototype.set = hashSet;
  72964. module.exports = Hash;
  72965. /***/ }),
  72966. /***/ "./node_modules/lodash/_ListCache.js":
  72967. /*!*******************************************!*\
  72968. !*** ./node_modules/lodash/_ListCache.js ***!
  72969. \*******************************************/
  72970. /*! no static exports found */
  72971. /***/ (function(module, exports, __webpack_require__) {
  72972. var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "./node_modules/lodash/_listCacheClear.js"),
  72973. listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "./node_modules/lodash/_listCacheDelete.js"),
  72974. listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "./node_modules/lodash/_listCacheGet.js"),
  72975. listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "./node_modules/lodash/_listCacheHas.js"),
  72976. listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "./node_modules/lodash/_listCacheSet.js");
  72977. /**
  72978. * Creates an list cache object.
  72979. *
  72980. * @private
  72981. * @constructor
  72982. * @param {Array} [entries] The key-value pairs to cache.
  72983. */
  72984. function ListCache(entries) {
  72985. var index = -1,
  72986. length = entries == null ? 0 : entries.length;
  72987. this.clear();
  72988. while (++index < length) {
  72989. var entry = entries[index];
  72990. this.set(entry[0], entry[1]);
  72991. }
  72992. }
  72993. // Add methods to `ListCache`.
  72994. ListCache.prototype.clear = listCacheClear;
  72995. ListCache.prototype['delete'] = listCacheDelete;
  72996. ListCache.prototype.get = listCacheGet;
  72997. ListCache.prototype.has = listCacheHas;
  72998. ListCache.prototype.set = listCacheSet;
  72999. module.exports = ListCache;
  73000. /***/ }),
  73001. /***/ "./node_modules/lodash/_Map.js":
  73002. /*!*************************************!*\
  73003. !*** ./node_modules/lodash/_Map.js ***!
  73004. \*************************************/
  73005. /*! no static exports found */
  73006. /***/ (function(module, exports, __webpack_require__) {
  73007. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
  73008. root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  73009. /* Built-in method references that are verified to be native. */
  73010. var Map = getNative(root, 'Map');
  73011. module.exports = Map;
  73012. /***/ }),
  73013. /***/ "./node_modules/lodash/_MapCache.js":
  73014. /*!******************************************!*\
  73015. !*** ./node_modules/lodash/_MapCache.js ***!
  73016. \******************************************/
  73017. /*! no static exports found */
  73018. /***/ (function(module, exports, __webpack_require__) {
  73019. var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "./node_modules/lodash/_mapCacheClear.js"),
  73020. mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "./node_modules/lodash/_mapCacheDelete.js"),
  73021. mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "./node_modules/lodash/_mapCacheGet.js"),
  73022. mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "./node_modules/lodash/_mapCacheHas.js"),
  73023. mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "./node_modules/lodash/_mapCacheSet.js");
  73024. /**
  73025. * Creates a map cache object to store key-value pairs.
  73026. *
  73027. * @private
  73028. * @constructor
  73029. * @param {Array} [entries] The key-value pairs to cache.
  73030. */
  73031. function MapCache(entries) {
  73032. var index = -1,
  73033. length = entries == null ? 0 : entries.length;
  73034. this.clear();
  73035. while (++index < length) {
  73036. var entry = entries[index];
  73037. this.set(entry[0], entry[1]);
  73038. }
  73039. }
  73040. // Add methods to `MapCache`.
  73041. MapCache.prototype.clear = mapCacheClear;
  73042. MapCache.prototype['delete'] = mapCacheDelete;
  73043. MapCache.prototype.get = mapCacheGet;
  73044. MapCache.prototype.has = mapCacheHas;
  73045. MapCache.prototype.set = mapCacheSet;
  73046. module.exports = MapCache;
  73047. /***/ }),
  73048. /***/ "./node_modules/lodash/_Promise.js":
  73049. /*!*****************************************!*\
  73050. !*** ./node_modules/lodash/_Promise.js ***!
  73051. \*****************************************/
  73052. /*! no static exports found */
  73053. /***/ (function(module, exports, __webpack_require__) {
  73054. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
  73055. root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  73056. /* Built-in method references that are verified to be native. */
  73057. var Promise = getNative(root, 'Promise');
  73058. module.exports = Promise;
  73059. /***/ }),
  73060. /***/ "./node_modules/lodash/_Set.js":
  73061. /*!*************************************!*\
  73062. !*** ./node_modules/lodash/_Set.js ***!
  73063. \*************************************/
  73064. /*! no static exports found */
  73065. /***/ (function(module, exports, __webpack_require__) {
  73066. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
  73067. root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  73068. /* Built-in method references that are verified to be native. */
  73069. var Set = getNative(root, 'Set');
  73070. module.exports = Set;
  73071. /***/ }),
  73072. /***/ "./node_modules/lodash/_SetCache.js":
  73073. /*!******************************************!*\
  73074. !*** ./node_modules/lodash/_SetCache.js ***!
  73075. \******************************************/
  73076. /*! no static exports found */
  73077. /***/ (function(module, exports, __webpack_require__) {
  73078. var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js"),
  73079. setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "./node_modules/lodash/_setCacheAdd.js"),
  73080. setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "./node_modules/lodash/_setCacheHas.js");
  73081. /**
  73082. *
  73083. * Creates an array cache object to store unique values.
  73084. *
  73085. * @private
  73086. * @constructor
  73087. * @param {Array} [values] The values to cache.
  73088. */
  73089. function SetCache(values) {
  73090. var index = -1,
  73091. length = values == null ? 0 : values.length;
  73092. this.__data__ = new MapCache;
  73093. while (++index < length) {
  73094. this.add(values[index]);
  73095. }
  73096. }
  73097. // Add methods to `SetCache`.
  73098. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  73099. SetCache.prototype.has = setCacheHas;
  73100. module.exports = SetCache;
  73101. /***/ }),
  73102. /***/ "./node_modules/lodash/_Stack.js":
  73103. /*!***************************************!*\
  73104. !*** ./node_modules/lodash/_Stack.js ***!
  73105. \***************************************/
  73106. /*! no static exports found */
  73107. /***/ (function(module, exports, __webpack_require__) {
  73108. var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
  73109. stackClear = __webpack_require__(/*! ./_stackClear */ "./node_modules/lodash/_stackClear.js"),
  73110. stackDelete = __webpack_require__(/*! ./_stackDelete */ "./node_modules/lodash/_stackDelete.js"),
  73111. stackGet = __webpack_require__(/*! ./_stackGet */ "./node_modules/lodash/_stackGet.js"),
  73112. stackHas = __webpack_require__(/*! ./_stackHas */ "./node_modules/lodash/_stackHas.js"),
  73113. stackSet = __webpack_require__(/*! ./_stackSet */ "./node_modules/lodash/_stackSet.js");
  73114. /**
  73115. * Creates a stack cache object to store key-value pairs.
  73116. *
  73117. * @private
  73118. * @constructor
  73119. * @param {Array} [entries] The key-value pairs to cache.
  73120. */
  73121. function Stack(entries) {
  73122. var data = this.__data__ = new ListCache(entries);
  73123. this.size = data.size;
  73124. }
  73125. // Add methods to `Stack`.
  73126. Stack.prototype.clear = stackClear;
  73127. Stack.prototype['delete'] = stackDelete;
  73128. Stack.prototype.get = stackGet;
  73129. Stack.prototype.has = stackHas;
  73130. Stack.prototype.set = stackSet;
  73131. module.exports = Stack;
  73132. /***/ }),
  73133. /***/ "./node_modules/lodash/_Symbol.js":
  73134. /*!****************************************!*\
  73135. !*** ./node_modules/lodash/_Symbol.js ***!
  73136. \****************************************/
  73137. /*! no static exports found */
  73138. /***/ (function(module, exports, __webpack_require__) {
  73139. var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  73140. /** Built-in value references. */
  73141. var Symbol = root.Symbol;
  73142. module.exports = Symbol;
  73143. /***/ }),
  73144. /***/ "./node_modules/lodash/_Uint8Array.js":
  73145. /*!********************************************!*\
  73146. !*** ./node_modules/lodash/_Uint8Array.js ***!
  73147. \********************************************/
  73148. /*! no static exports found */
  73149. /***/ (function(module, exports, __webpack_require__) {
  73150. var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  73151. /** Built-in value references. */
  73152. var Uint8Array = root.Uint8Array;
  73153. module.exports = Uint8Array;
  73154. /***/ }),
  73155. /***/ "./node_modules/lodash/_WeakMap.js":
  73156. /*!*****************************************!*\
  73157. !*** ./node_modules/lodash/_WeakMap.js ***!
  73158. \*****************************************/
  73159. /*! no static exports found */
  73160. /***/ (function(module, exports, __webpack_require__) {
  73161. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
  73162. root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  73163. /* Built-in method references that are verified to be native. */
  73164. var WeakMap = getNative(root, 'WeakMap');
  73165. module.exports = WeakMap;
  73166. /***/ }),
  73167. /***/ "./node_modules/lodash/_apply.js":
  73168. /*!***************************************!*\
  73169. !*** ./node_modules/lodash/_apply.js ***!
  73170. \***************************************/
  73171. /*! no static exports found */
  73172. /***/ (function(module, exports) {
  73173. /**
  73174. * A faster alternative to `Function#apply`, this function invokes `func`
  73175. * with the `this` binding of `thisArg` and the arguments of `args`.
  73176. *
  73177. * @private
  73178. * @param {Function} func The function to invoke.
  73179. * @param {*} thisArg The `this` binding of `func`.
  73180. * @param {Array} args The arguments to invoke `func` with.
  73181. * @returns {*} Returns the result of `func`.
  73182. */
  73183. function apply(func, thisArg, args) {
  73184. switch (args.length) {
  73185. case 0: return func.call(thisArg);
  73186. case 1: return func.call(thisArg, args[0]);
  73187. case 2: return func.call(thisArg, args[0], args[1]);
  73188. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  73189. }
  73190. return func.apply(thisArg, args);
  73191. }
  73192. module.exports = apply;
  73193. /***/ }),
  73194. /***/ "./node_modules/lodash/_arrayAggregator.js":
  73195. /*!*************************************************!*\
  73196. !*** ./node_modules/lodash/_arrayAggregator.js ***!
  73197. \*************************************************/
  73198. /*! no static exports found */
  73199. /***/ (function(module, exports) {
  73200. /**
  73201. * A specialized version of `baseAggregator` for arrays.
  73202. *
  73203. * @private
  73204. * @param {Array} [array] The array to iterate over.
  73205. * @param {Function} setter The function to set `accumulator` values.
  73206. * @param {Function} iteratee The iteratee to transform keys.
  73207. * @param {Object} accumulator The initial aggregated object.
  73208. * @returns {Function} Returns `accumulator`.
  73209. */
  73210. function arrayAggregator(array, setter, iteratee, accumulator) {
  73211. var index = -1,
  73212. length = array == null ? 0 : array.length;
  73213. while (++index < length) {
  73214. var value = array[index];
  73215. setter(accumulator, value, iteratee(value), array);
  73216. }
  73217. return accumulator;
  73218. }
  73219. module.exports = arrayAggregator;
  73220. /***/ }),
  73221. /***/ "./node_modules/lodash/_arrayEach.js":
  73222. /*!*******************************************!*\
  73223. !*** ./node_modules/lodash/_arrayEach.js ***!
  73224. \*******************************************/
  73225. /*! no static exports found */
  73226. /***/ (function(module, exports) {
  73227. /**
  73228. * A specialized version of `_.forEach` for arrays without support for
  73229. * iteratee shorthands.
  73230. *
  73231. * @private
  73232. * @param {Array} [array] The array to iterate over.
  73233. * @param {Function} iteratee The function invoked per iteration.
  73234. * @returns {Array} Returns `array`.
  73235. */
  73236. function arrayEach(array, iteratee) {
  73237. var index = -1,
  73238. length = array == null ? 0 : array.length;
  73239. while (++index < length) {
  73240. if (iteratee(array[index], index, array) === false) {
  73241. break;
  73242. }
  73243. }
  73244. return array;
  73245. }
  73246. module.exports = arrayEach;
  73247. /***/ }),
  73248. /***/ "./node_modules/lodash/_arrayFilter.js":
  73249. /*!*********************************************!*\
  73250. !*** ./node_modules/lodash/_arrayFilter.js ***!
  73251. \*********************************************/
  73252. /*! no static exports found */
  73253. /***/ (function(module, exports) {
  73254. /**
  73255. * A specialized version of `_.filter` for arrays without support for
  73256. * iteratee shorthands.
  73257. *
  73258. * @private
  73259. * @param {Array} [array] The array to iterate over.
  73260. * @param {Function} predicate The function invoked per iteration.
  73261. * @returns {Array} Returns the new filtered array.
  73262. */
  73263. function arrayFilter(array, predicate) {
  73264. var index = -1,
  73265. length = array == null ? 0 : array.length,
  73266. resIndex = 0,
  73267. result = [];
  73268. while (++index < length) {
  73269. var value = array[index];
  73270. if (predicate(value, index, array)) {
  73271. result[resIndex++] = value;
  73272. }
  73273. }
  73274. return result;
  73275. }
  73276. module.exports = arrayFilter;
  73277. /***/ }),
  73278. /***/ "./node_modules/lodash/_arrayIncludes.js":
  73279. /*!***********************************************!*\
  73280. !*** ./node_modules/lodash/_arrayIncludes.js ***!
  73281. \***********************************************/
  73282. /*! no static exports found */
  73283. /***/ (function(module, exports, __webpack_require__) {
  73284. var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "./node_modules/lodash/_baseIndexOf.js");
  73285. /**
  73286. * A specialized version of `_.includes` for arrays without support for
  73287. * specifying an index to search from.
  73288. *
  73289. * @private
  73290. * @param {Array} [array] The array to inspect.
  73291. * @param {*} target The value to search for.
  73292. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  73293. */
  73294. function arrayIncludes(array, value) {
  73295. var length = array == null ? 0 : array.length;
  73296. return !!length && baseIndexOf(array, value, 0) > -1;
  73297. }
  73298. module.exports = arrayIncludes;
  73299. /***/ }),
  73300. /***/ "./node_modules/lodash/_arrayIncludesWith.js":
  73301. /*!***************************************************!*\
  73302. !*** ./node_modules/lodash/_arrayIncludesWith.js ***!
  73303. \***************************************************/
  73304. /*! no static exports found */
  73305. /***/ (function(module, exports) {
  73306. /**
  73307. * This function is like `arrayIncludes` except that it accepts a comparator.
  73308. *
  73309. * @private
  73310. * @param {Array} [array] The array to inspect.
  73311. * @param {*} target The value to search for.
  73312. * @param {Function} comparator The comparator invoked per element.
  73313. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  73314. */
  73315. function arrayIncludesWith(array, value, comparator) {
  73316. var index = -1,
  73317. length = array == null ? 0 : array.length;
  73318. while (++index < length) {
  73319. if (comparator(value, array[index])) {
  73320. return true;
  73321. }
  73322. }
  73323. return false;
  73324. }
  73325. module.exports = arrayIncludesWith;
  73326. /***/ }),
  73327. /***/ "./node_modules/lodash/_arrayLikeKeys.js":
  73328. /*!***********************************************!*\
  73329. !*** ./node_modules/lodash/_arrayLikeKeys.js ***!
  73330. \***********************************************/
  73331. /*! no static exports found */
  73332. /***/ (function(module, exports, __webpack_require__) {
  73333. var baseTimes = __webpack_require__(/*! ./_baseTimes */ "./node_modules/lodash/_baseTimes.js"),
  73334. isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
  73335. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  73336. isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
  73337. isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
  73338. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
  73339. /** Used for built-in method references. */
  73340. var objectProto = Object.prototype;
  73341. /** Used to check objects for own properties. */
  73342. var hasOwnProperty = objectProto.hasOwnProperty;
  73343. /**
  73344. * Creates an array of the enumerable property names of the array-like `value`.
  73345. *
  73346. * @private
  73347. * @param {*} value The value to query.
  73348. * @param {boolean} inherited Specify returning inherited property names.
  73349. * @returns {Array} Returns the array of property names.
  73350. */
  73351. function arrayLikeKeys(value, inherited) {
  73352. var isArr = isArray(value),
  73353. isArg = !isArr && isArguments(value),
  73354. isBuff = !isArr && !isArg && isBuffer(value),
  73355. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  73356. skipIndexes = isArr || isArg || isBuff || isType,
  73357. result = skipIndexes ? baseTimes(value.length, String) : [],
  73358. length = result.length;
  73359. for (var key in value) {
  73360. if ((inherited || hasOwnProperty.call(value, key)) &&
  73361. !(skipIndexes && (
  73362. // Safari 9 has enumerable `arguments.length` in strict mode.
  73363. key == 'length' ||
  73364. // Node.js 0.10 has enumerable non-index properties on buffers.
  73365. (isBuff && (key == 'offset' || key == 'parent')) ||
  73366. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  73367. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  73368. // Skip index properties.
  73369. isIndex(key, length)
  73370. ))) {
  73371. result.push(key);
  73372. }
  73373. }
  73374. return result;
  73375. }
  73376. module.exports = arrayLikeKeys;
  73377. /***/ }),
  73378. /***/ "./node_modules/lodash/_arrayMap.js":
  73379. /*!******************************************!*\
  73380. !*** ./node_modules/lodash/_arrayMap.js ***!
  73381. \******************************************/
  73382. /*! no static exports found */
  73383. /***/ (function(module, exports) {
  73384. /**
  73385. * A specialized version of `_.map` for arrays without support for iteratee
  73386. * shorthands.
  73387. *
  73388. * @private
  73389. * @param {Array} [array] The array to iterate over.
  73390. * @param {Function} iteratee The function invoked per iteration.
  73391. * @returns {Array} Returns the new mapped array.
  73392. */
  73393. function arrayMap(array, iteratee) {
  73394. var index = -1,
  73395. length = array == null ? 0 : array.length,
  73396. result = Array(length);
  73397. while (++index < length) {
  73398. result[index] = iteratee(array[index], index, array);
  73399. }
  73400. return result;
  73401. }
  73402. module.exports = arrayMap;
  73403. /***/ }),
  73404. /***/ "./node_modules/lodash/_arrayPush.js":
  73405. /*!*******************************************!*\
  73406. !*** ./node_modules/lodash/_arrayPush.js ***!
  73407. \*******************************************/
  73408. /*! no static exports found */
  73409. /***/ (function(module, exports) {
  73410. /**
  73411. * Appends the elements of `values` to `array`.
  73412. *
  73413. * @private
  73414. * @param {Array} array The array to modify.
  73415. * @param {Array} values The values to append.
  73416. * @returns {Array} Returns `array`.
  73417. */
  73418. function arrayPush(array, values) {
  73419. var index = -1,
  73420. length = values.length,
  73421. offset = array.length;
  73422. while (++index < length) {
  73423. array[offset + index] = values[index];
  73424. }
  73425. return array;
  73426. }
  73427. module.exports = arrayPush;
  73428. /***/ }),
  73429. /***/ "./node_modules/lodash/_arraySome.js":
  73430. /*!*******************************************!*\
  73431. !*** ./node_modules/lodash/_arraySome.js ***!
  73432. \*******************************************/
  73433. /*! no static exports found */
  73434. /***/ (function(module, exports) {
  73435. /**
  73436. * A specialized version of `_.some` for arrays without support for iteratee
  73437. * shorthands.
  73438. *
  73439. * @private
  73440. * @param {Array} [array] The array to iterate over.
  73441. * @param {Function} predicate The function invoked per iteration.
  73442. * @returns {boolean} Returns `true` if any element passes the predicate check,
  73443. * else `false`.
  73444. */
  73445. function arraySome(array, predicate) {
  73446. var index = -1,
  73447. length = array == null ? 0 : array.length;
  73448. while (++index < length) {
  73449. if (predicate(array[index], index, array)) {
  73450. return true;
  73451. }
  73452. }
  73453. return false;
  73454. }
  73455. module.exports = arraySome;
  73456. /***/ }),
  73457. /***/ "./node_modules/lodash/_asciiSize.js":
  73458. /*!*******************************************!*\
  73459. !*** ./node_modules/lodash/_asciiSize.js ***!
  73460. \*******************************************/
  73461. /*! no static exports found */
  73462. /***/ (function(module, exports, __webpack_require__) {
  73463. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js");
  73464. /**
  73465. * Gets the size of an ASCII `string`.
  73466. *
  73467. * @private
  73468. * @param {string} string The string inspect.
  73469. * @returns {number} Returns the string size.
  73470. */
  73471. var asciiSize = baseProperty('length');
  73472. module.exports = asciiSize;
  73473. /***/ }),
  73474. /***/ "./node_modules/lodash/_asciiToArray.js":
  73475. /*!**********************************************!*\
  73476. !*** ./node_modules/lodash/_asciiToArray.js ***!
  73477. \**********************************************/
  73478. /*! no static exports found */
  73479. /***/ (function(module, exports) {
  73480. /**
  73481. * Converts an ASCII `string` to an array.
  73482. *
  73483. * @private
  73484. * @param {string} string The string to convert.
  73485. * @returns {Array} Returns the converted array.
  73486. */
  73487. function asciiToArray(string) {
  73488. return string.split('');
  73489. }
  73490. module.exports = asciiToArray;
  73491. /***/ }),
  73492. /***/ "./node_modules/lodash/_assignMergeValue.js":
  73493. /*!**************************************************!*\
  73494. !*** ./node_modules/lodash/_assignMergeValue.js ***!
  73495. \**************************************************/
  73496. /*! no static exports found */
  73497. /***/ (function(module, exports, __webpack_require__) {
  73498. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
  73499. eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
  73500. /**
  73501. * This function is like `assignValue` except that it doesn't assign
  73502. * `undefined` values.
  73503. *
  73504. * @private
  73505. * @param {Object} object The object to modify.
  73506. * @param {string} key The key of the property to assign.
  73507. * @param {*} value The value to assign.
  73508. */
  73509. function assignMergeValue(object, key, value) {
  73510. if ((value !== undefined && !eq(object[key], value)) ||
  73511. (value === undefined && !(key in object))) {
  73512. baseAssignValue(object, key, value);
  73513. }
  73514. }
  73515. module.exports = assignMergeValue;
  73516. /***/ }),
  73517. /***/ "./node_modules/lodash/_assignValue.js":
  73518. /*!*********************************************!*\
  73519. !*** ./node_modules/lodash/_assignValue.js ***!
  73520. \*********************************************/
  73521. /*! no static exports found */
  73522. /***/ (function(module, exports, __webpack_require__) {
  73523. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
  73524. eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
  73525. /** Used for built-in method references. */
  73526. var objectProto = Object.prototype;
  73527. /** Used to check objects for own properties. */
  73528. var hasOwnProperty = objectProto.hasOwnProperty;
  73529. /**
  73530. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  73531. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  73532. * for equality comparisons.
  73533. *
  73534. * @private
  73535. * @param {Object} object The object to modify.
  73536. * @param {string} key The key of the property to assign.
  73537. * @param {*} value The value to assign.
  73538. */
  73539. function assignValue(object, key, value) {
  73540. var objValue = object[key];
  73541. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  73542. (value === undefined && !(key in object))) {
  73543. baseAssignValue(object, key, value);
  73544. }
  73545. }
  73546. module.exports = assignValue;
  73547. /***/ }),
  73548. /***/ "./node_modules/lodash/_assocIndexOf.js":
  73549. /*!**********************************************!*\
  73550. !*** ./node_modules/lodash/_assocIndexOf.js ***!
  73551. \**********************************************/
  73552. /*! no static exports found */
  73553. /***/ (function(module, exports, __webpack_require__) {
  73554. var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
  73555. /**
  73556. * Gets the index at which the `key` is found in `array` of key-value pairs.
  73557. *
  73558. * @private
  73559. * @param {Array} array The array to inspect.
  73560. * @param {*} key The key to search for.
  73561. * @returns {number} Returns the index of the matched value, else `-1`.
  73562. */
  73563. function assocIndexOf(array, key) {
  73564. var length = array.length;
  73565. while (length--) {
  73566. if (eq(array[length][0], key)) {
  73567. return length;
  73568. }
  73569. }
  73570. return -1;
  73571. }
  73572. module.exports = assocIndexOf;
  73573. /***/ }),
  73574. /***/ "./node_modules/lodash/_baseAggregator.js":
  73575. /*!************************************************!*\
  73576. !*** ./node_modules/lodash/_baseAggregator.js ***!
  73577. \************************************************/
  73578. /*! no static exports found */
  73579. /***/ (function(module, exports, __webpack_require__) {
  73580. var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js");
  73581. /**
  73582. * Aggregates elements of `collection` on `accumulator` with keys transformed
  73583. * by `iteratee` and values set by `setter`.
  73584. *
  73585. * @private
  73586. * @param {Array|Object} collection The collection to iterate over.
  73587. * @param {Function} setter The function to set `accumulator` values.
  73588. * @param {Function} iteratee The iteratee to transform keys.
  73589. * @param {Object} accumulator The initial aggregated object.
  73590. * @returns {Function} Returns `accumulator`.
  73591. */
  73592. function baseAggregator(collection, setter, iteratee, accumulator) {
  73593. baseEach(collection, function(value, key, collection) {
  73594. setter(accumulator, value, iteratee(value), collection);
  73595. });
  73596. return accumulator;
  73597. }
  73598. module.exports = baseAggregator;
  73599. /***/ }),
  73600. /***/ "./node_modules/lodash/_baseAssign.js":
  73601. /*!********************************************!*\
  73602. !*** ./node_modules/lodash/_baseAssign.js ***!
  73603. \********************************************/
  73604. /*! no static exports found */
  73605. /***/ (function(module, exports, __webpack_require__) {
  73606. var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
  73607. keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
  73608. /**
  73609. * The base implementation of `_.assign` without support for multiple sources
  73610. * or `customizer` functions.
  73611. *
  73612. * @private
  73613. * @param {Object} object The destination object.
  73614. * @param {Object} source The source object.
  73615. * @returns {Object} Returns `object`.
  73616. */
  73617. function baseAssign(object, source) {
  73618. return object && copyObject(source, keys(source), object);
  73619. }
  73620. module.exports = baseAssign;
  73621. /***/ }),
  73622. /***/ "./node_modules/lodash/_baseAssignIn.js":
  73623. /*!**********************************************!*\
  73624. !*** ./node_modules/lodash/_baseAssignIn.js ***!
  73625. \**********************************************/
  73626. /*! no static exports found */
  73627. /***/ (function(module, exports, __webpack_require__) {
  73628. var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
  73629. keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
  73630. /**
  73631. * The base implementation of `_.assignIn` without support for multiple sources
  73632. * or `customizer` functions.
  73633. *
  73634. * @private
  73635. * @param {Object} object The destination object.
  73636. * @param {Object} source The source object.
  73637. * @returns {Object} Returns `object`.
  73638. */
  73639. function baseAssignIn(object, source) {
  73640. return object && copyObject(source, keysIn(source), object);
  73641. }
  73642. module.exports = baseAssignIn;
  73643. /***/ }),
  73644. /***/ "./node_modules/lodash/_baseAssignValue.js":
  73645. /*!*************************************************!*\
  73646. !*** ./node_modules/lodash/_baseAssignValue.js ***!
  73647. \*************************************************/
  73648. /*! no static exports found */
  73649. /***/ (function(module, exports, __webpack_require__) {
  73650. var defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js");
  73651. /**
  73652. * The base implementation of `assignValue` and `assignMergeValue` without
  73653. * value checks.
  73654. *
  73655. * @private
  73656. * @param {Object} object The object to modify.
  73657. * @param {string} key The key of the property to assign.
  73658. * @param {*} value The value to assign.
  73659. */
  73660. function baseAssignValue(object, key, value) {
  73661. if (key == '__proto__' && defineProperty) {
  73662. defineProperty(object, key, {
  73663. 'configurable': true,
  73664. 'enumerable': true,
  73665. 'value': value,
  73666. 'writable': true
  73667. });
  73668. } else {
  73669. object[key] = value;
  73670. }
  73671. }
  73672. module.exports = baseAssignValue;
  73673. /***/ }),
  73674. /***/ "./node_modules/lodash/_baseClone.js":
  73675. /*!*******************************************!*\
  73676. !*** ./node_modules/lodash/_baseClone.js ***!
  73677. \*******************************************/
  73678. /*! no static exports found */
  73679. /***/ (function(module, exports, __webpack_require__) {
  73680. var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
  73681. arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
  73682. assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
  73683. baseAssign = __webpack_require__(/*! ./_baseAssign */ "./node_modules/lodash/_baseAssign.js"),
  73684. baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "./node_modules/lodash/_baseAssignIn.js"),
  73685. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
  73686. copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
  73687. copySymbols = __webpack_require__(/*! ./_copySymbols */ "./node_modules/lodash/_copySymbols.js"),
  73688. copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "./node_modules/lodash/_copySymbolsIn.js"),
  73689. getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js"),
  73690. getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js"),
  73691. getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
  73692. initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "./node_modules/lodash/_initCloneArray.js"),
  73693. initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "./node_modules/lodash/_initCloneByTag.js"),
  73694. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
  73695. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  73696. isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
  73697. isMap = __webpack_require__(/*! ./isMap */ "./node_modules/lodash/isMap.js"),
  73698. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  73699. isSet = __webpack_require__(/*! ./isSet */ "./node_modules/lodash/isSet.js"),
  73700. keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js"),
  73701. keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
  73702. /** Used to compose bitmasks for cloning. */
  73703. var CLONE_DEEP_FLAG = 1,
  73704. CLONE_FLAT_FLAG = 2,
  73705. CLONE_SYMBOLS_FLAG = 4;
  73706. /** `Object#toString` result references. */
  73707. var argsTag = '[object Arguments]',
  73708. arrayTag = '[object Array]',
  73709. boolTag = '[object Boolean]',
  73710. dateTag = '[object Date]',
  73711. errorTag = '[object Error]',
  73712. funcTag = '[object Function]',
  73713. genTag = '[object GeneratorFunction]',
  73714. mapTag = '[object Map]',
  73715. numberTag = '[object Number]',
  73716. objectTag = '[object Object]',
  73717. regexpTag = '[object RegExp]',
  73718. setTag = '[object Set]',
  73719. stringTag = '[object String]',
  73720. symbolTag = '[object Symbol]',
  73721. weakMapTag = '[object WeakMap]';
  73722. var arrayBufferTag = '[object ArrayBuffer]',
  73723. dataViewTag = '[object DataView]',
  73724. float32Tag = '[object Float32Array]',
  73725. float64Tag = '[object Float64Array]',
  73726. int8Tag = '[object Int8Array]',
  73727. int16Tag = '[object Int16Array]',
  73728. int32Tag = '[object Int32Array]',
  73729. uint8Tag = '[object Uint8Array]',
  73730. uint8ClampedTag = '[object Uint8ClampedArray]',
  73731. uint16Tag = '[object Uint16Array]',
  73732. uint32Tag = '[object Uint32Array]';
  73733. /** Used to identify `toStringTag` values supported by `_.clone`. */
  73734. var cloneableTags = {};
  73735. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  73736. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  73737. cloneableTags[boolTag] = cloneableTags[dateTag] =
  73738. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  73739. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  73740. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  73741. cloneableTags[numberTag] = cloneableTags[objectTag] =
  73742. cloneableTags[regexpTag] = cloneableTags[setTag] =
  73743. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  73744. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  73745. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  73746. cloneableTags[errorTag] = cloneableTags[funcTag] =
  73747. cloneableTags[weakMapTag] = false;
  73748. /**
  73749. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  73750. * traversed objects.
  73751. *
  73752. * @private
  73753. * @param {*} value The value to clone.
  73754. * @param {boolean} bitmask The bitmask flags.
  73755. * 1 - Deep clone
  73756. * 2 - Flatten inherited properties
  73757. * 4 - Clone symbols
  73758. * @param {Function} [customizer] The function to customize cloning.
  73759. * @param {string} [key] The key of `value`.
  73760. * @param {Object} [object] The parent object of `value`.
  73761. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  73762. * @returns {*} Returns the cloned value.
  73763. */
  73764. function baseClone(value, bitmask, customizer, key, object, stack) {
  73765. var result,
  73766. isDeep = bitmask & CLONE_DEEP_FLAG,
  73767. isFlat = bitmask & CLONE_FLAT_FLAG,
  73768. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  73769. if (customizer) {
  73770. result = object ? customizer(value, key, object, stack) : customizer(value);
  73771. }
  73772. if (result !== undefined) {
  73773. return result;
  73774. }
  73775. if (!isObject(value)) {
  73776. return value;
  73777. }
  73778. var isArr = isArray(value);
  73779. if (isArr) {
  73780. result = initCloneArray(value);
  73781. if (!isDeep) {
  73782. return copyArray(value, result);
  73783. }
  73784. } else {
  73785. var tag = getTag(value),
  73786. isFunc = tag == funcTag || tag == genTag;
  73787. if (isBuffer(value)) {
  73788. return cloneBuffer(value, isDeep);
  73789. }
  73790. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  73791. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  73792. if (!isDeep) {
  73793. return isFlat
  73794. ? copySymbolsIn(value, baseAssignIn(result, value))
  73795. : copySymbols(value, baseAssign(result, value));
  73796. }
  73797. } else {
  73798. if (!cloneableTags[tag]) {
  73799. return object ? value : {};
  73800. }
  73801. result = initCloneByTag(value, tag, isDeep);
  73802. }
  73803. }
  73804. // Check for circular references and return its corresponding clone.
  73805. stack || (stack = new Stack);
  73806. var stacked = stack.get(value);
  73807. if (stacked) {
  73808. return stacked;
  73809. }
  73810. stack.set(value, result);
  73811. if (isSet(value)) {
  73812. value.forEach(function(subValue) {
  73813. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  73814. });
  73815. } else if (isMap(value)) {
  73816. value.forEach(function(subValue, key) {
  73817. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  73818. });
  73819. }
  73820. var keysFunc = isFull
  73821. ? (isFlat ? getAllKeysIn : getAllKeys)
  73822. : (isFlat ? keysIn : keys);
  73823. var props = isArr ? undefined : keysFunc(value);
  73824. arrayEach(props || value, function(subValue, key) {
  73825. if (props) {
  73826. key = subValue;
  73827. subValue = value[key];
  73828. }
  73829. // Recursively populate clone (susceptible to call stack limits).
  73830. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  73831. });
  73832. return result;
  73833. }
  73834. module.exports = baseClone;
  73835. /***/ }),
  73836. /***/ "./node_modules/lodash/_baseCreate.js":
  73837. /*!********************************************!*\
  73838. !*** ./node_modules/lodash/_baseCreate.js ***!
  73839. \********************************************/
  73840. /*! no static exports found */
  73841. /***/ (function(module, exports, __webpack_require__) {
  73842. var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
  73843. /** Built-in value references. */
  73844. var objectCreate = Object.create;
  73845. /**
  73846. * The base implementation of `_.create` without support for assigning
  73847. * properties to the created object.
  73848. *
  73849. * @private
  73850. * @param {Object} proto The object to inherit from.
  73851. * @returns {Object} Returns the new object.
  73852. */
  73853. var baseCreate = (function() {
  73854. function object() {}
  73855. return function(proto) {
  73856. if (!isObject(proto)) {
  73857. return {};
  73858. }
  73859. if (objectCreate) {
  73860. return objectCreate(proto);
  73861. }
  73862. object.prototype = proto;
  73863. var result = new object;
  73864. object.prototype = undefined;
  73865. return result;
  73866. };
  73867. }());
  73868. module.exports = baseCreate;
  73869. /***/ }),
  73870. /***/ "./node_modules/lodash/_baseEach.js":
  73871. /*!******************************************!*\
  73872. !*** ./node_modules/lodash/_baseEach.js ***!
  73873. \******************************************/
  73874. /*! no static exports found */
  73875. /***/ (function(module, exports, __webpack_require__) {
  73876. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
  73877. createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "./node_modules/lodash/_createBaseEach.js");
  73878. /**
  73879. * The base implementation of `_.forEach` without support for iteratee shorthands.
  73880. *
  73881. * @private
  73882. * @param {Array|Object} collection The collection to iterate over.
  73883. * @param {Function} iteratee The function invoked per iteration.
  73884. * @returns {Array|Object} Returns `collection`.
  73885. */
  73886. var baseEach = createBaseEach(baseForOwn);
  73887. module.exports = baseEach;
  73888. /***/ }),
  73889. /***/ "./node_modules/lodash/_baseFindIndex.js":
  73890. /*!***********************************************!*\
  73891. !*** ./node_modules/lodash/_baseFindIndex.js ***!
  73892. \***********************************************/
  73893. /*! no static exports found */
  73894. /***/ (function(module, exports) {
  73895. /**
  73896. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  73897. * support for iteratee shorthands.
  73898. *
  73899. * @private
  73900. * @param {Array} array The array to inspect.
  73901. * @param {Function} predicate The function invoked per iteration.
  73902. * @param {number} fromIndex The index to search from.
  73903. * @param {boolean} [fromRight] Specify iterating from right to left.
  73904. * @returns {number} Returns the index of the matched value, else `-1`.
  73905. */
  73906. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  73907. var length = array.length,
  73908. index = fromIndex + (fromRight ? 1 : -1);
  73909. while ((fromRight ? index-- : ++index < length)) {
  73910. if (predicate(array[index], index, array)) {
  73911. return index;
  73912. }
  73913. }
  73914. return -1;
  73915. }
  73916. module.exports = baseFindIndex;
  73917. /***/ }),
  73918. /***/ "./node_modules/lodash/_baseFlatten.js":
  73919. /*!*********************************************!*\
  73920. !*** ./node_modules/lodash/_baseFlatten.js ***!
  73921. \*********************************************/
  73922. /*! no static exports found */
  73923. /***/ (function(module, exports, __webpack_require__) {
  73924. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
  73925. isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "./node_modules/lodash/_isFlattenable.js");
  73926. /**
  73927. * The base implementation of `_.flatten` with support for restricting flattening.
  73928. *
  73929. * @private
  73930. * @param {Array} array The array to flatten.
  73931. * @param {number} depth The maximum recursion depth.
  73932. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  73933. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  73934. * @param {Array} [result=[]] The initial result value.
  73935. * @returns {Array} Returns the new flattened array.
  73936. */
  73937. function baseFlatten(array, depth, predicate, isStrict, result) {
  73938. var index = -1,
  73939. length = array.length;
  73940. predicate || (predicate = isFlattenable);
  73941. result || (result = []);
  73942. while (++index < length) {
  73943. var value = array[index];
  73944. if (depth > 0 && predicate(value)) {
  73945. if (depth > 1) {
  73946. // Recursively flatten arrays (susceptible to call stack limits).
  73947. baseFlatten(value, depth - 1, predicate, isStrict, result);
  73948. } else {
  73949. arrayPush(result, value);
  73950. }
  73951. } else if (!isStrict) {
  73952. result[result.length] = value;
  73953. }
  73954. }
  73955. return result;
  73956. }
  73957. module.exports = baseFlatten;
  73958. /***/ }),
  73959. /***/ "./node_modules/lodash/_baseFor.js":
  73960. /*!*****************************************!*\
  73961. !*** ./node_modules/lodash/_baseFor.js ***!
  73962. \*****************************************/
  73963. /*! no static exports found */
  73964. /***/ (function(module, exports, __webpack_require__) {
  73965. var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js");
  73966. /**
  73967. * The base implementation of `baseForOwn` which iterates over `object`
  73968. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  73969. * Iteratee functions may exit iteration early by explicitly returning `false`.
  73970. *
  73971. * @private
  73972. * @param {Object} object The object to iterate over.
  73973. * @param {Function} iteratee The function invoked per iteration.
  73974. * @param {Function} keysFunc The function to get the keys of `object`.
  73975. * @returns {Object} Returns `object`.
  73976. */
  73977. var baseFor = createBaseFor();
  73978. module.exports = baseFor;
  73979. /***/ }),
  73980. /***/ "./node_modules/lodash/_baseForOwn.js":
  73981. /*!********************************************!*\
  73982. !*** ./node_modules/lodash/_baseForOwn.js ***!
  73983. \********************************************/
  73984. /*! no static exports found */
  73985. /***/ (function(module, exports, __webpack_require__) {
  73986. var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
  73987. keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
  73988. /**
  73989. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  73990. *
  73991. * @private
  73992. * @param {Object} object The object to iterate over.
  73993. * @param {Function} iteratee The function invoked per iteration.
  73994. * @returns {Object} Returns `object`.
  73995. */
  73996. function baseForOwn(object, iteratee) {
  73997. return object && baseFor(object, iteratee, keys);
  73998. }
  73999. module.exports = baseForOwn;
  74000. /***/ }),
  74001. /***/ "./node_modules/lodash/_baseGet.js":
  74002. /*!*****************************************!*\
  74003. !*** ./node_modules/lodash/_baseGet.js ***!
  74004. \*****************************************/
  74005. /*! no static exports found */
  74006. /***/ (function(module, exports, __webpack_require__) {
  74007. var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
  74008. toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
  74009. /**
  74010. * The base implementation of `_.get` without support for default values.
  74011. *
  74012. * @private
  74013. * @param {Object} object The object to query.
  74014. * @param {Array|string} path The path of the property to get.
  74015. * @returns {*} Returns the resolved value.
  74016. */
  74017. function baseGet(object, path) {
  74018. path = castPath(path, object);
  74019. var index = 0,
  74020. length = path.length;
  74021. while (object != null && index < length) {
  74022. object = object[toKey(path[index++])];
  74023. }
  74024. return (index && index == length) ? object : undefined;
  74025. }
  74026. module.exports = baseGet;
  74027. /***/ }),
  74028. /***/ "./node_modules/lodash/_baseGetAllKeys.js":
  74029. /*!************************************************!*\
  74030. !*** ./node_modules/lodash/_baseGetAllKeys.js ***!
  74031. \************************************************/
  74032. /*! no static exports found */
  74033. /***/ (function(module, exports, __webpack_require__) {
  74034. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
  74035. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
  74036. /**
  74037. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  74038. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  74039. * symbols of `object`.
  74040. *
  74041. * @private
  74042. * @param {Object} object The object to query.
  74043. * @param {Function} keysFunc The function to get the keys of `object`.
  74044. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  74045. * @returns {Array} Returns the array of property names and symbols.
  74046. */
  74047. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  74048. var result = keysFunc(object);
  74049. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  74050. }
  74051. module.exports = baseGetAllKeys;
  74052. /***/ }),
  74053. /***/ "./node_modules/lodash/_baseGetTag.js":
  74054. /*!********************************************!*\
  74055. !*** ./node_modules/lodash/_baseGetTag.js ***!
  74056. \********************************************/
  74057. /*! no static exports found */
  74058. /***/ (function(module, exports, __webpack_require__) {
  74059. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
  74060. getRawTag = __webpack_require__(/*! ./_getRawTag */ "./node_modules/lodash/_getRawTag.js"),
  74061. objectToString = __webpack_require__(/*! ./_objectToString */ "./node_modules/lodash/_objectToString.js");
  74062. /** `Object#toString` result references. */
  74063. var nullTag = '[object Null]',
  74064. undefinedTag = '[object Undefined]';
  74065. /** Built-in value references. */
  74066. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  74067. /**
  74068. * The base implementation of `getTag` without fallbacks for buggy environments.
  74069. *
  74070. * @private
  74071. * @param {*} value The value to query.
  74072. * @returns {string} Returns the `toStringTag`.
  74073. */
  74074. function baseGetTag(value) {
  74075. if (value == null) {
  74076. return value === undefined ? undefinedTag : nullTag;
  74077. }
  74078. return (symToStringTag && symToStringTag in Object(value))
  74079. ? getRawTag(value)
  74080. : objectToString(value);
  74081. }
  74082. module.exports = baseGetTag;
  74083. /***/ }),
  74084. /***/ "./node_modules/lodash/_baseHas.js":
  74085. /*!*****************************************!*\
  74086. !*** ./node_modules/lodash/_baseHas.js ***!
  74087. \*****************************************/
  74088. /*! no static exports found */
  74089. /***/ (function(module, exports) {
  74090. /** Used for built-in method references. */
  74091. var objectProto = Object.prototype;
  74092. /** Used to check objects for own properties. */
  74093. var hasOwnProperty = objectProto.hasOwnProperty;
  74094. /**
  74095. * The base implementation of `_.has` without support for deep paths.
  74096. *
  74097. * @private
  74098. * @param {Object} [object] The object to query.
  74099. * @param {Array|string} key The key to check.
  74100. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  74101. */
  74102. function baseHas(object, key) {
  74103. return object != null && hasOwnProperty.call(object, key);
  74104. }
  74105. module.exports = baseHas;
  74106. /***/ }),
  74107. /***/ "./node_modules/lodash/_baseHasIn.js":
  74108. /*!*******************************************!*\
  74109. !*** ./node_modules/lodash/_baseHasIn.js ***!
  74110. \*******************************************/
  74111. /*! no static exports found */
  74112. /***/ (function(module, exports) {
  74113. /**
  74114. * The base implementation of `_.hasIn` without support for deep paths.
  74115. *
  74116. * @private
  74117. * @param {Object} [object] The object to query.
  74118. * @param {Array|string} key The key to check.
  74119. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  74120. */
  74121. function baseHasIn(object, key) {
  74122. return object != null && key in Object(object);
  74123. }
  74124. module.exports = baseHasIn;
  74125. /***/ }),
  74126. /***/ "./node_modules/lodash/_baseIndexOf.js":
  74127. /*!*********************************************!*\
  74128. !*** ./node_modules/lodash/_baseIndexOf.js ***!
  74129. \*********************************************/
  74130. /*! no static exports found */
  74131. /***/ (function(module, exports, __webpack_require__) {
  74132. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
  74133. baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "./node_modules/lodash/_baseIsNaN.js"),
  74134. strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "./node_modules/lodash/_strictIndexOf.js");
  74135. /**
  74136. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  74137. *
  74138. * @private
  74139. * @param {Array} array The array to inspect.
  74140. * @param {*} value The value to search for.
  74141. * @param {number} fromIndex The index to search from.
  74142. * @returns {number} Returns the index of the matched value, else `-1`.
  74143. */
  74144. function baseIndexOf(array, value, fromIndex) {
  74145. return value === value
  74146. ? strictIndexOf(array, value, fromIndex)
  74147. : baseFindIndex(array, baseIsNaN, fromIndex);
  74148. }
  74149. module.exports = baseIndexOf;
  74150. /***/ }),
  74151. /***/ "./node_modules/lodash/_baseIsArguments.js":
  74152. /*!*************************************************!*\
  74153. !*** ./node_modules/lodash/_baseIsArguments.js ***!
  74154. \*************************************************/
  74155. /*! no static exports found */
  74156. /***/ (function(module, exports, __webpack_require__) {
  74157. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  74158. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  74159. /** `Object#toString` result references. */
  74160. var argsTag = '[object Arguments]';
  74161. /**
  74162. * The base implementation of `_.isArguments`.
  74163. *
  74164. * @private
  74165. * @param {*} value The value to check.
  74166. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  74167. */
  74168. function baseIsArguments(value) {
  74169. return isObjectLike(value) && baseGetTag(value) == argsTag;
  74170. }
  74171. module.exports = baseIsArguments;
  74172. /***/ }),
  74173. /***/ "./node_modules/lodash/_baseIsEqual.js":
  74174. /*!*********************************************!*\
  74175. !*** ./node_modules/lodash/_baseIsEqual.js ***!
  74176. \*********************************************/
  74177. /*! no static exports found */
  74178. /***/ (function(module, exports, __webpack_require__) {
  74179. var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "./node_modules/lodash/_baseIsEqualDeep.js"),
  74180. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  74181. /**
  74182. * The base implementation of `_.isEqual` which supports partial comparisons
  74183. * and tracks traversed objects.
  74184. *
  74185. * @private
  74186. * @param {*} value The value to compare.
  74187. * @param {*} other The other value to compare.
  74188. * @param {boolean} bitmask The bitmask flags.
  74189. * 1 - Unordered comparison
  74190. * 2 - Partial comparison
  74191. * @param {Function} [customizer] The function to customize comparisons.
  74192. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  74193. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  74194. */
  74195. function baseIsEqual(value, other, bitmask, customizer, stack) {
  74196. if (value === other) {
  74197. return true;
  74198. }
  74199. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  74200. return value !== value && other !== other;
  74201. }
  74202. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  74203. }
  74204. module.exports = baseIsEqual;
  74205. /***/ }),
  74206. /***/ "./node_modules/lodash/_baseIsEqualDeep.js":
  74207. /*!*************************************************!*\
  74208. !*** ./node_modules/lodash/_baseIsEqualDeep.js ***!
  74209. \*************************************************/
  74210. /*! no static exports found */
  74211. /***/ (function(module, exports, __webpack_require__) {
  74212. var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
  74213. equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
  74214. equalByTag = __webpack_require__(/*! ./_equalByTag */ "./node_modules/lodash/_equalByTag.js"),
  74215. equalObjects = __webpack_require__(/*! ./_equalObjects */ "./node_modules/lodash/_equalObjects.js"),
  74216. getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
  74217. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  74218. isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
  74219. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
  74220. /** Used to compose bitmasks for value comparisons. */
  74221. var COMPARE_PARTIAL_FLAG = 1;
  74222. /** `Object#toString` result references. */
  74223. var argsTag = '[object Arguments]',
  74224. arrayTag = '[object Array]',
  74225. objectTag = '[object Object]';
  74226. /** Used for built-in method references. */
  74227. var objectProto = Object.prototype;
  74228. /** Used to check objects for own properties. */
  74229. var hasOwnProperty = objectProto.hasOwnProperty;
  74230. /**
  74231. * A specialized version of `baseIsEqual` for arrays and objects which performs
  74232. * deep comparisons and tracks traversed objects enabling objects with circular
  74233. * references to be compared.
  74234. *
  74235. * @private
  74236. * @param {Object} object The object to compare.
  74237. * @param {Object} other The other object to compare.
  74238. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  74239. * @param {Function} customizer The function to customize comparisons.
  74240. * @param {Function} equalFunc The function to determine equivalents of values.
  74241. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  74242. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  74243. */
  74244. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  74245. var objIsArr = isArray(object),
  74246. othIsArr = isArray(other),
  74247. objTag = objIsArr ? arrayTag : getTag(object),
  74248. othTag = othIsArr ? arrayTag : getTag(other);
  74249. objTag = objTag == argsTag ? objectTag : objTag;
  74250. othTag = othTag == argsTag ? objectTag : othTag;
  74251. var objIsObj = objTag == objectTag,
  74252. othIsObj = othTag == objectTag,
  74253. isSameTag = objTag == othTag;
  74254. if (isSameTag && isBuffer(object)) {
  74255. if (!isBuffer(other)) {
  74256. return false;
  74257. }
  74258. objIsArr = true;
  74259. objIsObj = false;
  74260. }
  74261. if (isSameTag && !objIsObj) {
  74262. stack || (stack = new Stack);
  74263. return (objIsArr || isTypedArray(object))
  74264. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  74265. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  74266. }
  74267. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  74268. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  74269. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  74270. if (objIsWrapped || othIsWrapped) {
  74271. var objUnwrapped = objIsWrapped ? object.value() : object,
  74272. othUnwrapped = othIsWrapped ? other.value() : other;
  74273. stack || (stack = new Stack);
  74274. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  74275. }
  74276. }
  74277. if (!isSameTag) {
  74278. return false;
  74279. }
  74280. stack || (stack = new Stack);
  74281. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  74282. }
  74283. module.exports = baseIsEqualDeep;
  74284. /***/ }),
  74285. /***/ "./node_modules/lodash/_baseIsMap.js":
  74286. /*!*******************************************!*\
  74287. !*** ./node_modules/lodash/_baseIsMap.js ***!
  74288. \*******************************************/
  74289. /*! no static exports found */
  74290. /***/ (function(module, exports, __webpack_require__) {
  74291. var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
  74292. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  74293. /** `Object#toString` result references. */
  74294. var mapTag = '[object Map]';
  74295. /**
  74296. * The base implementation of `_.isMap` without Node.js optimizations.
  74297. *
  74298. * @private
  74299. * @param {*} value The value to check.
  74300. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  74301. */
  74302. function baseIsMap(value) {
  74303. return isObjectLike(value) && getTag(value) == mapTag;
  74304. }
  74305. module.exports = baseIsMap;
  74306. /***/ }),
  74307. /***/ "./node_modules/lodash/_baseIsMatch.js":
  74308. /*!*********************************************!*\
  74309. !*** ./node_modules/lodash/_baseIsMatch.js ***!
  74310. \*********************************************/
  74311. /*! no static exports found */
  74312. /***/ (function(module, exports, __webpack_require__) {
  74313. var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
  74314. baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");
  74315. /** Used to compose bitmasks for value comparisons. */
  74316. var COMPARE_PARTIAL_FLAG = 1,
  74317. COMPARE_UNORDERED_FLAG = 2;
  74318. /**
  74319. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  74320. *
  74321. * @private
  74322. * @param {Object} object The object to inspect.
  74323. * @param {Object} source The object of property values to match.
  74324. * @param {Array} matchData The property names, values, and compare flags to match.
  74325. * @param {Function} [customizer] The function to customize comparisons.
  74326. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  74327. */
  74328. function baseIsMatch(object, source, matchData, customizer) {
  74329. var index = matchData.length,
  74330. length = index,
  74331. noCustomizer = !customizer;
  74332. if (object == null) {
  74333. return !length;
  74334. }
  74335. object = Object(object);
  74336. while (index--) {
  74337. var data = matchData[index];
  74338. if ((noCustomizer && data[2])
  74339. ? data[1] !== object[data[0]]
  74340. : !(data[0] in object)
  74341. ) {
  74342. return false;
  74343. }
  74344. }
  74345. while (++index < length) {
  74346. data = matchData[index];
  74347. var key = data[0],
  74348. objValue = object[key],
  74349. srcValue = data[1];
  74350. if (noCustomizer && data[2]) {
  74351. if (objValue === undefined && !(key in object)) {
  74352. return false;
  74353. }
  74354. } else {
  74355. var stack = new Stack;
  74356. if (customizer) {
  74357. var result = customizer(objValue, srcValue, key, object, source, stack);
  74358. }
  74359. if (!(result === undefined
  74360. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  74361. : result
  74362. )) {
  74363. return false;
  74364. }
  74365. }
  74366. }
  74367. return true;
  74368. }
  74369. module.exports = baseIsMatch;
  74370. /***/ }),
  74371. /***/ "./node_modules/lodash/_baseIsNaN.js":
  74372. /*!*******************************************!*\
  74373. !*** ./node_modules/lodash/_baseIsNaN.js ***!
  74374. \*******************************************/
  74375. /*! no static exports found */
  74376. /***/ (function(module, exports) {
  74377. /**
  74378. * The base implementation of `_.isNaN` without support for number objects.
  74379. *
  74380. * @private
  74381. * @param {*} value The value to check.
  74382. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  74383. */
  74384. function baseIsNaN(value) {
  74385. return value !== value;
  74386. }
  74387. module.exports = baseIsNaN;
  74388. /***/ }),
  74389. /***/ "./node_modules/lodash/_baseIsNative.js":
  74390. /*!**********************************************!*\
  74391. !*** ./node_modules/lodash/_baseIsNative.js ***!
  74392. \**********************************************/
  74393. /*! no static exports found */
  74394. /***/ (function(module, exports, __webpack_require__) {
  74395. var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
  74396. isMasked = __webpack_require__(/*! ./_isMasked */ "./node_modules/lodash/_isMasked.js"),
  74397. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  74398. toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
  74399. /**
  74400. * Used to match `RegExp`
  74401. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  74402. */
  74403. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  74404. /** Used to detect host constructors (Safari). */
  74405. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  74406. /** Used for built-in method references. */
  74407. var funcProto = Function.prototype,
  74408. objectProto = Object.prototype;
  74409. /** Used to resolve the decompiled source of functions. */
  74410. var funcToString = funcProto.toString;
  74411. /** Used to check objects for own properties. */
  74412. var hasOwnProperty = objectProto.hasOwnProperty;
  74413. /** Used to detect if a method is native. */
  74414. var reIsNative = RegExp('^' +
  74415. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  74416. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  74417. );
  74418. /**
  74419. * The base implementation of `_.isNative` without bad shim checks.
  74420. *
  74421. * @private
  74422. * @param {*} value The value to check.
  74423. * @returns {boolean} Returns `true` if `value` is a native function,
  74424. * else `false`.
  74425. */
  74426. function baseIsNative(value) {
  74427. if (!isObject(value) || isMasked(value)) {
  74428. return false;
  74429. }
  74430. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  74431. return pattern.test(toSource(value));
  74432. }
  74433. module.exports = baseIsNative;
  74434. /***/ }),
  74435. /***/ "./node_modules/lodash/_baseIsRegExp.js":
  74436. /*!**********************************************!*\
  74437. !*** ./node_modules/lodash/_baseIsRegExp.js ***!
  74438. \**********************************************/
  74439. /*! no static exports found */
  74440. /***/ (function(module, exports, __webpack_require__) {
  74441. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  74442. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  74443. /** `Object#toString` result references. */
  74444. var regexpTag = '[object RegExp]';
  74445. /**
  74446. * The base implementation of `_.isRegExp` without Node.js optimizations.
  74447. *
  74448. * @private
  74449. * @param {*} value The value to check.
  74450. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  74451. */
  74452. function baseIsRegExp(value) {
  74453. return isObjectLike(value) && baseGetTag(value) == regexpTag;
  74454. }
  74455. module.exports = baseIsRegExp;
  74456. /***/ }),
  74457. /***/ "./node_modules/lodash/_baseIsSet.js":
  74458. /*!*******************************************!*\
  74459. !*** ./node_modules/lodash/_baseIsSet.js ***!
  74460. \*******************************************/
  74461. /*! no static exports found */
  74462. /***/ (function(module, exports, __webpack_require__) {
  74463. var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
  74464. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  74465. /** `Object#toString` result references. */
  74466. var setTag = '[object Set]';
  74467. /**
  74468. * The base implementation of `_.isSet` without Node.js optimizations.
  74469. *
  74470. * @private
  74471. * @param {*} value The value to check.
  74472. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  74473. */
  74474. function baseIsSet(value) {
  74475. return isObjectLike(value) && getTag(value) == setTag;
  74476. }
  74477. module.exports = baseIsSet;
  74478. /***/ }),
  74479. /***/ "./node_modules/lodash/_baseIsTypedArray.js":
  74480. /*!**************************************************!*\
  74481. !*** ./node_modules/lodash/_baseIsTypedArray.js ***!
  74482. \**************************************************/
  74483. /*! no static exports found */
  74484. /***/ (function(module, exports, __webpack_require__) {
  74485. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  74486. isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
  74487. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  74488. /** `Object#toString` result references. */
  74489. var argsTag = '[object Arguments]',
  74490. arrayTag = '[object Array]',
  74491. boolTag = '[object Boolean]',
  74492. dateTag = '[object Date]',
  74493. errorTag = '[object Error]',
  74494. funcTag = '[object Function]',
  74495. mapTag = '[object Map]',
  74496. numberTag = '[object Number]',
  74497. objectTag = '[object Object]',
  74498. regexpTag = '[object RegExp]',
  74499. setTag = '[object Set]',
  74500. stringTag = '[object String]',
  74501. weakMapTag = '[object WeakMap]';
  74502. var arrayBufferTag = '[object ArrayBuffer]',
  74503. dataViewTag = '[object DataView]',
  74504. float32Tag = '[object Float32Array]',
  74505. float64Tag = '[object Float64Array]',
  74506. int8Tag = '[object Int8Array]',
  74507. int16Tag = '[object Int16Array]',
  74508. int32Tag = '[object Int32Array]',
  74509. uint8Tag = '[object Uint8Array]',
  74510. uint8ClampedTag = '[object Uint8ClampedArray]',
  74511. uint16Tag = '[object Uint16Array]',
  74512. uint32Tag = '[object Uint32Array]';
  74513. /** Used to identify `toStringTag` values of typed arrays. */
  74514. var typedArrayTags = {};
  74515. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  74516. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  74517. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  74518. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  74519. typedArrayTags[uint32Tag] = true;
  74520. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  74521. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  74522. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  74523. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  74524. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  74525. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  74526. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  74527. typedArrayTags[weakMapTag] = false;
  74528. /**
  74529. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  74530. *
  74531. * @private
  74532. * @param {*} value The value to check.
  74533. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  74534. */
  74535. function baseIsTypedArray(value) {
  74536. return isObjectLike(value) &&
  74537. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  74538. }
  74539. module.exports = baseIsTypedArray;
  74540. /***/ }),
  74541. /***/ "./node_modules/lodash/_baseIteratee.js":
  74542. /*!**********************************************!*\
  74543. !*** ./node_modules/lodash/_baseIteratee.js ***!
  74544. \**********************************************/
  74545. /*! no static exports found */
  74546. /***/ (function(module, exports, __webpack_require__) {
  74547. var baseMatches = __webpack_require__(/*! ./_baseMatches */ "./node_modules/lodash/_baseMatches.js"),
  74548. baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "./node_modules/lodash/_baseMatchesProperty.js"),
  74549. identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
  74550. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  74551. property = __webpack_require__(/*! ./property */ "./node_modules/lodash/property.js");
  74552. /**
  74553. * The base implementation of `_.iteratee`.
  74554. *
  74555. * @private
  74556. * @param {*} [value=_.identity] The value to convert to an iteratee.
  74557. * @returns {Function} Returns the iteratee.
  74558. */
  74559. function baseIteratee(value) {
  74560. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  74561. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  74562. if (typeof value == 'function') {
  74563. return value;
  74564. }
  74565. if (value == null) {
  74566. return identity;
  74567. }
  74568. if (typeof value == 'object') {
  74569. return isArray(value)
  74570. ? baseMatchesProperty(value[0], value[1])
  74571. : baseMatches(value);
  74572. }
  74573. return property(value);
  74574. }
  74575. module.exports = baseIteratee;
  74576. /***/ }),
  74577. /***/ "./node_modules/lodash/_baseKeys.js":
  74578. /*!******************************************!*\
  74579. !*** ./node_modules/lodash/_baseKeys.js ***!
  74580. \******************************************/
  74581. /*! no static exports found */
  74582. /***/ (function(module, exports, __webpack_require__) {
  74583. var isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
  74584. nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "./node_modules/lodash/_nativeKeys.js");
  74585. /** Used for built-in method references. */
  74586. var objectProto = Object.prototype;
  74587. /** Used to check objects for own properties. */
  74588. var hasOwnProperty = objectProto.hasOwnProperty;
  74589. /**
  74590. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  74591. *
  74592. * @private
  74593. * @param {Object} object The object to query.
  74594. * @returns {Array} Returns the array of property names.
  74595. */
  74596. function baseKeys(object) {
  74597. if (!isPrototype(object)) {
  74598. return nativeKeys(object);
  74599. }
  74600. var result = [];
  74601. for (var key in Object(object)) {
  74602. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  74603. result.push(key);
  74604. }
  74605. }
  74606. return result;
  74607. }
  74608. module.exports = baseKeys;
  74609. /***/ }),
  74610. /***/ "./node_modules/lodash/_baseKeysIn.js":
  74611. /*!********************************************!*\
  74612. !*** ./node_modules/lodash/_baseKeysIn.js ***!
  74613. \********************************************/
  74614. /*! no static exports found */
  74615. /***/ (function(module, exports, __webpack_require__) {
  74616. var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  74617. isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
  74618. nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "./node_modules/lodash/_nativeKeysIn.js");
  74619. /** Used for built-in method references. */
  74620. var objectProto = Object.prototype;
  74621. /** Used to check objects for own properties. */
  74622. var hasOwnProperty = objectProto.hasOwnProperty;
  74623. /**
  74624. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  74625. *
  74626. * @private
  74627. * @param {Object} object The object to query.
  74628. * @returns {Array} Returns the array of property names.
  74629. */
  74630. function baseKeysIn(object) {
  74631. if (!isObject(object)) {
  74632. return nativeKeysIn(object);
  74633. }
  74634. var isProto = isPrototype(object),
  74635. result = [];
  74636. for (var key in object) {
  74637. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  74638. result.push(key);
  74639. }
  74640. }
  74641. return result;
  74642. }
  74643. module.exports = baseKeysIn;
  74644. /***/ }),
  74645. /***/ "./node_modules/lodash/_baseMatches.js":
  74646. /*!*********************************************!*\
  74647. !*** ./node_modules/lodash/_baseMatches.js ***!
  74648. \*********************************************/
  74649. /*! no static exports found */
  74650. /***/ (function(module, exports, __webpack_require__) {
  74651. var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "./node_modules/lodash/_baseIsMatch.js"),
  74652. getMatchData = __webpack_require__(/*! ./_getMatchData */ "./node_modules/lodash/_getMatchData.js"),
  74653. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js");
  74654. /**
  74655. * The base implementation of `_.matches` which doesn't clone `source`.
  74656. *
  74657. * @private
  74658. * @param {Object} source The object of property values to match.
  74659. * @returns {Function} Returns the new spec function.
  74660. */
  74661. function baseMatches(source) {
  74662. var matchData = getMatchData(source);
  74663. if (matchData.length == 1 && matchData[0][2]) {
  74664. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  74665. }
  74666. return function(object) {
  74667. return object === source || baseIsMatch(object, source, matchData);
  74668. };
  74669. }
  74670. module.exports = baseMatches;
  74671. /***/ }),
  74672. /***/ "./node_modules/lodash/_baseMatchesProperty.js":
  74673. /*!*****************************************************!*\
  74674. !*** ./node_modules/lodash/_baseMatchesProperty.js ***!
  74675. \*****************************************************/
  74676. /*! no static exports found */
  74677. /***/ (function(module, exports, __webpack_require__) {
  74678. var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js"),
  74679. get = __webpack_require__(/*! ./get */ "./node_modules/lodash/get.js"),
  74680. hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js"),
  74681. isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
  74682. isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
  74683. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js"),
  74684. toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
  74685. /** Used to compose bitmasks for value comparisons. */
  74686. var COMPARE_PARTIAL_FLAG = 1,
  74687. COMPARE_UNORDERED_FLAG = 2;
  74688. /**
  74689. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  74690. *
  74691. * @private
  74692. * @param {string} path The path of the property to get.
  74693. * @param {*} srcValue The value to match.
  74694. * @returns {Function} Returns the new spec function.
  74695. */
  74696. function baseMatchesProperty(path, srcValue) {
  74697. if (isKey(path) && isStrictComparable(srcValue)) {
  74698. return matchesStrictComparable(toKey(path), srcValue);
  74699. }
  74700. return function(object) {
  74701. var objValue = get(object, path);
  74702. return (objValue === undefined && objValue === srcValue)
  74703. ? hasIn(object, path)
  74704. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  74705. };
  74706. }
  74707. module.exports = baseMatchesProperty;
  74708. /***/ }),
  74709. /***/ "./node_modules/lodash/_baseMerge.js":
  74710. /*!*******************************************!*\
  74711. !*** ./node_modules/lodash/_baseMerge.js ***!
  74712. \*******************************************/
  74713. /*! no static exports found */
  74714. /***/ (function(module, exports, __webpack_require__) {
  74715. var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
  74716. assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
  74717. baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
  74718. baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "./node_modules/lodash/_baseMergeDeep.js"),
  74719. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  74720. keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js"),
  74721. safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js");
  74722. /**
  74723. * The base implementation of `_.merge` without support for multiple sources.
  74724. *
  74725. * @private
  74726. * @param {Object} object The destination object.
  74727. * @param {Object} source The source object.
  74728. * @param {number} srcIndex The index of `source`.
  74729. * @param {Function} [customizer] The function to customize merged values.
  74730. * @param {Object} [stack] Tracks traversed source values and their merged
  74731. * counterparts.
  74732. */
  74733. function baseMerge(object, source, srcIndex, customizer, stack) {
  74734. if (object === source) {
  74735. return;
  74736. }
  74737. baseFor(source, function(srcValue, key) {
  74738. stack || (stack = new Stack);
  74739. if (isObject(srcValue)) {
  74740. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  74741. }
  74742. else {
  74743. var newValue = customizer
  74744. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  74745. : undefined;
  74746. if (newValue === undefined) {
  74747. newValue = srcValue;
  74748. }
  74749. assignMergeValue(object, key, newValue);
  74750. }
  74751. }, keysIn);
  74752. }
  74753. module.exports = baseMerge;
  74754. /***/ }),
  74755. /***/ "./node_modules/lodash/_baseMergeDeep.js":
  74756. /*!***********************************************!*\
  74757. !*** ./node_modules/lodash/_baseMergeDeep.js ***!
  74758. \***********************************************/
  74759. /*! no static exports found */
  74760. /***/ (function(module, exports, __webpack_require__) {
  74761. var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
  74762. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
  74763. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js"),
  74764. copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
  74765. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
  74766. isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
  74767. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  74768. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js"),
  74769. isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
  74770. isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
  74771. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  74772. isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js"),
  74773. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js"),
  74774. safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js"),
  74775. toPlainObject = __webpack_require__(/*! ./toPlainObject */ "./node_modules/lodash/toPlainObject.js");
  74776. /**
  74777. * A specialized version of `baseMerge` for arrays and objects which performs
  74778. * deep merges and tracks traversed objects enabling objects with circular
  74779. * references to be merged.
  74780. *
  74781. * @private
  74782. * @param {Object} object The destination object.
  74783. * @param {Object} source The source object.
  74784. * @param {string} key The key of the value to merge.
  74785. * @param {number} srcIndex The index of `source`.
  74786. * @param {Function} mergeFunc The function to merge values.
  74787. * @param {Function} [customizer] The function to customize assigned values.
  74788. * @param {Object} [stack] Tracks traversed source values and their merged
  74789. * counterparts.
  74790. */
  74791. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  74792. var objValue = safeGet(object, key),
  74793. srcValue = safeGet(source, key),
  74794. stacked = stack.get(srcValue);
  74795. if (stacked) {
  74796. assignMergeValue(object, key, stacked);
  74797. return;
  74798. }
  74799. var newValue = customizer
  74800. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  74801. : undefined;
  74802. var isCommon = newValue === undefined;
  74803. if (isCommon) {
  74804. var isArr = isArray(srcValue),
  74805. isBuff = !isArr && isBuffer(srcValue),
  74806. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  74807. newValue = srcValue;
  74808. if (isArr || isBuff || isTyped) {
  74809. if (isArray(objValue)) {
  74810. newValue = objValue;
  74811. }
  74812. else if (isArrayLikeObject(objValue)) {
  74813. newValue = copyArray(objValue);
  74814. }
  74815. else if (isBuff) {
  74816. isCommon = false;
  74817. newValue = cloneBuffer(srcValue, true);
  74818. }
  74819. else if (isTyped) {
  74820. isCommon = false;
  74821. newValue = cloneTypedArray(srcValue, true);
  74822. }
  74823. else {
  74824. newValue = [];
  74825. }
  74826. }
  74827. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  74828. newValue = objValue;
  74829. if (isArguments(objValue)) {
  74830. newValue = toPlainObject(objValue);
  74831. }
  74832. else if (!isObject(objValue) || isFunction(objValue)) {
  74833. newValue = initCloneObject(srcValue);
  74834. }
  74835. }
  74836. else {
  74837. isCommon = false;
  74838. }
  74839. }
  74840. if (isCommon) {
  74841. // Recursively merge objects and arrays (susceptible to call stack limits).
  74842. stack.set(srcValue, newValue);
  74843. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  74844. stack['delete'](srcValue);
  74845. }
  74846. assignMergeValue(object, key, newValue);
  74847. }
  74848. module.exports = baseMergeDeep;
  74849. /***/ }),
  74850. /***/ "./node_modules/lodash/_basePick.js":
  74851. /*!******************************************!*\
  74852. !*** ./node_modules/lodash/_basePick.js ***!
  74853. \******************************************/
  74854. /*! no static exports found */
  74855. /***/ (function(module, exports, __webpack_require__) {
  74856. var basePickBy = __webpack_require__(/*! ./_basePickBy */ "./node_modules/lodash/_basePickBy.js"),
  74857. hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js");
  74858. /**
  74859. * The base implementation of `_.pick` without support for individual
  74860. * property identifiers.
  74861. *
  74862. * @private
  74863. * @param {Object} object The source object.
  74864. * @param {string[]} paths The property paths to pick.
  74865. * @returns {Object} Returns the new object.
  74866. */
  74867. function basePick(object, paths) {
  74868. return basePickBy(object, paths, function(value, path) {
  74869. return hasIn(object, path);
  74870. });
  74871. }
  74872. module.exports = basePick;
  74873. /***/ }),
  74874. /***/ "./node_modules/lodash/_basePickBy.js":
  74875. /*!********************************************!*\
  74876. !*** ./node_modules/lodash/_basePickBy.js ***!
  74877. \********************************************/
  74878. /*! no static exports found */
  74879. /***/ (function(module, exports, __webpack_require__) {
  74880. var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
  74881. baseSet = __webpack_require__(/*! ./_baseSet */ "./node_modules/lodash/_baseSet.js"),
  74882. castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js");
  74883. /**
  74884. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  74885. *
  74886. * @private
  74887. * @param {Object} object The source object.
  74888. * @param {string[]} paths The property paths to pick.
  74889. * @param {Function} predicate The function invoked per property.
  74890. * @returns {Object} Returns the new object.
  74891. */
  74892. function basePickBy(object, paths, predicate) {
  74893. var index = -1,
  74894. length = paths.length,
  74895. result = {};
  74896. while (++index < length) {
  74897. var path = paths[index],
  74898. value = baseGet(object, path);
  74899. if (predicate(value, path)) {
  74900. baseSet(result, castPath(path, object), value);
  74901. }
  74902. }
  74903. return result;
  74904. }
  74905. module.exports = basePickBy;
  74906. /***/ }),
  74907. /***/ "./node_modules/lodash/_baseProperty.js":
  74908. /*!**********************************************!*\
  74909. !*** ./node_modules/lodash/_baseProperty.js ***!
  74910. \**********************************************/
  74911. /*! no static exports found */
  74912. /***/ (function(module, exports) {
  74913. /**
  74914. * The base implementation of `_.property` without support for deep paths.
  74915. *
  74916. * @private
  74917. * @param {string} key The key of the property to get.
  74918. * @returns {Function} Returns the new accessor function.
  74919. */
  74920. function baseProperty(key) {
  74921. return function(object) {
  74922. return object == null ? undefined : object[key];
  74923. };
  74924. }
  74925. module.exports = baseProperty;
  74926. /***/ }),
  74927. /***/ "./node_modules/lodash/_basePropertyDeep.js":
  74928. /*!**************************************************!*\
  74929. !*** ./node_modules/lodash/_basePropertyDeep.js ***!
  74930. \**************************************************/
  74931. /*! no static exports found */
  74932. /***/ (function(module, exports, __webpack_require__) {
  74933. var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");
  74934. /**
  74935. * A specialized version of `baseProperty` which supports deep paths.
  74936. *
  74937. * @private
  74938. * @param {Array|string} path The path of the property to get.
  74939. * @returns {Function} Returns the new accessor function.
  74940. */
  74941. function basePropertyDeep(path) {
  74942. return function(object) {
  74943. return baseGet(object, path);
  74944. };
  74945. }
  74946. module.exports = basePropertyDeep;
  74947. /***/ }),
  74948. /***/ "./node_modules/lodash/_baseRepeat.js":
  74949. /*!********************************************!*\
  74950. !*** ./node_modules/lodash/_baseRepeat.js ***!
  74951. \********************************************/
  74952. /*! no static exports found */
  74953. /***/ (function(module, exports) {
  74954. /** Used as references for various `Number` constants. */
  74955. var MAX_SAFE_INTEGER = 9007199254740991;
  74956. /* Built-in method references for those with the same name as other `lodash` methods. */
  74957. var nativeFloor = Math.floor;
  74958. /**
  74959. * The base implementation of `_.repeat` which doesn't coerce arguments.
  74960. *
  74961. * @private
  74962. * @param {string} string The string to repeat.
  74963. * @param {number} n The number of times to repeat the string.
  74964. * @returns {string} Returns the repeated string.
  74965. */
  74966. function baseRepeat(string, n) {
  74967. var result = '';
  74968. if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
  74969. return result;
  74970. }
  74971. // Leverage the exponentiation by squaring algorithm for a faster repeat.
  74972. // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
  74973. do {
  74974. if (n % 2) {
  74975. result += string;
  74976. }
  74977. n = nativeFloor(n / 2);
  74978. if (n) {
  74979. string += string;
  74980. }
  74981. } while (n);
  74982. return result;
  74983. }
  74984. module.exports = baseRepeat;
  74985. /***/ }),
  74986. /***/ "./node_modules/lodash/_baseRest.js":
  74987. /*!******************************************!*\
  74988. !*** ./node_modules/lodash/_baseRest.js ***!
  74989. \******************************************/
  74990. /*! no static exports found */
  74991. /***/ (function(module, exports, __webpack_require__) {
  74992. var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
  74993. overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
  74994. setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");
  74995. /**
  74996. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  74997. *
  74998. * @private
  74999. * @param {Function} func The function to apply a rest parameter to.
  75000. * @param {number} [start=func.length-1] The start position of the rest parameter.
  75001. * @returns {Function} Returns the new function.
  75002. */
  75003. function baseRest(func, start) {
  75004. return setToString(overRest(func, start, identity), func + '');
  75005. }
  75006. module.exports = baseRest;
  75007. /***/ }),
  75008. /***/ "./node_modules/lodash/_baseSet.js":
  75009. /*!*****************************************!*\
  75010. !*** ./node_modules/lodash/_baseSet.js ***!
  75011. \*****************************************/
  75012. /*! no static exports found */
  75013. /***/ (function(module, exports, __webpack_require__) {
  75014. var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
  75015. castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
  75016. isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
  75017. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  75018. toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
  75019. /**
  75020. * The base implementation of `_.set`.
  75021. *
  75022. * @private
  75023. * @param {Object} object The object to modify.
  75024. * @param {Array|string} path The path of the property to set.
  75025. * @param {*} value The value to set.
  75026. * @param {Function} [customizer] The function to customize path creation.
  75027. * @returns {Object} Returns `object`.
  75028. */
  75029. function baseSet(object, path, value, customizer) {
  75030. if (!isObject(object)) {
  75031. return object;
  75032. }
  75033. path = castPath(path, object);
  75034. var index = -1,
  75035. length = path.length,
  75036. lastIndex = length - 1,
  75037. nested = object;
  75038. while (nested != null && ++index < length) {
  75039. var key = toKey(path[index]),
  75040. newValue = value;
  75041. if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
  75042. return object;
  75043. }
  75044. if (index != lastIndex) {
  75045. var objValue = nested[key];
  75046. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  75047. if (newValue === undefined) {
  75048. newValue = isObject(objValue)
  75049. ? objValue
  75050. : (isIndex(path[index + 1]) ? [] : {});
  75051. }
  75052. }
  75053. assignValue(nested, key, newValue);
  75054. nested = nested[key];
  75055. }
  75056. return object;
  75057. }
  75058. module.exports = baseSet;
  75059. /***/ }),
  75060. /***/ "./node_modules/lodash/_baseSetToString.js":
  75061. /*!*************************************************!*\
  75062. !*** ./node_modules/lodash/_baseSetToString.js ***!
  75063. \*************************************************/
  75064. /*! no static exports found */
  75065. /***/ (function(module, exports, __webpack_require__) {
  75066. var constant = __webpack_require__(/*! ./constant */ "./node_modules/lodash/constant.js"),
  75067. defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js"),
  75068. identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
  75069. /**
  75070. * The base implementation of `setToString` without support for hot loop shorting.
  75071. *
  75072. * @private
  75073. * @param {Function} func The function to modify.
  75074. * @param {Function} string The `toString` result.
  75075. * @returns {Function} Returns `func`.
  75076. */
  75077. var baseSetToString = !defineProperty ? identity : function(func, string) {
  75078. return defineProperty(func, 'toString', {
  75079. 'configurable': true,
  75080. 'enumerable': false,
  75081. 'value': constant(string),
  75082. 'writable': true
  75083. });
  75084. };
  75085. module.exports = baseSetToString;
  75086. /***/ }),
  75087. /***/ "./node_modules/lodash/_baseSlice.js":
  75088. /*!*******************************************!*\
  75089. !*** ./node_modules/lodash/_baseSlice.js ***!
  75090. \*******************************************/
  75091. /*! no static exports found */
  75092. /***/ (function(module, exports) {
  75093. /**
  75094. * The base implementation of `_.slice` without an iteratee call guard.
  75095. *
  75096. * @private
  75097. * @param {Array} array The array to slice.
  75098. * @param {number} [start=0] The start position.
  75099. * @param {number} [end=array.length] The end position.
  75100. * @returns {Array} Returns the slice of `array`.
  75101. */
  75102. function baseSlice(array, start, end) {
  75103. var index = -1,
  75104. length = array.length;
  75105. if (start < 0) {
  75106. start = -start > length ? 0 : (length + start);
  75107. }
  75108. end = end > length ? length : end;
  75109. if (end < 0) {
  75110. end += length;
  75111. }
  75112. length = start > end ? 0 : ((end - start) >>> 0);
  75113. start >>>= 0;
  75114. var result = Array(length);
  75115. while (++index < length) {
  75116. result[index] = array[index + start];
  75117. }
  75118. return result;
  75119. }
  75120. module.exports = baseSlice;
  75121. /***/ }),
  75122. /***/ "./node_modules/lodash/_baseTimes.js":
  75123. /*!*******************************************!*\
  75124. !*** ./node_modules/lodash/_baseTimes.js ***!
  75125. \*******************************************/
  75126. /*! no static exports found */
  75127. /***/ (function(module, exports) {
  75128. /**
  75129. * The base implementation of `_.times` without support for iteratee shorthands
  75130. * or max array length checks.
  75131. *
  75132. * @private
  75133. * @param {number} n The number of times to invoke `iteratee`.
  75134. * @param {Function} iteratee The function invoked per iteration.
  75135. * @returns {Array} Returns the array of results.
  75136. */
  75137. function baseTimes(n, iteratee) {
  75138. var index = -1,
  75139. result = Array(n);
  75140. while (++index < n) {
  75141. result[index] = iteratee(index);
  75142. }
  75143. return result;
  75144. }
  75145. module.exports = baseTimes;
  75146. /***/ }),
  75147. /***/ "./node_modules/lodash/_baseToString.js":
  75148. /*!**********************************************!*\
  75149. !*** ./node_modules/lodash/_baseToString.js ***!
  75150. \**********************************************/
  75151. /*! no static exports found */
  75152. /***/ (function(module, exports, __webpack_require__) {
  75153. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
  75154. arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
  75155. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  75156. isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
  75157. /** Used as references for various `Number` constants. */
  75158. var INFINITY = 1 / 0;
  75159. /** Used to convert symbols to primitives and strings. */
  75160. var symbolProto = Symbol ? Symbol.prototype : undefined,
  75161. symbolToString = symbolProto ? symbolProto.toString : undefined;
  75162. /**
  75163. * The base implementation of `_.toString` which doesn't convert nullish
  75164. * values to empty strings.
  75165. *
  75166. * @private
  75167. * @param {*} value The value to process.
  75168. * @returns {string} Returns the string.
  75169. */
  75170. function baseToString(value) {
  75171. // Exit early for strings to avoid a performance hit in some environments.
  75172. if (typeof value == 'string') {
  75173. return value;
  75174. }
  75175. if (isArray(value)) {
  75176. // Recursively convert values (susceptible to call stack limits).
  75177. return arrayMap(value, baseToString) + '';
  75178. }
  75179. if (isSymbol(value)) {
  75180. return symbolToString ? symbolToString.call(value) : '';
  75181. }
  75182. var result = (value + '');
  75183. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  75184. }
  75185. module.exports = baseToString;
  75186. /***/ }),
  75187. /***/ "./node_modules/lodash/_baseTrim.js":
  75188. /*!******************************************!*\
  75189. !*** ./node_modules/lodash/_baseTrim.js ***!
  75190. \******************************************/
  75191. /*! no static exports found */
  75192. /***/ (function(module, exports, __webpack_require__) {
  75193. var trimmedEndIndex = __webpack_require__(/*! ./_trimmedEndIndex */ "./node_modules/lodash/_trimmedEndIndex.js");
  75194. /** Used to match leading whitespace. */
  75195. var reTrimStart = /^\s+/;
  75196. /**
  75197. * The base implementation of `_.trim`.
  75198. *
  75199. * @private
  75200. * @param {string} string The string to trim.
  75201. * @returns {string} Returns the trimmed string.
  75202. */
  75203. function baseTrim(string) {
  75204. return string
  75205. ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
  75206. : string;
  75207. }
  75208. module.exports = baseTrim;
  75209. /***/ }),
  75210. /***/ "./node_modules/lodash/_baseUnary.js":
  75211. /*!*******************************************!*\
  75212. !*** ./node_modules/lodash/_baseUnary.js ***!
  75213. \*******************************************/
  75214. /*! no static exports found */
  75215. /***/ (function(module, exports) {
  75216. /**
  75217. * The base implementation of `_.unary` without support for storing metadata.
  75218. *
  75219. * @private
  75220. * @param {Function} func The function to cap arguments for.
  75221. * @returns {Function} Returns the new capped function.
  75222. */
  75223. function baseUnary(func) {
  75224. return function(value) {
  75225. return func(value);
  75226. };
  75227. }
  75228. module.exports = baseUnary;
  75229. /***/ }),
  75230. /***/ "./node_modules/lodash/_baseUniq.js":
  75231. /*!******************************************!*\
  75232. !*** ./node_modules/lodash/_baseUniq.js ***!
  75233. \******************************************/
  75234. /*! no static exports found */
  75235. /***/ (function(module, exports, __webpack_require__) {
  75236. var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
  75237. arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "./node_modules/lodash/_arrayIncludes.js"),
  75238. arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "./node_modules/lodash/_arrayIncludesWith.js"),
  75239. cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js"),
  75240. createSet = __webpack_require__(/*! ./_createSet */ "./node_modules/lodash/_createSet.js"),
  75241. setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
  75242. /** Used as the size to enable large array optimizations. */
  75243. var LARGE_ARRAY_SIZE = 200;
  75244. /**
  75245. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  75246. *
  75247. * @private
  75248. * @param {Array} array The array to inspect.
  75249. * @param {Function} [iteratee] The iteratee invoked per element.
  75250. * @param {Function} [comparator] The comparator invoked per element.
  75251. * @returns {Array} Returns the new duplicate free array.
  75252. */
  75253. function baseUniq(array, iteratee, comparator) {
  75254. var index = -1,
  75255. includes = arrayIncludes,
  75256. length = array.length,
  75257. isCommon = true,
  75258. result = [],
  75259. seen = result;
  75260. if (comparator) {
  75261. isCommon = false;
  75262. includes = arrayIncludesWith;
  75263. }
  75264. else if (length >= LARGE_ARRAY_SIZE) {
  75265. var set = iteratee ? null : createSet(array);
  75266. if (set) {
  75267. return setToArray(set);
  75268. }
  75269. isCommon = false;
  75270. includes = cacheHas;
  75271. seen = new SetCache;
  75272. }
  75273. else {
  75274. seen = iteratee ? [] : result;
  75275. }
  75276. outer:
  75277. while (++index < length) {
  75278. var value = array[index],
  75279. computed = iteratee ? iteratee(value) : value;
  75280. value = (comparator || value !== 0) ? value : 0;
  75281. if (isCommon && computed === computed) {
  75282. var seenIndex = seen.length;
  75283. while (seenIndex--) {
  75284. if (seen[seenIndex] === computed) {
  75285. continue outer;
  75286. }
  75287. }
  75288. if (iteratee) {
  75289. seen.push(computed);
  75290. }
  75291. result.push(value);
  75292. }
  75293. else if (!includes(seen, computed, comparator)) {
  75294. if (seen !== result) {
  75295. seen.push(computed);
  75296. }
  75297. result.push(value);
  75298. }
  75299. }
  75300. return result;
  75301. }
  75302. module.exports = baseUniq;
  75303. /***/ }),
  75304. /***/ "./node_modules/lodash/_baseUnset.js":
  75305. /*!*******************************************!*\
  75306. !*** ./node_modules/lodash/_baseUnset.js ***!
  75307. \*******************************************/
  75308. /*! no static exports found */
  75309. /***/ (function(module, exports, __webpack_require__) {
  75310. var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
  75311. last = __webpack_require__(/*! ./last */ "./node_modules/lodash/last.js"),
  75312. parent = __webpack_require__(/*! ./_parent */ "./node_modules/lodash/_parent.js"),
  75313. toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
  75314. /**
  75315. * The base implementation of `_.unset`.
  75316. *
  75317. * @private
  75318. * @param {Object} object The object to modify.
  75319. * @param {Array|string} path The property path to unset.
  75320. * @returns {boolean} Returns `true` if the property is deleted, else `false`.
  75321. */
  75322. function baseUnset(object, path) {
  75323. path = castPath(path, object);
  75324. object = parent(object, path);
  75325. return object == null || delete object[toKey(last(path))];
  75326. }
  75327. module.exports = baseUnset;
  75328. /***/ }),
  75329. /***/ "./node_modules/lodash/_cacheHas.js":
  75330. /*!******************************************!*\
  75331. !*** ./node_modules/lodash/_cacheHas.js ***!
  75332. \******************************************/
  75333. /*! no static exports found */
  75334. /***/ (function(module, exports) {
  75335. /**
  75336. * Checks if a `cache` value for `key` exists.
  75337. *
  75338. * @private
  75339. * @param {Object} cache The cache to query.
  75340. * @param {string} key The key of the entry to check.
  75341. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  75342. */
  75343. function cacheHas(cache, key) {
  75344. return cache.has(key);
  75345. }
  75346. module.exports = cacheHas;
  75347. /***/ }),
  75348. /***/ "./node_modules/lodash/_castPath.js":
  75349. /*!******************************************!*\
  75350. !*** ./node_modules/lodash/_castPath.js ***!
  75351. \******************************************/
  75352. /*! no static exports found */
  75353. /***/ (function(module, exports, __webpack_require__) {
  75354. var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  75355. isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
  75356. stringToPath = __webpack_require__(/*! ./_stringToPath */ "./node_modules/lodash/_stringToPath.js"),
  75357. toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
  75358. /**
  75359. * Casts `value` to a path array if it's not one.
  75360. *
  75361. * @private
  75362. * @param {*} value The value to inspect.
  75363. * @param {Object} [object] The object to query keys on.
  75364. * @returns {Array} Returns the cast property path array.
  75365. */
  75366. function castPath(value, object) {
  75367. if (isArray(value)) {
  75368. return value;
  75369. }
  75370. return isKey(value, object) ? [value] : stringToPath(toString(value));
  75371. }
  75372. module.exports = castPath;
  75373. /***/ }),
  75374. /***/ "./node_modules/lodash/_castSlice.js":
  75375. /*!*******************************************!*\
  75376. !*** ./node_modules/lodash/_castSlice.js ***!
  75377. \*******************************************/
  75378. /*! no static exports found */
  75379. /***/ (function(module, exports, __webpack_require__) {
  75380. var baseSlice = __webpack_require__(/*! ./_baseSlice */ "./node_modules/lodash/_baseSlice.js");
  75381. /**
  75382. * Casts `array` to a slice if it's needed.
  75383. *
  75384. * @private
  75385. * @param {Array} array The array to inspect.
  75386. * @param {number} start The start position.
  75387. * @param {number} [end=array.length] The end position.
  75388. * @returns {Array} Returns the cast slice.
  75389. */
  75390. function castSlice(array, start, end) {
  75391. var length = array.length;
  75392. end = end === undefined ? length : end;
  75393. return (!start && end >= length) ? array : baseSlice(array, start, end);
  75394. }
  75395. module.exports = castSlice;
  75396. /***/ }),
  75397. /***/ "./node_modules/lodash/_cloneArrayBuffer.js":
  75398. /*!**************************************************!*\
  75399. !*** ./node_modules/lodash/_cloneArrayBuffer.js ***!
  75400. \**************************************************/
  75401. /*! no static exports found */
  75402. /***/ (function(module, exports, __webpack_require__) {
  75403. var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js");
  75404. /**
  75405. * Creates a clone of `arrayBuffer`.
  75406. *
  75407. * @private
  75408. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  75409. * @returns {ArrayBuffer} Returns the cloned array buffer.
  75410. */
  75411. function cloneArrayBuffer(arrayBuffer) {
  75412. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  75413. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  75414. return result;
  75415. }
  75416. module.exports = cloneArrayBuffer;
  75417. /***/ }),
  75418. /***/ "./node_modules/lodash/_cloneBuffer.js":
  75419. /*!*********************************************!*\
  75420. !*** ./node_modules/lodash/_cloneBuffer.js ***!
  75421. \*********************************************/
  75422. /*! no static exports found */
  75423. /***/ (function(module, exports, __webpack_require__) {
  75424. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  75425. /** Detect free variable `exports`. */
  75426. var freeExports = true && exports && !exports.nodeType && exports;
  75427. /** Detect free variable `module`. */
  75428. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  75429. /** Detect the popular CommonJS extension `module.exports`. */
  75430. var moduleExports = freeModule && freeModule.exports === freeExports;
  75431. /** Built-in value references. */
  75432. var Buffer = moduleExports ? root.Buffer : undefined,
  75433. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
  75434. /**
  75435. * Creates a clone of `buffer`.
  75436. *
  75437. * @private
  75438. * @param {Buffer} buffer The buffer to clone.
  75439. * @param {boolean} [isDeep] Specify a deep clone.
  75440. * @returns {Buffer} Returns the cloned buffer.
  75441. */
  75442. function cloneBuffer(buffer, isDeep) {
  75443. if (isDeep) {
  75444. return buffer.slice();
  75445. }
  75446. var length = buffer.length,
  75447. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  75448. buffer.copy(result);
  75449. return result;
  75450. }
  75451. module.exports = cloneBuffer;
  75452. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  75453. /***/ }),
  75454. /***/ "./node_modules/lodash/_cloneDataView.js":
  75455. /*!***********************************************!*\
  75456. !*** ./node_modules/lodash/_cloneDataView.js ***!
  75457. \***********************************************/
  75458. /*! no static exports found */
  75459. /***/ (function(module, exports, __webpack_require__) {
  75460. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");
  75461. /**
  75462. * Creates a clone of `dataView`.
  75463. *
  75464. * @private
  75465. * @param {Object} dataView The data view to clone.
  75466. * @param {boolean} [isDeep] Specify a deep clone.
  75467. * @returns {Object} Returns the cloned data view.
  75468. */
  75469. function cloneDataView(dataView, isDeep) {
  75470. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  75471. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  75472. }
  75473. module.exports = cloneDataView;
  75474. /***/ }),
  75475. /***/ "./node_modules/lodash/_cloneRegExp.js":
  75476. /*!*********************************************!*\
  75477. !*** ./node_modules/lodash/_cloneRegExp.js ***!
  75478. \*********************************************/
  75479. /*! no static exports found */
  75480. /***/ (function(module, exports) {
  75481. /** Used to match `RegExp` flags from their coerced string values. */
  75482. var reFlags = /\w*$/;
  75483. /**
  75484. * Creates a clone of `regexp`.
  75485. *
  75486. * @private
  75487. * @param {Object} regexp The regexp to clone.
  75488. * @returns {Object} Returns the cloned regexp.
  75489. */
  75490. function cloneRegExp(regexp) {
  75491. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  75492. result.lastIndex = regexp.lastIndex;
  75493. return result;
  75494. }
  75495. module.exports = cloneRegExp;
  75496. /***/ }),
  75497. /***/ "./node_modules/lodash/_cloneSymbol.js":
  75498. /*!*********************************************!*\
  75499. !*** ./node_modules/lodash/_cloneSymbol.js ***!
  75500. \*********************************************/
  75501. /*! no static exports found */
  75502. /***/ (function(module, exports, __webpack_require__) {
  75503. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
  75504. /** Used to convert symbols to primitives and strings. */
  75505. var symbolProto = Symbol ? Symbol.prototype : undefined,
  75506. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  75507. /**
  75508. * Creates a clone of the `symbol` object.
  75509. *
  75510. * @private
  75511. * @param {Object} symbol The symbol object to clone.
  75512. * @returns {Object} Returns the cloned symbol object.
  75513. */
  75514. function cloneSymbol(symbol) {
  75515. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  75516. }
  75517. module.exports = cloneSymbol;
  75518. /***/ }),
  75519. /***/ "./node_modules/lodash/_cloneTypedArray.js":
  75520. /*!*************************************************!*\
  75521. !*** ./node_modules/lodash/_cloneTypedArray.js ***!
  75522. \*************************************************/
  75523. /*! no static exports found */
  75524. /***/ (function(module, exports, __webpack_require__) {
  75525. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");
  75526. /**
  75527. * Creates a clone of `typedArray`.
  75528. *
  75529. * @private
  75530. * @param {Object} typedArray The typed array to clone.
  75531. * @param {boolean} [isDeep] Specify a deep clone.
  75532. * @returns {Object} Returns the cloned typed array.
  75533. */
  75534. function cloneTypedArray(typedArray, isDeep) {
  75535. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  75536. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  75537. }
  75538. module.exports = cloneTypedArray;
  75539. /***/ }),
  75540. /***/ "./node_modules/lodash/_copyArray.js":
  75541. /*!*******************************************!*\
  75542. !*** ./node_modules/lodash/_copyArray.js ***!
  75543. \*******************************************/
  75544. /*! no static exports found */
  75545. /***/ (function(module, exports) {
  75546. /**
  75547. * Copies the values of `source` to `array`.
  75548. *
  75549. * @private
  75550. * @param {Array} source The array to copy values from.
  75551. * @param {Array} [array=[]] The array to copy values to.
  75552. * @returns {Array} Returns `array`.
  75553. */
  75554. function copyArray(source, array) {
  75555. var index = -1,
  75556. length = source.length;
  75557. array || (array = Array(length));
  75558. while (++index < length) {
  75559. array[index] = source[index];
  75560. }
  75561. return array;
  75562. }
  75563. module.exports = copyArray;
  75564. /***/ }),
  75565. /***/ "./node_modules/lodash/_copyObject.js":
  75566. /*!********************************************!*\
  75567. !*** ./node_modules/lodash/_copyObject.js ***!
  75568. \********************************************/
  75569. /*! no static exports found */
  75570. /***/ (function(module, exports, __webpack_require__) {
  75571. var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
  75572. baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js");
  75573. /**
  75574. * Copies properties of `source` to `object`.
  75575. *
  75576. * @private
  75577. * @param {Object} source The object to copy properties from.
  75578. * @param {Array} props The property identifiers to copy.
  75579. * @param {Object} [object={}] The object to copy properties to.
  75580. * @param {Function} [customizer] The function to customize copied values.
  75581. * @returns {Object} Returns `object`.
  75582. */
  75583. function copyObject(source, props, object, customizer) {
  75584. var isNew = !object;
  75585. object || (object = {});
  75586. var index = -1,
  75587. length = props.length;
  75588. while (++index < length) {
  75589. var key = props[index];
  75590. var newValue = customizer
  75591. ? customizer(object[key], source[key], key, object, source)
  75592. : undefined;
  75593. if (newValue === undefined) {
  75594. newValue = source[key];
  75595. }
  75596. if (isNew) {
  75597. baseAssignValue(object, key, newValue);
  75598. } else {
  75599. assignValue(object, key, newValue);
  75600. }
  75601. }
  75602. return object;
  75603. }
  75604. module.exports = copyObject;
  75605. /***/ }),
  75606. /***/ "./node_modules/lodash/_copySymbols.js":
  75607. /*!*********************************************!*\
  75608. !*** ./node_modules/lodash/_copySymbols.js ***!
  75609. \*********************************************/
  75610. /*! no static exports found */
  75611. /***/ (function(module, exports, __webpack_require__) {
  75612. var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
  75613. getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js");
  75614. /**
  75615. * Copies own symbols of `source` to `object`.
  75616. *
  75617. * @private
  75618. * @param {Object} source The object to copy symbols from.
  75619. * @param {Object} [object={}] The object to copy symbols to.
  75620. * @returns {Object} Returns `object`.
  75621. */
  75622. function copySymbols(source, object) {
  75623. return copyObject(source, getSymbols(source), object);
  75624. }
  75625. module.exports = copySymbols;
  75626. /***/ }),
  75627. /***/ "./node_modules/lodash/_copySymbolsIn.js":
  75628. /*!***********************************************!*\
  75629. !*** ./node_modules/lodash/_copySymbolsIn.js ***!
  75630. \***********************************************/
  75631. /*! no static exports found */
  75632. /***/ (function(module, exports, __webpack_require__) {
  75633. var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
  75634. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js");
  75635. /**
  75636. * Copies own and inherited symbols of `source` to `object`.
  75637. *
  75638. * @private
  75639. * @param {Object} source The object to copy symbols from.
  75640. * @param {Object} [object={}] The object to copy symbols to.
  75641. * @returns {Object} Returns `object`.
  75642. */
  75643. function copySymbolsIn(source, object) {
  75644. return copyObject(source, getSymbolsIn(source), object);
  75645. }
  75646. module.exports = copySymbolsIn;
  75647. /***/ }),
  75648. /***/ "./node_modules/lodash/_coreJsData.js":
  75649. /*!********************************************!*\
  75650. !*** ./node_modules/lodash/_coreJsData.js ***!
  75651. \********************************************/
  75652. /*! no static exports found */
  75653. /***/ (function(module, exports, __webpack_require__) {
  75654. var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  75655. /** Used to detect overreaching core-js shims. */
  75656. var coreJsData = root['__core-js_shared__'];
  75657. module.exports = coreJsData;
  75658. /***/ }),
  75659. /***/ "./node_modules/lodash/_createAggregator.js":
  75660. /*!**************************************************!*\
  75661. !*** ./node_modules/lodash/_createAggregator.js ***!
  75662. \**************************************************/
  75663. /*! no static exports found */
  75664. /***/ (function(module, exports, __webpack_require__) {
  75665. var arrayAggregator = __webpack_require__(/*! ./_arrayAggregator */ "./node_modules/lodash/_arrayAggregator.js"),
  75666. baseAggregator = __webpack_require__(/*! ./_baseAggregator */ "./node_modules/lodash/_baseAggregator.js"),
  75667. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
  75668. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
  75669. /**
  75670. * Creates a function like `_.groupBy`.
  75671. *
  75672. * @private
  75673. * @param {Function} setter The function to set accumulator values.
  75674. * @param {Function} [initializer] The accumulator object initializer.
  75675. * @returns {Function} Returns the new aggregator function.
  75676. */
  75677. function createAggregator(setter, initializer) {
  75678. return function(collection, iteratee) {
  75679. var func = isArray(collection) ? arrayAggregator : baseAggregator,
  75680. accumulator = initializer ? initializer() : {};
  75681. return func(collection, setter, baseIteratee(iteratee, 2), accumulator);
  75682. };
  75683. }
  75684. module.exports = createAggregator;
  75685. /***/ }),
  75686. /***/ "./node_modules/lodash/_createAssigner.js":
  75687. /*!************************************************!*\
  75688. !*** ./node_modules/lodash/_createAssigner.js ***!
  75689. \************************************************/
  75690. /*! no static exports found */
  75691. /***/ (function(module, exports, __webpack_require__) {
  75692. var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
  75693. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");
  75694. /**
  75695. * Creates a function like `_.assign`.
  75696. *
  75697. * @private
  75698. * @param {Function} assigner The function to assign values.
  75699. * @returns {Function} Returns the new assigner function.
  75700. */
  75701. function createAssigner(assigner) {
  75702. return baseRest(function(object, sources) {
  75703. var index = -1,
  75704. length = sources.length,
  75705. customizer = length > 1 ? sources[length - 1] : undefined,
  75706. guard = length > 2 ? sources[2] : undefined;
  75707. customizer = (assigner.length > 3 && typeof customizer == 'function')
  75708. ? (length--, customizer)
  75709. : undefined;
  75710. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  75711. customizer = length < 3 ? undefined : customizer;
  75712. length = 1;
  75713. }
  75714. object = Object(object);
  75715. while (++index < length) {
  75716. var source = sources[index];
  75717. if (source) {
  75718. assigner(object, source, index, customizer);
  75719. }
  75720. }
  75721. return object;
  75722. });
  75723. }
  75724. module.exports = createAssigner;
  75725. /***/ }),
  75726. /***/ "./node_modules/lodash/_createBaseEach.js":
  75727. /*!************************************************!*\
  75728. !*** ./node_modules/lodash/_createBaseEach.js ***!
  75729. \************************************************/
  75730. /*! no static exports found */
  75731. /***/ (function(module, exports, __webpack_require__) {
  75732. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
  75733. /**
  75734. * Creates a `baseEach` or `baseEachRight` function.
  75735. *
  75736. * @private
  75737. * @param {Function} eachFunc The function to iterate over a collection.
  75738. * @param {boolean} [fromRight] Specify iterating from right to left.
  75739. * @returns {Function} Returns the new base function.
  75740. */
  75741. function createBaseEach(eachFunc, fromRight) {
  75742. return function(collection, iteratee) {
  75743. if (collection == null) {
  75744. return collection;
  75745. }
  75746. if (!isArrayLike(collection)) {
  75747. return eachFunc(collection, iteratee);
  75748. }
  75749. var length = collection.length,
  75750. index = fromRight ? length : -1,
  75751. iterable = Object(collection);
  75752. while ((fromRight ? index-- : ++index < length)) {
  75753. if (iteratee(iterable[index], index, iterable) === false) {
  75754. break;
  75755. }
  75756. }
  75757. return collection;
  75758. };
  75759. }
  75760. module.exports = createBaseEach;
  75761. /***/ }),
  75762. /***/ "./node_modules/lodash/_createBaseFor.js":
  75763. /*!***********************************************!*\
  75764. !*** ./node_modules/lodash/_createBaseFor.js ***!
  75765. \***********************************************/
  75766. /*! no static exports found */
  75767. /***/ (function(module, exports) {
  75768. /**
  75769. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  75770. *
  75771. * @private
  75772. * @param {boolean} [fromRight] Specify iterating from right to left.
  75773. * @returns {Function} Returns the new base function.
  75774. */
  75775. function createBaseFor(fromRight) {
  75776. return function(object, iteratee, keysFunc) {
  75777. var index = -1,
  75778. iterable = Object(object),
  75779. props = keysFunc(object),
  75780. length = props.length;
  75781. while (length--) {
  75782. var key = props[fromRight ? length : ++index];
  75783. if (iteratee(iterable[key], key, iterable) === false) {
  75784. break;
  75785. }
  75786. }
  75787. return object;
  75788. };
  75789. }
  75790. module.exports = createBaseFor;
  75791. /***/ }),
  75792. /***/ "./node_modules/lodash/_createFind.js":
  75793. /*!********************************************!*\
  75794. !*** ./node_modules/lodash/_createFind.js ***!
  75795. \********************************************/
  75796. /*! no static exports found */
  75797. /***/ (function(module, exports, __webpack_require__) {
  75798. var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
  75799. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
  75800. keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
  75801. /**
  75802. * Creates a `_.find` or `_.findLast` function.
  75803. *
  75804. * @private
  75805. * @param {Function} findIndexFunc The function to find the collection index.
  75806. * @returns {Function} Returns the new find function.
  75807. */
  75808. function createFind(findIndexFunc) {
  75809. return function(collection, predicate, fromIndex) {
  75810. var iterable = Object(collection);
  75811. if (!isArrayLike(collection)) {
  75812. var iteratee = baseIteratee(predicate, 3);
  75813. collection = keys(collection);
  75814. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  75815. }
  75816. var index = findIndexFunc(collection, predicate, fromIndex);
  75817. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  75818. };
  75819. }
  75820. module.exports = createFind;
  75821. /***/ }),
  75822. /***/ "./node_modules/lodash/_createPadding.js":
  75823. /*!***********************************************!*\
  75824. !*** ./node_modules/lodash/_createPadding.js ***!
  75825. \***********************************************/
  75826. /*! no static exports found */
  75827. /***/ (function(module, exports, __webpack_require__) {
  75828. var baseRepeat = __webpack_require__(/*! ./_baseRepeat */ "./node_modules/lodash/_baseRepeat.js"),
  75829. baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js"),
  75830. castSlice = __webpack_require__(/*! ./_castSlice */ "./node_modules/lodash/_castSlice.js"),
  75831. hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "./node_modules/lodash/_hasUnicode.js"),
  75832. stringSize = __webpack_require__(/*! ./_stringSize */ "./node_modules/lodash/_stringSize.js"),
  75833. stringToArray = __webpack_require__(/*! ./_stringToArray */ "./node_modules/lodash/_stringToArray.js");
  75834. /* Built-in method references for those with the same name as other `lodash` methods. */
  75835. var nativeCeil = Math.ceil;
  75836. /**
  75837. * Creates the padding for `string` based on `length`. The `chars` string
  75838. * is truncated if the number of characters exceeds `length`.
  75839. *
  75840. * @private
  75841. * @param {number} length The padding length.
  75842. * @param {string} [chars=' '] The string used as padding.
  75843. * @returns {string} Returns the padding for `string`.
  75844. */
  75845. function createPadding(length, chars) {
  75846. chars = chars === undefined ? ' ' : baseToString(chars);
  75847. var charsLength = chars.length;
  75848. if (charsLength < 2) {
  75849. return charsLength ? baseRepeat(chars, length) : chars;
  75850. }
  75851. var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
  75852. return hasUnicode(chars)
  75853. ? castSlice(stringToArray(result), 0, length).join('')
  75854. : result.slice(0, length);
  75855. }
  75856. module.exports = createPadding;
  75857. /***/ }),
  75858. /***/ "./node_modules/lodash/_createSet.js":
  75859. /*!*******************************************!*\
  75860. !*** ./node_modules/lodash/_createSet.js ***!
  75861. \*******************************************/
  75862. /*! no static exports found */
  75863. /***/ (function(module, exports, __webpack_require__) {
  75864. var Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
  75865. noop = __webpack_require__(/*! ./noop */ "./node_modules/lodash/noop.js"),
  75866. setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
  75867. /** Used as references for various `Number` constants. */
  75868. var INFINITY = 1 / 0;
  75869. /**
  75870. * Creates a set object of `values`.
  75871. *
  75872. * @private
  75873. * @param {Array} values The values to add to the set.
  75874. * @returns {Object} Returns the new set.
  75875. */
  75876. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  75877. return new Set(values);
  75878. };
  75879. module.exports = createSet;
  75880. /***/ }),
  75881. /***/ "./node_modules/lodash/_customOmitClone.js":
  75882. /*!*************************************************!*\
  75883. !*** ./node_modules/lodash/_customOmitClone.js ***!
  75884. \*************************************************/
  75885. /*! no static exports found */
  75886. /***/ (function(module, exports, __webpack_require__) {
  75887. var isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js");
  75888. /**
  75889. * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
  75890. * objects.
  75891. *
  75892. * @private
  75893. * @param {*} value The value to inspect.
  75894. * @param {string} key The key of the property to inspect.
  75895. * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
  75896. */
  75897. function customOmitClone(value) {
  75898. return isPlainObject(value) ? undefined : value;
  75899. }
  75900. module.exports = customOmitClone;
  75901. /***/ }),
  75902. /***/ "./node_modules/lodash/_defineProperty.js":
  75903. /*!************************************************!*\
  75904. !*** ./node_modules/lodash/_defineProperty.js ***!
  75905. \************************************************/
  75906. /*! no static exports found */
  75907. /***/ (function(module, exports, __webpack_require__) {
  75908. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");
  75909. var defineProperty = (function() {
  75910. try {
  75911. var func = getNative(Object, 'defineProperty');
  75912. func({}, '', {});
  75913. return func;
  75914. } catch (e) {}
  75915. }());
  75916. module.exports = defineProperty;
  75917. /***/ }),
  75918. /***/ "./node_modules/lodash/_equalArrays.js":
  75919. /*!*********************************************!*\
  75920. !*** ./node_modules/lodash/_equalArrays.js ***!
  75921. \*********************************************/
  75922. /*! no static exports found */
  75923. /***/ (function(module, exports, __webpack_require__) {
  75924. var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
  75925. arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"),
  75926. cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js");
  75927. /** Used to compose bitmasks for value comparisons. */
  75928. var COMPARE_PARTIAL_FLAG = 1,
  75929. COMPARE_UNORDERED_FLAG = 2;
  75930. /**
  75931. * A specialized version of `baseIsEqualDeep` for arrays with support for
  75932. * partial deep comparisons.
  75933. *
  75934. * @private
  75935. * @param {Array} array The array to compare.
  75936. * @param {Array} other The other array to compare.
  75937. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  75938. * @param {Function} customizer The function to customize comparisons.
  75939. * @param {Function} equalFunc The function to determine equivalents of values.
  75940. * @param {Object} stack Tracks traversed `array` and `other` objects.
  75941. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  75942. */
  75943. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  75944. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  75945. arrLength = array.length,
  75946. othLength = other.length;
  75947. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  75948. return false;
  75949. }
  75950. // Check that cyclic values are equal.
  75951. var arrStacked = stack.get(array);
  75952. var othStacked = stack.get(other);
  75953. if (arrStacked && othStacked) {
  75954. return arrStacked == other && othStacked == array;
  75955. }
  75956. var index = -1,
  75957. result = true,
  75958. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  75959. stack.set(array, other);
  75960. stack.set(other, array);
  75961. // Ignore non-index properties.
  75962. while (++index < arrLength) {
  75963. var arrValue = array[index],
  75964. othValue = other[index];
  75965. if (customizer) {
  75966. var compared = isPartial
  75967. ? customizer(othValue, arrValue, index, other, array, stack)
  75968. : customizer(arrValue, othValue, index, array, other, stack);
  75969. }
  75970. if (compared !== undefined) {
  75971. if (compared) {
  75972. continue;
  75973. }
  75974. result = false;
  75975. break;
  75976. }
  75977. // Recursively compare arrays (susceptible to call stack limits).
  75978. if (seen) {
  75979. if (!arraySome(other, function(othValue, othIndex) {
  75980. if (!cacheHas(seen, othIndex) &&
  75981. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  75982. return seen.push(othIndex);
  75983. }
  75984. })) {
  75985. result = false;
  75986. break;
  75987. }
  75988. } else if (!(
  75989. arrValue === othValue ||
  75990. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  75991. )) {
  75992. result = false;
  75993. break;
  75994. }
  75995. }
  75996. stack['delete'](array);
  75997. stack['delete'](other);
  75998. return result;
  75999. }
  76000. module.exports = equalArrays;
  76001. /***/ }),
  76002. /***/ "./node_modules/lodash/_equalByTag.js":
  76003. /*!********************************************!*\
  76004. !*** ./node_modules/lodash/_equalByTag.js ***!
  76005. \********************************************/
  76006. /*! no static exports found */
  76007. /***/ (function(module, exports, __webpack_require__) {
  76008. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
  76009. Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js"),
  76010. eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
  76011. equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
  76012. mapToArray = __webpack_require__(/*! ./_mapToArray */ "./node_modules/lodash/_mapToArray.js"),
  76013. setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
  76014. /** Used to compose bitmasks for value comparisons. */
  76015. var COMPARE_PARTIAL_FLAG = 1,
  76016. COMPARE_UNORDERED_FLAG = 2;
  76017. /** `Object#toString` result references. */
  76018. var boolTag = '[object Boolean]',
  76019. dateTag = '[object Date]',
  76020. errorTag = '[object Error]',
  76021. mapTag = '[object Map]',
  76022. numberTag = '[object Number]',
  76023. regexpTag = '[object RegExp]',
  76024. setTag = '[object Set]',
  76025. stringTag = '[object String]',
  76026. symbolTag = '[object Symbol]';
  76027. var arrayBufferTag = '[object ArrayBuffer]',
  76028. dataViewTag = '[object DataView]';
  76029. /** Used to convert symbols to primitives and strings. */
  76030. var symbolProto = Symbol ? Symbol.prototype : undefined,
  76031. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  76032. /**
  76033. * A specialized version of `baseIsEqualDeep` for comparing objects of
  76034. * the same `toStringTag`.
  76035. *
  76036. * **Note:** This function only supports comparing values with tags of
  76037. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  76038. *
  76039. * @private
  76040. * @param {Object} object The object to compare.
  76041. * @param {Object} other The other object to compare.
  76042. * @param {string} tag The `toStringTag` of the objects to compare.
  76043. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  76044. * @param {Function} customizer The function to customize comparisons.
  76045. * @param {Function} equalFunc The function to determine equivalents of values.
  76046. * @param {Object} stack Tracks traversed `object` and `other` objects.
  76047. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  76048. */
  76049. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  76050. switch (tag) {
  76051. case dataViewTag:
  76052. if ((object.byteLength != other.byteLength) ||
  76053. (object.byteOffset != other.byteOffset)) {
  76054. return false;
  76055. }
  76056. object = object.buffer;
  76057. other = other.buffer;
  76058. case arrayBufferTag:
  76059. if ((object.byteLength != other.byteLength) ||
  76060. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  76061. return false;
  76062. }
  76063. return true;
  76064. case boolTag:
  76065. case dateTag:
  76066. case numberTag:
  76067. // Coerce booleans to `1` or `0` and dates to milliseconds.
  76068. // Invalid dates are coerced to `NaN`.
  76069. return eq(+object, +other);
  76070. case errorTag:
  76071. return object.name == other.name && object.message == other.message;
  76072. case regexpTag:
  76073. case stringTag:
  76074. // Coerce regexes to strings and treat strings, primitives and objects,
  76075. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  76076. // for more details.
  76077. return object == (other + '');
  76078. case mapTag:
  76079. var convert = mapToArray;
  76080. case setTag:
  76081. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  76082. convert || (convert = setToArray);
  76083. if (object.size != other.size && !isPartial) {
  76084. return false;
  76085. }
  76086. // Assume cyclic values are equal.
  76087. var stacked = stack.get(object);
  76088. if (stacked) {
  76089. return stacked == other;
  76090. }
  76091. bitmask |= COMPARE_UNORDERED_FLAG;
  76092. // Recursively compare objects (susceptible to call stack limits).
  76093. stack.set(object, other);
  76094. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  76095. stack['delete'](object);
  76096. return result;
  76097. case symbolTag:
  76098. if (symbolValueOf) {
  76099. return symbolValueOf.call(object) == symbolValueOf.call(other);
  76100. }
  76101. }
  76102. return false;
  76103. }
  76104. module.exports = equalByTag;
  76105. /***/ }),
  76106. /***/ "./node_modules/lodash/_equalObjects.js":
  76107. /*!**********************************************!*\
  76108. !*** ./node_modules/lodash/_equalObjects.js ***!
  76109. \**********************************************/
  76110. /*! no static exports found */
  76111. /***/ (function(module, exports, __webpack_require__) {
  76112. var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js");
  76113. /** Used to compose bitmasks for value comparisons. */
  76114. var COMPARE_PARTIAL_FLAG = 1;
  76115. /** Used for built-in method references. */
  76116. var objectProto = Object.prototype;
  76117. /** Used to check objects for own properties. */
  76118. var hasOwnProperty = objectProto.hasOwnProperty;
  76119. /**
  76120. * A specialized version of `baseIsEqualDeep` for objects with support for
  76121. * partial deep comparisons.
  76122. *
  76123. * @private
  76124. * @param {Object} object The object to compare.
  76125. * @param {Object} other The other object to compare.
  76126. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  76127. * @param {Function} customizer The function to customize comparisons.
  76128. * @param {Function} equalFunc The function to determine equivalents of values.
  76129. * @param {Object} stack Tracks traversed `object` and `other` objects.
  76130. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  76131. */
  76132. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  76133. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  76134. objProps = getAllKeys(object),
  76135. objLength = objProps.length,
  76136. othProps = getAllKeys(other),
  76137. othLength = othProps.length;
  76138. if (objLength != othLength && !isPartial) {
  76139. return false;
  76140. }
  76141. var index = objLength;
  76142. while (index--) {
  76143. var key = objProps[index];
  76144. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  76145. return false;
  76146. }
  76147. }
  76148. // Check that cyclic values are equal.
  76149. var objStacked = stack.get(object);
  76150. var othStacked = stack.get(other);
  76151. if (objStacked && othStacked) {
  76152. return objStacked == other && othStacked == object;
  76153. }
  76154. var result = true;
  76155. stack.set(object, other);
  76156. stack.set(other, object);
  76157. var skipCtor = isPartial;
  76158. while (++index < objLength) {
  76159. key = objProps[index];
  76160. var objValue = object[key],
  76161. othValue = other[key];
  76162. if (customizer) {
  76163. var compared = isPartial
  76164. ? customizer(othValue, objValue, key, other, object, stack)
  76165. : customizer(objValue, othValue, key, object, other, stack);
  76166. }
  76167. // Recursively compare objects (susceptible to call stack limits).
  76168. if (!(compared === undefined
  76169. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  76170. : compared
  76171. )) {
  76172. result = false;
  76173. break;
  76174. }
  76175. skipCtor || (skipCtor = key == 'constructor');
  76176. }
  76177. if (result && !skipCtor) {
  76178. var objCtor = object.constructor,
  76179. othCtor = other.constructor;
  76180. // Non `Object` object instances with different constructors are not equal.
  76181. if (objCtor != othCtor &&
  76182. ('constructor' in object && 'constructor' in other) &&
  76183. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  76184. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  76185. result = false;
  76186. }
  76187. }
  76188. stack['delete'](object);
  76189. stack['delete'](other);
  76190. return result;
  76191. }
  76192. module.exports = equalObjects;
  76193. /***/ }),
  76194. /***/ "./node_modules/lodash/_flatRest.js":
  76195. /*!******************************************!*\
  76196. !*** ./node_modules/lodash/_flatRest.js ***!
  76197. \******************************************/
  76198. /*! no static exports found */
  76199. /***/ (function(module, exports, __webpack_require__) {
  76200. var flatten = __webpack_require__(/*! ./flatten */ "./node_modules/lodash/flatten.js"),
  76201. overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
  76202. setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");
  76203. /**
  76204. * A specialized version of `baseRest` which flattens the rest array.
  76205. *
  76206. * @private
  76207. * @param {Function} func The function to apply a rest parameter to.
  76208. * @returns {Function} Returns the new function.
  76209. */
  76210. function flatRest(func) {
  76211. return setToString(overRest(func, undefined, flatten), func + '');
  76212. }
  76213. module.exports = flatRest;
  76214. /***/ }),
  76215. /***/ "./node_modules/lodash/_freeGlobal.js":
  76216. /*!********************************************!*\
  76217. !*** ./node_modules/lodash/_freeGlobal.js ***!
  76218. \********************************************/
  76219. /*! no static exports found */
  76220. /***/ (function(module, exports, __webpack_require__) {
  76221. /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
  76222. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  76223. module.exports = freeGlobal;
  76224. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  76225. /***/ }),
  76226. /***/ "./node_modules/lodash/_getAllKeys.js":
  76227. /*!********************************************!*\
  76228. !*** ./node_modules/lodash/_getAllKeys.js ***!
  76229. \********************************************/
  76230. /*! no static exports found */
  76231. /***/ (function(module, exports, __webpack_require__) {
  76232. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
  76233. getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
  76234. keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
  76235. /**
  76236. * Creates an array of own enumerable property names and symbols of `object`.
  76237. *
  76238. * @private
  76239. * @param {Object} object The object to query.
  76240. * @returns {Array} Returns the array of property names and symbols.
  76241. */
  76242. function getAllKeys(object) {
  76243. return baseGetAllKeys(object, keys, getSymbols);
  76244. }
  76245. module.exports = getAllKeys;
  76246. /***/ }),
  76247. /***/ "./node_modules/lodash/_getAllKeysIn.js":
  76248. /*!**********************************************!*\
  76249. !*** ./node_modules/lodash/_getAllKeysIn.js ***!
  76250. \**********************************************/
  76251. /*! no static exports found */
  76252. /***/ (function(module, exports, __webpack_require__) {
  76253. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
  76254. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js"),
  76255. keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
  76256. /**
  76257. * Creates an array of own and inherited enumerable property names and
  76258. * symbols of `object`.
  76259. *
  76260. * @private
  76261. * @param {Object} object The object to query.
  76262. * @returns {Array} Returns the array of property names and symbols.
  76263. */
  76264. function getAllKeysIn(object) {
  76265. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  76266. }
  76267. module.exports = getAllKeysIn;
  76268. /***/ }),
  76269. /***/ "./node_modules/lodash/_getMapData.js":
  76270. /*!********************************************!*\
  76271. !*** ./node_modules/lodash/_getMapData.js ***!
  76272. \********************************************/
  76273. /*! no static exports found */
  76274. /***/ (function(module, exports, __webpack_require__) {
  76275. var isKeyable = __webpack_require__(/*! ./_isKeyable */ "./node_modules/lodash/_isKeyable.js");
  76276. /**
  76277. * Gets the data for `map`.
  76278. *
  76279. * @private
  76280. * @param {Object} map The map to query.
  76281. * @param {string} key The reference key.
  76282. * @returns {*} Returns the map data.
  76283. */
  76284. function getMapData(map, key) {
  76285. var data = map.__data__;
  76286. return isKeyable(key)
  76287. ? data[typeof key == 'string' ? 'string' : 'hash']
  76288. : data.map;
  76289. }
  76290. module.exports = getMapData;
  76291. /***/ }),
  76292. /***/ "./node_modules/lodash/_getMatchData.js":
  76293. /*!**********************************************!*\
  76294. !*** ./node_modules/lodash/_getMatchData.js ***!
  76295. \**********************************************/
  76296. /*! no static exports found */
  76297. /***/ (function(module, exports, __webpack_require__) {
  76298. var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
  76299. keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
  76300. /**
  76301. * Gets the property names, values, and compare flags of `object`.
  76302. *
  76303. * @private
  76304. * @param {Object} object The object to query.
  76305. * @returns {Array} Returns the match data of `object`.
  76306. */
  76307. function getMatchData(object) {
  76308. var result = keys(object),
  76309. length = result.length;
  76310. while (length--) {
  76311. var key = result[length],
  76312. value = object[key];
  76313. result[length] = [key, value, isStrictComparable(value)];
  76314. }
  76315. return result;
  76316. }
  76317. module.exports = getMatchData;
  76318. /***/ }),
  76319. /***/ "./node_modules/lodash/_getNative.js":
  76320. /*!*******************************************!*\
  76321. !*** ./node_modules/lodash/_getNative.js ***!
  76322. \*******************************************/
  76323. /*! no static exports found */
  76324. /***/ (function(module, exports, __webpack_require__) {
  76325. var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "./node_modules/lodash/_baseIsNative.js"),
  76326. getValue = __webpack_require__(/*! ./_getValue */ "./node_modules/lodash/_getValue.js");
  76327. /**
  76328. * Gets the native function at `key` of `object`.
  76329. *
  76330. * @private
  76331. * @param {Object} object The object to query.
  76332. * @param {string} key The key of the method to get.
  76333. * @returns {*} Returns the function if it's native, else `undefined`.
  76334. */
  76335. function getNative(object, key) {
  76336. var value = getValue(object, key);
  76337. return baseIsNative(value) ? value : undefined;
  76338. }
  76339. module.exports = getNative;
  76340. /***/ }),
  76341. /***/ "./node_modules/lodash/_getPrototype.js":
  76342. /*!**********************************************!*\
  76343. !*** ./node_modules/lodash/_getPrototype.js ***!
  76344. \**********************************************/
  76345. /*! no static exports found */
  76346. /***/ (function(module, exports, __webpack_require__) {
  76347. var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
  76348. /** Built-in value references. */
  76349. var getPrototype = overArg(Object.getPrototypeOf, Object);
  76350. module.exports = getPrototype;
  76351. /***/ }),
  76352. /***/ "./node_modules/lodash/_getRawTag.js":
  76353. /*!*******************************************!*\
  76354. !*** ./node_modules/lodash/_getRawTag.js ***!
  76355. \*******************************************/
  76356. /*! no static exports found */
  76357. /***/ (function(module, exports, __webpack_require__) {
  76358. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
  76359. /** Used for built-in method references. */
  76360. var objectProto = Object.prototype;
  76361. /** Used to check objects for own properties. */
  76362. var hasOwnProperty = objectProto.hasOwnProperty;
  76363. /**
  76364. * Used to resolve the
  76365. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  76366. * of values.
  76367. */
  76368. var nativeObjectToString = objectProto.toString;
  76369. /** Built-in value references. */
  76370. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  76371. /**
  76372. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  76373. *
  76374. * @private
  76375. * @param {*} value The value to query.
  76376. * @returns {string} Returns the raw `toStringTag`.
  76377. */
  76378. function getRawTag(value) {
  76379. var isOwn = hasOwnProperty.call(value, symToStringTag),
  76380. tag = value[symToStringTag];
  76381. try {
  76382. value[symToStringTag] = undefined;
  76383. var unmasked = true;
  76384. } catch (e) {}
  76385. var result = nativeObjectToString.call(value);
  76386. if (unmasked) {
  76387. if (isOwn) {
  76388. value[symToStringTag] = tag;
  76389. } else {
  76390. delete value[symToStringTag];
  76391. }
  76392. }
  76393. return result;
  76394. }
  76395. module.exports = getRawTag;
  76396. /***/ }),
  76397. /***/ "./node_modules/lodash/_getSymbols.js":
  76398. /*!********************************************!*\
  76399. !*** ./node_modules/lodash/_getSymbols.js ***!
  76400. \********************************************/
  76401. /*! no static exports found */
  76402. /***/ (function(module, exports, __webpack_require__) {
  76403. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"),
  76404. stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");
  76405. /** Used for built-in method references. */
  76406. var objectProto = Object.prototype;
  76407. /** Built-in value references. */
  76408. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  76409. /* Built-in method references for those with the same name as other `lodash` methods. */
  76410. var nativeGetSymbols = Object.getOwnPropertySymbols;
  76411. /**
  76412. * Creates an array of the own enumerable symbols of `object`.
  76413. *
  76414. * @private
  76415. * @param {Object} object The object to query.
  76416. * @returns {Array} Returns the array of symbols.
  76417. */
  76418. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  76419. if (object == null) {
  76420. return [];
  76421. }
  76422. object = Object(object);
  76423. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  76424. return propertyIsEnumerable.call(object, symbol);
  76425. });
  76426. };
  76427. module.exports = getSymbols;
  76428. /***/ }),
  76429. /***/ "./node_modules/lodash/_getSymbolsIn.js":
  76430. /*!**********************************************!*\
  76431. !*** ./node_modules/lodash/_getSymbolsIn.js ***!
  76432. \**********************************************/
  76433. /*! no static exports found */
  76434. /***/ (function(module, exports, __webpack_require__) {
  76435. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
  76436. getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
  76437. getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
  76438. stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");
  76439. /* Built-in method references for those with the same name as other `lodash` methods. */
  76440. var nativeGetSymbols = Object.getOwnPropertySymbols;
  76441. /**
  76442. * Creates an array of the own and inherited enumerable symbols of `object`.
  76443. *
  76444. * @private
  76445. * @param {Object} object The object to query.
  76446. * @returns {Array} Returns the array of symbols.
  76447. */
  76448. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  76449. var result = [];
  76450. while (object) {
  76451. arrayPush(result, getSymbols(object));
  76452. object = getPrototype(object);
  76453. }
  76454. return result;
  76455. };
  76456. module.exports = getSymbolsIn;
  76457. /***/ }),
  76458. /***/ "./node_modules/lodash/_getTag.js":
  76459. /*!****************************************!*\
  76460. !*** ./node_modules/lodash/_getTag.js ***!
  76461. \****************************************/
  76462. /*! no static exports found */
  76463. /***/ (function(module, exports, __webpack_require__) {
  76464. var DataView = __webpack_require__(/*! ./_DataView */ "./node_modules/lodash/_DataView.js"),
  76465. Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
  76466. Promise = __webpack_require__(/*! ./_Promise */ "./node_modules/lodash/_Promise.js"),
  76467. Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
  76468. WeakMap = __webpack_require__(/*! ./_WeakMap */ "./node_modules/lodash/_WeakMap.js"),
  76469. baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  76470. toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
  76471. /** `Object#toString` result references. */
  76472. var mapTag = '[object Map]',
  76473. objectTag = '[object Object]',
  76474. promiseTag = '[object Promise]',
  76475. setTag = '[object Set]',
  76476. weakMapTag = '[object WeakMap]';
  76477. var dataViewTag = '[object DataView]';
  76478. /** Used to detect maps, sets, and weakmaps. */
  76479. var dataViewCtorString = toSource(DataView),
  76480. mapCtorString = toSource(Map),
  76481. promiseCtorString = toSource(Promise),
  76482. setCtorString = toSource(Set),
  76483. weakMapCtorString = toSource(WeakMap);
  76484. /**
  76485. * Gets the `toStringTag` of `value`.
  76486. *
  76487. * @private
  76488. * @param {*} value The value to query.
  76489. * @returns {string} Returns the `toStringTag`.
  76490. */
  76491. var getTag = baseGetTag;
  76492. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  76493. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  76494. (Map && getTag(new Map) != mapTag) ||
  76495. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  76496. (Set && getTag(new Set) != setTag) ||
  76497. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  76498. getTag = function(value) {
  76499. var result = baseGetTag(value),
  76500. Ctor = result == objectTag ? value.constructor : undefined,
  76501. ctorString = Ctor ? toSource(Ctor) : '';
  76502. if (ctorString) {
  76503. switch (ctorString) {
  76504. case dataViewCtorString: return dataViewTag;
  76505. case mapCtorString: return mapTag;
  76506. case promiseCtorString: return promiseTag;
  76507. case setCtorString: return setTag;
  76508. case weakMapCtorString: return weakMapTag;
  76509. }
  76510. }
  76511. return result;
  76512. };
  76513. }
  76514. module.exports = getTag;
  76515. /***/ }),
  76516. /***/ "./node_modules/lodash/_getValue.js":
  76517. /*!******************************************!*\
  76518. !*** ./node_modules/lodash/_getValue.js ***!
  76519. \******************************************/
  76520. /*! no static exports found */
  76521. /***/ (function(module, exports) {
  76522. /**
  76523. * Gets the value at `key` of `object`.
  76524. *
  76525. * @private
  76526. * @param {Object} [object] The object to query.
  76527. * @param {string} key The key of the property to get.
  76528. * @returns {*} Returns the property value.
  76529. */
  76530. function getValue(object, key) {
  76531. return object == null ? undefined : object[key];
  76532. }
  76533. module.exports = getValue;
  76534. /***/ }),
  76535. /***/ "./node_modules/lodash/_hasPath.js":
  76536. /*!*****************************************!*\
  76537. !*** ./node_modules/lodash/_hasPath.js ***!
  76538. \*****************************************/
  76539. /*! no static exports found */
  76540. /***/ (function(module, exports, __webpack_require__) {
  76541. var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
  76542. isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
  76543. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  76544. isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
  76545. isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
  76546. toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
  76547. /**
  76548. * Checks if `path` exists on `object`.
  76549. *
  76550. * @private
  76551. * @param {Object} object The object to query.
  76552. * @param {Array|string} path The path to check.
  76553. * @param {Function} hasFunc The function to check properties.
  76554. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  76555. */
  76556. function hasPath(object, path, hasFunc) {
  76557. path = castPath(path, object);
  76558. var index = -1,
  76559. length = path.length,
  76560. result = false;
  76561. while (++index < length) {
  76562. var key = toKey(path[index]);
  76563. if (!(result = object != null && hasFunc(object, key))) {
  76564. break;
  76565. }
  76566. object = object[key];
  76567. }
  76568. if (result || ++index != length) {
  76569. return result;
  76570. }
  76571. length = object == null ? 0 : object.length;
  76572. return !!length && isLength(length) && isIndex(key, length) &&
  76573. (isArray(object) || isArguments(object));
  76574. }
  76575. module.exports = hasPath;
  76576. /***/ }),
  76577. /***/ "./node_modules/lodash/_hasUnicode.js":
  76578. /*!********************************************!*\
  76579. !*** ./node_modules/lodash/_hasUnicode.js ***!
  76580. \********************************************/
  76581. /*! no static exports found */
  76582. /***/ (function(module, exports) {
  76583. /** Used to compose unicode character classes. */
  76584. var rsAstralRange = '\\ud800-\\udfff',
  76585. rsComboMarksRange = '\\u0300-\\u036f',
  76586. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  76587. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  76588. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  76589. rsVarRange = '\\ufe0e\\ufe0f';
  76590. /** Used to compose unicode capture groups. */
  76591. var rsZWJ = '\\u200d';
  76592. /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
  76593. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  76594. /**
  76595. * Checks if `string` contains Unicode symbols.
  76596. *
  76597. * @private
  76598. * @param {string} string The string to inspect.
  76599. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  76600. */
  76601. function hasUnicode(string) {
  76602. return reHasUnicode.test(string);
  76603. }
  76604. module.exports = hasUnicode;
  76605. /***/ }),
  76606. /***/ "./node_modules/lodash/_hashClear.js":
  76607. /*!*******************************************!*\
  76608. !*** ./node_modules/lodash/_hashClear.js ***!
  76609. \*******************************************/
  76610. /*! no static exports found */
  76611. /***/ (function(module, exports, __webpack_require__) {
  76612. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
  76613. /**
  76614. * Removes all key-value entries from the hash.
  76615. *
  76616. * @private
  76617. * @name clear
  76618. * @memberOf Hash
  76619. */
  76620. function hashClear() {
  76621. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  76622. this.size = 0;
  76623. }
  76624. module.exports = hashClear;
  76625. /***/ }),
  76626. /***/ "./node_modules/lodash/_hashDelete.js":
  76627. /*!********************************************!*\
  76628. !*** ./node_modules/lodash/_hashDelete.js ***!
  76629. \********************************************/
  76630. /*! no static exports found */
  76631. /***/ (function(module, exports) {
  76632. /**
  76633. * Removes `key` and its value from the hash.
  76634. *
  76635. * @private
  76636. * @name delete
  76637. * @memberOf Hash
  76638. * @param {Object} hash The hash to modify.
  76639. * @param {string} key The key of the value to remove.
  76640. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  76641. */
  76642. function hashDelete(key) {
  76643. var result = this.has(key) && delete this.__data__[key];
  76644. this.size -= result ? 1 : 0;
  76645. return result;
  76646. }
  76647. module.exports = hashDelete;
  76648. /***/ }),
  76649. /***/ "./node_modules/lodash/_hashGet.js":
  76650. /*!*****************************************!*\
  76651. !*** ./node_modules/lodash/_hashGet.js ***!
  76652. \*****************************************/
  76653. /*! no static exports found */
  76654. /***/ (function(module, exports, __webpack_require__) {
  76655. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
  76656. /** Used to stand-in for `undefined` hash values. */
  76657. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  76658. /** Used for built-in method references. */
  76659. var objectProto = Object.prototype;
  76660. /** Used to check objects for own properties. */
  76661. var hasOwnProperty = objectProto.hasOwnProperty;
  76662. /**
  76663. * Gets the hash value for `key`.
  76664. *
  76665. * @private
  76666. * @name get
  76667. * @memberOf Hash
  76668. * @param {string} key The key of the value to get.
  76669. * @returns {*} Returns the entry value.
  76670. */
  76671. function hashGet(key) {
  76672. var data = this.__data__;
  76673. if (nativeCreate) {
  76674. var result = data[key];
  76675. return result === HASH_UNDEFINED ? undefined : result;
  76676. }
  76677. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  76678. }
  76679. module.exports = hashGet;
  76680. /***/ }),
  76681. /***/ "./node_modules/lodash/_hashHas.js":
  76682. /*!*****************************************!*\
  76683. !*** ./node_modules/lodash/_hashHas.js ***!
  76684. \*****************************************/
  76685. /*! no static exports found */
  76686. /***/ (function(module, exports, __webpack_require__) {
  76687. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
  76688. /** Used for built-in method references. */
  76689. var objectProto = Object.prototype;
  76690. /** Used to check objects for own properties. */
  76691. var hasOwnProperty = objectProto.hasOwnProperty;
  76692. /**
  76693. * Checks if a hash value for `key` exists.
  76694. *
  76695. * @private
  76696. * @name has
  76697. * @memberOf Hash
  76698. * @param {string} key The key of the entry to check.
  76699. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  76700. */
  76701. function hashHas(key) {
  76702. var data = this.__data__;
  76703. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  76704. }
  76705. module.exports = hashHas;
  76706. /***/ }),
  76707. /***/ "./node_modules/lodash/_hashSet.js":
  76708. /*!*****************************************!*\
  76709. !*** ./node_modules/lodash/_hashSet.js ***!
  76710. \*****************************************/
  76711. /*! no static exports found */
  76712. /***/ (function(module, exports, __webpack_require__) {
  76713. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
  76714. /** Used to stand-in for `undefined` hash values. */
  76715. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  76716. /**
  76717. * Sets the hash `key` to `value`.
  76718. *
  76719. * @private
  76720. * @name set
  76721. * @memberOf Hash
  76722. * @param {string} key The key of the value to set.
  76723. * @param {*} value The value to set.
  76724. * @returns {Object} Returns the hash instance.
  76725. */
  76726. function hashSet(key, value) {
  76727. var data = this.__data__;
  76728. this.size += this.has(key) ? 0 : 1;
  76729. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  76730. return this;
  76731. }
  76732. module.exports = hashSet;
  76733. /***/ }),
  76734. /***/ "./node_modules/lodash/_initCloneArray.js":
  76735. /*!************************************************!*\
  76736. !*** ./node_modules/lodash/_initCloneArray.js ***!
  76737. \************************************************/
  76738. /*! no static exports found */
  76739. /***/ (function(module, exports) {
  76740. /** Used for built-in method references. */
  76741. var objectProto = Object.prototype;
  76742. /** Used to check objects for own properties. */
  76743. var hasOwnProperty = objectProto.hasOwnProperty;
  76744. /**
  76745. * Initializes an array clone.
  76746. *
  76747. * @private
  76748. * @param {Array} array The array to clone.
  76749. * @returns {Array} Returns the initialized clone.
  76750. */
  76751. function initCloneArray(array) {
  76752. var length = array.length,
  76753. result = new array.constructor(length);
  76754. // Add properties assigned by `RegExp#exec`.
  76755. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  76756. result.index = array.index;
  76757. result.input = array.input;
  76758. }
  76759. return result;
  76760. }
  76761. module.exports = initCloneArray;
  76762. /***/ }),
  76763. /***/ "./node_modules/lodash/_initCloneByTag.js":
  76764. /*!************************************************!*\
  76765. !*** ./node_modules/lodash/_initCloneByTag.js ***!
  76766. \************************************************/
  76767. /*! no static exports found */
  76768. /***/ (function(module, exports, __webpack_require__) {
  76769. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js"),
  76770. cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "./node_modules/lodash/_cloneDataView.js"),
  76771. cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "./node_modules/lodash/_cloneRegExp.js"),
  76772. cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "./node_modules/lodash/_cloneSymbol.js"),
  76773. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js");
  76774. /** `Object#toString` result references. */
  76775. var boolTag = '[object Boolean]',
  76776. dateTag = '[object Date]',
  76777. mapTag = '[object Map]',
  76778. numberTag = '[object Number]',
  76779. regexpTag = '[object RegExp]',
  76780. setTag = '[object Set]',
  76781. stringTag = '[object String]',
  76782. symbolTag = '[object Symbol]';
  76783. var arrayBufferTag = '[object ArrayBuffer]',
  76784. dataViewTag = '[object DataView]',
  76785. float32Tag = '[object Float32Array]',
  76786. float64Tag = '[object Float64Array]',
  76787. int8Tag = '[object Int8Array]',
  76788. int16Tag = '[object Int16Array]',
  76789. int32Tag = '[object Int32Array]',
  76790. uint8Tag = '[object Uint8Array]',
  76791. uint8ClampedTag = '[object Uint8ClampedArray]',
  76792. uint16Tag = '[object Uint16Array]',
  76793. uint32Tag = '[object Uint32Array]';
  76794. /**
  76795. * Initializes an object clone based on its `toStringTag`.
  76796. *
  76797. * **Note:** This function only supports cloning values with tags of
  76798. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  76799. *
  76800. * @private
  76801. * @param {Object} object The object to clone.
  76802. * @param {string} tag The `toStringTag` of the object to clone.
  76803. * @param {boolean} [isDeep] Specify a deep clone.
  76804. * @returns {Object} Returns the initialized clone.
  76805. */
  76806. function initCloneByTag(object, tag, isDeep) {
  76807. var Ctor = object.constructor;
  76808. switch (tag) {
  76809. case arrayBufferTag:
  76810. return cloneArrayBuffer(object);
  76811. case boolTag:
  76812. case dateTag:
  76813. return new Ctor(+object);
  76814. case dataViewTag:
  76815. return cloneDataView(object, isDeep);
  76816. case float32Tag: case float64Tag:
  76817. case int8Tag: case int16Tag: case int32Tag:
  76818. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  76819. return cloneTypedArray(object, isDeep);
  76820. case mapTag:
  76821. return new Ctor;
  76822. case numberTag:
  76823. case stringTag:
  76824. return new Ctor(object);
  76825. case regexpTag:
  76826. return cloneRegExp(object);
  76827. case setTag:
  76828. return new Ctor;
  76829. case symbolTag:
  76830. return cloneSymbol(object);
  76831. }
  76832. }
  76833. module.exports = initCloneByTag;
  76834. /***/ }),
  76835. /***/ "./node_modules/lodash/_initCloneObject.js":
  76836. /*!*************************************************!*\
  76837. !*** ./node_modules/lodash/_initCloneObject.js ***!
  76838. \*************************************************/
  76839. /*! no static exports found */
  76840. /***/ (function(module, exports, __webpack_require__) {
  76841. var baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
  76842. getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
  76843. isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js");
  76844. /**
  76845. * Initializes an object clone.
  76846. *
  76847. * @private
  76848. * @param {Object} object The object to clone.
  76849. * @returns {Object} Returns the initialized clone.
  76850. */
  76851. function initCloneObject(object) {
  76852. return (typeof object.constructor == 'function' && !isPrototype(object))
  76853. ? baseCreate(getPrototype(object))
  76854. : {};
  76855. }
  76856. module.exports = initCloneObject;
  76857. /***/ }),
  76858. /***/ "./node_modules/lodash/_isFlattenable.js":
  76859. /*!***********************************************!*\
  76860. !*** ./node_modules/lodash/_isFlattenable.js ***!
  76861. \***********************************************/
  76862. /*! no static exports found */
  76863. /***/ (function(module, exports, __webpack_require__) {
  76864. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
  76865. isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
  76866. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
  76867. /** Built-in value references. */
  76868. var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
  76869. /**
  76870. * Checks if `value` is a flattenable `arguments` object or array.
  76871. *
  76872. * @private
  76873. * @param {*} value The value to check.
  76874. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  76875. */
  76876. function isFlattenable(value) {
  76877. return isArray(value) || isArguments(value) ||
  76878. !!(spreadableSymbol && value && value[spreadableSymbol]);
  76879. }
  76880. module.exports = isFlattenable;
  76881. /***/ }),
  76882. /***/ "./node_modules/lodash/_isIndex.js":
  76883. /*!*****************************************!*\
  76884. !*** ./node_modules/lodash/_isIndex.js ***!
  76885. \*****************************************/
  76886. /*! no static exports found */
  76887. /***/ (function(module, exports) {
  76888. /** Used as references for various `Number` constants. */
  76889. var MAX_SAFE_INTEGER = 9007199254740991;
  76890. /** Used to detect unsigned integer values. */
  76891. var reIsUint = /^(?:0|[1-9]\d*)$/;
  76892. /**
  76893. * Checks if `value` is a valid array-like index.
  76894. *
  76895. * @private
  76896. * @param {*} value The value to check.
  76897. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  76898. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  76899. */
  76900. function isIndex(value, length) {
  76901. var type = typeof value;
  76902. length = length == null ? MAX_SAFE_INTEGER : length;
  76903. return !!length &&
  76904. (type == 'number' ||
  76905. (type != 'symbol' && reIsUint.test(value))) &&
  76906. (value > -1 && value % 1 == 0 && value < length);
  76907. }
  76908. module.exports = isIndex;
  76909. /***/ }),
  76910. /***/ "./node_modules/lodash/_isIterateeCall.js":
  76911. /*!************************************************!*\
  76912. !*** ./node_modules/lodash/_isIterateeCall.js ***!
  76913. \************************************************/
  76914. /*! no static exports found */
  76915. /***/ (function(module, exports, __webpack_require__) {
  76916. var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
  76917. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
  76918. isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
  76919. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
  76920. /**
  76921. * Checks if the given arguments are from an iteratee call.
  76922. *
  76923. * @private
  76924. * @param {*} value The potential iteratee value argument.
  76925. * @param {*} index The potential iteratee index or key argument.
  76926. * @param {*} object The potential iteratee object argument.
  76927. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  76928. * else `false`.
  76929. */
  76930. function isIterateeCall(value, index, object) {
  76931. if (!isObject(object)) {
  76932. return false;
  76933. }
  76934. var type = typeof index;
  76935. if (type == 'number'
  76936. ? (isArrayLike(object) && isIndex(index, object.length))
  76937. : (type == 'string' && index in object)
  76938. ) {
  76939. return eq(object[index], value);
  76940. }
  76941. return false;
  76942. }
  76943. module.exports = isIterateeCall;
  76944. /***/ }),
  76945. /***/ "./node_modules/lodash/_isKey.js":
  76946. /*!***************************************!*\
  76947. !*** ./node_modules/lodash/_isKey.js ***!
  76948. \***************************************/
  76949. /*! no static exports found */
  76950. /***/ (function(module, exports, __webpack_require__) {
  76951. var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  76952. isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
  76953. /** Used to match property names within property paths. */
  76954. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  76955. reIsPlainProp = /^\w*$/;
  76956. /**
  76957. * Checks if `value` is a property name and not a property path.
  76958. *
  76959. * @private
  76960. * @param {*} value The value to check.
  76961. * @param {Object} [object] The object to query keys on.
  76962. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  76963. */
  76964. function isKey(value, object) {
  76965. if (isArray(value)) {
  76966. return false;
  76967. }
  76968. var type = typeof value;
  76969. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  76970. value == null || isSymbol(value)) {
  76971. return true;
  76972. }
  76973. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  76974. (object != null && value in Object(object));
  76975. }
  76976. module.exports = isKey;
  76977. /***/ }),
  76978. /***/ "./node_modules/lodash/_isKeyable.js":
  76979. /*!*******************************************!*\
  76980. !*** ./node_modules/lodash/_isKeyable.js ***!
  76981. \*******************************************/
  76982. /*! no static exports found */
  76983. /***/ (function(module, exports) {
  76984. /**
  76985. * Checks if `value` is suitable for use as unique object key.
  76986. *
  76987. * @private
  76988. * @param {*} value The value to check.
  76989. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  76990. */
  76991. function isKeyable(value) {
  76992. var type = typeof value;
  76993. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  76994. ? (value !== '__proto__')
  76995. : (value === null);
  76996. }
  76997. module.exports = isKeyable;
  76998. /***/ }),
  76999. /***/ "./node_modules/lodash/_isMasked.js":
  77000. /*!******************************************!*\
  77001. !*** ./node_modules/lodash/_isMasked.js ***!
  77002. \******************************************/
  77003. /*! no static exports found */
  77004. /***/ (function(module, exports, __webpack_require__) {
  77005. var coreJsData = __webpack_require__(/*! ./_coreJsData */ "./node_modules/lodash/_coreJsData.js");
  77006. /** Used to detect methods masquerading as native. */
  77007. var maskSrcKey = (function() {
  77008. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  77009. return uid ? ('Symbol(src)_1.' + uid) : '';
  77010. }());
  77011. /**
  77012. * Checks if `func` has its source masked.
  77013. *
  77014. * @private
  77015. * @param {Function} func The function to check.
  77016. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  77017. */
  77018. function isMasked(func) {
  77019. return !!maskSrcKey && (maskSrcKey in func);
  77020. }
  77021. module.exports = isMasked;
  77022. /***/ }),
  77023. /***/ "./node_modules/lodash/_isPrototype.js":
  77024. /*!*********************************************!*\
  77025. !*** ./node_modules/lodash/_isPrototype.js ***!
  77026. \*********************************************/
  77027. /*! no static exports found */
  77028. /***/ (function(module, exports) {
  77029. /** Used for built-in method references. */
  77030. var objectProto = Object.prototype;
  77031. /**
  77032. * Checks if `value` is likely a prototype object.
  77033. *
  77034. * @private
  77035. * @param {*} value The value to check.
  77036. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  77037. */
  77038. function isPrototype(value) {
  77039. var Ctor = value && value.constructor,
  77040. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  77041. return value === proto;
  77042. }
  77043. module.exports = isPrototype;
  77044. /***/ }),
  77045. /***/ "./node_modules/lodash/_isStrictComparable.js":
  77046. /*!****************************************************!*\
  77047. !*** ./node_modules/lodash/_isStrictComparable.js ***!
  77048. \****************************************************/
  77049. /*! no static exports found */
  77050. /***/ (function(module, exports, __webpack_require__) {
  77051. var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
  77052. /**
  77053. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  77054. *
  77055. * @private
  77056. * @param {*} value The value to check.
  77057. * @returns {boolean} Returns `true` if `value` if suitable for strict
  77058. * equality comparisons, else `false`.
  77059. */
  77060. function isStrictComparable(value) {
  77061. return value === value && !isObject(value);
  77062. }
  77063. module.exports = isStrictComparable;
  77064. /***/ }),
  77065. /***/ "./node_modules/lodash/_listCacheClear.js":
  77066. /*!************************************************!*\
  77067. !*** ./node_modules/lodash/_listCacheClear.js ***!
  77068. \************************************************/
  77069. /*! no static exports found */
  77070. /***/ (function(module, exports) {
  77071. /**
  77072. * Removes all key-value entries from the list cache.
  77073. *
  77074. * @private
  77075. * @name clear
  77076. * @memberOf ListCache
  77077. */
  77078. function listCacheClear() {
  77079. this.__data__ = [];
  77080. this.size = 0;
  77081. }
  77082. module.exports = listCacheClear;
  77083. /***/ }),
  77084. /***/ "./node_modules/lodash/_listCacheDelete.js":
  77085. /*!*************************************************!*\
  77086. !*** ./node_modules/lodash/_listCacheDelete.js ***!
  77087. \*************************************************/
  77088. /*! no static exports found */
  77089. /***/ (function(module, exports, __webpack_require__) {
  77090. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
  77091. /** Used for built-in method references. */
  77092. var arrayProto = Array.prototype;
  77093. /** Built-in value references. */
  77094. var splice = arrayProto.splice;
  77095. /**
  77096. * Removes `key` and its value from the list cache.
  77097. *
  77098. * @private
  77099. * @name delete
  77100. * @memberOf ListCache
  77101. * @param {string} key The key of the value to remove.
  77102. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  77103. */
  77104. function listCacheDelete(key) {
  77105. var data = this.__data__,
  77106. index = assocIndexOf(data, key);
  77107. if (index < 0) {
  77108. return false;
  77109. }
  77110. var lastIndex = data.length - 1;
  77111. if (index == lastIndex) {
  77112. data.pop();
  77113. } else {
  77114. splice.call(data, index, 1);
  77115. }
  77116. --this.size;
  77117. return true;
  77118. }
  77119. module.exports = listCacheDelete;
  77120. /***/ }),
  77121. /***/ "./node_modules/lodash/_listCacheGet.js":
  77122. /*!**********************************************!*\
  77123. !*** ./node_modules/lodash/_listCacheGet.js ***!
  77124. \**********************************************/
  77125. /*! no static exports found */
  77126. /***/ (function(module, exports, __webpack_require__) {
  77127. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
  77128. /**
  77129. * Gets the list cache value for `key`.
  77130. *
  77131. * @private
  77132. * @name get
  77133. * @memberOf ListCache
  77134. * @param {string} key The key of the value to get.
  77135. * @returns {*} Returns the entry value.
  77136. */
  77137. function listCacheGet(key) {
  77138. var data = this.__data__,
  77139. index = assocIndexOf(data, key);
  77140. return index < 0 ? undefined : data[index][1];
  77141. }
  77142. module.exports = listCacheGet;
  77143. /***/ }),
  77144. /***/ "./node_modules/lodash/_listCacheHas.js":
  77145. /*!**********************************************!*\
  77146. !*** ./node_modules/lodash/_listCacheHas.js ***!
  77147. \**********************************************/
  77148. /*! no static exports found */
  77149. /***/ (function(module, exports, __webpack_require__) {
  77150. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
  77151. /**
  77152. * Checks if a list cache value for `key` exists.
  77153. *
  77154. * @private
  77155. * @name has
  77156. * @memberOf ListCache
  77157. * @param {string} key The key of the entry to check.
  77158. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  77159. */
  77160. function listCacheHas(key) {
  77161. return assocIndexOf(this.__data__, key) > -1;
  77162. }
  77163. module.exports = listCacheHas;
  77164. /***/ }),
  77165. /***/ "./node_modules/lodash/_listCacheSet.js":
  77166. /*!**********************************************!*\
  77167. !*** ./node_modules/lodash/_listCacheSet.js ***!
  77168. \**********************************************/
  77169. /*! no static exports found */
  77170. /***/ (function(module, exports, __webpack_require__) {
  77171. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
  77172. /**
  77173. * Sets the list cache `key` to `value`.
  77174. *
  77175. * @private
  77176. * @name set
  77177. * @memberOf ListCache
  77178. * @param {string} key The key of the value to set.
  77179. * @param {*} value The value to set.
  77180. * @returns {Object} Returns the list cache instance.
  77181. */
  77182. function listCacheSet(key, value) {
  77183. var data = this.__data__,
  77184. index = assocIndexOf(data, key);
  77185. if (index < 0) {
  77186. ++this.size;
  77187. data.push([key, value]);
  77188. } else {
  77189. data[index][1] = value;
  77190. }
  77191. return this;
  77192. }
  77193. module.exports = listCacheSet;
  77194. /***/ }),
  77195. /***/ "./node_modules/lodash/_mapCacheClear.js":
  77196. /*!***********************************************!*\
  77197. !*** ./node_modules/lodash/_mapCacheClear.js ***!
  77198. \***********************************************/
  77199. /*! no static exports found */
  77200. /***/ (function(module, exports, __webpack_require__) {
  77201. var Hash = __webpack_require__(/*! ./_Hash */ "./node_modules/lodash/_Hash.js"),
  77202. ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
  77203. Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js");
  77204. /**
  77205. * Removes all key-value entries from the map.
  77206. *
  77207. * @private
  77208. * @name clear
  77209. * @memberOf MapCache
  77210. */
  77211. function mapCacheClear() {
  77212. this.size = 0;
  77213. this.__data__ = {
  77214. 'hash': new Hash,
  77215. 'map': new (Map || ListCache),
  77216. 'string': new Hash
  77217. };
  77218. }
  77219. module.exports = mapCacheClear;
  77220. /***/ }),
  77221. /***/ "./node_modules/lodash/_mapCacheDelete.js":
  77222. /*!************************************************!*\
  77223. !*** ./node_modules/lodash/_mapCacheDelete.js ***!
  77224. \************************************************/
  77225. /*! no static exports found */
  77226. /***/ (function(module, exports, __webpack_require__) {
  77227. var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
  77228. /**
  77229. * Removes `key` and its value from the map.
  77230. *
  77231. * @private
  77232. * @name delete
  77233. * @memberOf MapCache
  77234. * @param {string} key The key of the value to remove.
  77235. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  77236. */
  77237. function mapCacheDelete(key) {
  77238. var result = getMapData(this, key)['delete'](key);
  77239. this.size -= result ? 1 : 0;
  77240. return result;
  77241. }
  77242. module.exports = mapCacheDelete;
  77243. /***/ }),
  77244. /***/ "./node_modules/lodash/_mapCacheGet.js":
  77245. /*!*********************************************!*\
  77246. !*** ./node_modules/lodash/_mapCacheGet.js ***!
  77247. \*********************************************/
  77248. /*! no static exports found */
  77249. /***/ (function(module, exports, __webpack_require__) {
  77250. var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
  77251. /**
  77252. * Gets the map value for `key`.
  77253. *
  77254. * @private
  77255. * @name get
  77256. * @memberOf MapCache
  77257. * @param {string} key The key of the value to get.
  77258. * @returns {*} Returns the entry value.
  77259. */
  77260. function mapCacheGet(key) {
  77261. return getMapData(this, key).get(key);
  77262. }
  77263. module.exports = mapCacheGet;
  77264. /***/ }),
  77265. /***/ "./node_modules/lodash/_mapCacheHas.js":
  77266. /*!*********************************************!*\
  77267. !*** ./node_modules/lodash/_mapCacheHas.js ***!
  77268. \*********************************************/
  77269. /*! no static exports found */
  77270. /***/ (function(module, exports, __webpack_require__) {
  77271. var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
  77272. /**
  77273. * Checks if a map value for `key` exists.
  77274. *
  77275. * @private
  77276. * @name has
  77277. * @memberOf MapCache
  77278. * @param {string} key The key of the entry to check.
  77279. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  77280. */
  77281. function mapCacheHas(key) {
  77282. return getMapData(this, key).has(key);
  77283. }
  77284. module.exports = mapCacheHas;
  77285. /***/ }),
  77286. /***/ "./node_modules/lodash/_mapCacheSet.js":
  77287. /*!*********************************************!*\
  77288. !*** ./node_modules/lodash/_mapCacheSet.js ***!
  77289. \*********************************************/
  77290. /*! no static exports found */
  77291. /***/ (function(module, exports, __webpack_require__) {
  77292. var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
  77293. /**
  77294. * Sets the map `key` to `value`.
  77295. *
  77296. * @private
  77297. * @name set
  77298. * @memberOf MapCache
  77299. * @param {string} key The key of the value to set.
  77300. * @param {*} value The value to set.
  77301. * @returns {Object} Returns the map cache instance.
  77302. */
  77303. function mapCacheSet(key, value) {
  77304. var data = getMapData(this, key),
  77305. size = data.size;
  77306. data.set(key, value);
  77307. this.size += data.size == size ? 0 : 1;
  77308. return this;
  77309. }
  77310. module.exports = mapCacheSet;
  77311. /***/ }),
  77312. /***/ "./node_modules/lodash/_mapToArray.js":
  77313. /*!********************************************!*\
  77314. !*** ./node_modules/lodash/_mapToArray.js ***!
  77315. \********************************************/
  77316. /*! no static exports found */
  77317. /***/ (function(module, exports) {
  77318. /**
  77319. * Converts `map` to its key-value pairs.
  77320. *
  77321. * @private
  77322. * @param {Object} map The map to convert.
  77323. * @returns {Array} Returns the key-value pairs.
  77324. */
  77325. function mapToArray(map) {
  77326. var index = -1,
  77327. result = Array(map.size);
  77328. map.forEach(function(value, key) {
  77329. result[++index] = [key, value];
  77330. });
  77331. return result;
  77332. }
  77333. module.exports = mapToArray;
  77334. /***/ }),
  77335. /***/ "./node_modules/lodash/_matchesStrictComparable.js":
  77336. /*!*********************************************************!*\
  77337. !*** ./node_modules/lodash/_matchesStrictComparable.js ***!
  77338. \*********************************************************/
  77339. /*! no static exports found */
  77340. /***/ (function(module, exports) {
  77341. /**
  77342. * A specialized version of `matchesProperty` for source values suitable
  77343. * for strict equality comparisons, i.e. `===`.
  77344. *
  77345. * @private
  77346. * @param {string} key The key of the property to get.
  77347. * @param {*} srcValue The value to match.
  77348. * @returns {Function} Returns the new spec function.
  77349. */
  77350. function matchesStrictComparable(key, srcValue) {
  77351. return function(object) {
  77352. if (object == null) {
  77353. return false;
  77354. }
  77355. return object[key] === srcValue &&
  77356. (srcValue !== undefined || (key in Object(object)));
  77357. };
  77358. }
  77359. module.exports = matchesStrictComparable;
  77360. /***/ }),
  77361. /***/ "./node_modules/lodash/_memoizeCapped.js":
  77362. /*!***********************************************!*\
  77363. !*** ./node_modules/lodash/_memoizeCapped.js ***!
  77364. \***********************************************/
  77365. /*! no static exports found */
  77366. /***/ (function(module, exports, __webpack_require__) {
  77367. var memoize = __webpack_require__(/*! ./memoize */ "./node_modules/lodash/memoize.js");
  77368. /** Used as the maximum memoize cache size. */
  77369. var MAX_MEMOIZE_SIZE = 500;
  77370. /**
  77371. * A specialized version of `_.memoize` which clears the memoized function's
  77372. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  77373. *
  77374. * @private
  77375. * @param {Function} func The function to have its output memoized.
  77376. * @returns {Function} Returns the new memoized function.
  77377. */
  77378. function memoizeCapped(func) {
  77379. var result = memoize(func, function(key) {
  77380. if (cache.size === MAX_MEMOIZE_SIZE) {
  77381. cache.clear();
  77382. }
  77383. return key;
  77384. });
  77385. var cache = result.cache;
  77386. return result;
  77387. }
  77388. module.exports = memoizeCapped;
  77389. /***/ }),
  77390. /***/ "./node_modules/lodash/_nativeCreate.js":
  77391. /*!**********************************************!*\
  77392. !*** ./node_modules/lodash/_nativeCreate.js ***!
  77393. \**********************************************/
  77394. /*! no static exports found */
  77395. /***/ (function(module, exports, __webpack_require__) {
  77396. var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");
  77397. /* Built-in method references that are verified to be native. */
  77398. var nativeCreate = getNative(Object, 'create');
  77399. module.exports = nativeCreate;
  77400. /***/ }),
  77401. /***/ "./node_modules/lodash/_nativeKeys.js":
  77402. /*!********************************************!*\
  77403. !*** ./node_modules/lodash/_nativeKeys.js ***!
  77404. \********************************************/
  77405. /*! no static exports found */
  77406. /***/ (function(module, exports, __webpack_require__) {
  77407. var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
  77408. /* Built-in method references for those with the same name as other `lodash` methods. */
  77409. var nativeKeys = overArg(Object.keys, Object);
  77410. module.exports = nativeKeys;
  77411. /***/ }),
  77412. /***/ "./node_modules/lodash/_nativeKeysIn.js":
  77413. /*!**********************************************!*\
  77414. !*** ./node_modules/lodash/_nativeKeysIn.js ***!
  77415. \**********************************************/
  77416. /*! no static exports found */
  77417. /***/ (function(module, exports) {
  77418. /**
  77419. * This function is like
  77420. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  77421. * except that it includes inherited enumerable properties.
  77422. *
  77423. * @private
  77424. * @param {Object} object The object to query.
  77425. * @returns {Array} Returns the array of property names.
  77426. */
  77427. function nativeKeysIn(object) {
  77428. var result = [];
  77429. if (object != null) {
  77430. for (var key in Object(object)) {
  77431. result.push(key);
  77432. }
  77433. }
  77434. return result;
  77435. }
  77436. module.exports = nativeKeysIn;
  77437. /***/ }),
  77438. /***/ "./node_modules/lodash/_nodeUtil.js":
  77439. /*!******************************************!*\
  77440. !*** ./node_modules/lodash/_nodeUtil.js ***!
  77441. \******************************************/
  77442. /*! no static exports found */
  77443. /***/ (function(module, exports, __webpack_require__) {
  77444. /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
  77445. /** Detect free variable `exports`. */
  77446. var freeExports = true && exports && !exports.nodeType && exports;
  77447. /** Detect free variable `module`. */
  77448. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  77449. /** Detect the popular CommonJS extension `module.exports`. */
  77450. var moduleExports = freeModule && freeModule.exports === freeExports;
  77451. /** Detect free variable `process` from Node.js. */
  77452. var freeProcess = moduleExports && freeGlobal.process;
  77453. /** Used to access faster Node.js helpers. */
  77454. var nodeUtil = (function() {
  77455. try {
  77456. // Use `util.types` for Node.js 10+.
  77457. var types = freeModule && freeModule.require && freeModule.require('util').types;
  77458. if (types) {
  77459. return types;
  77460. }
  77461. // Legacy `process.binding('util')` for Node.js < 10.
  77462. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  77463. } catch (e) {}
  77464. }());
  77465. module.exports = nodeUtil;
  77466. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  77467. /***/ }),
  77468. /***/ "./node_modules/lodash/_objectToString.js":
  77469. /*!************************************************!*\
  77470. !*** ./node_modules/lodash/_objectToString.js ***!
  77471. \************************************************/
  77472. /*! no static exports found */
  77473. /***/ (function(module, exports) {
  77474. /** Used for built-in method references. */
  77475. var objectProto = Object.prototype;
  77476. /**
  77477. * Used to resolve the
  77478. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  77479. * of values.
  77480. */
  77481. var nativeObjectToString = objectProto.toString;
  77482. /**
  77483. * Converts `value` to a string using `Object.prototype.toString`.
  77484. *
  77485. * @private
  77486. * @param {*} value The value to convert.
  77487. * @returns {string} Returns the converted string.
  77488. */
  77489. function objectToString(value) {
  77490. return nativeObjectToString.call(value);
  77491. }
  77492. module.exports = objectToString;
  77493. /***/ }),
  77494. /***/ "./node_modules/lodash/_overArg.js":
  77495. /*!*****************************************!*\
  77496. !*** ./node_modules/lodash/_overArg.js ***!
  77497. \*****************************************/
  77498. /*! no static exports found */
  77499. /***/ (function(module, exports) {
  77500. /**
  77501. * Creates a unary function that invokes `func` with its argument transformed.
  77502. *
  77503. * @private
  77504. * @param {Function} func The function to wrap.
  77505. * @param {Function} transform The argument transform.
  77506. * @returns {Function} Returns the new function.
  77507. */
  77508. function overArg(func, transform) {
  77509. return function(arg) {
  77510. return func(transform(arg));
  77511. };
  77512. }
  77513. module.exports = overArg;
  77514. /***/ }),
  77515. /***/ "./node_modules/lodash/_overRest.js":
  77516. /*!******************************************!*\
  77517. !*** ./node_modules/lodash/_overRest.js ***!
  77518. \******************************************/
  77519. /*! no static exports found */
  77520. /***/ (function(module, exports, __webpack_require__) {
  77521. var apply = __webpack_require__(/*! ./_apply */ "./node_modules/lodash/_apply.js");
  77522. /* Built-in method references for those with the same name as other `lodash` methods. */
  77523. var nativeMax = Math.max;
  77524. /**
  77525. * A specialized version of `baseRest` which transforms the rest array.
  77526. *
  77527. * @private
  77528. * @param {Function} func The function to apply a rest parameter to.
  77529. * @param {number} [start=func.length-1] The start position of the rest parameter.
  77530. * @param {Function} transform The rest array transform.
  77531. * @returns {Function} Returns the new function.
  77532. */
  77533. function overRest(func, start, transform) {
  77534. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  77535. return function() {
  77536. var args = arguments,
  77537. index = -1,
  77538. length = nativeMax(args.length - start, 0),
  77539. array = Array(length);
  77540. while (++index < length) {
  77541. array[index] = args[start + index];
  77542. }
  77543. index = -1;
  77544. var otherArgs = Array(start + 1);
  77545. while (++index < start) {
  77546. otherArgs[index] = args[index];
  77547. }
  77548. otherArgs[start] = transform(array);
  77549. return apply(func, this, otherArgs);
  77550. };
  77551. }
  77552. module.exports = overRest;
  77553. /***/ }),
  77554. /***/ "./node_modules/lodash/_parent.js":
  77555. /*!****************************************!*\
  77556. !*** ./node_modules/lodash/_parent.js ***!
  77557. \****************************************/
  77558. /*! no static exports found */
  77559. /***/ (function(module, exports, __webpack_require__) {
  77560. var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
  77561. baseSlice = __webpack_require__(/*! ./_baseSlice */ "./node_modules/lodash/_baseSlice.js");
  77562. /**
  77563. * Gets the parent value at `path` of `object`.
  77564. *
  77565. * @private
  77566. * @param {Object} object The object to query.
  77567. * @param {Array} path The path to get the parent value of.
  77568. * @returns {*} Returns the parent value.
  77569. */
  77570. function parent(object, path) {
  77571. return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
  77572. }
  77573. module.exports = parent;
  77574. /***/ }),
  77575. /***/ "./node_modules/lodash/_root.js":
  77576. /*!**************************************!*\
  77577. !*** ./node_modules/lodash/_root.js ***!
  77578. \**************************************/
  77579. /*! no static exports found */
  77580. /***/ (function(module, exports, __webpack_require__) {
  77581. var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
  77582. /** Detect free variable `self`. */
  77583. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  77584. /** Used as a reference to the global object. */
  77585. var root = freeGlobal || freeSelf || Function('return this')();
  77586. module.exports = root;
  77587. /***/ }),
  77588. /***/ "./node_modules/lodash/_safeGet.js":
  77589. /*!*****************************************!*\
  77590. !*** ./node_modules/lodash/_safeGet.js ***!
  77591. \*****************************************/
  77592. /*! no static exports found */
  77593. /***/ (function(module, exports) {
  77594. /**
  77595. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  77596. *
  77597. * @private
  77598. * @param {Object} object The object to query.
  77599. * @param {string} key The key of the property to get.
  77600. * @returns {*} Returns the property value.
  77601. */
  77602. function safeGet(object, key) {
  77603. if (key === 'constructor' && typeof object[key] === 'function') {
  77604. return;
  77605. }
  77606. if (key == '__proto__') {
  77607. return;
  77608. }
  77609. return object[key];
  77610. }
  77611. module.exports = safeGet;
  77612. /***/ }),
  77613. /***/ "./node_modules/lodash/_setCacheAdd.js":
  77614. /*!*********************************************!*\
  77615. !*** ./node_modules/lodash/_setCacheAdd.js ***!
  77616. \*********************************************/
  77617. /*! no static exports found */
  77618. /***/ (function(module, exports) {
  77619. /** Used to stand-in for `undefined` hash values. */
  77620. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  77621. /**
  77622. * Adds `value` to the array cache.
  77623. *
  77624. * @private
  77625. * @name add
  77626. * @memberOf SetCache
  77627. * @alias push
  77628. * @param {*} value The value to cache.
  77629. * @returns {Object} Returns the cache instance.
  77630. */
  77631. function setCacheAdd(value) {
  77632. this.__data__.set(value, HASH_UNDEFINED);
  77633. return this;
  77634. }
  77635. module.exports = setCacheAdd;
  77636. /***/ }),
  77637. /***/ "./node_modules/lodash/_setCacheHas.js":
  77638. /*!*********************************************!*\
  77639. !*** ./node_modules/lodash/_setCacheHas.js ***!
  77640. \*********************************************/
  77641. /*! no static exports found */
  77642. /***/ (function(module, exports) {
  77643. /**
  77644. * Checks if `value` is in the array cache.
  77645. *
  77646. * @private
  77647. * @name has
  77648. * @memberOf SetCache
  77649. * @param {*} value The value to search for.
  77650. * @returns {number} Returns `true` if `value` is found, else `false`.
  77651. */
  77652. function setCacheHas(value) {
  77653. return this.__data__.has(value);
  77654. }
  77655. module.exports = setCacheHas;
  77656. /***/ }),
  77657. /***/ "./node_modules/lodash/_setToArray.js":
  77658. /*!********************************************!*\
  77659. !*** ./node_modules/lodash/_setToArray.js ***!
  77660. \********************************************/
  77661. /*! no static exports found */
  77662. /***/ (function(module, exports) {
  77663. /**
  77664. * Converts `set` to an array of its values.
  77665. *
  77666. * @private
  77667. * @param {Object} set The set to convert.
  77668. * @returns {Array} Returns the values.
  77669. */
  77670. function setToArray(set) {
  77671. var index = -1,
  77672. result = Array(set.size);
  77673. set.forEach(function(value) {
  77674. result[++index] = value;
  77675. });
  77676. return result;
  77677. }
  77678. module.exports = setToArray;
  77679. /***/ }),
  77680. /***/ "./node_modules/lodash/_setToString.js":
  77681. /*!*********************************************!*\
  77682. !*** ./node_modules/lodash/_setToString.js ***!
  77683. \*********************************************/
  77684. /*! no static exports found */
  77685. /***/ (function(module, exports, __webpack_require__) {
  77686. var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "./node_modules/lodash/_baseSetToString.js"),
  77687. shortOut = __webpack_require__(/*! ./_shortOut */ "./node_modules/lodash/_shortOut.js");
  77688. /**
  77689. * Sets the `toString` method of `func` to return `string`.
  77690. *
  77691. * @private
  77692. * @param {Function} func The function to modify.
  77693. * @param {Function} string The `toString` result.
  77694. * @returns {Function} Returns `func`.
  77695. */
  77696. var setToString = shortOut(baseSetToString);
  77697. module.exports = setToString;
  77698. /***/ }),
  77699. /***/ "./node_modules/lodash/_shortOut.js":
  77700. /*!******************************************!*\
  77701. !*** ./node_modules/lodash/_shortOut.js ***!
  77702. \******************************************/
  77703. /*! no static exports found */
  77704. /***/ (function(module, exports) {
  77705. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  77706. var HOT_COUNT = 800,
  77707. HOT_SPAN = 16;
  77708. /* Built-in method references for those with the same name as other `lodash` methods. */
  77709. var nativeNow = Date.now;
  77710. /**
  77711. * Creates a function that'll short out and invoke `identity` instead
  77712. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  77713. * milliseconds.
  77714. *
  77715. * @private
  77716. * @param {Function} func The function to restrict.
  77717. * @returns {Function} Returns the new shortable function.
  77718. */
  77719. function shortOut(func) {
  77720. var count = 0,
  77721. lastCalled = 0;
  77722. return function() {
  77723. var stamp = nativeNow(),
  77724. remaining = HOT_SPAN - (stamp - lastCalled);
  77725. lastCalled = stamp;
  77726. if (remaining > 0) {
  77727. if (++count >= HOT_COUNT) {
  77728. return arguments[0];
  77729. }
  77730. } else {
  77731. count = 0;
  77732. }
  77733. return func.apply(undefined, arguments);
  77734. };
  77735. }
  77736. module.exports = shortOut;
  77737. /***/ }),
  77738. /***/ "./node_modules/lodash/_stackClear.js":
  77739. /*!********************************************!*\
  77740. !*** ./node_modules/lodash/_stackClear.js ***!
  77741. \********************************************/
  77742. /*! no static exports found */
  77743. /***/ (function(module, exports, __webpack_require__) {
  77744. var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js");
  77745. /**
  77746. * Removes all key-value entries from the stack.
  77747. *
  77748. * @private
  77749. * @name clear
  77750. * @memberOf Stack
  77751. */
  77752. function stackClear() {
  77753. this.__data__ = new ListCache;
  77754. this.size = 0;
  77755. }
  77756. module.exports = stackClear;
  77757. /***/ }),
  77758. /***/ "./node_modules/lodash/_stackDelete.js":
  77759. /*!*********************************************!*\
  77760. !*** ./node_modules/lodash/_stackDelete.js ***!
  77761. \*********************************************/
  77762. /*! no static exports found */
  77763. /***/ (function(module, exports) {
  77764. /**
  77765. * Removes `key` and its value from the stack.
  77766. *
  77767. * @private
  77768. * @name delete
  77769. * @memberOf Stack
  77770. * @param {string} key The key of the value to remove.
  77771. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  77772. */
  77773. function stackDelete(key) {
  77774. var data = this.__data__,
  77775. result = data['delete'](key);
  77776. this.size = data.size;
  77777. return result;
  77778. }
  77779. module.exports = stackDelete;
  77780. /***/ }),
  77781. /***/ "./node_modules/lodash/_stackGet.js":
  77782. /*!******************************************!*\
  77783. !*** ./node_modules/lodash/_stackGet.js ***!
  77784. \******************************************/
  77785. /*! no static exports found */
  77786. /***/ (function(module, exports) {
  77787. /**
  77788. * Gets the stack value for `key`.
  77789. *
  77790. * @private
  77791. * @name get
  77792. * @memberOf Stack
  77793. * @param {string} key The key of the value to get.
  77794. * @returns {*} Returns the entry value.
  77795. */
  77796. function stackGet(key) {
  77797. return this.__data__.get(key);
  77798. }
  77799. module.exports = stackGet;
  77800. /***/ }),
  77801. /***/ "./node_modules/lodash/_stackHas.js":
  77802. /*!******************************************!*\
  77803. !*** ./node_modules/lodash/_stackHas.js ***!
  77804. \******************************************/
  77805. /*! no static exports found */
  77806. /***/ (function(module, exports) {
  77807. /**
  77808. * Checks if a stack value for `key` exists.
  77809. *
  77810. * @private
  77811. * @name has
  77812. * @memberOf Stack
  77813. * @param {string} key The key of the entry to check.
  77814. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  77815. */
  77816. function stackHas(key) {
  77817. return this.__data__.has(key);
  77818. }
  77819. module.exports = stackHas;
  77820. /***/ }),
  77821. /***/ "./node_modules/lodash/_stackSet.js":
  77822. /*!******************************************!*\
  77823. !*** ./node_modules/lodash/_stackSet.js ***!
  77824. \******************************************/
  77825. /*! no static exports found */
  77826. /***/ (function(module, exports, __webpack_require__) {
  77827. var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
  77828. Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
  77829. MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");
  77830. /** Used as the size to enable large array optimizations. */
  77831. var LARGE_ARRAY_SIZE = 200;
  77832. /**
  77833. * Sets the stack `key` to `value`.
  77834. *
  77835. * @private
  77836. * @name set
  77837. * @memberOf Stack
  77838. * @param {string} key The key of the value to set.
  77839. * @param {*} value The value to set.
  77840. * @returns {Object} Returns the stack cache instance.
  77841. */
  77842. function stackSet(key, value) {
  77843. var data = this.__data__;
  77844. if (data instanceof ListCache) {
  77845. var pairs = data.__data__;
  77846. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  77847. pairs.push([key, value]);
  77848. this.size = ++data.size;
  77849. return this;
  77850. }
  77851. data = this.__data__ = new MapCache(pairs);
  77852. }
  77853. data.set(key, value);
  77854. this.size = data.size;
  77855. return this;
  77856. }
  77857. module.exports = stackSet;
  77858. /***/ }),
  77859. /***/ "./node_modules/lodash/_strictIndexOf.js":
  77860. /*!***********************************************!*\
  77861. !*** ./node_modules/lodash/_strictIndexOf.js ***!
  77862. \***********************************************/
  77863. /*! no static exports found */
  77864. /***/ (function(module, exports) {
  77865. /**
  77866. * A specialized version of `_.indexOf` which performs strict equality
  77867. * comparisons of values, i.e. `===`.
  77868. *
  77869. * @private
  77870. * @param {Array} array The array to inspect.
  77871. * @param {*} value The value to search for.
  77872. * @param {number} fromIndex The index to search from.
  77873. * @returns {number} Returns the index of the matched value, else `-1`.
  77874. */
  77875. function strictIndexOf(array, value, fromIndex) {
  77876. var index = fromIndex - 1,
  77877. length = array.length;
  77878. while (++index < length) {
  77879. if (array[index] === value) {
  77880. return index;
  77881. }
  77882. }
  77883. return -1;
  77884. }
  77885. module.exports = strictIndexOf;
  77886. /***/ }),
  77887. /***/ "./node_modules/lodash/_stringSize.js":
  77888. /*!********************************************!*\
  77889. !*** ./node_modules/lodash/_stringSize.js ***!
  77890. \********************************************/
  77891. /*! no static exports found */
  77892. /***/ (function(module, exports, __webpack_require__) {
  77893. var asciiSize = __webpack_require__(/*! ./_asciiSize */ "./node_modules/lodash/_asciiSize.js"),
  77894. hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "./node_modules/lodash/_hasUnicode.js"),
  77895. unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "./node_modules/lodash/_unicodeSize.js");
  77896. /**
  77897. * Gets the number of symbols in `string`.
  77898. *
  77899. * @private
  77900. * @param {string} string The string to inspect.
  77901. * @returns {number} Returns the string size.
  77902. */
  77903. function stringSize(string) {
  77904. return hasUnicode(string)
  77905. ? unicodeSize(string)
  77906. : asciiSize(string);
  77907. }
  77908. module.exports = stringSize;
  77909. /***/ }),
  77910. /***/ "./node_modules/lodash/_stringToArray.js":
  77911. /*!***********************************************!*\
  77912. !*** ./node_modules/lodash/_stringToArray.js ***!
  77913. \***********************************************/
  77914. /*! no static exports found */
  77915. /***/ (function(module, exports, __webpack_require__) {
  77916. var asciiToArray = __webpack_require__(/*! ./_asciiToArray */ "./node_modules/lodash/_asciiToArray.js"),
  77917. hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "./node_modules/lodash/_hasUnicode.js"),
  77918. unicodeToArray = __webpack_require__(/*! ./_unicodeToArray */ "./node_modules/lodash/_unicodeToArray.js");
  77919. /**
  77920. * Converts `string` to an array.
  77921. *
  77922. * @private
  77923. * @param {string} string The string to convert.
  77924. * @returns {Array} Returns the converted array.
  77925. */
  77926. function stringToArray(string) {
  77927. return hasUnicode(string)
  77928. ? unicodeToArray(string)
  77929. : asciiToArray(string);
  77930. }
  77931. module.exports = stringToArray;
  77932. /***/ }),
  77933. /***/ "./node_modules/lodash/_stringToPath.js":
  77934. /*!**********************************************!*\
  77935. !*** ./node_modules/lodash/_stringToPath.js ***!
  77936. \**********************************************/
  77937. /*! no static exports found */
  77938. /***/ (function(module, exports, __webpack_require__) {
  77939. var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "./node_modules/lodash/_memoizeCapped.js");
  77940. /** Used to match property names within property paths. */
  77941. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  77942. /** Used to match backslashes in property paths. */
  77943. var reEscapeChar = /\\(\\)?/g;
  77944. /**
  77945. * Converts `string` to a property path array.
  77946. *
  77947. * @private
  77948. * @param {string} string The string to convert.
  77949. * @returns {Array} Returns the property path array.
  77950. */
  77951. var stringToPath = memoizeCapped(function(string) {
  77952. var result = [];
  77953. if (string.charCodeAt(0) === 46 /* . */) {
  77954. result.push('');
  77955. }
  77956. string.replace(rePropName, function(match, number, quote, subString) {
  77957. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  77958. });
  77959. return result;
  77960. });
  77961. module.exports = stringToPath;
  77962. /***/ }),
  77963. /***/ "./node_modules/lodash/_toKey.js":
  77964. /*!***************************************!*\
  77965. !*** ./node_modules/lodash/_toKey.js ***!
  77966. \***************************************/
  77967. /*! no static exports found */
  77968. /***/ (function(module, exports, __webpack_require__) {
  77969. var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
  77970. /** Used as references for various `Number` constants. */
  77971. var INFINITY = 1 / 0;
  77972. /**
  77973. * Converts `value` to a string key if it's not a string or symbol.
  77974. *
  77975. * @private
  77976. * @param {*} value The value to inspect.
  77977. * @returns {string|symbol} Returns the key.
  77978. */
  77979. function toKey(value) {
  77980. if (typeof value == 'string' || isSymbol(value)) {
  77981. return value;
  77982. }
  77983. var result = (value + '');
  77984. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  77985. }
  77986. module.exports = toKey;
  77987. /***/ }),
  77988. /***/ "./node_modules/lodash/_toSource.js":
  77989. /*!******************************************!*\
  77990. !*** ./node_modules/lodash/_toSource.js ***!
  77991. \******************************************/
  77992. /*! no static exports found */
  77993. /***/ (function(module, exports) {
  77994. /** Used for built-in method references. */
  77995. var funcProto = Function.prototype;
  77996. /** Used to resolve the decompiled source of functions. */
  77997. var funcToString = funcProto.toString;
  77998. /**
  77999. * Converts `func` to its source code.
  78000. *
  78001. * @private
  78002. * @param {Function} func The function to convert.
  78003. * @returns {string} Returns the source code.
  78004. */
  78005. function toSource(func) {
  78006. if (func != null) {
  78007. try {
  78008. return funcToString.call(func);
  78009. } catch (e) {}
  78010. try {
  78011. return (func + '');
  78012. } catch (e) {}
  78013. }
  78014. return '';
  78015. }
  78016. module.exports = toSource;
  78017. /***/ }),
  78018. /***/ "./node_modules/lodash/_trimmedEndIndex.js":
  78019. /*!*************************************************!*\
  78020. !*** ./node_modules/lodash/_trimmedEndIndex.js ***!
  78021. \*************************************************/
  78022. /*! no static exports found */
  78023. /***/ (function(module, exports) {
  78024. /** Used to match a single whitespace character. */
  78025. var reWhitespace = /\s/;
  78026. /**
  78027. * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
  78028. * character of `string`.
  78029. *
  78030. * @private
  78031. * @param {string} string The string to inspect.
  78032. * @returns {number} Returns the index of the last non-whitespace character.
  78033. */
  78034. function trimmedEndIndex(string) {
  78035. var index = string.length;
  78036. while (index-- && reWhitespace.test(string.charAt(index))) {}
  78037. return index;
  78038. }
  78039. module.exports = trimmedEndIndex;
  78040. /***/ }),
  78041. /***/ "./node_modules/lodash/_unicodeSize.js":
  78042. /*!*********************************************!*\
  78043. !*** ./node_modules/lodash/_unicodeSize.js ***!
  78044. \*********************************************/
  78045. /*! no static exports found */
  78046. /***/ (function(module, exports) {
  78047. /** Used to compose unicode character classes. */
  78048. var rsAstralRange = '\\ud800-\\udfff',
  78049. rsComboMarksRange = '\\u0300-\\u036f',
  78050. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  78051. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  78052. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  78053. rsVarRange = '\\ufe0e\\ufe0f';
  78054. /** Used to compose unicode capture groups. */
  78055. var rsAstral = '[' + rsAstralRange + ']',
  78056. rsCombo = '[' + rsComboRange + ']',
  78057. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  78058. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  78059. rsNonAstral = '[^' + rsAstralRange + ']',
  78060. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  78061. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  78062. rsZWJ = '\\u200d';
  78063. /** Used to compose unicode regexes. */
  78064. var reOptMod = rsModifier + '?',
  78065. rsOptVar = '[' + rsVarRange + ']?',
  78066. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  78067. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  78068. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  78069. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  78070. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  78071. /**
  78072. * Gets the size of a Unicode `string`.
  78073. *
  78074. * @private
  78075. * @param {string} string The string inspect.
  78076. * @returns {number} Returns the string size.
  78077. */
  78078. function unicodeSize(string) {
  78079. var result = reUnicode.lastIndex = 0;
  78080. while (reUnicode.test(string)) {
  78081. ++result;
  78082. }
  78083. return result;
  78084. }
  78085. module.exports = unicodeSize;
  78086. /***/ }),
  78087. /***/ "./node_modules/lodash/_unicodeToArray.js":
  78088. /*!************************************************!*\
  78089. !*** ./node_modules/lodash/_unicodeToArray.js ***!
  78090. \************************************************/
  78091. /*! no static exports found */
  78092. /***/ (function(module, exports) {
  78093. /** Used to compose unicode character classes. */
  78094. var rsAstralRange = '\\ud800-\\udfff',
  78095. rsComboMarksRange = '\\u0300-\\u036f',
  78096. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  78097. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  78098. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  78099. rsVarRange = '\\ufe0e\\ufe0f';
  78100. /** Used to compose unicode capture groups. */
  78101. var rsAstral = '[' + rsAstralRange + ']',
  78102. rsCombo = '[' + rsComboRange + ']',
  78103. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  78104. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  78105. rsNonAstral = '[^' + rsAstralRange + ']',
  78106. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  78107. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  78108. rsZWJ = '\\u200d';
  78109. /** Used to compose unicode regexes. */
  78110. var reOptMod = rsModifier + '?',
  78111. rsOptVar = '[' + rsVarRange + ']?',
  78112. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  78113. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  78114. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  78115. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  78116. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  78117. /**
  78118. * Converts a Unicode `string` to an array.
  78119. *
  78120. * @private
  78121. * @param {string} string The string to convert.
  78122. * @returns {Array} Returns the converted array.
  78123. */
  78124. function unicodeToArray(string) {
  78125. return string.match(reUnicode) || [];
  78126. }
  78127. module.exports = unicodeToArray;
  78128. /***/ }),
  78129. /***/ "./node_modules/lodash/cloneDeep.js":
  78130. /*!******************************************!*\
  78131. !*** ./node_modules/lodash/cloneDeep.js ***!
  78132. \******************************************/
  78133. /*! no static exports found */
  78134. /***/ (function(module, exports, __webpack_require__) {
  78135. var baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js");
  78136. /** Used to compose bitmasks for cloning. */
  78137. var CLONE_DEEP_FLAG = 1,
  78138. CLONE_SYMBOLS_FLAG = 4;
  78139. /**
  78140. * This method is like `_.clone` except that it recursively clones `value`.
  78141. *
  78142. * @static
  78143. * @memberOf _
  78144. * @since 1.0.0
  78145. * @category Lang
  78146. * @param {*} value The value to recursively clone.
  78147. * @returns {*} Returns the deep cloned value.
  78148. * @see _.clone
  78149. * @example
  78150. *
  78151. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  78152. *
  78153. * var deep = _.cloneDeep(objects);
  78154. * console.log(deep[0] === objects[0]);
  78155. * // => false
  78156. */
  78157. function cloneDeep(value) {
  78158. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  78159. }
  78160. module.exports = cloneDeep;
  78161. /***/ }),
  78162. /***/ "./node_modules/lodash/constant.js":
  78163. /*!*****************************************!*\
  78164. !*** ./node_modules/lodash/constant.js ***!
  78165. \*****************************************/
  78166. /*! no static exports found */
  78167. /***/ (function(module, exports) {
  78168. /**
  78169. * Creates a function that returns `value`.
  78170. *
  78171. * @static
  78172. * @memberOf _
  78173. * @since 2.4.0
  78174. * @category Util
  78175. * @param {*} value The value to return from the new function.
  78176. * @returns {Function} Returns the new constant function.
  78177. * @example
  78178. *
  78179. * var objects = _.times(2, _.constant({ 'a': 1 }));
  78180. *
  78181. * console.log(objects);
  78182. * // => [{ 'a': 1 }, { 'a': 1 }]
  78183. *
  78184. * console.log(objects[0] === objects[1]);
  78185. * // => true
  78186. */
  78187. function constant(value) {
  78188. return function() {
  78189. return value;
  78190. };
  78191. }
  78192. module.exports = constant;
  78193. /***/ }),
  78194. /***/ "./node_modules/lodash/debounce.js":
  78195. /*!*****************************************!*\
  78196. !*** ./node_modules/lodash/debounce.js ***!
  78197. \*****************************************/
  78198. /*! no static exports found */
  78199. /***/ (function(module, exports, __webpack_require__) {
  78200. var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  78201. now = __webpack_require__(/*! ./now */ "./node_modules/lodash/now.js"),
  78202. toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");
  78203. /** Error message constants. */
  78204. var FUNC_ERROR_TEXT = 'Expected a function';
  78205. /* Built-in method references for those with the same name as other `lodash` methods. */
  78206. var nativeMax = Math.max,
  78207. nativeMin = Math.min;
  78208. /**
  78209. * Creates a debounced function that delays invoking `func` until after `wait`
  78210. * milliseconds have elapsed since the last time the debounced function was
  78211. * invoked. The debounced function comes with a `cancel` method to cancel
  78212. * delayed `func` invocations and a `flush` method to immediately invoke them.
  78213. * Provide `options` to indicate whether `func` should be invoked on the
  78214. * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
  78215. * with the last arguments provided to the debounced function. Subsequent
  78216. * calls to the debounced function return the result of the last `func`
  78217. * invocation.
  78218. *
  78219. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  78220. * invoked on the trailing edge of the timeout only if the debounced function
  78221. * is invoked more than once during the `wait` timeout.
  78222. *
  78223. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  78224. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  78225. *
  78226. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  78227. * for details over the differences between `_.debounce` and `_.throttle`.
  78228. *
  78229. * @static
  78230. * @memberOf _
  78231. * @since 0.1.0
  78232. * @category Function
  78233. * @param {Function} func The function to debounce.
  78234. * @param {number} [wait=0] The number of milliseconds to delay.
  78235. * @param {Object} [options={}] The options object.
  78236. * @param {boolean} [options.leading=false]
  78237. * Specify invoking on the leading edge of the timeout.
  78238. * @param {number} [options.maxWait]
  78239. * The maximum time `func` is allowed to be delayed before it's invoked.
  78240. * @param {boolean} [options.trailing=true]
  78241. * Specify invoking on the trailing edge of the timeout.
  78242. * @returns {Function} Returns the new debounced function.
  78243. * @example
  78244. *
  78245. * // Avoid costly calculations while the window size is in flux.
  78246. * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
  78247. *
  78248. * // Invoke `sendMail` when clicked, debouncing subsequent calls.
  78249. * jQuery(element).on('click', _.debounce(sendMail, 300, {
  78250. * 'leading': true,
  78251. * 'trailing': false
  78252. * }));
  78253. *
  78254. * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
  78255. * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
  78256. * var source = new EventSource('/stream');
  78257. * jQuery(source).on('message', debounced);
  78258. *
  78259. * // Cancel the trailing debounced invocation.
  78260. * jQuery(window).on('popstate', debounced.cancel);
  78261. */
  78262. function debounce(func, wait, options) {
  78263. var lastArgs,
  78264. lastThis,
  78265. maxWait,
  78266. result,
  78267. timerId,
  78268. lastCallTime,
  78269. lastInvokeTime = 0,
  78270. leading = false,
  78271. maxing = false,
  78272. trailing = true;
  78273. if (typeof func != 'function') {
  78274. throw new TypeError(FUNC_ERROR_TEXT);
  78275. }
  78276. wait = toNumber(wait) || 0;
  78277. if (isObject(options)) {
  78278. leading = !!options.leading;
  78279. maxing = 'maxWait' in options;
  78280. maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
  78281. trailing = 'trailing' in options ? !!options.trailing : trailing;
  78282. }
  78283. function invokeFunc(time) {
  78284. var args = lastArgs,
  78285. thisArg = lastThis;
  78286. lastArgs = lastThis = undefined;
  78287. lastInvokeTime = time;
  78288. result = func.apply(thisArg, args);
  78289. return result;
  78290. }
  78291. function leadingEdge(time) {
  78292. // Reset any `maxWait` timer.
  78293. lastInvokeTime = time;
  78294. // Start the timer for the trailing edge.
  78295. timerId = setTimeout(timerExpired, wait);
  78296. // Invoke the leading edge.
  78297. return leading ? invokeFunc(time) : result;
  78298. }
  78299. function remainingWait(time) {
  78300. var timeSinceLastCall = time - lastCallTime,
  78301. timeSinceLastInvoke = time - lastInvokeTime,
  78302. timeWaiting = wait - timeSinceLastCall;
  78303. return maxing
  78304. ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
  78305. : timeWaiting;
  78306. }
  78307. function shouldInvoke(time) {
  78308. var timeSinceLastCall = time - lastCallTime,
  78309. timeSinceLastInvoke = time - lastInvokeTime;
  78310. // Either this is the first call, activity has stopped and we're at the
  78311. // trailing edge, the system time has gone backwards and we're treating
  78312. // it as the trailing edge, or we've hit the `maxWait` limit.
  78313. return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
  78314. (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
  78315. }
  78316. function timerExpired() {
  78317. var time = now();
  78318. if (shouldInvoke(time)) {
  78319. return trailingEdge(time);
  78320. }
  78321. // Restart the timer.
  78322. timerId = setTimeout(timerExpired, remainingWait(time));
  78323. }
  78324. function trailingEdge(time) {
  78325. timerId = undefined;
  78326. // Only invoke if we have `lastArgs` which means `func` has been
  78327. // debounced at least once.
  78328. if (trailing && lastArgs) {
  78329. return invokeFunc(time);
  78330. }
  78331. lastArgs = lastThis = undefined;
  78332. return result;
  78333. }
  78334. function cancel() {
  78335. if (timerId !== undefined) {
  78336. clearTimeout(timerId);
  78337. }
  78338. lastInvokeTime = 0;
  78339. lastArgs = lastCallTime = lastThis = timerId = undefined;
  78340. }
  78341. function flush() {
  78342. return timerId === undefined ? result : trailingEdge(now());
  78343. }
  78344. function debounced() {
  78345. var time = now(),
  78346. isInvoking = shouldInvoke(time);
  78347. lastArgs = arguments;
  78348. lastThis = this;
  78349. lastCallTime = time;
  78350. if (isInvoking) {
  78351. if (timerId === undefined) {
  78352. return leadingEdge(lastCallTime);
  78353. }
  78354. if (maxing) {
  78355. // Handle invocations in a tight loop.
  78356. clearTimeout(timerId);
  78357. timerId = setTimeout(timerExpired, wait);
  78358. return invokeFunc(lastCallTime);
  78359. }
  78360. }
  78361. if (timerId === undefined) {
  78362. timerId = setTimeout(timerExpired, wait);
  78363. }
  78364. return result;
  78365. }
  78366. debounced.cancel = cancel;
  78367. debounced.flush = flush;
  78368. return debounced;
  78369. }
  78370. module.exports = debounce;
  78371. /***/ }),
  78372. /***/ "./node_modules/lodash/eq.js":
  78373. /*!***********************************!*\
  78374. !*** ./node_modules/lodash/eq.js ***!
  78375. \***********************************/
  78376. /*! no static exports found */
  78377. /***/ (function(module, exports) {
  78378. /**
  78379. * Performs a
  78380. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  78381. * comparison between two values to determine if they are equivalent.
  78382. *
  78383. * @static
  78384. * @memberOf _
  78385. * @since 4.0.0
  78386. * @category Lang
  78387. * @param {*} value The value to compare.
  78388. * @param {*} other The other value to compare.
  78389. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  78390. * @example
  78391. *
  78392. * var object = { 'a': 1 };
  78393. * var other = { 'a': 1 };
  78394. *
  78395. * _.eq(object, object);
  78396. * // => true
  78397. *
  78398. * _.eq(object, other);
  78399. * // => false
  78400. *
  78401. * _.eq('a', 'a');
  78402. * // => true
  78403. *
  78404. * _.eq('a', Object('a'));
  78405. * // => false
  78406. *
  78407. * _.eq(NaN, NaN);
  78408. * // => true
  78409. */
  78410. function eq(value, other) {
  78411. return value === other || (value !== value && other !== other);
  78412. }
  78413. module.exports = eq;
  78414. /***/ }),
  78415. /***/ "./node_modules/lodash/find.js":
  78416. /*!*************************************!*\
  78417. !*** ./node_modules/lodash/find.js ***!
  78418. \*************************************/
  78419. /*! no static exports found */
  78420. /***/ (function(module, exports, __webpack_require__) {
  78421. var createFind = __webpack_require__(/*! ./_createFind */ "./node_modules/lodash/_createFind.js"),
  78422. findIndex = __webpack_require__(/*! ./findIndex */ "./node_modules/lodash/findIndex.js");
  78423. /**
  78424. * Iterates over elements of `collection`, returning the first element
  78425. * `predicate` returns truthy for. The predicate is invoked with three
  78426. * arguments: (value, index|key, collection).
  78427. *
  78428. * @static
  78429. * @memberOf _
  78430. * @since 0.1.0
  78431. * @category Collection
  78432. * @param {Array|Object} collection The collection to inspect.
  78433. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  78434. * @param {number} [fromIndex=0] The index to search from.
  78435. * @returns {*} Returns the matched element, else `undefined`.
  78436. * @example
  78437. *
  78438. * var users = [
  78439. * { 'user': 'barney', 'age': 36, 'active': true },
  78440. * { 'user': 'fred', 'age': 40, 'active': false },
  78441. * { 'user': 'pebbles', 'age': 1, 'active': true }
  78442. * ];
  78443. *
  78444. * _.find(users, function(o) { return o.age < 40; });
  78445. * // => object for 'barney'
  78446. *
  78447. * // The `_.matches` iteratee shorthand.
  78448. * _.find(users, { 'age': 1, 'active': true });
  78449. * // => object for 'pebbles'
  78450. *
  78451. * // The `_.matchesProperty` iteratee shorthand.
  78452. * _.find(users, ['active', false]);
  78453. * // => object for 'fred'
  78454. *
  78455. * // The `_.property` iteratee shorthand.
  78456. * _.find(users, 'active');
  78457. * // => object for 'barney'
  78458. */
  78459. var find = createFind(findIndex);
  78460. module.exports = find;
  78461. /***/ }),
  78462. /***/ "./node_modules/lodash/findIndex.js":
  78463. /*!******************************************!*\
  78464. !*** ./node_modules/lodash/findIndex.js ***!
  78465. \******************************************/
  78466. /*! no static exports found */
  78467. /***/ (function(module, exports, __webpack_require__) {
  78468. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
  78469. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
  78470. toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js");
  78471. /* Built-in method references for those with the same name as other `lodash` methods. */
  78472. var nativeMax = Math.max;
  78473. /**
  78474. * This method is like `_.find` except that it returns the index of the first
  78475. * element `predicate` returns truthy for instead of the element itself.
  78476. *
  78477. * @static
  78478. * @memberOf _
  78479. * @since 1.1.0
  78480. * @category Array
  78481. * @param {Array} array The array to inspect.
  78482. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  78483. * @param {number} [fromIndex=0] The index to search from.
  78484. * @returns {number} Returns the index of the found element, else `-1`.
  78485. * @example
  78486. *
  78487. * var users = [
  78488. * { 'user': 'barney', 'active': false },
  78489. * { 'user': 'fred', 'active': false },
  78490. * { 'user': 'pebbles', 'active': true }
  78491. * ];
  78492. *
  78493. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  78494. * // => 0
  78495. *
  78496. * // The `_.matches` iteratee shorthand.
  78497. * _.findIndex(users, { 'user': 'fred', 'active': false });
  78498. * // => 1
  78499. *
  78500. * // The `_.matchesProperty` iteratee shorthand.
  78501. * _.findIndex(users, ['active', false]);
  78502. * // => 0
  78503. *
  78504. * // The `_.property` iteratee shorthand.
  78505. * _.findIndex(users, 'active');
  78506. * // => 2
  78507. */
  78508. function findIndex(array, predicate, fromIndex) {
  78509. var length = array == null ? 0 : array.length;
  78510. if (!length) {
  78511. return -1;
  78512. }
  78513. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  78514. if (index < 0) {
  78515. index = nativeMax(length + index, 0);
  78516. }
  78517. return baseFindIndex(array, baseIteratee(predicate, 3), index);
  78518. }
  78519. module.exports = findIndex;
  78520. /***/ }),
  78521. /***/ "./node_modules/lodash/flatten.js":
  78522. /*!****************************************!*\
  78523. !*** ./node_modules/lodash/flatten.js ***!
  78524. \****************************************/
  78525. /*! no static exports found */
  78526. /***/ (function(module, exports, __webpack_require__) {
  78527. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js");
  78528. /**
  78529. * Flattens `array` a single level deep.
  78530. *
  78531. * @static
  78532. * @memberOf _
  78533. * @since 0.1.0
  78534. * @category Array
  78535. * @param {Array} array The array to flatten.
  78536. * @returns {Array} Returns the new flattened array.
  78537. * @example
  78538. *
  78539. * _.flatten([1, [2, [3, [4]], 5]]);
  78540. * // => [1, 2, [3, [4]], 5]
  78541. */
  78542. function flatten(array) {
  78543. var length = array == null ? 0 : array.length;
  78544. return length ? baseFlatten(array, 1) : [];
  78545. }
  78546. module.exports = flatten;
  78547. /***/ }),
  78548. /***/ "./node_modules/lodash/get.js":
  78549. /*!************************************!*\
  78550. !*** ./node_modules/lodash/get.js ***!
  78551. \************************************/
  78552. /*! no static exports found */
  78553. /***/ (function(module, exports, __webpack_require__) {
  78554. var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");
  78555. /**
  78556. * Gets the value at `path` of `object`. If the resolved value is
  78557. * `undefined`, the `defaultValue` is returned in its place.
  78558. *
  78559. * @static
  78560. * @memberOf _
  78561. * @since 3.7.0
  78562. * @category Object
  78563. * @param {Object} object The object to query.
  78564. * @param {Array|string} path The path of the property to get.
  78565. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  78566. * @returns {*} Returns the resolved value.
  78567. * @example
  78568. *
  78569. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  78570. *
  78571. * _.get(object, 'a[0].b.c');
  78572. * // => 3
  78573. *
  78574. * _.get(object, ['a', '0', 'b', 'c']);
  78575. * // => 3
  78576. *
  78577. * _.get(object, 'a.b.c', 'default');
  78578. * // => 'default'
  78579. */
  78580. function get(object, path, defaultValue) {
  78581. var result = object == null ? undefined : baseGet(object, path);
  78582. return result === undefined ? defaultValue : result;
  78583. }
  78584. module.exports = get;
  78585. /***/ }),
  78586. /***/ "./node_modules/lodash/has.js":
  78587. /*!************************************!*\
  78588. !*** ./node_modules/lodash/has.js ***!
  78589. \************************************/
  78590. /*! no static exports found */
  78591. /***/ (function(module, exports, __webpack_require__) {
  78592. var baseHas = __webpack_require__(/*! ./_baseHas */ "./node_modules/lodash/_baseHas.js"),
  78593. hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");
  78594. /**
  78595. * Checks if `path` is a direct property of `object`.
  78596. *
  78597. * @static
  78598. * @since 0.1.0
  78599. * @memberOf _
  78600. * @category Object
  78601. * @param {Object} object The object to query.
  78602. * @param {Array|string} path The path to check.
  78603. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  78604. * @example
  78605. *
  78606. * var object = { 'a': { 'b': 2 } };
  78607. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  78608. *
  78609. * _.has(object, 'a');
  78610. * // => true
  78611. *
  78612. * _.has(object, 'a.b');
  78613. * // => true
  78614. *
  78615. * _.has(object, ['a', 'b']);
  78616. * // => true
  78617. *
  78618. * _.has(other, 'a');
  78619. * // => false
  78620. */
  78621. function has(object, path) {
  78622. return object != null && hasPath(object, path, baseHas);
  78623. }
  78624. module.exports = has;
  78625. /***/ }),
  78626. /***/ "./node_modules/lodash/hasIn.js":
  78627. /*!**************************************!*\
  78628. !*** ./node_modules/lodash/hasIn.js ***!
  78629. \**************************************/
  78630. /*! no static exports found */
  78631. /***/ (function(module, exports, __webpack_require__) {
  78632. var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "./node_modules/lodash/_baseHasIn.js"),
  78633. hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");
  78634. /**
  78635. * Checks if `path` is a direct or inherited property of `object`.
  78636. *
  78637. * @static
  78638. * @memberOf _
  78639. * @since 4.0.0
  78640. * @category Object
  78641. * @param {Object} object The object to query.
  78642. * @param {Array|string} path The path to check.
  78643. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  78644. * @example
  78645. *
  78646. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  78647. *
  78648. * _.hasIn(object, 'a');
  78649. * // => true
  78650. *
  78651. * _.hasIn(object, 'a.b');
  78652. * // => true
  78653. *
  78654. * _.hasIn(object, ['a', 'b']);
  78655. * // => true
  78656. *
  78657. * _.hasIn(object, 'b');
  78658. * // => false
  78659. */
  78660. function hasIn(object, path) {
  78661. return object != null && hasPath(object, path, baseHasIn);
  78662. }
  78663. module.exports = hasIn;
  78664. /***/ }),
  78665. /***/ "./node_modules/lodash/identity.js":
  78666. /*!*****************************************!*\
  78667. !*** ./node_modules/lodash/identity.js ***!
  78668. \*****************************************/
  78669. /*! no static exports found */
  78670. /***/ (function(module, exports) {
  78671. /**
  78672. * This method returns the first argument it receives.
  78673. *
  78674. * @static
  78675. * @since 0.1.0
  78676. * @memberOf _
  78677. * @category Util
  78678. * @param {*} value Any value.
  78679. * @returns {*} Returns `value`.
  78680. * @example
  78681. *
  78682. * var object = { 'a': 1 };
  78683. *
  78684. * console.log(_.identity(object) === object);
  78685. * // => true
  78686. */
  78687. function identity(value) {
  78688. return value;
  78689. }
  78690. module.exports = identity;
  78691. /***/ }),
  78692. /***/ "./node_modules/lodash/isArguments.js":
  78693. /*!********************************************!*\
  78694. !*** ./node_modules/lodash/isArguments.js ***!
  78695. \********************************************/
  78696. /*! no static exports found */
  78697. /***/ (function(module, exports, __webpack_require__) {
  78698. var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "./node_modules/lodash/_baseIsArguments.js"),
  78699. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  78700. /** Used for built-in method references. */
  78701. var objectProto = Object.prototype;
  78702. /** Used to check objects for own properties. */
  78703. var hasOwnProperty = objectProto.hasOwnProperty;
  78704. /** Built-in value references. */
  78705. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  78706. /**
  78707. * Checks if `value` is likely an `arguments` object.
  78708. *
  78709. * @static
  78710. * @memberOf _
  78711. * @since 0.1.0
  78712. * @category Lang
  78713. * @param {*} value The value to check.
  78714. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  78715. * else `false`.
  78716. * @example
  78717. *
  78718. * _.isArguments(function() { return arguments; }());
  78719. * // => true
  78720. *
  78721. * _.isArguments([1, 2, 3]);
  78722. * // => false
  78723. */
  78724. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  78725. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  78726. !propertyIsEnumerable.call(value, 'callee');
  78727. };
  78728. module.exports = isArguments;
  78729. /***/ }),
  78730. /***/ "./node_modules/lodash/isArray.js":
  78731. /*!****************************************!*\
  78732. !*** ./node_modules/lodash/isArray.js ***!
  78733. \****************************************/
  78734. /*! no static exports found */
  78735. /***/ (function(module, exports) {
  78736. /**
  78737. * Checks if `value` is classified as an `Array` object.
  78738. *
  78739. * @static
  78740. * @memberOf _
  78741. * @since 0.1.0
  78742. * @category Lang
  78743. * @param {*} value The value to check.
  78744. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  78745. * @example
  78746. *
  78747. * _.isArray([1, 2, 3]);
  78748. * // => true
  78749. *
  78750. * _.isArray(document.body.children);
  78751. * // => false
  78752. *
  78753. * _.isArray('abc');
  78754. * // => false
  78755. *
  78756. * _.isArray(_.noop);
  78757. * // => false
  78758. */
  78759. var isArray = Array.isArray;
  78760. module.exports = isArray;
  78761. /***/ }),
  78762. /***/ "./node_modules/lodash/isArrayLike.js":
  78763. /*!********************************************!*\
  78764. !*** ./node_modules/lodash/isArrayLike.js ***!
  78765. \********************************************/
  78766. /*! no static exports found */
  78767. /***/ (function(module, exports, __webpack_require__) {
  78768. var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
  78769. isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js");
  78770. /**
  78771. * Checks if `value` is array-like. A value is considered array-like if it's
  78772. * not a function and has a `value.length` that's an integer greater than or
  78773. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  78774. *
  78775. * @static
  78776. * @memberOf _
  78777. * @since 4.0.0
  78778. * @category Lang
  78779. * @param {*} value The value to check.
  78780. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  78781. * @example
  78782. *
  78783. * _.isArrayLike([1, 2, 3]);
  78784. * // => true
  78785. *
  78786. * _.isArrayLike(document.body.children);
  78787. * // => true
  78788. *
  78789. * _.isArrayLike('abc');
  78790. * // => true
  78791. *
  78792. * _.isArrayLike(_.noop);
  78793. * // => false
  78794. */
  78795. function isArrayLike(value) {
  78796. return value != null && isLength(value.length) && !isFunction(value);
  78797. }
  78798. module.exports = isArrayLike;
  78799. /***/ }),
  78800. /***/ "./node_modules/lodash/isArrayLikeObject.js":
  78801. /*!**************************************************!*\
  78802. !*** ./node_modules/lodash/isArrayLikeObject.js ***!
  78803. \**************************************************/
  78804. /*! no static exports found */
  78805. /***/ (function(module, exports, __webpack_require__) {
  78806. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
  78807. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  78808. /**
  78809. * This method is like `_.isArrayLike` except that it also checks if `value`
  78810. * is an object.
  78811. *
  78812. * @static
  78813. * @memberOf _
  78814. * @since 4.0.0
  78815. * @category Lang
  78816. * @param {*} value The value to check.
  78817. * @returns {boolean} Returns `true` if `value` is an array-like object,
  78818. * else `false`.
  78819. * @example
  78820. *
  78821. * _.isArrayLikeObject([1, 2, 3]);
  78822. * // => true
  78823. *
  78824. * _.isArrayLikeObject(document.body.children);
  78825. * // => true
  78826. *
  78827. * _.isArrayLikeObject('abc');
  78828. * // => false
  78829. *
  78830. * _.isArrayLikeObject(_.noop);
  78831. * // => false
  78832. */
  78833. function isArrayLikeObject(value) {
  78834. return isObjectLike(value) && isArrayLike(value);
  78835. }
  78836. module.exports = isArrayLikeObject;
  78837. /***/ }),
  78838. /***/ "./node_modules/lodash/isBuffer.js":
  78839. /*!*****************************************!*\
  78840. !*** ./node_modules/lodash/isBuffer.js ***!
  78841. \*****************************************/
  78842. /*! no static exports found */
  78843. /***/ (function(module, exports, __webpack_require__) {
  78844. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"),
  78845. stubFalse = __webpack_require__(/*! ./stubFalse */ "./node_modules/lodash/stubFalse.js");
  78846. /** Detect free variable `exports`. */
  78847. var freeExports = true && exports && !exports.nodeType && exports;
  78848. /** Detect free variable `module`. */
  78849. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  78850. /** Detect the popular CommonJS extension `module.exports`. */
  78851. var moduleExports = freeModule && freeModule.exports === freeExports;
  78852. /** Built-in value references. */
  78853. var Buffer = moduleExports ? root.Buffer : undefined;
  78854. /* Built-in method references for those with the same name as other `lodash` methods. */
  78855. var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
  78856. /**
  78857. * Checks if `value` is a buffer.
  78858. *
  78859. * @static
  78860. * @memberOf _
  78861. * @since 4.3.0
  78862. * @category Lang
  78863. * @param {*} value The value to check.
  78864. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  78865. * @example
  78866. *
  78867. * _.isBuffer(new Buffer(2));
  78868. * // => true
  78869. *
  78870. * _.isBuffer(new Uint8Array(2));
  78871. * // => false
  78872. */
  78873. var isBuffer = nativeIsBuffer || stubFalse;
  78874. module.exports = isBuffer;
  78875. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  78876. /***/ }),
  78877. /***/ "./node_modules/lodash/isFunction.js":
  78878. /*!*******************************************!*\
  78879. !*** ./node_modules/lodash/isFunction.js ***!
  78880. \*******************************************/
  78881. /*! no static exports found */
  78882. /***/ (function(module, exports, __webpack_require__) {
  78883. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  78884. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
  78885. /** `Object#toString` result references. */
  78886. var asyncTag = '[object AsyncFunction]',
  78887. funcTag = '[object Function]',
  78888. genTag = '[object GeneratorFunction]',
  78889. proxyTag = '[object Proxy]';
  78890. /**
  78891. * Checks if `value` is classified as a `Function` object.
  78892. *
  78893. * @static
  78894. * @memberOf _
  78895. * @since 0.1.0
  78896. * @category Lang
  78897. * @param {*} value The value to check.
  78898. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  78899. * @example
  78900. *
  78901. * _.isFunction(_);
  78902. * // => true
  78903. *
  78904. * _.isFunction(/abc/);
  78905. * // => false
  78906. */
  78907. function isFunction(value) {
  78908. if (!isObject(value)) {
  78909. return false;
  78910. }
  78911. // The use of `Object#toString` avoids issues with the `typeof` operator
  78912. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  78913. var tag = baseGetTag(value);
  78914. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  78915. }
  78916. module.exports = isFunction;
  78917. /***/ }),
  78918. /***/ "./node_modules/lodash/isLength.js":
  78919. /*!*****************************************!*\
  78920. !*** ./node_modules/lodash/isLength.js ***!
  78921. \*****************************************/
  78922. /*! no static exports found */
  78923. /***/ (function(module, exports) {
  78924. /** Used as references for various `Number` constants. */
  78925. var MAX_SAFE_INTEGER = 9007199254740991;
  78926. /**
  78927. * Checks if `value` is a valid array-like length.
  78928. *
  78929. * **Note:** This method is loosely based on
  78930. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  78931. *
  78932. * @static
  78933. * @memberOf _
  78934. * @since 4.0.0
  78935. * @category Lang
  78936. * @param {*} value The value to check.
  78937. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  78938. * @example
  78939. *
  78940. * _.isLength(3);
  78941. * // => true
  78942. *
  78943. * _.isLength(Number.MIN_VALUE);
  78944. * // => false
  78945. *
  78946. * _.isLength(Infinity);
  78947. * // => false
  78948. *
  78949. * _.isLength('3');
  78950. * // => false
  78951. */
  78952. function isLength(value) {
  78953. return typeof value == 'number' &&
  78954. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  78955. }
  78956. module.exports = isLength;
  78957. /***/ }),
  78958. /***/ "./node_modules/lodash/isMap.js":
  78959. /*!**************************************!*\
  78960. !*** ./node_modules/lodash/isMap.js ***!
  78961. \**************************************/
  78962. /*! no static exports found */
  78963. /***/ (function(module, exports, __webpack_require__) {
  78964. var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "./node_modules/lodash/_baseIsMap.js"),
  78965. baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
  78966. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
  78967. /* Node.js helper references. */
  78968. var nodeIsMap = nodeUtil && nodeUtil.isMap;
  78969. /**
  78970. * Checks if `value` is classified as a `Map` object.
  78971. *
  78972. * @static
  78973. * @memberOf _
  78974. * @since 4.3.0
  78975. * @category Lang
  78976. * @param {*} value The value to check.
  78977. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  78978. * @example
  78979. *
  78980. * _.isMap(new Map);
  78981. * // => true
  78982. *
  78983. * _.isMap(new WeakMap);
  78984. * // => false
  78985. */
  78986. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  78987. module.exports = isMap;
  78988. /***/ }),
  78989. /***/ "./node_modules/lodash/isNil.js":
  78990. /*!**************************************!*\
  78991. !*** ./node_modules/lodash/isNil.js ***!
  78992. \**************************************/
  78993. /*! no static exports found */
  78994. /***/ (function(module, exports) {
  78995. /**
  78996. * Checks if `value` is `null` or `undefined`.
  78997. *
  78998. * @static
  78999. * @memberOf _
  79000. * @since 4.0.0
  79001. * @category Lang
  79002. * @param {*} value The value to check.
  79003. * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
  79004. * @example
  79005. *
  79006. * _.isNil(null);
  79007. * // => true
  79008. *
  79009. * _.isNil(void 0);
  79010. * // => true
  79011. *
  79012. * _.isNil(NaN);
  79013. * // => false
  79014. */
  79015. function isNil(value) {
  79016. return value == null;
  79017. }
  79018. module.exports = isNil;
  79019. /***/ }),
  79020. /***/ "./node_modules/lodash/isObject.js":
  79021. /*!*****************************************!*\
  79022. !*** ./node_modules/lodash/isObject.js ***!
  79023. \*****************************************/
  79024. /*! no static exports found */
  79025. /***/ (function(module, exports) {
  79026. /**
  79027. * Checks if `value` is the
  79028. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  79029. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  79030. *
  79031. * @static
  79032. * @memberOf _
  79033. * @since 0.1.0
  79034. * @category Lang
  79035. * @param {*} value The value to check.
  79036. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  79037. * @example
  79038. *
  79039. * _.isObject({});
  79040. * // => true
  79041. *
  79042. * _.isObject([1, 2, 3]);
  79043. * // => true
  79044. *
  79045. * _.isObject(_.noop);
  79046. * // => true
  79047. *
  79048. * _.isObject(null);
  79049. * // => false
  79050. */
  79051. function isObject(value) {
  79052. var type = typeof value;
  79053. return value != null && (type == 'object' || type == 'function');
  79054. }
  79055. module.exports = isObject;
  79056. /***/ }),
  79057. /***/ "./node_modules/lodash/isObjectLike.js":
  79058. /*!*********************************************!*\
  79059. !*** ./node_modules/lodash/isObjectLike.js ***!
  79060. \*********************************************/
  79061. /*! no static exports found */
  79062. /***/ (function(module, exports) {
  79063. /**
  79064. * Checks if `value` is object-like. A value is object-like if it's not `null`
  79065. * and has a `typeof` result of "object".
  79066. *
  79067. * @static
  79068. * @memberOf _
  79069. * @since 4.0.0
  79070. * @category Lang
  79071. * @param {*} value The value to check.
  79072. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  79073. * @example
  79074. *
  79075. * _.isObjectLike({});
  79076. * // => true
  79077. *
  79078. * _.isObjectLike([1, 2, 3]);
  79079. * // => true
  79080. *
  79081. * _.isObjectLike(_.noop);
  79082. * // => false
  79083. *
  79084. * _.isObjectLike(null);
  79085. * // => false
  79086. */
  79087. function isObjectLike(value) {
  79088. return value != null && typeof value == 'object';
  79089. }
  79090. module.exports = isObjectLike;
  79091. /***/ }),
  79092. /***/ "./node_modules/lodash/isPlainObject.js":
  79093. /*!**********************************************!*\
  79094. !*** ./node_modules/lodash/isPlainObject.js ***!
  79095. \**********************************************/
  79096. /*! no static exports found */
  79097. /***/ (function(module, exports, __webpack_require__) {
  79098. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  79099. getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
  79100. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  79101. /** `Object#toString` result references. */
  79102. var objectTag = '[object Object]';
  79103. /** Used for built-in method references. */
  79104. var funcProto = Function.prototype,
  79105. objectProto = Object.prototype;
  79106. /** Used to resolve the decompiled source of functions. */
  79107. var funcToString = funcProto.toString;
  79108. /** Used to check objects for own properties. */
  79109. var hasOwnProperty = objectProto.hasOwnProperty;
  79110. /** Used to infer the `Object` constructor. */
  79111. var objectCtorString = funcToString.call(Object);
  79112. /**
  79113. * Checks if `value` is a plain object, that is, an object created by the
  79114. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  79115. *
  79116. * @static
  79117. * @memberOf _
  79118. * @since 0.8.0
  79119. * @category Lang
  79120. * @param {*} value The value to check.
  79121. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  79122. * @example
  79123. *
  79124. * function Foo() {
  79125. * this.a = 1;
  79126. * }
  79127. *
  79128. * _.isPlainObject(new Foo);
  79129. * // => false
  79130. *
  79131. * _.isPlainObject([1, 2, 3]);
  79132. * // => false
  79133. *
  79134. * _.isPlainObject({ 'x': 0, 'y': 0 });
  79135. * // => true
  79136. *
  79137. * _.isPlainObject(Object.create(null));
  79138. * // => true
  79139. */
  79140. function isPlainObject(value) {
  79141. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  79142. return false;
  79143. }
  79144. var proto = getPrototype(value);
  79145. if (proto === null) {
  79146. return true;
  79147. }
  79148. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  79149. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  79150. funcToString.call(Ctor) == objectCtorString;
  79151. }
  79152. module.exports = isPlainObject;
  79153. /***/ }),
  79154. /***/ "./node_modules/lodash/isRegExp.js":
  79155. /*!*****************************************!*\
  79156. !*** ./node_modules/lodash/isRegExp.js ***!
  79157. \*****************************************/
  79158. /*! no static exports found */
  79159. /***/ (function(module, exports, __webpack_require__) {
  79160. var baseIsRegExp = __webpack_require__(/*! ./_baseIsRegExp */ "./node_modules/lodash/_baseIsRegExp.js"),
  79161. baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
  79162. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
  79163. /* Node.js helper references. */
  79164. var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
  79165. /**
  79166. * Checks if `value` is classified as a `RegExp` object.
  79167. *
  79168. * @static
  79169. * @memberOf _
  79170. * @since 0.1.0
  79171. * @category Lang
  79172. * @param {*} value The value to check.
  79173. * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
  79174. * @example
  79175. *
  79176. * _.isRegExp(/abc/);
  79177. * // => true
  79178. *
  79179. * _.isRegExp('/abc/');
  79180. * // => false
  79181. */
  79182. var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
  79183. module.exports = isRegExp;
  79184. /***/ }),
  79185. /***/ "./node_modules/lodash/isSet.js":
  79186. /*!**************************************!*\
  79187. !*** ./node_modules/lodash/isSet.js ***!
  79188. \**************************************/
  79189. /*! no static exports found */
  79190. /***/ (function(module, exports, __webpack_require__) {
  79191. var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "./node_modules/lodash/_baseIsSet.js"),
  79192. baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
  79193. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
  79194. /* Node.js helper references. */
  79195. var nodeIsSet = nodeUtil && nodeUtil.isSet;
  79196. /**
  79197. * Checks if `value` is classified as a `Set` object.
  79198. *
  79199. * @static
  79200. * @memberOf _
  79201. * @since 4.3.0
  79202. * @category Lang
  79203. * @param {*} value The value to check.
  79204. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  79205. * @example
  79206. *
  79207. * _.isSet(new Set);
  79208. * // => true
  79209. *
  79210. * _.isSet(new WeakSet);
  79211. * // => false
  79212. */
  79213. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  79214. module.exports = isSet;
  79215. /***/ }),
  79216. /***/ "./node_modules/lodash/isSymbol.js":
  79217. /*!*****************************************!*\
  79218. !*** ./node_modules/lodash/isSymbol.js ***!
  79219. \*****************************************/
  79220. /*! no static exports found */
  79221. /***/ (function(module, exports, __webpack_require__) {
  79222. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  79223. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  79224. /** `Object#toString` result references. */
  79225. var symbolTag = '[object Symbol]';
  79226. /**
  79227. * Checks if `value` is classified as a `Symbol` primitive or object.
  79228. *
  79229. * @static
  79230. * @memberOf _
  79231. * @since 4.0.0
  79232. * @category Lang
  79233. * @param {*} value The value to check.
  79234. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  79235. * @example
  79236. *
  79237. * _.isSymbol(Symbol.iterator);
  79238. * // => true
  79239. *
  79240. * _.isSymbol('abc');
  79241. * // => false
  79242. */
  79243. function isSymbol(value) {
  79244. return typeof value == 'symbol' ||
  79245. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  79246. }
  79247. module.exports = isSymbol;
  79248. /***/ }),
  79249. /***/ "./node_modules/lodash/isTypedArray.js":
  79250. /*!*********************************************!*\
  79251. !*** ./node_modules/lodash/isTypedArray.js ***!
  79252. \*********************************************/
  79253. /*! no static exports found */
  79254. /***/ (function(module, exports, __webpack_require__) {
  79255. var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "./node_modules/lodash/_baseIsTypedArray.js"),
  79256. baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
  79257. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
  79258. /* Node.js helper references. */
  79259. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  79260. /**
  79261. * Checks if `value` is classified as a typed array.
  79262. *
  79263. * @static
  79264. * @memberOf _
  79265. * @since 3.0.0
  79266. * @category Lang
  79267. * @param {*} value The value to check.
  79268. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  79269. * @example
  79270. *
  79271. * _.isTypedArray(new Uint8Array);
  79272. * // => true
  79273. *
  79274. * _.isTypedArray([]);
  79275. * // => false
  79276. */
  79277. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  79278. module.exports = isTypedArray;
  79279. /***/ }),
  79280. /***/ "./node_modules/lodash/keys.js":
  79281. /*!*************************************!*\
  79282. !*** ./node_modules/lodash/keys.js ***!
  79283. \*************************************/
  79284. /*! no static exports found */
  79285. /***/ (function(module, exports, __webpack_require__) {
  79286. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
  79287. baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
  79288. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
  79289. /**
  79290. * Creates an array of the own enumerable property names of `object`.
  79291. *
  79292. * **Note:** Non-object values are coerced to objects. See the
  79293. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  79294. * for more details.
  79295. *
  79296. * @static
  79297. * @since 0.1.0
  79298. * @memberOf _
  79299. * @category Object
  79300. * @param {Object} object The object to query.
  79301. * @returns {Array} Returns the array of property names.
  79302. * @example
  79303. *
  79304. * function Foo() {
  79305. * this.a = 1;
  79306. * this.b = 2;
  79307. * }
  79308. *
  79309. * Foo.prototype.c = 3;
  79310. *
  79311. * _.keys(new Foo);
  79312. * // => ['a', 'b'] (iteration order is not guaranteed)
  79313. *
  79314. * _.keys('hi');
  79315. * // => ['0', '1']
  79316. */
  79317. function keys(object) {
  79318. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  79319. }
  79320. module.exports = keys;
  79321. /***/ }),
  79322. /***/ "./node_modules/lodash/keysIn.js":
  79323. /*!***************************************!*\
  79324. !*** ./node_modules/lodash/keysIn.js ***!
  79325. \***************************************/
  79326. /*! no static exports found */
  79327. /***/ (function(module, exports, __webpack_require__) {
  79328. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
  79329. baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "./node_modules/lodash/_baseKeysIn.js"),
  79330. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
  79331. /**
  79332. * Creates an array of the own and inherited enumerable property names of `object`.
  79333. *
  79334. * **Note:** Non-object values are coerced to objects.
  79335. *
  79336. * @static
  79337. * @memberOf _
  79338. * @since 3.0.0
  79339. * @category Object
  79340. * @param {Object} object The object to query.
  79341. * @returns {Array} Returns the array of property names.
  79342. * @example
  79343. *
  79344. * function Foo() {
  79345. * this.a = 1;
  79346. * this.b = 2;
  79347. * }
  79348. *
  79349. * Foo.prototype.c = 3;
  79350. *
  79351. * _.keysIn(new Foo);
  79352. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  79353. */
  79354. function keysIn(object) {
  79355. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  79356. }
  79357. module.exports = keysIn;
  79358. /***/ }),
  79359. /***/ "./node_modules/lodash/last.js":
  79360. /*!*************************************!*\
  79361. !*** ./node_modules/lodash/last.js ***!
  79362. \*************************************/
  79363. /*! no static exports found */
  79364. /***/ (function(module, exports) {
  79365. /**
  79366. * Gets the last element of `array`.
  79367. *
  79368. * @static
  79369. * @memberOf _
  79370. * @since 0.1.0
  79371. * @category Array
  79372. * @param {Array} array The array to query.
  79373. * @returns {*} Returns the last element of `array`.
  79374. * @example
  79375. *
  79376. * _.last([1, 2, 3]);
  79377. * // => 3
  79378. */
  79379. function last(array) {
  79380. var length = array == null ? 0 : array.length;
  79381. return length ? array[length - 1] : undefined;
  79382. }
  79383. module.exports = last;
  79384. /***/ }),
  79385. /***/ "./node_modules/lodash/memoize.js":
  79386. /*!****************************************!*\
  79387. !*** ./node_modules/lodash/memoize.js ***!
  79388. \****************************************/
  79389. /*! no static exports found */
  79390. /***/ (function(module, exports, __webpack_require__) {
  79391. var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");
  79392. /** Error message constants. */
  79393. var FUNC_ERROR_TEXT = 'Expected a function';
  79394. /**
  79395. * Creates a function that memoizes the result of `func`. If `resolver` is
  79396. * provided, it determines the cache key for storing the result based on the
  79397. * arguments provided to the memoized function. By default, the first argument
  79398. * provided to the memoized function is used as the map cache key. The `func`
  79399. * is invoked with the `this` binding of the memoized function.
  79400. *
  79401. * **Note:** The cache is exposed as the `cache` property on the memoized
  79402. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  79403. * constructor with one whose instances implement the
  79404. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  79405. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  79406. *
  79407. * @static
  79408. * @memberOf _
  79409. * @since 0.1.0
  79410. * @category Function
  79411. * @param {Function} func The function to have its output memoized.
  79412. * @param {Function} [resolver] The function to resolve the cache key.
  79413. * @returns {Function} Returns the new memoized function.
  79414. * @example
  79415. *
  79416. * var object = { 'a': 1, 'b': 2 };
  79417. * var other = { 'c': 3, 'd': 4 };
  79418. *
  79419. * var values = _.memoize(_.values);
  79420. * values(object);
  79421. * // => [1, 2]
  79422. *
  79423. * values(other);
  79424. * // => [3, 4]
  79425. *
  79426. * object.a = 2;
  79427. * values(object);
  79428. * // => [1, 2]
  79429. *
  79430. * // Modify the result cache.
  79431. * values.cache.set(object, ['a', 'b']);
  79432. * values(object);
  79433. * // => ['a', 'b']
  79434. *
  79435. * // Replace `_.memoize.Cache`.
  79436. * _.memoize.Cache = WeakMap;
  79437. */
  79438. function memoize(func, resolver) {
  79439. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  79440. throw new TypeError(FUNC_ERROR_TEXT);
  79441. }
  79442. var memoized = function() {
  79443. var args = arguments,
  79444. key = resolver ? resolver.apply(this, args) : args[0],
  79445. cache = memoized.cache;
  79446. if (cache.has(key)) {
  79447. return cache.get(key);
  79448. }
  79449. var result = func.apply(this, args);
  79450. memoized.cache = cache.set(key, result) || cache;
  79451. return result;
  79452. };
  79453. memoized.cache = new (memoize.Cache || MapCache);
  79454. return memoized;
  79455. }
  79456. // Expose `MapCache`.
  79457. memoize.Cache = MapCache;
  79458. module.exports = memoize;
  79459. /***/ }),
  79460. /***/ "./node_modules/lodash/merge.js":
  79461. /*!**************************************!*\
  79462. !*** ./node_modules/lodash/merge.js ***!
  79463. \**************************************/
  79464. /*! no static exports found */
  79465. /***/ (function(module, exports, __webpack_require__) {
  79466. var baseMerge = __webpack_require__(/*! ./_baseMerge */ "./node_modules/lodash/_baseMerge.js"),
  79467. createAssigner = __webpack_require__(/*! ./_createAssigner */ "./node_modules/lodash/_createAssigner.js");
  79468. /**
  79469. * This method is like `_.assign` except that it recursively merges own and
  79470. * inherited enumerable string keyed properties of source objects into the
  79471. * destination object. Source properties that resolve to `undefined` are
  79472. * skipped if a destination value exists. Array and plain object properties
  79473. * are merged recursively. Other objects and value types are overridden by
  79474. * assignment. Source objects are applied from left to right. Subsequent
  79475. * sources overwrite property assignments of previous sources.
  79476. *
  79477. * **Note:** This method mutates `object`.
  79478. *
  79479. * @static
  79480. * @memberOf _
  79481. * @since 0.5.0
  79482. * @category Object
  79483. * @param {Object} object The destination object.
  79484. * @param {...Object} [sources] The source objects.
  79485. * @returns {Object} Returns `object`.
  79486. * @example
  79487. *
  79488. * var object = {
  79489. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  79490. * };
  79491. *
  79492. * var other = {
  79493. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  79494. * };
  79495. *
  79496. * _.merge(object, other);
  79497. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  79498. */
  79499. var merge = createAssigner(function(object, source, srcIndex) {
  79500. baseMerge(object, source, srcIndex);
  79501. });
  79502. module.exports = merge;
  79503. /***/ }),
  79504. /***/ "./node_modules/lodash/noop.js":
  79505. /*!*************************************!*\
  79506. !*** ./node_modules/lodash/noop.js ***!
  79507. \*************************************/
  79508. /*! no static exports found */
  79509. /***/ (function(module, exports) {
  79510. /**
  79511. * This method returns `undefined`.
  79512. *
  79513. * @static
  79514. * @memberOf _
  79515. * @since 2.3.0
  79516. * @category Util
  79517. * @example
  79518. *
  79519. * _.times(2, _.noop);
  79520. * // => [undefined, undefined]
  79521. */
  79522. function noop() {
  79523. // No operation performed.
  79524. }
  79525. module.exports = noop;
  79526. /***/ }),
  79527. /***/ "./node_modules/lodash/now.js":
  79528. /*!************************************!*\
  79529. !*** ./node_modules/lodash/now.js ***!
  79530. \************************************/
  79531. /*! no static exports found */
  79532. /***/ (function(module, exports, __webpack_require__) {
  79533. var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  79534. /**
  79535. * Gets the timestamp of the number of milliseconds that have elapsed since
  79536. * the Unix epoch (1 January 1970 00:00:00 UTC).
  79537. *
  79538. * @static
  79539. * @memberOf _
  79540. * @since 2.4.0
  79541. * @category Date
  79542. * @returns {number} Returns the timestamp.
  79543. * @example
  79544. *
  79545. * _.defer(function(stamp) {
  79546. * console.log(_.now() - stamp);
  79547. * }, _.now());
  79548. * // => Logs the number of milliseconds it took for the deferred invocation.
  79549. */
  79550. var now = function() {
  79551. return root.Date.now();
  79552. };
  79553. module.exports = now;
  79554. /***/ }),
  79555. /***/ "./node_modules/lodash/omit.js":
  79556. /*!*************************************!*\
  79557. !*** ./node_modules/lodash/omit.js ***!
  79558. \*************************************/
  79559. /*! no static exports found */
  79560. /***/ (function(module, exports, __webpack_require__) {
  79561. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
  79562. baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js"),
  79563. baseUnset = __webpack_require__(/*! ./_baseUnset */ "./node_modules/lodash/_baseUnset.js"),
  79564. castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
  79565. copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
  79566. customOmitClone = __webpack_require__(/*! ./_customOmitClone */ "./node_modules/lodash/_customOmitClone.js"),
  79567. flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js"),
  79568. getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js");
  79569. /** Used to compose bitmasks for cloning. */
  79570. var CLONE_DEEP_FLAG = 1,
  79571. CLONE_FLAT_FLAG = 2,
  79572. CLONE_SYMBOLS_FLAG = 4;
  79573. /**
  79574. * The opposite of `_.pick`; this method creates an object composed of the
  79575. * own and inherited enumerable property paths of `object` that are not omitted.
  79576. *
  79577. * **Note:** This method is considerably slower than `_.pick`.
  79578. *
  79579. * @static
  79580. * @since 0.1.0
  79581. * @memberOf _
  79582. * @category Object
  79583. * @param {Object} object The source object.
  79584. * @param {...(string|string[])} [paths] The property paths to omit.
  79585. * @returns {Object} Returns the new object.
  79586. * @example
  79587. *
  79588. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  79589. *
  79590. * _.omit(object, ['a', 'c']);
  79591. * // => { 'b': '2' }
  79592. */
  79593. var omit = flatRest(function(object, paths) {
  79594. var result = {};
  79595. if (object == null) {
  79596. return result;
  79597. }
  79598. var isDeep = false;
  79599. paths = arrayMap(paths, function(path) {
  79600. path = castPath(path, object);
  79601. isDeep || (isDeep = path.length > 1);
  79602. return path;
  79603. });
  79604. copyObject(object, getAllKeysIn(object), result);
  79605. if (isDeep) {
  79606. result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
  79607. }
  79608. var length = paths.length;
  79609. while (length--) {
  79610. baseUnset(result, paths[length]);
  79611. }
  79612. return result;
  79613. });
  79614. module.exports = omit;
  79615. /***/ }),
  79616. /***/ "./node_modules/lodash/padEnd.js":
  79617. /*!***************************************!*\
  79618. !*** ./node_modules/lodash/padEnd.js ***!
  79619. \***************************************/
  79620. /*! no static exports found */
  79621. /***/ (function(module, exports, __webpack_require__) {
  79622. var createPadding = __webpack_require__(/*! ./_createPadding */ "./node_modules/lodash/_createPadding.js"),
  79623. stringSize = __webpack_require__(/*! ./_stringSize */ "./node_modules/lodash/_stringSize.js"),
  79624. toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js"),
  79625. toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
  79626. /**
  79627. * Pads `string` on the right side if it's shorter than `length`. Padding
  79628. * characters are truncated if they exceed `length`.
  79629. *
  79630. * @static
  79631. * @memberOf _
  79632. * @since 4.0.0
  79633. * @category String
  79634. * @param {string} [string=''] The string to pad.
  79635. * @param {number} [length=0] The padding length.
  79636. * @param {string} [chars=' '] The string used as padding.
  79637. * @returns {string} Returns the padded string.
  79638. * @example
  79639. *
  79640. * _.padEnd('abc', 6);
  79641. * // => 'abc '
  79642. *
  79643. * _.padEnd('abc', 6, '_-');
  79644. * // => 'abc_-_'
  79645. *
  79646. * _.padEnd('abc', 3);
  79647. * // => 'abc'
  79648. */
  79649. function padEnd(string, length, chars) {
  79650. string = toString(string);
  79651. length = toInteger(length);
  79652. var strLength = length ? stringSize(string) : 0;
  79653. return (length && strLength < length)
  79654. ? (string + createPadding(length - strLength, chars))
  79655. : string;
  79656. }
  79657. module.exports = padEnd;
  79658. /***/ }),
  79659. /***/ "./node_modules/lodash/padStart.js":
  79660. /*!*****************************************!*\
  79661. !*** ./node_modules/lodash/padStart.js ***!
  79662. \*****************************************/
  79663. /*! no static exports found */
  79664. /***/ (function(module, exports, __webpack_require__) {
  79665. var createPadding = __webpack_require__(/*! ./_createPadding */ "./node_modules/lodash/_createPadding.js"),
  79666. stringSize = __webpack_require__(/*! ./_stringSize */ "./node_modules/lodash/_stringSize.js"),
  79667. toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js"),
  79668. toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
  79669. /**
  79670. * Pads `string` on the left side if it's shorter than `length`. Padding
  79671. * characters are truncated if they exceed `length`.
  79672. *
  79673. * @static
  79674. * @memberOf _
  79675. * @since 4.0.0
  79676. * @category String
  79677. * @param {string} [string=''] The string to pad.
  79678. * @param {number} [length=0] The padding length.
  79679. * @param {string} [chars=' '] The string used as padding.
  79680. * @returns {string} Returns the padded string.
  79681. * @example
  79682. *
  79683. * _.padStart('abc', 6);
  79684. * // => ' abc'
  79685. *
  79686. * _.padStart('abc', 6, '_-');
  79687. * // => '_-_abc'
  79688. *
  79689. * _.padStart('abc', 3);
  79690. * // => 'abc'
  79691. */
  79692. function padStart(string, length, chars) {
  79693. string = toString(string);
  79694. length = toInteger(length);
  79695. var strLength = length ? stringSize(string) : 0;
  79696. return (length && strLength < length)
  79697. ? (createPadding(length - strLength, chars) + string)
  79698. : string;
  79699. }
  79700. module.exports = padStart;
  79701. /***/ }),
  79702. /***/ "./node_modules/lodash/partition.js":
  79703. /*!******************************************!*\
  79704. !*** ./node_modules/lodash/partition.js ***!
  79705. \******************************************/
  79706. /*! no static exports found */
  79707. /***/ (function(module, exports, __webpack_require__) {
  79708. var createAggregator = __webpack_require__(/*! ./_createAggregator */ "./node_modules/lodash/_createAggregator.js");
  79709. /**
  79710. * Creates an array of elements split into two groups, the first of which
  79711. * contains elements `predicate` returns truthy for, the second of which
  79712. * contains elements `predicate` returns falsey for. The predicate is
  79713. * invoked with one argument: (value).
  79714. *
  79715. * @static
  79716. * @memberOf _
  79717. * @since 3.0.0
  79718. * @category Collection
  79719. * @param {Array|Object} collection The collection to iterate over.
  79720. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  79721. * @returns {Array} Returns the array of grouped elements.
  79722. * @example
  79723. *
  79724. * var users = [
  79725. * { 'user': 'barney', 'age': 36, 'active': false },
  79726. * { 'user': 'fred', 'age': 40, 'active': true },
  79727. * { 'user': 'pebbles', 'age': 1, 'active': false }
  79728. * ];
  79729. *
  79730. * _.partition(users, function(o) { return o.active; });
  79731. * // => objects for [['fred'], ['barney', 'pebbles']]
  79732. *
  79733. * // The `_.matches` iteratee shorthand.
  79734. * _.partition(users, { 'age': 1, 'active': false });
  79735. * // => objects for [['pebbles'], ['barney', 'fred']]
  79736. *
  79737. * // The `_.matchesProperty` iteratee shorthand.
  79738. * _.partition(users, ['active', false]);
  79739. * // => objects for [['barney', 'pebbles'], ['fred']]
  79740. *
  79741. * // The `_.property` iteratee shorthand.
  79742. * _.partition(users, 'active');
  79743. * // => objects for [['fred'], ['barney', 'pebbles']]
  79744. */
  79745. var partition = createAggregator(function(result, value, key) {
  79746. result[key ? 0 : 1].push(value);
  79747. }, function() { return [[], []]; });
  79748. module.exports = partition;
  79749. /***/ }),
  79750. /***/ "./node_modules/lodash/pick.js":
  79751. /*!*************************************!*\
  79752. !*** ./node_modules/lodash/pick.js ***!
  79753. \*************************************/
  79754. /*! no static exports found */
  79755. /***/ (function(module, exports, __webpack_require__) {
  79756. var basePick = __webpack_require__(/*! ./_basePick */ "./node_modules/lodash/_basePick.js"),
  79757. flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js");
  79758. /**
  79759. * Creates an object composed of the picked `object` properties.
  79760. *
  79761. * @static
  79762. * @since 0.1.0
  79763. * @memberOf _
  79764. * @category Object
  79765. * @param {Object} object The source object.
  79766. * @param {...(string|string[])} [paths] The property paths to pick.
  79767. * @returns {Object} Returns the new object.
  79768. * @example
  79769. *
  79770. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  79771. *
  79772. * _.pick(object, ['a', 'c']);
  79773. * // => { 'a': 1, 'c': 3 }
  79774. */
  79775. var pick = flatRest(function(object, paths) {
  79776. return object == null ? {} : basePick(object, paths);
  79777. });
  79778. module.exports = pick;
  79779. /***/ }),
  79780. /***/ "./node_modules/lodash/property.js":
  79781. /*!*****************************************!*\
  79782. !*** ./node_modules/lodash/property.js ***!
  79783. \*****************************************/
  79784. /*! no static exports found */
  79785. /***/ (function(module, exports, __webpack_require__) {
  79786. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js"),
  79787. basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "./node_modules/lodash/_basePropertyDeep.js"),
  79788. isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
  79789. toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
  79790. /**
  79791. * Creates a function that returns the value at `path` of a given object.
  79792. *
  79793. * @static
  79794. * @memberOf _
  79795. * @since 2.4.0
  79796. * @category Util
  79797. * @param {Array|string} path The path of the property to get.
  79798. * @returns {Function} Returns the new accessor function.
  79799. * @example
  79800. *
  79801. * var objects = [
  79802. * { 'a': { 'b': 2 } },
  79803. * { 'a': { 'b': 1 } }
  79804. * ];
  79805. *
  79806. * _.map(objects, _.property('a.b'));
  79807. * // => [2, 1]
  79808. *
  79809. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  79810. * // => [1, 2]
  79811. */
  79812. function property(path) {
  79813. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  79814. }
  79815. module.exports = property;
  79816. /***/ }),
  79817. /***/ "./node_modules/lodash/set.js":
  79818. /*!************************************!*\
  79819. !*** ./node_modules/lodash/set.js ***!
  79820. \************************************/
  79821. /*! no static exports found */
  79822. /***/ (function(module, exports, __webpack_require__) {
  79823. var baseSet = __webpack_require__(/*! ./_baseSet */ "./node_modules/lodash/_baseSet.js");
  79824. /**
  79825. * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
  79826. * it's created. Arrays are created for missing index properties while objects
  79827. * are created for all other missing properties. Use `_.setWith` to customize
  79828. * `path` creation.
  79829. *
  79830. * **Note:** This method mutates `object`.
  79831. *
  79832. * @static
  79833. * @memberOf _
  79834. * @since 3.7.0
  79835. * @category Object
  79836. * @param {Object} object The object to modify.
  79837. * @param {Array|string} path The path of the property to set.
  79838. * @param {*} value The value to set.
  79839. * @returns {Object} Returns `object`.
  79840. * @example
  79841. *
  79842. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  79843. *
  79844. * _.set(object, 'a[0].b.c', 4);
  79845. * console.log(object.a[0].b.c);
  79846. * // => 4
  79847. *
  79848. * _.set(object, ['x', '0', 'y', 'z'], 5);
  79849. * console.log(object.x[0].y.z);
  79850. * // => 5
  79851. */
  79852. function set(object, path, value) {
  79853. return object == null ? object : baseSet(object, path, value);
  79854. }
  79855. module.exports = set;
  79856. /***/ }),
  79857. /***/ "./node_modules/lodash/stubArray.js":
  79858. /*!******************************************!*\
  79859. !*** ./node_modules/lodash/stubArray.js ***!
  79860. \******************************************/
  79861. /*! no static exports found */
  79862. /***/ (function(module, exports) {
  79863. /**
  79864. * This method returns a new empty array.
  79865. *
  79866. * @static
  79867. * @memberOf _
  79868. * @since 4.13.0
  79869. * @category Util
  79870. * @returns {Array} Returns the new empty array.
  79871. * @example
  79872. *
  79873. * var arrays = _.times(2, _.stubArray);
  79874. *
  79875. * console.log(arrays);
  79876. * // => [[], []]
  79877. *
  79878. * console.log(arrays[0] === arrays[1]);
  79879. * // => false
  79880. */
  79881. function stubArray() {
  79882. return [];
  79883. }
  79884. module.exports = stubArray;
  79885. /***/ }),
  79886. /***/ "./node_modules/lodash/stubFalse.js":
  79887. /*!******************************************!*\
  79888. !*** ./node_modules/lodash/stubFalse.js ***!
  79889. \******************************************/
  79890. /*! no static exports found */
  79891. /***/ (function(module, exports) {
  79892. /**
  79893. * This method returns `false`.
  79894. *
  79895. * @static
  79896. * @memberOf _
  79897. * @since 4.13.0
  79898. * @category Util
  79899. * @returns {boolean} Returns `false`.
  79900. * @example
  79901. *
  79902. * _.times(2, _.stubFalse);
  79903. * // => [false, false]
  79904. */
  79905. function stubFalse() {
  79906. return false;
  79907. }
  79908. module.exports = stubFalse;
  79909. /***/ }),
  79910. /***/ "./node_modules/lodash/throttle.js":
  79911. /*!*****************************************!*\
  79912. !*** ./node_modules/lodash/throttle.js ***!
  79913. \*****************************************/
  79914. /*! no static exports found */
  79915. /***/ (function(module, exports, __webpack_require__) {
  79916. var debounce = __webpack_require__(/*! ./debounce */ "./node_modules/lodash/debounce.js"),
  79917. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
  79918. /** Error message constants. */
  79919. var FUNC_ERROR_TEXT = 'Expected a function';
  79920. /**
  79921. * Creates a throttled function that only invokes `func` at most once per
  79922. * every `wait` milliseconds. The throttled function comes with a `cancel`
  79923. * method to cancel delayed `func` invocations and a `flush` method to
  79924. * immediately invoke them. Provide `options` to indicate whether `func`
  79925. * should be invoked on the leading and/or trailing edge of the `wait`
  79926. * timeout. The `func` is invoked with the last arguments provided to the
  79927. * throttled function. Subsequent calls to the throttled function return the
  79928. * result of the last `func` invocation.
  79929. *
  79930. * **Note:** If `leading` and `trailing` options are `true`, `func` is
  79931. * invoked on the trailing edge of the timeout only if the throttled function
  79932. * is invoked more than once during the `wait` timeout.
  79933. *
  79934. * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
  79935. * until to the next tick, similar to `setTimeout` with a timeout of `0`.
  79936. *
  79937. * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
  79938. * for details over the differences between `_.throttle` and `_.debounce`.
  79939. *
  79940. * @static
  79941. * @memberOf _
  79942. * @since 0.1.0
  79943. * @category Function
  79944. * @param {Function} func The function to throttle.
  79945. * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
  79946. * @param {Object} [options={}] The options object.
  79947. * @param {boolean} [options.leading=true]
  79948. * Specify invoking on the leading edge of the timeout.
  79949. * @param {boolean} [options.trailing=true]
  79950. * Specify invoking on the trailing edge of the timeout.
  79951. * @returns {Function} Returns the new throttled function.
  79952. * @example
  79953. *
  79954. * // Avoid excessively updating the position while scrolling.
  79955. * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
  79956. *
  79957. * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
  79958. * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
  79959. * jQuery(element).on('click', throttled);
  79960. *
  79961. * // Cancel the trailing throttled invocation.
  79962. * jQuery(window).on('popstate', throttled.cancel);
  79963. */
  79964. function throttle(func, wait, options) {
  79965. var leading = true,
  79966. trailing = true;
  79967. if (typeof func != 'function') {
  79968. throw new TypeError(FUNC_ERROR_TEXT);
  79969. }
  79970. if (isObject(options)) {
  79971. leading = 'leading' in options ? !!options.leading : leading;
  79972. trailing = 'trailing' in options ? !!options.trailing : trailing;
  79973. }
  79974. return debounce(func, wait, {
  79975. 'leading': leading,
  79976. 'maxWait': wait,
  79977. 'trailing': trailing
  79978. });
  79979. }
  79980. module.exports = throttle;
  79981. /***/ }),
  79982. /***/ "./node_modules/lodash/toFinite.js":
  79983. /*!*****************************************!*\
  79984. !*** ./node_modules/lodash/toFinite.js ***!
  79985. \*****************************************/
  79986. /*! no static exports found */
  79987. /***/ (function(module, exports, __webpack_require__) {
  79988. var toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");
  79989. /** Used as references for various `Number` constants. */
  79990. var INFINITY = 1 / 0,
  79991. MAX_INTEGER = 1.7976931348623157e+308;
  79992. /**
  79993. * Converts `value` to a finite number.
  79994. *
  79995. * @static
  79996. * @memberOf _
  79997. * @since 4.12.0
  79998. * @category Lang
  79999. * @param {*} value The value to convert.
  80000. * @returns {number} Returns the converted number.
  80001. * @example
  80002. *
  80003. * _.toFinite(3.2);
  80004. * // => 3.2
  80005. *
  80006. * _.toFinite(Number.MIN_VALUE);
  80007. * // => 5e-324
  80008. *
  80009. * _.toFinite(Infinity);
  80010. * // => 1.7976931348623157e+308
  80011. *
  80012. * _.toFinite('3.2');
  80013. * // => 3.2
  80014. */
  80015. function toFinite(value) {
  80016. if (!value) {
  80017. return value === 0 ? value : 0;
  80018. }
  80019. value = toNumber(value);
  80020. if (value === INFINITY || value === -INFINITY) {
  80021. var sign = (value < 0 ? -1 : 1);
  80022. return sign * MAX_INTEGER;
  80023. }
  80024. return value === value ? value : 0;
  80025. }
  80026. module.exports = toFinite;
  80027. /***/ }),
  80028. /***/ "./node_modules/lodash/toInteger.js":
  80029. /*!******************************************!*\
  80030. !*** ./node_modules/lodash/toInteger.js ***!
  80031. \******************************************/
  80032. /*! no static exports found */
  80033. /***/ (function(module, exports, __webpack_require__) {
  80034. var toFinite = __webpack_require__(/*! ./toFinite */ "./node_modules/lodash/toFinite.js");
  80035. /**
  80036. * Converts `value` to an integer.
  80037. *
  80038. * **Note:** This method is loosely based on
  80039. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  80040. *
  80041. * @static
  80042. * @memberOf _
  80043. * @since 4.0.0
  80044. * @category Lang
  80045. * @param {*} value The value to convert.
  80046. * @returns {number} Returns the converted integer.
  80047. * @example
  80048. *
  80049. * _.toInteger(3.2);
  80050. * // => 3
  80051. *
  80052. * _.toInteger(Number.MIN_VALUE);
  80053. * // => 0
  80054. *
  80055. * _.toInteger(Infinity);
  80056. * // => 1.7976931348623157e+308
  80057. *
  80058. * _.toInteger('3.2');
  80059. * // => 3
  80060. */
  80061. function toInteger(value) {
  80062. var result = toFinite(value),
  80063. remainder = result % 1;
  80064. return result === result ? (remainder ? result - remainder : result) : 0;
  80065. }
  80066. module.exports = toInteger;
  80067. /***/ }),
  80068. /***/ "./node_modules/lodash/toNumber.js":
  80069. /*!*****************************************!*\
  80070. !*** ./node_modules/lodash/toNumber.js ***!
  80071. \*****************************************/
  80072. /*! no static exports found */
  80073. /***/ (function(module, exports, __webpack_require__) {
  80074. var baseTrim = __webpack_require__(/*! ./_baseTrim */ "./node_modules/lodash/_baseTrim.js"),
  80075. isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
  80076. isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
  80077. /** Used as references for various `Number` constants. */
  80078. var NAN = 0 / 0;
  80079. /** Used to detect bad signed hexadecimal string values. */
  80080. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  80081. /** Used to detect binary string values. */
  80082. var reIsBinary = /^0b[01]+$/i;
  80083. /** Used to detect octal string values. */
  80084. var reIsOctal = /^0o[0-7]+$/i;
  80085. /** Built-in method references without a dependency on `root`. */
  80086. var freeParseInt = parseInt;
  80087. /**
  80088. * Converts `value` to a number.
  80089. *
  80090. * @static
  80091. * @memberOf _
  80092. * @since 4.0.0
  80093. * @category Lang
  80094. * @param {*} value The value to process.
  80095. * @returns {number} Returns the number.
  80096. * @example
  80097. *
  80098. * _.toNumber(3.2);
  80099. * // => 3.2
  80100. *
  80101. * _.toNumber(Number.MIN_VALUE);
  80102. * // => 5e-324
  80103. *
  80104. * _.toNumber(Infinity);
  80105. * // => Infinity
  80106. *
  80107. * _.toNumber('3.2');
  80108. * // => 3.2
  80109. */
  80110. function toNumber(value) {
  80111. if (typeof value == 'number') {
  80112. return value;
  80113. }
  80114. if (isSymbol(value)) {
  80115. return NAN;
  80116. }
  80117. if (isObject(value)) {
  80118. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  80119. value = isObject(other) ? (other + '') : other;
  80120. }
  80121. if (typeof value != 'string') {
  80122. return value === 0 ? value : +value;
  80123. }
  80124. value = baseTrim(value);
  80125. var isBinary = reIsBinary.test(value);
  80126. return (isBinary || reIsOctal.test(value))
  80127. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  80128. : (reIsBadHex.test(value) ? NAN : +value);
  80129. }
  80130. module.exports = toNumber;
  80131. /***/ }),
  80132. /***/ "./node_modules/lodash/toPlainObject.js":
  80133. /*!**********************************************!*\
  80134. !*** ./node_modules/lodash/toPlainObject.js ***!
  80135. \**********************************************/
  80136. /*! no static exports found */
  80137. /***/ (function(module, exports, __webpack_require__) {
  80138. var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
  80139. keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
  80140. /**
  80141. * Converts `value` to a plain object flattening inherited enumerable string
  80142. * keyed properties of `value` to own properties of the plain object.
  80143. *
  80144. * @static
  80145. * @memberOf _
  80146. * @since 3.0.0
  80147. * @category Lang
  80148. * @param {*} value The value to convert.
  80149. * @returns {Object} Returns the converted plain object.
  80150. * @example
  80151. *
  80152. * function Foo() {
  80153. * this.b = 2;
  80154. * }
  80155. *
  80156. * Foo.prototype.c = 3;
  80157. *
  80158. * _.assign({ 'a': 1 }, new Foo);
  80159. * // => { 'a': 1, 'b': 2 }
  80160. *
  80161. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  80162. * // => { 'a': 1, 'b': 2, 'c': 3 }
  80163. */
  80164. function toPlainObject(value) {
  80165. return copyObject(value, keysIn(value));
  80166. }
  80167. module.exports = toPlainObject;
  80168. /***/ }),
  80169. /***/ "./node_modules/lodash/toString.js":
  80170. /*!*****************************************!*\
  80171. !*** ./node_modules/lodash/toString.js ***!
  80172. \*****************************************/
  80173. /*! no static exports found */
  80174. /***/ (function(module, exports, __webpack_require__) {
  80175. var baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js");
  80176. /**
  80177. * Converts `value` to a string. An empty string is returned for `null`
  80178. * and `undefined` values. The sign of `-0` is preserved.
  80179. *
  80180. * @static
  80181. * @memberOf _
  80182. * @since 4.0.0
  80183. * @category Lang
  80184. * @param {*} value The value to convert.
  80185. * @returns {string} Returns the converted string.
  80186. * @example
  80187. *
  80188. * _.toString(null);
  80189. * // => ''
  80190. *
  80191. * _.toString(-0);
  80192. * // => '-0'
  80193. *
  80194. * _.toString([1, 2, 3]);
  80195. * // => '1,2,3'
  80196. */
  80197. function toString(value) {
  80198. return value == null ? '' : baseToString(value);
  80199. }
  80200. module.exports = toString;
  80201. /***/ }),
  80202. /***/ "./node_modules/lodash/uniqBy.js":
  80203. /*!***************************************!*\
  80204. !*** ./node_modules/lodash/uniqBy.js ***!
  80205. \***************************************/
  80206. /*! no static exports found */
  80207. /***/ (function(module, exports, __webpack_require__) {
  80208. var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
  80209. baseUniq = __webpack_require__(/*! ./_baseUniq */ "./node_modules/lodash/_baseUniq.js");
  80210. /**
  80211. * This method is like `_.uniq` except that it accepts `iteratee` which is
  80212. * invoked for each element in `array` to generate the criterion by which
  80213. * uniqueness is computed. The order of result values is determined by the
  80214. * order they occur in the array. The iteratee is invoked with one argument:
  80215. * (value).
  80216. *
  80217. * @static
  80218. * @memberOf _
  80219. * @since 4.0.0
  80220. * @category Array
  80221. * @param {Array} array The array to inspect.
  80222. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  80223. * @returns {Array} Returns the new duplicate free array.
  80224. * @example
  80225. *
  80226. * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
  80227. * // => [2.1, 1.2]
  80228. *
  80229. * // The `_.property` iteratee shorthand.
  80230. * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
  80231. * // => [{ 'x': 1 }, { 'x': 2 }]
  80232. */
  80233. function uniqBy(array, iteratee) {
  80234. return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : [];
  80235. }
  80236. module.exports = uniqBy;
  80237. /***/ }),
  80238. /***/ "./node_modules/mutationobserver-shim/dist/mutationobserver.min.js":
  80239. /*!*************************************************************************!*\
  80240. !*** ./node_modules/mutationobserver-shim/dist/mutationobserver.min.js ***!
  80241. \*************************************************************************/
  80242. /*! no static exports found */
  80243. /***/ (function(module, exports) {
  80244. // mutationobserver-shim v0.3.3 (github.com/megawac/MutationObserver.js)
  80245. // Authors: Graeme Yeates (github.com/megawac)
  80246. /*
  80247. Shim for MutationObserver interface
  80248. Author: Graeme Yeates (github.com/megawac)
  80249. Repository: https://github.com/megawac/MutationObserver.js
  80250. License: WTFPL V2, 2004 (wtfpl.net).
  80251. Though credit and staring the repo will make me feel pretty, you can modify and redistribute as you please.
  80252. Attempts to follow spec (https://www.w3.org/TR/dom/#mutation-observers) as closely as possible for native javascript
  80253. See https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/MutationObserver.cpp for current webkit source c++ implementation
  80254. */
  80255. window.MutationObserver||(window.MutationObserver=function(y){function z(a){this.i=[];this.m=a}function K(a){(function c(){var d=a.takeRecords();d.length&&a.m(d,a);a.h=setTimeout(c,z._period)})()}function r(a){var b={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null},c;for(c in a)b[c]!==y&&a[c]!==y&&(b[c]=a[c]);return b}function L(a,b){var c=E(a,b);return function(d){var f=d.length;b.a&&3===a.nodeType&&
  80256. a.nodeValue!==c.a&&d.push(new r({type:"characterData",target:a,oldValue:c.a}));b.b&&c.b&&C(d,a,c.b,b.f);if(b.c||b.g)var m=M(d,a,c,b);if(m||d.length!==f)c=E(a,b)}}function N(a,b){return b.value}function O(a,b){return"style"!==b.name?b.value:a.style.cssText}function C(a,b,c,d){for(var f={},m=b.attributes,k,g,p=m.length;p--;)k=m[p],g=k.name,d&&d[g]===y||(F(b,k)!==c[g]&&a.push(r({type:"attributes",target:b,attributeName:g,oldValue:c[g],attributeNamespace:k.namespaceURI})),f[g]=!0);for(g in c)f[g]||a.push(r({target:b,
  80257. type:"attributes",attributeName:g,oldValue:c[g]}))}function M(a,b,c,d){function f(g,p,t,q,x){var A=g.length-1;x=-~((A-x)/2);for(var h,l,e;e=g.pop();)h=t[e.j],l=q[e.l],d.c&&x&&Math.abs(e.j-e.l)>=A&&(a.push(r({type:"childList",target:p,addedNodes:[h],removedNodes:[h],nextSibling:h.nextSibling,previousSibling:h.previousSibling})),x--),d.b&&l.b&&C(a,h,l.b,d.f),d.a&&3===h.nodeType&&h.nodeValue!==l.a&&a.push(r({type:"characterData",target:h,oldValue:l.a})),d.g&&m(h,l)}function m(g,p){for(var t=g.childNodes,
  80258. q=p.c,x=t.length,A=q?q.length:0,h,l,e,n,v,B=0,w=0,u=0;w<x||u<A;)n=t[w],v=(e=q[u])&&e.node,n===v?(d.b&&e.b&&C(a,n,e.b,d.f),d.a&&e.a!==y&&n.nodeValue!==e.a&&a.push(r({type:"characterData",target:n,oldValue:e.a})),l&&f(l,g,t,q,B),d.g&&(n.childNodes.length||e.c&&e.c.length)&&m(n,e),w++,u++):(k=!0,h||(h={},l=[]),n&&(h[e=G(n)]||(h[e]=!0,-1===(e=H(q,n,u,"node"))?d.c&&(a.push(r({type:"childList",target:g,addedNodes:[n],nextSibling:n.nextSibling,previousSibling:n.previousSibling})),B++):l.push({j:w,l:e})),
  80259. w++),v&&v!==t[w]&&(h[e=G(v)]||(h[e]=!0,-1===(e=H(t,v,w))?d.c&&(a.push(r({type:"childList",target:p.node,removedNodes:[v],nextSibling:q[u+1],previousSibling:q[u-1]})),B--):l.push({j:e,l:u})),u++));l&&f(l,g,t,q,B)}var k;m(b,c);return k}function E(a,b){var c=!0;return function m(f){var k={node:f};!b.a||3!==f.nodeType&&8!==f.nodeType?(b.b&&c&&1===f.nodeType&&(k.b=I(f.attributes,function(g,p){if(!b.f||b.f[p.name])g[p.name]=F(f,p);return g},{})),c&&(b.c||b.a||b.b&&b.g)&&(k.c=P(f.childNodes,m)),c=b.g):k.a=
  80260. f.nodeValue;return k}(a)}function G(a){try{return a.id||(a.mo_id=a.mo_id||J++)}catch(b){try{return a.nodeValue}catch(c){return J++}}}function P(a,b){for(var c=[],d=0;d<a.length;d++)c[d]=b(a[d],d,a);return c}function I(a,b,c){for(var d=0;d<a.length;d++)c=b(c,a[d],d,a);return c}function H(a,b,c,d){for(;c<a.length;c++)if((d?a[c][d]:a[c])===b)return c;return-1}z._period=30;z.prototype={observe:function(a,b){for(var c={b:!!(b.attributes||b.attributeFilter||b.attributeOldValue),c:!!b.childList,g:!!b.subtree,
  80261. a:!(!b.characterData&&!b.characterDataOldValue)},d=this.i,f=0;f<d.length;f++)d[f].s===a&&d.splice(f,1);b.attributeFilter&&(c.f=I(b.attributeFilter,function(m,k){m[k]=!0;return m},{}));d.push({s:a,o:L(a,c)});this.h||K(this)},takeRecords:function(){for(var a=[],b=this.i,c=0;c<b.length;c++)b[c].o(a);return a},disconnect:function(){this.i=[];clearTimeout(this.h);this.h=null}};var D=document.createElement("i");D.style.top=0;var F=(D="null"!=D.attributes.style.value)?N:O,J=1;return z}(void 0));
  80262. //# sourceMappingURL=mutationobserver.map
  80263. /***/ }),
  80264. /***/ "./node_modules/object-assign/index.js":
  80265. /*!*********************************************!*\
  80266. !*** ./node_modules/object-assign/index.js ***!
  80267. \*********************************************/
  80268. /*! no static exports found */
  80269. /***/ (function(module, exports, __webpack_require__) {
  80270. "use strict";
  80271. /*
  80272. object-assign
  80273. (c) Sindre Sorhus
  80274. @license MIT
  80275. */
  80276. /* eslint-disable no-unused-vars */
  80277. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  80278. var hasOwnProperty = Object.prototype.hasOwnProperty;
  80279. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  80280. function toObject(val) {
  80281. if (val === null || val === undefined) {
  80282. throw new TypeError('Object.assign cannot be called with null or undefined');
  80283. }
  80284. return Object(val);
  80285. }
  80286. function shouldUseNative() {
  80287. try {
  80288. if (!Object.assign) {
  80289. return false;
  80290. }
  80291. // Detect buggy property enumeration order in older V8 versions.
  80292. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  80293. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  80294. test1[5] = 'de';
  80295. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  80296. return false;
  80297. }
  80298. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  80299. var test2 = {};
  80300. for (var i = 0; i < 10; i++) {
  80301. test2['_' + String.fromCharCode(i)] = i;
  80302. }
  80303. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  80304. return test2[n];
  80305. });
  80306. if (order2.join('') !== '0123456789') {
  80307. return false;
  80308. }
  80309. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  80310. var test3 = {};
  80311. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  80312. test3[letter] = letter;
  80313. });
  80314. if (Object.keys(Object.assign({}, test3)).join('') !==
  80315. 'abcdefghijklmnopqrst') {
  80316. return false;
  80317. }
  80318. return true;
  80319. } catch (err) {
  80320. // We don't expect any of the above to throw, but better to be safe.
  80321. return false;
  80322. }
  80323. }
  80324. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  80325. var from;
  80326. var to = toObject(target);
  80327. var symbols;
  80328. for (var s = 1; s < arguments.length; s++) {
  80329. from = Object(arguments[s]);
  80330. for (var key in from) {
  80331. if (hasOwnProperty.call(from, key)) {
  80332. to[key] = from[key];
  80333. }
  80334. }
  80335. if (getOwnPropertySymbols) {
  80336. symbols = getOwnPropertySymbols(from);
  80337. for (var i = 0; i < symbols.length; i++) {
  80338. if (propIsEnumerable.call(from, symbols[i])) {
  80339. to[symbols[i]] = from[symbols[i]];
  80340. }
  80341. }
  80342. }
  80343. }
  80344. return to;
  80345. };
  80346. /***/ }),
  80347. /***/ "./node_modules/omit.js/es/index.js":
  80348. /*!******************************************!*\
  80349. !*** ./node_modules/omit.js/es/index.js ***!
  80350. \******************************************/
  80351. /*! exports provided: default */
  80352. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  80353. "use strict";
  80354. __webpack_require__.r(__webpack_exports__);
  80355. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
  80356. /* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
  80357. function omit(obj, fields) {
  80358. var shallowCopy = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, obj);
  80359. for (var i = 0; i < fields.length; i++) {
  80360. var key = fields[i];
  80361. delete shallowCopy[key];
  80362. }
  80363. return shallowCopy;
  80364. }
  80365. /* harmony default export */ __webpack_exports__["default"] = (omit);
  80366. /***/ }),
  80367. /***/ "./node_modules/performance-now/lib/performance-now.js":
  80368. /*!*************************************************************!*\
  80369. !*** ./node_modules/performance-now/lib/performance-now.js ***!
  80370. \*************************************************************/
  80371. /*! no static exports found */
  80372. /***/ (function(module, exports, __webpack_require__) {
  80373. /* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.12.2
  80374. (function() {
  80375. var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;
  80376. if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
  80377. module.exports = function() {
  80378. return performance.now();
  80379. };
  80380. } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
  80381. module.exports = function() {
  80382. return (getNanoSeconds() - nodeLoadTime) / 1e6;
  80383. };
  80384. hrtime = process.hrtime;
  80385. getNanoSeconds = function() {
  80386. var hr;
  80387. hr = hrtime();
  80388. return hr[0] * 1e9 + hr[1];
  80389. };
  80390. moduleLoadTime = getNanoSeconds();
  80391. upTime = process.uptime() * 1e9;
  80392. nodeLoadTime = moduleLoadTime - upTime;
  80393. } else if (Date.now) {
  80394. module.exports = function() {
  80395. return Date.now() - loadTime;
  80396. };
  80397. loadTime = Date.now();
  80398. } else {
  80399. module.exports = function() {
  80400. return new Date().getTime() - loadTime;
  80401. };
  80402. loadTime = new Date().getTime();
  80403. }
  80404. }).call(this);
  80405. //# sourceMappingURL=performance-now.js.map
  80406. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js")))
  80407. /***/ }),
  80408. /***/ "./node_modules/process/browser.js":
  80409. /*!*****************************************!*\
  80410. !*** ./node_modules/process/browser.js ***!
  80411. \*****************************************/
  80412. /*! no static exports found */
  80413. /***/ (function(module, exports) {
  80414. // shim for using process in browser
  80415. var process = module.exports = {};
  80416. // cached from whatever global is present so that test runners that stub it
  80417. // don't break things. But we need to wrap it in a try catch in case it is
  80418. // wrapped in strict mode code which doesn't define any globals. It's inside a
  80419. // function because try/catches deoptimize in certain engines.
  80420. var cachedSetTimeout;
  80421. var cachedClearTimeout;
  80422. function defaultSetTimout() {
  80423. throw new Error('setTimeout has not been defined');
  80424. }
  80425. function defaultClearTimeout () {
  80426. throw new Error('clearTimeout has not been defined');
  80427. }
  80428. (function () {
  80429. try {
  80430. if (typeof setTimeout === 'function') {
  80431. cachedSetTimeout = setTimeout;
  80432. } else {
  80433. cachedSetTimeout = defaultSetTimout;
  80434. }
  80435. } catch (e) {
  80436. cachedSetTimeout = defaultSetTimout;
  80437. }
  80438. try {
  80439. if (typeof clearTimeout === 'function') {
  80440. cachedClearTimeout = clearTimeout;
  80441. } else {
  80442. cachedClearTimeout = defaultClearTimeout;
  80443. }
  80444. } catch (e) {
  80445. cachedClearTimeout = defaultClearTimeout;
  80446. }
  80447. } ())
  80448. function runTimeout(fun) {
  80449. if (cachedSetTimeout === setTimeout) {
  80450. //normal enviroments in sane situations
  80451. return setTimeout(fun, 0);
  80452. }
  80453. // if setTimeout wasn't available but was latter defined
  80454. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  80455. cachedSetTimeout = setTimeout;
  80456. return setTimeout(fun, 0);
  80457. }
  80458. try {
  80459. // when when somebody has screwed with setTimeout but no I.E. maddness
  80460. return cachedSetTimeout(fun, 0);
  80461. } catch(e){
  80462. try {
  80463. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  80464. return cachedSetTimeout.call(null, fun, 0);
  80465. } catch(e){
  80466. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
  80467. return cachedSetTimeout.call(this, fun, 0);
  80468. }
  80469. }
  80470. }
  80471. function runClearTimeout(marker) {
  80472. if (cachedClearTimeout === clearTimeout) {
  80473. //normal enviroments in sane situations
  80474. return clearTimeout(marker);
  80475. }
  80476. // if clearTimeout wasn't available but was latter defined
  80477. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  80478. cachedClearTimeout = clearTimeout;
  80479. return clearTimeout(marker);
  80480. }
  80481. try {
  80482. // when when somebody has screwed with setTimeout but no I.E. maddness
  80483. return cachedClearTimeout(marker);
  80484. } catch (e){
  80485. try {
  80486. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  80487. return cachedClearTimeout.call(null, marker);
  80488. } catch (e){
  80489. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
  80490. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  80491. return cachedClearTimeout.call(this, marker);
  80492. }
  80493. }
  80494. }
  80495. var queue = [];
  80496. var draining = false;
  80497. var currentQueue;
  80498. var queueIndex = -1;
  80499. function cleanUpNextTick() {
  80500. if (!draining || !currentQueue) {
  80501. return;
  80502. }
  80503. draining = false;
  80504. if (currentQueue.length) {
  80505. queue = currentQueue.concat(queue);
  80506. } else {
  80507. queueIndex = -1;
  80508. }
  80509. if (queue.length) {
  80510. drainQueue();
  80511. }
  80512. }
  80513. function drainQueue() {
  80514. if (draining) {
  80515. return;
  80516. }
  80517. var timeout = runTimeout(cleanUpNextTick);
  80518. draining = true;
  80519. var len = queue.length;
  80520. while(len) {
  80521. currentQueue = queue;
  80522. queue = [];
  80523. while (++queueIndex < len) {
  80524. if (currentQueue) {
  80525. currentQueue[queueIndex].run();
  80526. }
  80527. }
  80528. queueIndex = -1;
  80529. len = queue.length;
  80530. }
  80531. currentQueue = null;
  80532. draining = false;
  80533. runClearTimeout(timeout);
  80534. }
  80535. process.nextTick = function (fun) {
  80536. var args = new Array(arguments.length - 1);
  80537. if (arguments.length > 1) {
  80538. for (var i = 1; i < arguments.length; i++) {
  80539. args[i - 1] = arguments[i];
  80540. }
  80541. }
  80542. queue.push(new Item(fun, args));
  80543. if (queue.length === 1 && !draining) {
  80544. runTimeout(drainQueue);
  80545. }
  80546. };
  80547. // v8 likes predictible objects
  80548. function Item(fun, array) {
  80549. this.fun = fun;
  80550. this.array = array;
  80551. }
  80552. Item.prototype.run = function () {
  80553. this.fun.apply(null, this.array);
  80554. };
  80555. process.title = 'browser';
  80556. process.browser = true;
  80557. process.env = {};
  80558. process.argv = [];
  80559. process.version = ''; // empty string to avoid regexp issues
  80560. process.versions = {};
  80561. function noop() {}
  80562. process.on = noop;
  80563. process.addListener = noop;
  80564. process.once = noop;
  80565. process.off = noop;
  80566. process.removeListener = noop;
  80567. process.removeAllListeners = noop;
  80568. process.emit = noop;
  80569. process.prependListener = noop;
  80570. process.prependOnceListener = noop;
  80571. process.listeners = function (name) { return [] }
  80572. process.binding = function (name) {
  80573. throw new Error('process.binding is not supported');
  80574. };
  80575. process.cwd = function () { return '/' };
  80576. process.chdir = function (dir) {
  80577. throw new Error('process.chdir is not supported');
  80578. };
  80579. process.umask = function() { return 0; };
  80580. /***/ }),
  80581. /***/ "./node_modules/raf/index.js":
  80582. /*!***********************************!*\
  80583. !*** ./node_modules/raf/index.js ***!
  80584. \***********************************/
  80585. /*! no static exports found */
  80586. /***/ (function(module, exports, __webpack_require__) {
  80587. /* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(/*! performance-now */ "./node_modules/performance-now/lib/performance-now.js")
  80588. , root = typeof window === 'undefined' ? global : window
  80589. , vendors = ['moz', 'webkit']
  80590. , suffix = 'AnimationFrame'
  80591. , raf = root['request' + suffix]
  80592. , caf = root['cancel' + suffix] || root['cancelRequest' + suffix]
  80593. for(var i = 0; !raf && i < vendors.length; i++) {
  80594. raf = root[vendors[i] + 'Request' + suffix]
  80595. caf = root[vendors[i] + 'Cancel' + suffix]
  80596. || root[vendors[i] + 'CancelRequest' + suffix]
  80597. }
  80598. // Some versions of FF have rAF but not cAF
  80599. if(!raf || !caf) {
  80600. var last = 0
  80601. , id = 0
  80602. , queue = []
  80603. , frameDuration = 1000 / 60
  80604. raf = function(callback) {
  80605. if(queue.length === 0) {
  80606. var _now = now()
  80607. , next = Math.max(0, frameDuration - (_now - last))
  80608. last = next + _now
  80609. setTimeout(function() {
  80610. var cp = queue.slice(0)
  80611. // Clear queue here to prevent
  80612. // callbacks from appending listeners
  80613. // to the current frame's queue
  80614. queue.length = 0
  80615. for(var i = 0; i < cp.length; i++) {
  80616. if(!cp[i].cancelled) {
  80617. try{
  80618. cp[i].callback(last)
  80619. } catch(e) {
  80620. setTimeout(function() { throw e }, 0)
  80621. }
  80622. }
  80623. }
  80624. }, Math.round(next))
  80625. }
  80626. queue.push({
  80627. handle: ++id,
  80628. callback: callback,
  80629. cancelled: false
  80630. })
  80631. return id
  80632. }
  80633. caf = function(handle) {
  80634. for(var i = 0; i < queue.length; i++) {
  80635. if(queue[i].handle === handle) {
  80636. queue[i].cancelled = true
  80637. }
  80638. }
  80639. }
  80640. }
  80641. module.exports = function(fn) {
  80642. // Wrap in a new function to prevent
  80643. // `cancel` potentially being assigned
  80644. // to the native rAF function
  80645. return raf.call(root, fn)
  80646. }
  80647. module.exports.cancel = function() {
  80648. caf.apply(root, arguments)
  80649. }
  80650. module.exports.polyfill = function(object) {
  80651. if (!object) {
  80652. object = root;
  80653. }
  80654. object.requestAnimationFrame = raf
  80655. object.cancelAnimationFrame = caf
  80656. }
  80657. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  80658. /***/ }),
  80659. /***/ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js":
  80660. /*!*************************************************************************!*\
  80661. !*** ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js ***!
  80662. \*************************************************************************/
  80663. /*! exports provided: default */
  80664. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  80665. "use strict";
  80666. __webpack_require__.r(__webpack_exports__);
  80667. /* WEBPACK VAR INJECTION */(function(global) {/**
  80668. * A collection of shims that provide minimal functionality of the ES6 collections.
  80669. *
  80670. * These implementations are not meant to be used outside of the ResizeObserver
  80671. * modules as they cover only a limited range of use cases.
  80672. */
  80673. /* eslint-disable require-jsdoc, valid-jsdoc */
  80674. var MapShim = (function () {
  80675. if (typeof Map !== 'undefined') {
  80676. return Map;
  80677. }
  80678. /**
  80679. * Returns index in provided array that matches the specified key.
  80680. *
  80681. * @param {Array<Array>} arr
  80682. * @param {*} key
  80683. * @returns {number}
  80684. */
  80685. function getIndex(arr, key) {
  80686. var result = -1;
  80687. arr.some(function (entry, index) {
  80688. if (entry[0] === key) {
  80689. result = index;
  80690. return true;
  80691. }
  80692. return false;
  80693. });
  80694. return result;
  80695. }
  80696. return /** @class */ (function () {
  80697. function class_1() {
  80698. this.__entries__ = [];
  80699. }
  80700. Object.defineProperty(class_1.prototype, "size", {
  80701. /**
  80702. * @returns {boolean}
  80703. */
  80704. get: function () {
  80705. return this.__entries__.length;
  80706. },
  80707. enumerable: true,
  80708. configurable: true
  80709. });
  80710. /**
  80711. * @param {*} key
  80712. * @returns {*}
  80713. */
  80714. class_1.prototype.get = function (key) {
  80715. var index = getIndex(this.__entries__, key);
  80716. var entry = this.__entries__[index];
  80717. return entry && entry[1];
  80718. };
  80719. /**
  80720. * @param {*} key
  80721. * @param {*} value
  80722. * @returns {void}
  80723. */
  80724. class_1.prototype.set = function (key, value) {
  80725. var index = getIndex(this.__entries__, key);
  80726. if (~index) {
  80727. this.__entries__[index][1] = value;
  80728. }
  80729. else {
  80730. this.__entries__.push([key, value]);
  80731. }
  80732. };
  80733. /**
  80734. * @param {*} key
  80735. * @returns {void}
  80736. */
  80737. class_1.prototype.delete = function (key) {
  80738. var entries = this.__entries__;
  80739. var index = getIndex(entries, key);
  80740. if (~index) {
  80741. entries.splice(index, 1);
  80742. }
  80743. };
  80744. /**
  80745. * @param {*} key
  80746. * @returns {void}
  80747. */
  80748. class_1.prototype.has = function (key) {
  80749. return !!~getIndex(this.__entries__, key);
  80750. };
  80751. /**
  80752. * @returns {void}
  80753. */
  80754. class_1.prototype.clear = function () {
  80755. this.__entries__.splice(0);
  80756. };
  80757. /**
  80758. * @param {Function} callback
  80759. * @param {*} [ctx=null]
  80760. * @returns {void}
  80761. */
  80762. class_1.prototype.forEach = function (callback, ctx) {
  80763. if (ctx === void 0) { ctx = null; }
  80764. for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
  80765. var entry = _a[_i];
  80766. callback.call(ctx, entry[1], entry[0]);
  80767. }
  80768. };
  80769. return class_1;
  80770. }());
  80771. })();
  80772. /**
  80773. * Detects whether window and document objects are available in current environment.
  80774. */
  80775. var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
  80776. // Returns global object of a current environment.
  80777. var global$1 = (function () {
  80778. if (typeof global !== 'undefined' && global.Math === Math) {
  80779. return global;
  80780. }
  80781. if (typeof self !== 'undefined' && self.Math === Math) {
  80782. return self;
  80783. }
  80784. if (typeof window !== 'undefined' && window.Math === Math) {
  80785. return window;
  80786. }
  80787. // eslint-disable-next-line no-new-func
  80788. return Function('return this')();
  80789. })();
  80790. /**
  80791. * A shim for the requestAnimationFrame which falls back to the setTimeout if
  80792. * first one is not supported.
  80793. *
  80794. * @returns {number} Requests' identifier.
  80795. */
  80796. var requestAnimationFrame$1 = (function () {
  80797. if (typeof requestAnimationFrame === 'function') {
  80798. // It's required to use a bounded function because IE sometimes throws
  80799. // an "Invalid calling object" error if rAF is invoked without the global
  80800. // object on the left hand side.
  80801. return requestAnimationFrame.bind(global$1);
  80802. }
  80803. return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
  80804. })();
  80805. // Defines minimum timeout before adding a trailing call.
  80806. var trailingTimeout = 2;
  80807. /**
  80808. * Creates a wrapper function which ensures that provided callback will be
  80809. * invoked only once during the specified delay period.
  80810. *
  80811. * @param {Function} callback - Function to be invoked after the delay period.
  80812. * @param {number} delay - Delay after which to invoke callback.
  80813. * @returns {Function}
  80814. */
  80815. function throttle (callback, delay) {
  80816. var leadingCall = false, trailingCall = false, lastCallTime = 0;
  80817. /**
  80818. * Invokes the original callback function and schedules new invocation if
  80819. * the "proxy" was called during current request.
  80820. *
  80821. * @returns {void}
  80822. */
  80823. function resolvePending() {
  80824. if (leadingCall) {
  80825. leadingCall = false;
  80826. callback();
  80827. }
  80828. if (trailingCall) {
  80829. proxy();
  80830. }
  80831. }
  80832. /**
  80833. * Callback invoked after the specified delay. It will further postpone
  80834. * invocation of the original function delegating it to the
  80835. * requestAnimationFrame.
  80836. *
  80837. * @returns {void}
  80838. */
  80839. function timeoutCallback() {
  80840. requestAnimationFrame$1(resolvePending);
  80841. }
  80842. /**
  80843. * Schedules invocation of the original function.
  80844. *
  80845. * @returns {void}
  80846. */
  80847. function proxy() {
  80848. var timeStamp = Date.now();
  80849. if (leadingCall) {
  80850. // Reject immediately following calls.
  80851. if (timeStamp - lastCallTime < trailingTimeout) {
  80852. return;
  80853. }
  80854. // Schedule new call to be in invoked when the pending one is resolved.
  80855. // This is important for "transitions" which never actually start
  80856. // immediately so there is a chance that we might miss one if change
  80857. // happens amids the pending invocation.
  80858. trailingCall = true;
  80859. }
  80860. else {
  80861. leadingCall = true;
  80862. trailingCall = false;
  80863. setTimeout(timeoutCallback, delay);
  80864. }
  80865. lastCallTime = timeStamp;
  80866. }
  80867. return proxy;
  80868. }
  80869. // Minimum delay before invoking the update of observers.
  80870. var REFRESH_DELAY = 20;
  80871. // A list of substrings of CSS properties used to find transition events that
  80872. // might affect dimensions of observed elements.
  80873. var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
  80874. // Check if MutationObserver is available.
  80875. var mutationObserverSupported = typeof MutationObserver !== 'undefined';
  80876. /**
  80877. * Singleton controller class which handles updates of ResizeObserver instances.
  80878. */
  80879. var ResizeObserverController = /** @class */ (function () {
  80880. /**
  80881. * Creates a new instance of ResizeObserverController.
  80882. *
  80883. * @private
  80884. */
  80885. function ResizeObserverController() {
  80886. /**
  80887. * Indicates whether DOM listeners have been added.
  80888. *
  80889. * @private {boolean}
  80890. */
  80891. this.connected_ = false;
  80892. /**
  80893. * Tells that controller has subscribed for Mutation Events.
  80894. *
  80895. * @private {boolean}
  80896. */
  80897. this.mutationEventsAdded_ = false;
  80898. /**
  80899. * Keeps reference to the instance of MutationObserver.
  80900. *
  80901. * @private {MutationObserver}
  80902. */
  80903. this.mutationsObserver_ = null;
  80904. /**
  80905. * A list of connected observers.
  80906. *
  80907. * @private {Array<ResizeObserverSPI>}
  80908. */
  80909. this.observers_ = [];
  80910. this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
  80911. this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
  80912. }
  80913. /**
  80914. * Adds observer to observers list.
  80915. *
  80916. * @param {ResizeObserverSPI} observer - Observer to be added.
  80917. * @returns {void}
  80918. */
  80919. ResizeObserverController.prototype.addObserver = function (observer) {
  80920. if (!~this.observers_.indexOf(observer)) {
  80921. this.observers_.push(observer);
  80922. }
  80923. // Add listeners if they haven't been added yet.
  80924. if (!this.connected_) {
  80925. this.connect_();
  80926. }
  80927. };
  80928. /**
  80929. * Removes observer from observers list.
  80930. *
  80931. * @param {ResizeObserverSPI} observer - Observer to be removed.
  80932. * @returns {void}
  80933. */
  80934. ResizeObserverController.prototype.removeObserver = function (observer) {
  80935. var observers = this.observers_;
  80936. var index = observers.indexOf(observer);
  80937. // Remove observer if it's present in registry.
  80938. if (~index) {
  80939. observers.splice(index, 1);
  80940. }
  80941. // Remove listeners if controller has no connected observers.
  80942. if (!observers.length && this.connected_) {
  80943. this.disconnect_();
  80944. }
  80945. };
  80946. /**
  80947. * Invokes the update of observers. It will continue running updates insofar
  80948. * it detects changes.
  80949. *
  80950. * @returns {void}
  80951. */
  80952. ResizeObserverController.prototype.refresh = function () {
  80953. var changesDetected = this.updateObservers_();
  80954. // Continue running updates if changes have been detected as there might
  80955. // be future ones caused by CSS transitions.
  80956. if (changesDetected) {
  80957. this.refresh();
  80958. }
  80959. };
  80960. /**
  80961. * Updates every observer from observers list and notifies them of queued
  80962. * entries.
  80963. *
  80964. * @private
  80965. * @returns {boolean} Returns "true" if any observer has detected changes in
  80966. * dimensions of it's elements.
  80967. */
  80968. ResizeObserverController.prototype.updateObservers_ = function () {
  80969. // Collect observers that have active observations.
  80970. var activeObservers = this.observers_.filter(function (observer) {
  80971. return observer.gatherActive(), observer.hasActive();
  80972. });
  80973. // Deliver notifications in a separate cycle in order to avoid any
  80974. // collisions between observers, e.g. when multiple instances of
  80975. // ResizeObserver are tracking the same element and the callback of one
  80976. // of them changes content dimensions of the observed target. Sometimes
  80977. // this may result in notifications being blocked for the rest of observers.
  80978. activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
  80979. return activeObservers.length > 0;
  80980. };
  80981. /**
  80982. * Initializes DOM listeners.
  80983. *
  80984. * @private
  80985. * @returns {void}
  80986. */
  80987. ResizeObserverController.prototype.connect_ = function () {
  80988. // Do nothing if running in a non-browser environment or if listeners
  80989. // have been already added.
  80990. if (!isBrowser || this.connected_) {
  80991. return;
  80992. }
  80993. // Subscription to the "Transitionend" event is used as a workaround for
  80994. // delayed transitions. This way it's possible to capture at least the
  80995. // final state of an element.
  80996. document.addEventListener('transitionend', this.onTransitionEnd_);
  80997. window.addEventListener('resize', this.refresh);
  80998. if (mutationObserverSupported) {
  80999. this.mutationsObserver_ = new MutationObserver(this.refresh);
  81000. this.mutationsObserver_.observe(document, {
  81001. attributes: true,
  81002. childList: true,
  81003. characterData: true,
  81004. subtree: true
  81005. });
  81006. }
  81007. else {
  81008. document.addEventListener('DOMSubtreeModified', this.refresh);
  81009. this.mutationEventsAdded_ = true;
  81010. }
  81011. this.connected_ = true;
  81012. };
  81013. /**
  81014. * Removes DOM listeners.
  81015. *
  81016. * @private
  81017. * @returns {void}
  81018. */
  81019. ResizeObserverController.prototype.disconnect_ = function () {
  81020. // Do nothing if running in a non-browser environment or if listeners
  81021. // have been already removed.
  81022. if (!isBrowser || !this.connected_) {
  81023. return;
  81024. }
  81025. document.removeEventListener('transitionend', this.onTransitionEnd_);
  81026. window.removeEventListener('resize', this.refresh);
  81027. if (this.mutationsObserver_) {
  81028. this.mutationsObserver_.disconnect();
  81029. }
  81030. if (this.mutationEventsAdded_) {
  81031. document.removeEventListener('DOMSubtreeModified', this.refresh);
  81032. }
  81033. this.mutationsObserver_ = null;
  81034. this.mutationEventsAdded_ = false;
  81035. this.connected_ = false;
  81036. };
  81037. /**
  81038. * "Transitionend" event handler.
  81039. *
  81040. * @private
  81041. * @param {TransitionEvent} event
  81042. * @returns {void}
  81043. */
  81044. ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
  81045. var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
  81046. // Detect whether transition may affect dimensions of an element.
  81047. var isReflowProperty = transitionKeys.some(function (key) {
  81048. return !!~propertyName.indexOf(key);
  81049. });
  81050. if (isReflowProperty) {
  81051. this.refresh();
  81052. }
  81053. };
  81054. /**
  81055. * Returns instance of the ResizeObserverController.
  81056. *
  81057. * @returns {ResizeObserverController}
  81058. */
  81059. ResizeObserverController.getInstance = function () {
  81060. if (!this.instance_) {
  81061. this.instance_ = new ResizeObserverController();
  81062. }
  81063. return this.instance_;
  81064. };
  81065. /**
  81066. * Holds reference to the controller's instance.
  81067. *
  81068. * @private {ResizeObserverController}
  81069. */
  81070. ResizeObserverController.instance_ = null;
  81071. return ResizeObserverController;
  81072. }());
  81073. /**
  81074. * Defines non-writable/enumerable properties of the provided target object.
  81075. *
  81076. * @param {Object} target - Object for which to define properties.
  81077. * @param {Object} props - Properties to be defined.
  81078. * @returns {Object} Target object.
  81079. */
  81080. var defineConfigurable = (function (target, props) {
  81081. for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
  81082. var key = _a[_i];
  81083. Object.defineProperty(target, key, {
  81084. value: props[key],
  81085. enumerable: false,
  81086. writable: false,
  81087. configurable: true
  81088. });
  81089. }
  81090. return target;
  81091. });
  81092. /**
  81093. * Returns the global object associated with provided element.
  81094. *
  81095. * @param {Object} target
  81096. * @returns {Object}
  81097. */
  81098. var getWindowOf = (function (target) {
  81099. // Assume that the element is an instance of Node, which means that it
  81100. // has the "ownerDocument" property from which we can retrieve a
  81101. // corresponding global object.
  81102. var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
  81103. // Return the local global object if it's not possible extract one from
  81104. // provided element.
  81105. return ownerGlobal || global$1;
  81106. });
  81107. // Placeholder of an empty content rectangle.
  81108. var emptyRect = createRectInit(0, 0, 0, 0);
  81109. /**
  81110. * Converts provided string to a number.
  81111. *
  81112. * @param {number|string} value
  81113. * @returns {number}
  81114. */
  81115. function toFloat(value) {
  81116. return parseFloat(value) || 0;
  81117. }
  81118. /**
  81119. * Extracts borders size from provided styles.
  81120. *
  81121. * @param {CSSStyleDeclaration} styles
  81122. * @param {...string} positions - Borders positions (top, right, ...)
  81123. * @returns {number}
  81124. */
  81125. function getBordersSize(styles) {
  81126. var positions = [];
  81127. for (var _i = 1; _i < arguments.length; _i++) {
  81128. positions[_i - 1] = arguments[_i];
  81129. }
  81130. return positions.reduce(function (size, position) {
  81131. var value = styles['border-' + position + '-width'];
  81132. return size + toFloat(value);
  81133. }, 0);
  81134. }
  81135. /**
  81136. * Extracts paddings sizes from provided styles.
  81137. *
  81138. * @param {CSSStyleDeclaration} styles
  81139. * @returns {Object} Paddings box.
  81140. */
  81141. function getPaddings(styles) {
  81142. var positions = ['top', 'right', 'bottom', 'left'];
  81143. var paddings = {};
  81144. for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
  81145. var position = positions_1[_i];
  81146. var value = styles['padding-' + position];
  81147. paddings[position] = toFloat(value);
  81148. }
  81149. return paddings;
  81150. }
  81151. /**
  81152. * Calculates content rectangle of provided SVG element.
  81153. *
  81154. * @param {SVGGraphicsElement} target - Element content rectangle of which needs
  81155. * to be calculated.
  81156. * @returns {DOMRectInit}
  81157. */
  81158. function getSVGContentRect(target) {
  81159. var bbox = target.getBBox();
  81160. return createRectInit(0, 0, bbox.width, bbox.height);
  81161. }
  81162. /**
  81163. * Calculates content rectangle of provided HTMLElement.
  81164. *
  81165. * @param {HTMLElement} target - Element for which to calculate the content rectangle.
  81166. * @returns {DOMRectInit}
  81167. */
  81168. function getHTMLElementContentRect(target) {
  81169. // Client width & height properties can't be
  81170. // used exclusively as they provide rounded values.
  81171. var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
  81172. // By this condition we can catch all non-replaced inline, hidden and
  81173. // detached elements. Though elements with width & height properties less
  81174. // than 0.5 will be discarded as well.
  81175. //
  81176. // Without it we would need to implement separate methods for each of
  81177. // those cases and it's not possible to perform a precise and performance
  81178. // effective test for hidden elements. E.g. even jQuery's ':visible' filter
  81179. // gives wrong results for elements with width & height less than 0.5.
  81180. if (!clientWidth && !clientHeight) {
  81181. return emptyRect;
  81182. }
  81183. var styles = getWindowOf(target).getComputedStyle(target);
  81184. var paddings = getPaddings(styles);
  81185. var horizPad = paddings.left + paddings.right;
  81186. var vertPad = paddings.top + paddings.bottom;
  81187. // Computed styles of width & height are being used because they are the
  81188. // only dimensions available to JS that contain non-rounded values. It could
  81189. // be possible to utilize the getBoundingClientRect if only it's data wasn't
  81190. // affected by CSS transformations let alone paddings, borders and scroll bars.
  81191. var width = toFloat(styles.width), height = toFloat(styles.height);
  81192. // Width & height include paddings and borders when the 'border-box' box
  81193. // model is applied (except for IE).
  81194. if (styles.boxSizing === 'border-box') {
  81195. // Following conditions are required to handle Internet Explorer which
  81196. // doesn't include paddings and borders to computed CSS dimensions.
  81197. //
  81198. // We can say that if CSS dimensions + paddings are equal to the "client"
  81199. // properties then it's either IE, and thus we don't need to subtract
  81200. // anything, or an element merely doesn't have paddings/borders styles.
  81201. if (Math.round(width + horizPad) !== clientWidth) {
  81202. width -= getBordersSize(styles, 'left', 'right') + horizPad;
  81203. }
  81204. if (Math.round(height + vertPad) !== clientHeight) {
  81205. height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
  81206. }
  81207. }
  81208. // Following steps can't be applied to the document's root element as its
  81209. // client[Width/Height] properties represent viewport area of the window.
  81210. // Besides, it's as well not necessary as the <html> itself neither has
  81211. // rendered scroll bars nor it can be clipped.
  81212. if (!isDocumentElement(target)) {
  81213. // In some browsers (only in Firefox, actually) CSS width & height
  81214. // include scroll bars size which can be removed at this step as scroll
  81215. // bars are the only difference between rounded dimensions + paddings
  81216. // and "client" properties, though that is not always true in Chrome.
  81217. var vertScrollbar = Math.round(width + horizPad) - clientWidth;
  81218. var horizScrollbar = Math.round(height + vertPad) - clientHeight;
  81219. // Chrome has a rather weird rounding of "client" properties.
  81220. // E.g. for an element with content width of 314.2px it sometimes gives
  81221. // the client width of 315px and for the width of 314.7px it may give
  81222. // 314px. And it doesn't happen all the time. So just ignore this delta
  81223. // as a non-relevant.
  81224. if (Math.abs(vertScrollbar) !== 1) {
  81225. width -= vertScrollbar;
  81226. }
  81227. if (Math.abs(horizScrollbar) !== 1) {
  81228. height -= horizScrollbar;
  81229. }
  81230. }
  81231. return createRectInit(paddings.left, paddings.top, width, height);
  81232. }
  81233. /**
  81234. * Checks whether provided element is an instance of the SVGGraphicsElement.
  81235. *
  81236. * @param {Element} target - Element to be checked.
  81237. * @returns {boolean}
  81238. */
  81239. var isSVGGraphicsElement = (function () {
  81240. // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
  81241. // interface.
  81242. if (typeof SVGGraphicsElement !== 'undefined') {
  81243. return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
  81244. }
  81245. // If it's so, then check that element is at least an instance of the
  81246. // SVGElement and that it has the "getBBox" method.
  81247. // eslint-disable-next-line no-extra-parens
  81248. return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
  81249. typeof target.getBBox === 'function'); };
  81250. })();
  81251. /**
  81252. * Checks whether provided element is a document element (<html>).
  81253. *
  81254. * @param {Element} target - Element to be checked.
  81255. * @returns {boolean}
  81256. */
  81257. function isDocumentElement(target) {
  81258. return target === getWindowOf(target).document.documentElement;
  81259. }
  81260. /**
  81261. * Calculates an appropriate content rectangle for provided html or svg element.
  81262. *
  81263. * @param {Element} target - Element content rectangle of which needs to be calculated.
  81264. * @returns {DOMRectInit}
  81265. */
  81266. function getContentRect(target) {
  81267. if (!isBrowser) {
  81268. return emptyRect;
  81269. }
  81270. if (isSVGGraphicsElement(target)) {
  81271. return getSVGContentRect(target);
  81272. }
  81273. return getHTMLElementContentRect(target);
  81274. }
  81275. /**
  81276. * Creates rectangle with an interface of the DOMRectReadOnly.
  81277. * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
  81278. *
  81279. * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
  81280. * @returns {DOMRectReadOnly}
  81281. */
  81282. function createReadOnlyRect(_a) {
  81283. var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
  81284. // If DOMRectReadOnly is available use it as a prototype for the rectangle.
  81285. var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
  81286. var rect = Object.create(Constr.prototype);
  81287. // Rectangle's properties are not writable and non-enumerable.
  81288. defineConfigurable(rect, {
  81289. x: x, y: y, width: width, height: height,
  81290. top: y,
  81291. right: x + width,
  81292. bottom: height + y,
  81293. left: x
  81294. });
  81295. return rect;
  81296. }
  81297. /**
  81298. * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
  81299. * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
  81300. *
  81301. * @param {number} x - X coordinate.
  81302. * @param {number} y - Y coordinate.
  81303. * @param {number} width - Rectangle's width.
  81304. * @param {number} height - Rectangle's height.
  81305. * @returns {DOMRectInit}
  81306. */
  81307. function createRectInit(x, y, width, height) {
  81308. return { x: x, y: y, width: width, height: height };
  81309. }
  81310. /**
  81311. * Class that is responsible for computations of the content rectangle of
  81312. * provided DOM element and for keeping track of it's changes.
  81313. */
  81314. var ResizeObservation = /** @class */ (function () {
  81315. /**
  81316. * Creates an instance of ResizeObservation.
  81317. *
  81318. * @param {Element} target - Element to be observed.
  81319. */
  81320. function ResizeObservation(target) {
  81321. /**
  81322. * Broadcasted width of content rectangle.
  81323. *
  81324. * @type {number}
  81325. */
  81326. this.broadcastWidth = 0;
  81327. /**
  81328. * Broadcasted height of content rectangle.
  81329. *
  81330. * @type {number}
  81331. */
  81332. this.broadcastHeight = 0;
  81333. /**
  81334. * Reference to the last observed content rectangle.
  81335. *
  81336. * @private {DOMRectInit}
  81337. */
  81338. this.contentRect_ = createRectInit(0, 0, 0, 0);
  81339. this.target = target;
  81340. }
  81341. /**
  81342. * Updates content rectangle and tells whether it's width or height properties
  81343. * have changed since the last broadcast.
  81344. *
  81345. * @returns {boolean}
  81346. */
  81347. ResizeObservation.prototype.isActive = function () {
  81348. var rect = getContentRect(this.target);
  81349. this.contentRect_ = rect;
  81350. return (rect.width !== this.broadcastWidth ||
  81351. rect.height !== this.broadcastHeight);
  81352. };
  81353. /**
  81354. * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
  81355. * from the corresponding properties of the last observed content rectangle.
  81356. *
  81357. * @returns {DOMRectInit} Last observed content rectangle.
  81358. */
  81359. ResizeObservation.prototype.broadcastRect = function () {
  81360. var rect = this.contentRect_;
  81361. this.broadcastWidth = rect.width;
  81362. this.broadcastHeight = rect.height;
  81363. return rect;
  81364. };
  81365. return ResizeObservation;
  81366. }());
  81367. var ResizeObserverEntry = /** @class */ (function () {
  81368. /**
  81369. * Creates an instance of ResizeObserverEntry.
  81370. *
  81371. * @param {Element} target - Element that is being observed.
  81372. * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
  81373. */
  81374. function ResizeObserverEntry(target, rectInit) {
  81375. var contentRect = createReadOnlyRect(rectInit);
  81376. // According to the specification following properties are not writable
  81377. // and are also not enumerable in the native implementation.
  81378. //
  81379. // Property accessors are not being used as they'd require to define a
  81380. // private WeakMap storage which may cause memory leaks in browsers that
  81381. // don't support this type of collections.
  81382. defineConfigurable(this, { target: target, contentRect: contentRect });
  81383. }
  81384. return ResizeObserverEntry;
  81385. }());
  81386. var ResizeObserverSPI = /** @class */ (function () {
  81387. /**
  81388. * Creates a new instance of ResizeObserver.
  81389. *
  81390. * @param {ResizeObserverCallback} callback - Callback function that is invoked
  81391. * when one of the observed elements changes it's content dimensions.
  81392. * @param {ResizeObserverController} controller - Controller instance which
  81393. * is responsible for the updates of observer.
  81394. * @param {ResizeObserver} callbackCtx - Reference to the public
  81395. * ResizeObserver instance which will be passed to callback function.
  81396. */
  81397. function ResizeObserverSPI(callback, controller, callbackCtx) {
  81398. /**
  81399. * Collection of resize observations that have detected changes in dimensions
  81400. * of elements.
  81401. *
  81402. * @private {Array<ResizeObservation>}
  81403. */
  81404. this.activeObservations_ = [];
  81405. /**
  81406. * Registry of the ResizeObservation instances.
  81407. *
  81408. * @private {Map<Element, ResizeObservation>}
  81409. */
  81410. this.observations_ = new MapShim();
  81411. if (typeof callback !== 'function') {
  81412. throw new TypeError('The callback provided as parameter 1 is not a function.');
  81413. }
  81414. this.callback_ = callback;
  81415. this.controller_ = controller;
  81416. this.callbackCtx_ = callbackCtx;
  81417. }
  81418. /**
  81419. * Starts observing provided element.
  81420. *
  81421. * @param {Element} target - Element to be observed.
  81422. * @returns {void}
  81423. */
  81424. ResizeObserverSPI.prototype.observe = function (target) {
  81425. if (!arguments.length) {
  81426. throw new TypeError('1 argument required, but only 0 present.');
  81427. }
  81428. // Do nothing if current environment doesn't have the Element interface.
  81429. if (typeof Element === 'undefined' || !(Element instanceof Object)) {
  81430. return;
  81431. }
  81432. if (!(target instanceof getWindowOf(target).Element)) {
  81433. throw new TypeError('parameter 1 is not of type "Element".');
  81434. }
  81435. var observations = this.observations_;
  81436. // Do nothing if element is already being observed.
  81437. if (observations.has(target)) {
  81438. return;
  81439. }
  81440. observations.set(target, new ResizeObservation(target));
  81441. this.controller_.addObserver(this);
  81442. // Force the update of observations.
  81443. this.controller_.refresh();
  81444. };
  81445. /**
  81446. * Stops observing provided element.
  81447. *
  81448. * @param {Element} target - Element to stop observing.
  81449. * @returns {void}
  81450. */
  81451. ResizeObserverSPI.prototype.unobserve = function (target) {
  81452. if (!arguments.length) {
  81453. throw new TypeError('1 argument required, but only 0 present.');
  81454. }
  81455. // Do nothing if current environment doesn't have the Element interface.
  81456. if (typeof Element === 'undefined' || !(Element instanceof Object)) {
  81457. return;
  81458. }
  81459. if (!(target instanceof getWindowOf(target).Element)) {
  81460. throw new TypeError('parameter 1 is not of type "Element".');
  81461. }
  81462. var observations = this.observations_;
  81463. // Do nothing if element is not being observed.
  81464. if (!observations.has(target)) {
  81465. return;
  81466. }
  81467. observations.delete(target);
  81468. if (!observations.size) {
  81469. this.controller_.removeObserver(this);
  81470. }
  81471. };
  81472. /**
  81473. * Stops observing all elements.
  81474. *
  81475. * @returns {void}
  81476. */
  81477. ResizeObserverSPI.prototype.disconnect = function () {
  81478. this.clearActive();
  81479. this.observations_.clear();
  81480. this.controller_.removeObserver(this);
  81481. };
  81482. /**
  81483. * Collects observation instances the associated element of which has changed
  81484. * it's content rectangle.
  81485. *
  81486. * @returns {void}
  81487. */
  81488. ResizeObserverSPI.prototype.gatherActive = function () {
  81489. var _this = this;
  81490. this.clearActive();
  81491. this.observations_.forEach(function (observation) {
  81492. if (observation.isActive()) {
  81493. _this.activeObservations_.push(observation);
  81494. }
  81495. });
  81496. };
  81497. /**
  81498. * Invokes initial callback function with a list of ResizeObserverEntry
  81499. * instances collected from active resize observations.
  81500. *
  81501. * @returns {void}
  81502. */
  81503. ResizeObserverSPI.prototype.broadcastActive = function () {
  81504. // Do nothing if observer doesn't have active observations.
  81505. if (!this.hasActive()) {
  81506. return;
  81507. }
  81508. var ctx = this.callbackCtx_;
  81509. // Create ResizeObserverEntry instance for every active observation.
  81510. var entries = this.activeObservations_.map(function (observation) {
  81511. return new ResizeObserverEntry(observation.target, observation.broadcastRect());
  81512. });
  81513. this.callback_.call(ctx, entries, ctx);
  81514. this.clearActive();
  81515. };
  81516. /**
  81517. * Clears the collection of active observations.
  81518. *
  81519. * @returns {void}
  81520. */
  81521. ResizeObserverSPI.prototype.clearActive = function () {
  81522. this.activeObservations_.splice(0);
  81523. };
  81524. /**
  81525. * Tells whether observer has active observations.
  81526. *
  81527. * @returns {boolean}
  81528. */
  81529. ResizeObserverSPI.prototype.hasActive = function () {
  81530. return this.activeObservations_.length > 0;
  81531. };
  81532. return ResizeObserverSPI;
  81533. }());
  81534. // Registry of internal observers. If WeakMap is not available use current shim
  81535. // for the Map collection as it has all required methods and because WeakMap
  81536. // can't be fully polyfilled anyway.
  81537. var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
  81538. /**
  81539. * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
  81540. * exposing only those methods and properties that are defined in the spec.
  81541. */
  81542. var ResizeObserver = /** @class */ (function () {
  81543. /**
  81544. * Creates a new instance of ResizeObserver.
  81545. *
  81546. * @param {ResizeObserverCallback} callback - Callback that is invoked when
  81547. * dimensions of the observed elements change.
  81548. */
  81549. function ResizeObserver(callback) {
  81550. if (!(this instanceof ResizeObserver)) {
  81551. throw new TypeError('Cannot call a class as a function.');
  81552. }
  81553. if (!arguments.length) {
  81554. throw new TypeError('1 argument required, but only 0 present.');
  81555. }
  81556. var controller = ResizeObserverController.getInstance();
  81557. var observer = new ResizeObserverSPI(callback, controller, this);
  81558. observers.set(this, observer);
  81559. }
  81560. return ResizeObserver;
  81561. }());
  81562. // Expose public methods of ResizeObserver.
  81563. [
  81564. 'observe',
  81565. 'unobserve',
  81566. 'disconnect'
  81567. ].forEach(function (method) {
  81568. ResizeObserver.prototype[method] = function () {
  81569. var _a;
  81570. return (_a = observers.get(this))[method].apply(_a, arguments);
  81571. };
  81572. });
  81573. var index = (function () {
  81574. // Export existing implementation if available.
  81575. if (typeof global$1.ResizeObserver !== 'undefined') {
  81576. return global$1.ResizeObserver;
  81577. }
  81578. return ResizeObserver;
  81579. })();
  81580. /* harmony default export */ __webpack_exports__["default"] = (index);
  81581. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  81582. /***/ }),
  81583. /***/ "./node_modules/shallow-equal/arrays/index.js":
  81584. /*!****************************************************!*\
  81585. !*** ./node_modules/shallow-equal/arrays/index.js ***!
  81586. \****************************************************/
  81587. /*! no static exports found */
  81588. /***/ (function(module, exports, __webpack_require__) {
  81589. "use strict";
  81590. function shallowEqualArrays(arrA, arrB) {
  81591. if (arrA === arrB) {
  81592. return true;
  81593. }
  81594. if (!arrA || !arrB) {
  81595. return false;
  81596. }
  81597. var len = arrA.length;
  81598. if (arrB.length !== len) {
  81599. return false;
  81600. }
  81601. for (var i = 0; i < len; i++) {
  81602. if (arrA[i] !== arrB[i]) {
  81603. return false;
  81604. }
  81605. }
  81606. return true;
  81607. }
  81608. module.exports = shallowEqualArrays;
  81609. /***/ }),
  81610. /***/ "./node_modules/shallowequal/index.js":
  81611. /*!********************************************!*\
  81612. !*** ./node_modules/shallowequal/index.js ***!
  81613. \********************************************/
  81614. /*! no static exports found */
  81615. /***/ (function(module, exports) {
  81616. //
  81617. module.exports = function shallowEqual(objA, objB, compare, compareContext) {
  81618. var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
  81619. if (ret !== void 0) {
  81620. return !!ret;
  81621. }
  81622. if (objA === objB) {
  81623. return true;
  81624. }
  81625. if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
  81626. return false;
  81627. }
  81628. var keysA = Object.keys(objA);
  81629. var keysB = Object.keys(objB);
  81630. if (keysA.length !== keysB.length) {
  81631. return false;
  81632. }
  81633. var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
  81634. // Test for A's keys different from B.
  81635. for (var idx = 0; idx < keysA.length; idx++) {
  81636. var key = keysA[idx];
  81637. if (!bHasOwnProperty(key)) {
  81638. return false;
  81639. }
  81640. var valueA = objA[key];
  81641. var valueB = objB[key];
  81642. ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
  81643. if (ret === false || (ret === void 0 && valueA !== valueB)) {
  81644. return false;
  81645. }
  81646. }
  81647. return true;
  81648. };
  81649. /***/ }),
  81650. /***/ "./node_modules/string-convert/camel2hyphen.js":
  81651. /*!*****************************************************!*\
  81652. !*** ./node_modules/string-convert/camel2hyphen.js ***!
  81653. \*****************************************************/
  81654. /*! no static exports found */
  81655. /***/ (function(module, exports) {
  81656. var camel2hyphen = function (str) {
  81657. return str
  81658. .replace(/[A-Z]/g, function (match) {
  81659. return '-' + match.toLowerCase();
  81660. })
  81661. .toLowerCase();
  81662. };
  81663. module.exports = camel2hyphen;
  81664. /***/ }),
  81665. /***/ "./node_modules/tinycolor2/tinycolor.js":
  81666. /*!**********************************************!*\
  81667. !*** ./node_modules/tinycolor2/tinycolor.js ***!
  81668. \**********************************************/
  81669. /*! no static exports found */
  81670. /***/ (function(module, exports, __webpack_require__) {
  81671. var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.2
  81672. // https://github.com/bgrins/TinyColor
  81673. // Brian Grinstead, MIT License
  81674. (function(Math) {
  81675. var trimLeft = /^\s+/,
  81676. trimRight = /\s+$/,
  81677. tinyCounter = 0,
  81678. mathRound = Math.round,
  81679. mathMin = Math.min,
  81680. mathMax = Math.max,
  81681. mathRandom = Math.random;
  81682. function tinycolor (color, opts) {
  81683. color = (color) ? color : '';
  81684. opts = opts || { };
  81685. // If input is already a tinycolor, return itself
  81686. if (color instanceof tinycolor) {
  81687. return color;
  81688. }
  81689. // If we are called as a function, call using new instead
  81690. if (!(this instanceof tinycolor)) {
  81691. return new tinycolor(color, opts);
  81692. }
  81693. var rgb = inputToRGB(color);
  81694. this._originalInput = color,
  81695. this._r = rgb.r,
  81696. this._g = rgb.g,
  81697. this._b = rgb.b,
  81698. this._a = rgb.a,
  81699. this._roundA = mathRound(100*this._a) / 100,
  81700. this._format = opts.format || rgb.format;
  81701. this._gradientType = opts.gradientType;
  81702. // Don't let the range of [0,255] come back in [0,1].
  81703. // Potentially lose a little bit of precision here, but will fix issues where
  81704. // .5 gets interpreted as half of the total, instead of half of 1
  81705. // If it was supposed to be 128, this was already taken care of by `inputToRgb`
  81706. if (this._r < 1) { this._r = mathRound(this._r); }
  81707. if (this._g < 1) { this._g = mathRound(this._g); }
  81708. if (this._b < 1) { this._b = mathRound(this._b); }
  81709. this._ok = rgb.ok;
  81710. this._tc_id = tinyCounter++;
  81711. }
  81712. tinycolor.prototype = {
  81713. isDark: function() {
  81714. return this.getBrightness() < 128;
  81715. },
  81716. isLight: function() {
  81717. return !this.isDark();
  81718. },
  81719. isValid: function() {
  81720. return this._ok;
  81721. },
  81722. getOriginalInput: function() {
  81723. return this._originalInput;
  81724. },
  81725. getFormat: function() {
  81726. return this._format;
  81727. },
  81728. getAlpha: function() {
  81729. return this._a;
  81730. },
  81731. getBrightness: function() {
  81732. //http://www.w3.org/TR/AERT#color-contrast
  81733. var rgb = this.toRgb();
  81734. return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;
  81735. },
  81736. getLuminance: function() {
  81737. //http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
  81738. var rgb = this.toRgb();
  81739. var RsRGB, GsRGB, BsRGB, R, G, B;
  81740. RsRGB = rgb.r/255;
  81741. GsRGB = rgb.g/255;
  81742. BsRGB = rgb.b/255;
  81743. if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);}
  81744. if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);}
  81745. if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);}
  81746. return (0.2126 * R) + (0.7152 * G) + (0.0722 * B);
  81747. },
  81748. setAlpha: function(value) {
  81749. this._a = boundAlpha(value);
  81750. this._roundA = mathRound(100*this._a) / 100;
  81751. return this;
  81752. },
  81753. toHsv: function() {
  81754. var hsv = rgbToHsv(this._r, this._g, this._b);
  81755. return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a };
  81756. },
  81757. toHsvString: function() {
  81758. var hsv = rgbToHsv(this._r, this._g, this._b);
  81759. var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100);
  81760. return (this._a == 1) ?
  81761. "hsv(" + h + ", " + s + "%, " + v + "%)" :
  81762. "hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")";
  81763. },
  81764. toHsl: function() {
  81765. var hsl = rgbToHsl(this._r, this._g, this._b);
  81766. return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a };
  81767. },
  81768. toHslString: function() {
  81769. var hsl = rgbToHsl(this._r, this._g, this._b);
  81770. var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100);
  81771. return (this._a == 1) ?
  81772. "hsl(" + h + ", " + s + "%, " + l + "%)" :
  81773. "hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")";
  81774. },
  81775. toHex: function(allow3Char) {
  81776. return rgbToHex(this._r, this._g, this._b, allow3Char);
  81777. },
  81778. toHexString: function(allow3Char) {
  81779. return '#' + this.toHex(allow3Char);
  81780. },
  81781. toHex8: function(allow4Char) {
  81782. return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);
  81783. },
  81784. toHex8String: function(allow4Char) {
  81785. return '#' + this.toHex8(allow4Char);
  81786. },
  81787. toRgb: function() {
  81788. return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a };
  81789. },
  81790. toRgbString: function() {
  81791. return (this._a == 1) ?
  81792. "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" :
  81793. "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")";
  81794. },
  81795. toPercentageRgb: function() {
  81796. return { r: mathRound(bound01(this._r, 255) * 100) + "%", g: mathRound(bound01(this._g, 255) * 100) + "%", b: mathRound(bound01(this._b, 255) * 100) + "%", a: this._a };
  81797. },
  81798. toPercentageRgbString: function() {
  81799. return (this._a == 1) ?
  81800. "rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" :
  81801. "rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")";
  81802. },
  81803. toName: function() {
  81804. if (this._a === 0) {
  81805. return "transparent";
  81806. }
  81807. if (this._a < 1) {
  81808. return false;
  81809. }
  81810. return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;
  81811. },
  81812. toFilter: function(secondColor) {
  81813. var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a);
  81814. var secondHex8String = hex8String;
  81815. var gradientType = this._gradientType ? "GradientType = 1, " : "";
  81816. if (secondColor) {
  81817. var s = tinycolor(secondColor);
  81818. secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a);
  81819. }
  81820. return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")";
  81821. },
  81822. toString: function(format) {
  81823. var formatSet = !!format;
  81824. format = format || this._format;
  81825. var formattedString = false;
  81826. var hasAlpha = this._a < 1 && this._a >= 0;
  81827. var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name");
  81828. if (needsAlphaFormat) {
  81829. // Special case for "transparent", all other non-alpha formats
  81830. // will return rgba when there is transparency.
  81831. if (format === "name" && this._a === 0) {
  81832. return this.toName();
  81833. }
  81834. return this.toRgbString();
  81835. }
  81836. if (format === "rgb") {
  81837. formattedString = this.toRgbString();
  81838. }
  81839. if (format === "prgb") {
  81840. formattedString = this.toPercentageRgbString();
  81841. }
  81842. if (format === "hex" || format === "hex6") {
  81843. formattedString = this.toHexString();
  81844. }
  81845. if (format === "hex3") {
  81846. formattedString = this.toHexString(true);
  81847. }
  81848. if (format === "hex4") {
  81849. formattedString = this.toHex8String(true);
  81850. }
  81851. if (format === "hex8") {
  81852. formattedString = this.toHex8String();
  81853. }
  81854. if (format === "name") {
  81855. formattedString = this.toName();
  81856. }
  81857. if (format === "hsl") {
  81858. formattedString = this.toHslString();
  81859. }
  81860. if (format === "hsv") {
  81861. formattedString = this.toHsvString();
  81862. }
  81863. return formattedString || this.toHexString();
  81864. },
  81865. clone: function() {
  81866. return tinycolor(this.toString());
  81867. },
  81868. _applyModification: function(fn, args) {
  81869. var color = fn.apply(null, [this].concat([].slice.call(args)));
  81870. this._r = color._r;
  81871. this._g = color._g;
  81872. this._b = color._b;
  81873. this.setAlpha(color._a);
  81874. return this;
  81875. },
  81876. lighten: function() {
  81877. return this._applyModification(lighten, arguments);
  81878. },
  81879. brighten: function() {
  81880. return this._applyModification(brighten, arguments);
  81881. },
  81882. darken: function() {
  81883. return this._applyModification(darken, arguments);
  81884. },
  81885. desaturate: function() {
  81886. return this._applyModification(desaturate, arguments);
  81887. },
  81888. saturate: function() {
  81889. return this._applyModification(saturate, arguments);
  81890. },
  81891. greyscale: function() {
  81892. return this._applyModification(greyscale, arguments);
  81893. },
  81894. spin: function() {
  81895. return this._applyModification(spin, arguments);
  81896. },
  81897. _applyCombination: function(fn, args) {
  81898. return fn.apply(null, [this].concat([].slice.call(args)));
  81899. },
  81900. analogous: function() {
  81901. return this._applyCombination(analogous, arguments);
  81902. },
  81903. complement: function() {
  81904. return this._applyCombination(complement, arguments);
  81905. },
  81906. monochromatic: function() {
  81907. return this._applyCombination(monochromatic, arguments);
  81908. },
  81909. splitcomplement: function() {
  81910. return this._applyCombination(splitcomplement, arguments);
  81911. },
  81912. triad: function() {
  81913. return this._applyCombination(triad, arguments);
  81914. },
  81915. tetrad: function() {
  81916. return this._applyCombination(tetrad, arguments);
  81917. }
  81918. };
  81919. // If input is an object, force 1 into "1.0" to handle ratios properly
  81920. // String input requires "1.0" as input, so 1 will be treated as 1
  81921. tinycolor.fromRatio = function(color, opts) {
  81922. if (typeof color == "object") {
  81923. var newColor = {};
  81924. for (var i in color) {
  81925. if (color.hasOwnProperty(i)) {
  81926. if (i === "a") {
  81927. newColor[i] = color[i];
  81928. }
  81929. else {
  81930. newColor[i] = convertToPercentage(color[i]);
  81931. }
  81932. }
  81933. }
  81934. color = newColor;
  81935. }
  81936. return tinycolor(color, opts);
  81937. };
  81938. // Given a string or object, convert that input to RGB
  81939. // Possible string inputs:
  81940. //
  81941. // "red"
  81942. // "#f00" or "f00"
  81943. // "#ff0000" or "ff0000"
  81944. // "#ff000000" or "ff000000"
  81945. // "rgb 255 0 0" or "rgb (255, 0, 0)"
  81946. // "rgb 1.0 0 0" or "rgb (1, 0, 0)"
  81947. // "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
  81948. // "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
  81949. // "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
  81950. // "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
  81951. // "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
  81952. //
  81953. function inputToRGB(color) {
  81954. var rgb = { r: 0, g: 0, b: 0 };
  81955. var a = 1;
  81956. var s = null;
  81957. var v = null;
  81958. var l = null;
  81959. var ok = false;
  81960. var format = false;
  81961. if (typeof color == "string") {
  81962. color = stringInputToObject(color);
  81963. }
  81964. if (typeof color == "object") {
  81965. if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
  81966. rgb = rgbToRgb(color.r, color.g, color.b);
  81967. ok = true;
  81968. format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
  81969. }
  81970. else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
  81971. s = convertToPercentage(color.s);
  81972. v = convertToPercentage(color.v);
  81973. rgb = hsvToRgb(color.h, s, v);
  81974. ok = true;
  81975. format = "hsv";
  81976. }
  81977. else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
  81978. s = convertToPercentage(color.s);
  81979. l = convertToPercentage(color.l);
  81980. rgb = hslToRgb(color.h, s, l);
  81981. ok = true;
  81982. format = "hsl";
  81983. }
  81984. if (color.hasOwnProperty("a")) {
  81985. a = color.a;
  81986. }
  81987. }
  81988. a = boundAlpha(a);
  81989. return {
  81990. ok: ok,
  81991. format: color.format || format,
  81992. r: mathMin(255, mathMax(rgb.r, 0)),
  81993. g: mathMin(255, mathMax(rgb.g, 0)),
  81994. b: mathMin(255, mathMax(rgb.b, 0)),
  81995. a: a
  81996. };
  81997. }
  81998. // Conversion Functions
  81999. // --------------------
  82000. // `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
  82001. // <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
  82002. // `rgbToRgb`
  82003. // Handle bounds / percentage checking to conform to CSS color spec
  82004. // <http://www.w3.org/TR/css3-color/>
  82005. // *Assumes:* r, g, b in [0, 255] or [0, 1]
  82006. // *Returns:* { r, g, b } in [0, 255]
  82007. function rgbToRgb(r, g, b){
  82008. return {
  82009. r: bound01(r, 255) * 255,
  82010. g: bound01(g, 255) * 255,
  82011. b: bound01(b, 255) * 255
  82012. };
  82013. }
  82014. // `rgbToHsl`
  82015. // Converts an RGB color value to HSL.
  82016. // *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
  82017. // *Returns:* { h, s, l } in [0,1]
  82018. function rgbToHsl(r, g, b) {
  82019. r = bound01(r, 255);
  82020. g = bound01(g, 255);
  82021. b = bound01(b, 255);
  82022. var max = mathMax(r, g, b), min = mathMin(r, g, b);
  82023. var h, s, l = (max + min) / 2;
  82024. if(max == min) {
  82025. h = s = 0; // achromatic
  82026. }
  82027. else {
  82028. var d = max - min;
  82029. s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
  82030. switch(max) {
  82031. case r: h = (g - b) / d + (g < b ? 6 : 0); break;
  82032. case g: h = (b - r) / d + 2; break;
  82033. case b: h = (r - g) / d + 4; break;
  82034. }
  82035. h /= 6;
  82036. }
  82037. return { h: h, s: s, l: l };
  82038. }
  82039. // `hslToRgb`
  82040. // Converts an HSL color value to RGB.
  82041. // *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
  82042. // *Returns:* { r, g, b } in the set [0, 255]
  82043. function hslToRgb(h, s, l) {
  82044. var r, g, b;
  82045. h = bound01(h, 360);
  82046. s = bound01(s, 100);
  82047. l = bound01(l, 100);
  82048. function hue2rgb(p, q, t) {
  82049. if(t < 0) t += 1;
  82050. if(t > 1) t -= 1;
  82051. if(t < 1/6) return p + (q - p) * 6 * t;
  82052. if(t < 1/2) return q;
  82053. if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;
  82054. return p;
  82055. }
  82056. if(s === 0) {
  82057. r = g = b = l; // achromatic
  82058. }
  82059. else {
  82060. var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
  82061. var p = 2 * l - q;
  82062. r = hue2rgb(p, q, h + 1/3);
  82063. g = hue2rgb(p, q, h);
  82064. b = hue2rgb(p, q, h - 1/3);
  82065. }
  82066. return { r: r * 255, g: g * 255, b: b * 255 };
  82067. }
  82068. // `rgbToHsv`
  82069. // Converts an RGB color value to HSV
  82070. // *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
  82071. // *Returns:* { h, s, v } in [0,1]
  82072. function rgbToHsv(r, g, b) {
  82073. r = bound01(r, 255);
  82074. g = bound01(g, 255);
  82075. b = bound01(b, 255);
  82076. var max = mathMax(r, g, b), min = mathMin(r, g, b);
  82077. var h, s, v = max;
  82078. var d = max - min;
  82079. s = max === 0 ? 0 : d / max;
  82080. if(max == min) {
  82081. h = 0; // achromatic
  82082. }
  82083. else {
  82084. switch(max) {
  82085. case r: h = (g - b) / d + (g < b ? 6 : 0); break;
  82086. case g: h = (b - r) / d + 2; break;
  82087. case b: h = (r - g) / d + 4; break;
  82088. }
  82089. h /= 6;
  82090. }
  82091. return { h: h, s: s, v: v };
  82092. }
  82093. // `hsvToRgb`
  82094. // Converts an HSV color value to RGB.
  82095. // *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
  82096. // *Returns:* { r, g, b } in the set [0, 255]
  82097. function hsvToRgb(h, s, v) {
  82098. h = bound01(h, 360) * 6;
  82099. s = bound01(s, 100);
  82100. v = bound01(v, 100);
  82101. var i = Math.floor(h),
  82102. f = h - i,
  82103. p = v * (1 - s),
  82104. q = v * (1 - f * s),
  82105. t = v * (1 - (1 - f) * s),
  82106. mod = i % 6,
  82107. r = [v, q, p, p, t, v][mod],
  82108. g = [t, v, v, q, p, p][mod],
  82109. b = [p, p, t, v, v, q][mod];
  82110. return { r: r * 255, g: g * 255, b: b * 255 };
  82111. }
  82112. // `rgbToHex`
  82113. // Converts an RGB color to hex
  82114. // Assumes r, g, and b are contained in the set [0, 255]
  82115. // Returns a 3 or 6 character hex
  82116. function rgbToHex(r, g, b, allow3Char) {
  82117. var hex = [
  82118. pad2(mathRound(r).toString(16)),
  82119. pad2(mathRound(g).toString(16)),
  82120. pad2(mathRound(b).toString(16))
  82121. ];
  82122. // Return a 3 character hex if possible
  82123. if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) {
  82124. return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
  82125. }
  82126. return hex.join("");
  82127. }
  82128. // `rgbaToHex`
  82129. // Converts an RGBA color plus alpha transparency to hex
  82130. // Assumes r, g, b are contained in the set [0, 255] and
  82131. // a in [0, 1]. Returns a 4 or 8 character rgba hex
  82132. function rgbaToHex(r, g, b, a, allow4Char) {
  82133. var hex = [
  82134. pad2(mathRound(r).toString(16)),
  82135. pad2(mathRound(g).toString(16)),
  82136. pad2(mathRound(b).toString(16)),
  82137. pad2(convertDecimalToHex(a))
  82138. ];
  82139. // Return a 4 character hex if possible
  82140. if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) {
  82141. return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
  82142. }
  82143. return hex.join("");
  82144. }
  82145. // `rgbaToArgbHex`
  82146. // Converts an RGBA color to an ARGB Hex8 string
  82147. // Rarely used, but required for "toFilter()"
  82148. function rgbaToArgbHex(r, g, b, a) {
  82149. var hex = [
  82150. pad2(convertDecimalToHex(a)),
  82151. pad2(mathRound(r).toString(16)),
  82152. pad2(mathRound(g).toString(16)),
  82153. pad2(mathRound(b).toString(16))
  82154. ];
  82155. return hex.join("");
  82156. }
  82157. // `equals`
  82158. // Can be called with any tinycolor input
  82159. tinycolor.equals = function (color1, color2) {
  82160. if (!color1 || !color2) { return false; }
  82161. return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();
  82162. };
  82163. tinycolor.random = function() {
  82164. return tinycolor.fromRatio({
  82165. r: mathRandom(),
  82166. g: mathRandom(),
  82167. b: mathRandom()
  82168. });
  82169. };
  82170. // Modification Functions
  82171. // ----------------------
  82172. // Thanks to less.js for some of the basics here
  82173. // <https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js>
  82174. function desaturate(color, amount) {
  82175. amount = (amount === 0) ? 0 : (amount || 10);
  82176. var hsl = tinycolor(color).toHsl();
  82177. hsl.s -= amount / 100;
  82178. hsl.s = clamp01(hsl.s);
  82179. return tinycolor(hsl);
  82180. }
  82181. function saturate(color, amount) {
  82182. amount = (amount === 0) ? 0 : (amount || 10);
  82183. var hsl = tinycolor(color).toHsl();
  82184. hsl.s += amount / 100;
  82185. hsl.s = clamp01(hsl.s);
  82186. return tinycolor(hsl);
  82187. }
  82188. function greyscale(color) {
  82189. return tinycolor(color).desaturate(100);
  82190. }
  82191. function lighten (color, amount) {
  82192. amount = (amount === 0) ? 0 : (amount || 10);
  82193. var hsl = tinycolor(color).toHsl();
  82194. hsl.l += amount / 100;
  82195. hsl.l = clamp01(hsl.l);
  82196. return tinycolor(hsl);
  82197. }
  82198. function brighten(color, amount) {
  82199. amount = (amount === 0) ? 0 : (amount || 10);
  82200. var rgb = tinycolor(color).toRgb();
  82201. rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100))));
  82202. rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100))));
  82203. rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100))));
  82204. return tinycolor(rgb);
  82205. }
  82206. function darken (color, amount) {
  82207. amount = (amount === 0) ? 0 : (amount || 10);
  82208. var hsl = tinycolor(color).toHsl();
  82209. hsl.l -= amount / 100;
  82210. hsl.l = clamp01(hsl.l);
  82211. return tinycolor(hsl);
  82212. }
  82213. // Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
  82214. // Values outside of this range will be wrapped into this range.
  82215. function spin(color, amount) {
  82216. var hsl = tinycolor(color).toHsl();
  82217. var hue = (hsl.h + amount) % 360;
  82218. hsl.h = hue < 0 ? 360 + hue : hue;
  82219. return tinycolor(hsl);
  82220. }
  82221. // Combination Functions
  82222. // ---------------------
  82223. // Thanks to jQuery xColor for some of the ideas behind these
  82224. // <https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js>
  82225. function complement(color) {
  82226. var hsl = tinycolor(color).toHsl();
  82227. hsl.h = (hsl.h + 180) % 360;
  82228. return tinycolor(hsl);
  82229. }
  82230. function triad(color) {
  82231. var hsl = tinycolor(color).toHsl();
  82232. var h = hsl.h;
  82233. return [
  82234. tinycolor(color),
  82235. tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }),
  82236. tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l })
  82237. ];
  82238. }
  82239. function tetrad(color) {
  82240. var hsl = tinycolor(color).toHsl();
  82241. var h = hsl.h;
  82242. return [
  82243. tinycolor(color),
  82244. tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }),
  82245. tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }),
  82246. tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l })
  82247. ];
  82248. }
  82249. function splitcomplement(color) {
  82250. var hsl = tinycolor(color).toHsl();
  82251. var h = hsl.h;
  82252. return [
  82253. tinycolor(color),
  82254. tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}),
  82255. tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l})
  82256. ];
  82257. }
  82258. function analogous(color, results, slices) {
  82259. results = results || 6;
  82260. slices = slices || 30;
  82261. var hsl = tinycolor(color).toHsl();
  82262. var part = 360 / slices;
  82263. var ret = [tinycolor(color)];
  82264. for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) {
  82265. hsl.h = (hsl.h + part) % 360;
  82266. ret.push(tinycolor(hsl));
  82267. }
  82268. return ret;
  82269. }
  82270. function monochromatic(color, results) {
  82271. results = results || 6;
  82272. var hsv = tinycolor(color).toHsv();
  82273. var h = hsv.h, s = hsv.s, v = hsv.v;
  82274. var ret = [];
  82275. var modification = 1 / results;
  82276. while (results--) {
  82277. ret.push(tinycolor({ h: h, s: s, v: v}));
  82278. v = (v + modification) % 1;
  82279. }
  82280. return ret;
  82281. }
  82282. // Utility Functions
  82283. // ---------------------
  82284. tinycolor.mix = function(color1, color2, amount) {
  82285. amount = (amount === 0) ? 0 : (amount || 50);
  82286. var rgb1 = tinycolor(color1).toRgb();
  82287. var rgb2 = tinycolor(color2).toRgb();
  82288. var p = amount / 100;
  82289. var rgba = {
  82290. r: ((rgb2.r - rgb1.r) * p) + rgb1.r,
  82291. g: ((rgb2.g - rgb1.g) * p) + rgb1.g,
  82292. b: ((rgb2.b - rgb1.b) * p) + rgb1.b,
  82293. a: ((rgb2.a - rgb1.a) * p) + rgb1.a
  82294. };
  82295. return tinycolor(rgba);
  82296. };
  82297. // Readability Functions
  82298. // ---------------------
  82299. // <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)
  82300. // `contrast`
  82301. // Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)
  82302. tinycolor.readability = function(color1, color2) {
  82303. var c1 = tinycolor(color1);
  82304. var c2 = tinycolor(color2);
  82305. return (Math.max(c1.getLuminance(),c2.getLuminance())+0.05) / (Math.min(c1.getLuminance(),c2.getLuminance())+0.05);
  82306. };
  82307. // `isReadable`
  82308. // Ensure that foreground and background color combinations meet WCAG2 guidelines.
  82309. // The third argument is an optional Object.
  82310. // the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';
  82311. // the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.
  82312. // If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.
  82313. // *Example*
  82314. // tinycolor.isReadable("#000", "#111") => false
  82315. // tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false
  82316. tinycolor.isReadable = function(color1, color2, wcag2) {
  82317. var readability = tinycolor.readability(color1, color2);
  82318. var wcag2Parms, out;
  82319. out = false;
  82320. wcag2Parms = validateWCAG2Parms(wcag2);
  82321. switch (wcag2Parms.level + wcag2Parms.size) {
  82322. case "AAsmall":
  82323. case "AAAlarge":
  82324. out = readability >= 4.5;
  82325. break;
  82326. case "AAlarge":
  82327. out = readability >= 3;
  82328. break;
  82329. case "AAAsmall":
  82330. out = readability >= 7;
  82331. break;
  82332. }
  82333. return out;
  82334. };
  82335. // `mostReadable`
  82336. // Given a base color and a list of possible foreground or background
  82337. // colors for that base, returns the most readable color.
  82338. // Optionally returns Black or White if the most readable color is unreadable.
  82339. // *Example*
  82340. // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255"
  82341. // tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff"
  82342. // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3"
  82343. // tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff"
  82344. tinycolor.mostReadable = function(baseColor, colorList, args) {
  82345. var bestColor = null;
  82346. var bestScore = 0;
  82347. var readability;
  82348. var includeFallbackColors, level, size ;
  82349. args = args || {};
  82350. includeFallbackColors = args.includeFallbackColors ;
  82351. level = args.level;
  82352. size = args.size;
  82353. for (var i= 0; i < colorList.length ; i++) {
  82354. readability = tinycolor.readability(baseColor, colorList[i]);
  82355. if (readability > bestScore) {
  82356. bestScore = readability;
  82357. bestColor = tinycolor(colorList[i]);
  82358. }
  82359. }
  82360. if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) {
  82361. return bestColor;
  82362. }
  82363. else {
  82364. args.includeFallbackColors=false;
  82365. return tinycolor.mostReadable(baseColor,["#fff", "#000"],args);
  82366. }
  82367. };
  82368. // Big List of Colors
  82369. // ------------------
  82370. // <http://www.w3.org/TR/css3-color/#svg-color>
  82371. var names = tinycolor.names = {
  82372. aliceblue: "f0f8ff",
  82373. antiquewhite: "faebd7",
  82374. aqua: "0ff",
  82375. aquamarine: "7fffd4",
  82376. azure: "f0ffff",
  82377. beige: "f5f5dc",
  82378. bisque: "ffe4c4",
  82379. black: "000",
  82380. blanchedalmond: "ffebcd",
  82381. blue: "00f",
  82382. blueviolet: "8a2be2",
  82383. brown: "a52a2a",
  82384. burlywood: "deb887",
  82385. burntsienna: "ea7e5d",
  82386. cadetblue: "5f9ea0",
  82387. chartreuse: "7fff00",
  82388. chocolate: "d2691e",
  82389. coral: "ff7f50",
  82390. cornflowerblue: "6495ed",
  82391. cornsilk: "fff8dc",
  82392. crimson: "dc143c",
  82393. cyan: "0ff",
  82394. darkblue: "00008b",
  82395. darkcyan: "008b8b",
  82396. darkgoldenrod: "b8860b",
  82397. darkgray: "a9a9a9",
  82398. darkgreen: "006400",
  82399. darkgrey: "a9a9a9",
  82400. darkkhaki: "bdb76b",
  82401. darkmagenta: "8b008b",
  82402. darkolivegreen: "556b2f",
  82403. darkorange: "ff8c00",
  82404. darkorchid: "9932cc",
  82405. darkred: "8b0000",
  82406. darksalmon: "e9967a",
  82407. darkseagreen: "8fbc8f",
  82408. darkslateblue: "483d8b",
  82409. darkslategray: "2f4f4f",
  82410. darkslategrey: "2f4f4f",
  82411. darkturquoise: "00ced1",
  82412. darkviolet: "9400d3",
  82413. deeppink: "ff1493",
  82414. deepskyblue: "00bfff",
  82415. dimgray: "696969",
  82416. dimgrey: "696969",
  82417. dodgerblue: "1e90ff",
  82418. firebrick: "b22222",
  82419. floralwhite: "fffaf0",
  82420. forestgreen: "228b22",
  82421. fuchsia: "f0f",
  82422. gainsboro: "dcdcdc",
  82423. ghostwhite: "f8f8ff",
  82424. gold: "ffd700",
  82425. goldenrod: "daa520",
  82426. gray: "808080",
  82427. green: "008000",
  82428. greenyellow: "adff2f",
  82429. grey: "808080",
  82430. honeydew: "f0fff0",
  82431. hotpink: "ff69b4",
  82432. indianred: "cd5c5c",
  82433. indigo: "4b0082",
  82434. ivory: "fffff0",
  82435. khaki: "f0e68c",
  82436. lavender: "e6e6fa",
  82437. lavenderblush: "fff0f5",
  82438. lawngreen: "7cfc00",
  82439. lemonchiffon: "fffacd",
  82440. lightblue: "add8e6",
  82441. lightcoral: "f08080",
  82442. lightcyan: "e0ffff",
  82443. lightgoldenrodyellow: "fafad2",
  82444. lightgray: "d3d3d3",
  82445. lightgreen: "90ee90",
  82446. lightgrey: "d3d3d3",
  82447. lightpink: "ffb6c1",
  82448. lightsalmon: "ffa07a",
  82449. lightseagreen: "20b2aa",
  82450. lightskyblue: "87cefa",
  82451. lightslategray: "789",
  82452. lightslategrey: "789",
  82453. lightsteelblue: "b0c4de",
  82454. lightyellow: "ffffe0",
  82455. lime: "0f0",
  82456. limegreen: "32cd32",
  82457. linen: "faf0e6",
  82458. magenta: "f0f",
  82459. maroon: "800000",
  82460. mediumaquamarine: "66cdaa",
  82461. mediumblue: "0000cd",
  82462. mediumorchid: "ba55d3",
  82463. mediumpurple: "9370db",
  82464. mediumseagreen: "3cb371",
  82465. mediumslateblue: "7b68ee",
  82466. mediumspringgreen: "00fa9a",
  82467. mediumturquoise: "48d1cc",
  82468. mediumvioletred: "c71585",
  82469. midnightblue: "191970",
  82470. mintcream: "f5fffa",
  82471. mistyrose: "ffe4e1",
  82472. moccasin: "ffe4b5",
  82473. navajowhite: "ffdead",
  82474. navy: "000080",
  82475. oldlace: "fdf5e6",
  82476. olive: "808000",
  82477. olivedrab: "6b8e23",
  82478. orange: "ffa500",
  82479. orangered: "ff4500",
  82480. orchid: "da70d6",
  82481. palegoldenrod: "eee8aa",
  82482. palegreen: "98fb98",
  82483. paleturquoise: "afeeee",
  82484. palevioletred: "db7093",
  82485. papayawhip: "ffefd5",
  82486. peachpuff: "ffdab9",
  82487. peru: "cd853f",
  82488. pink: "ffc0cb",
  82489. plum: "dda0dd",
  82490. powderblue: "b0e0e6",
  82491. purple: "800080",
  82492. rebeccapurple: "663399",
  82493. red: "f00",
  82494. rosybrown: "bc8f8f",
  82495. royalblue: "4169e1",
  82496. saddlebrown: "8b4513",
  82497. salmon: "fa8072",
  82498. sandybrown: "f4a460",
  82499. seagreen: "2e8b57",
  82500. seashell: "fff5ee",
  82501. sienna: "a0522d",
  82502. silver: "c0c0c0",
  82503. skyblue: "87ceeb",
  82504. slateblue: "6a5acd",
  82505. slategray: "708090",
  82506. slategrey: "708090",
  82507. snow: "fffafa",
  82508. springgreen: "00ff7f",
  82509. steelblue: "4682b4",
  82510. tan: "d2b48c",
  82511. teal: "008080",
  82512. thistle: "d8bfd8",
  82513. tomato: "ff6347",
  82514. turquoise: "40e0d0",
  82515. violet: "ee82ee",
  82516. wheat: "f5deb3",
  82517. white: "fff",
  82518. whitesmoke: "f5f5f5",
  82519. yellow: "ff0",
  82520. yellowgreen: "9acd32"
  82521. };
  82522. // Make it easy to access colors via `hexNames[hex]`
  82523. var hexNames = tinycolor.hexNames = flip(names);
  82524. // Utilities
  82525. // ---------
  82526. // `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`
  82527. function flip(o) {
  82528. var flipped = { };
  82529. for (var i in o) {
  82530. if (o.hasOwnProperty(i)) {
  82531. flipped[o[i]] = i;
  82532. }
  82533. }
  82534. return flipped;
  82535. }
  82536. // Return a valid alpha value [0,1] with all invalid values being set to 1
  82537. function boundAlpha(a) {
  82538. a = parseFloat(a);
  82539. if (isNaN(a) || a < 0 || a > 1) {
  82540. a = 1;
  82541. }
  82542. return a;
  82543. }
  82544. // Take input from [0, n] and return it as [0, 1]
  82545. function bound01(n, max) {
  82546. if (isOnePointZero(n)) { n = "100%"; }
  82547. var processPercent = isPercentage(n);
  82548. n = mathMin(max, mathMax(0, parseFloat(n)));
  82549. // Automatically convert percentage into number
  82550. if (processPercent) {
  82551. n = parseInt(n * max, 10) / 100;
  82552. }
  82553. // Handle floating point rounding errors
  82554. if ((Math.abs(n - max) < 0.000001)) {
  82555. return 1;
  82556. }
  82557. // Convert into [0, 1] range if it isn't already
  82558. return (n % max) / parseFloat(max);
  82559. }
  82560. // Force a number between 0 and 1
  82561. function clamp01(val) {
  82562. return mathMin(1, mathMax(0, val));
  82563. }
  82564. // Parse a base-16 hex value into a base-10 integer
  82565. function parseIntFromHex(val) {
  82566. return parseInt(val, 16);
  82567. }
  82568. // Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
  82569. // <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
  82570. function isOnePointZero(n) {
  82571. return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1;
  82572. }
  82573. // Check to see if string passed in is a percentage
  82574. function isPercentage(n) {
  82575. return typeof n === "string" && n.indexOf('%') != -1;
  82576. }
  82577. // Force a hex value to have 2 characters
  82578. function pad2(c) {
  82579. return c.length == 1 ? '0' + c : '' + c;
  82580. }
  82581. // Replace a decimal with it's percentage value
  82582. function convertToPercentage(n) {
  82583. if (n <= 1) {
  82584. n = (n * 100) + "%";
  82585. }
  82586. return n;
  82587. }
  82588. // Converts a decimal to a hex value
  82589. function convertDecimalToHex(d) {
  82590. return Math.round(parseFloat(d) * 255).toString(16);
  82591. }
  82592. // Converts a hex value to a decimal
  82593. function convertHexToDecimal(h) {
  82594. return (parseIntFromHex(h) / 255);
  82595. }
  82596. var matchers = (function() {
  82597. // <http://www.w3.org/TR/css3-values/#integers>
  82598. var CSS_INTEGER = "[-\\+]?\\d+%?";
  82599. // <http://www.w3.org/TR/css3-values/#number-value>
  82600. var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
  82601. // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
  82602. var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
  82603. // Actual matching.
  82604. // Parentheses and commas are optional, but not required.
  82605. // Whitespace can take the place of commas or opening paren
  82606. var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
  82607. var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
  82608. return {
  82609. CSS_UNIT: new RegExp(CSS_UNIT),
  82610. rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
  82611. rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
  82612. hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
  82613. hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
  82614. hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
  82615. hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
  82616. hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  82617. hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
  82618. hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  82619. hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
  82620. };
  82621. })();
  82622. // `isValidCSSUnit`
  82623. // Take in a single string / number and check to see if it looks like a CSS unit
  82624. // (see `matchers` above for definition).
  82625. function isValidCSSUnit(color) {
  82626. return !!matchers.CSS_UNIT.exec(color);
  82627. }
  82628. // `stringInputToObject`
  82629. // Permissive string parsing. Take in a number of formats, and output an object
  82630. // based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
  82631. function stringInputToObject(color) {
  82632. color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase();
  82633. var named = false;
  82634. if (names[color]) {
  82635. color = names[color];
  82636. named = true;
  82637. }
  82638. else if (color == 'transparent') {
  82639. return { r: 0, g: 0, b: 0, a: 0, format: "name" };
  82640. }
  82641. // Try to match string input using regular expressions.
  82642. // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
  82643. // Just return an object and let the conversion functions handle that.
  82644. // This way the result will be the same whether the tinycolor is initialized with string or object.
  82645. var match;
  82646. if ((match = matchers.rgb.exec(color))) {
  82647. return { r: match[1], g: match[2], b: match[3] };
  82648. }
  82649. if ((match = matchers.rgba.exec(color))) {
  82650. return { r: match[1], g: match[2], b: match[3], a: match[4] };
  82651. }
  82652. if ((match = matchers.hsl.exec(color))) {
  82653. return { h: match[1], s: match[2], l: match[3] };
  82654. }
  82655. if ((match = matchers.hsla.exec(color))) {
  82656. return { h: match[1], s: match[2], l: match[3], a: match[4] };
  82657. }
  82658. if ((match = matchers.hsv.exec(color))) {
  82659. return { h: match[1], s: match[2], v: match[3] };
  82660. }
  82661. if ((match = matchers.hsva.exec(color))) {
  82662. return { h: match[1], s: match[2], v: match[3], a: match[4] };
  82663. }
  82664. if ((match = matchers.hex8.exec(color))) {
  82665. return {
  82666. r: parseIntFromHex(match[1]),
  82667. g: parseIntFromHex(match[2]),
  82668. b: parseIntFromHex(match[3]),
  82669. a: convertHexToDecimal(match[4]),
  82670. format: named ? "name" : "hex8"
  82671. };
  82672. }
  82673. if ((match = matchers.hex6.exec(color))) {
  82674. return {
  82675. r: parseIntFromHex(match[1]),
  82676. g: parseIntFromHex(match[2]),
  82677. b: parseIntFromHex(match[3]),
  82678. format: named ? "name" : "hex"
  82679. };
  82680. }
  82681. if ((match = matchers.hex4.exec(color))) {
  82682. return {
  82683. r: parseIntFromHex(match[1] + '' + match[1]),
  82684. g: parseIntFromHex(match[2] + '' + match[2]),
  82685. b: parseIntFromHex(match[3] + '' + match[3]),
  82686. a: convertHexToDecimal(match[4] + '' + match[4]),
  82687. format: named ? "name" : "hex8"
  82688. };
  82689. }
  82690. if ((match = matchers.hex3.exec(color))) {
  82691. return {
  82692. r: parseIntFromHex(match[1] + '' + match[1]),
  82693. g: parseIntFromHex(match[2] + '' + match[2]),
  82694. b: parseIntFromHex(match[3] + '' + match[3]),
  82695. format: named ? "name" : "hex"
  82696. };
  82697. }
  82698. return false;
  82699. }
  82700. function validateWCAG2Parms(parms) {
  82701. // return valid WCAG2 parms for isReadable.
  82702. // If input parms are invalid, return {"level":"AA", "size":"small"}
  82703. var level, size;
  82704. parms = parms || {"level":"AA", "size":"small"};
  82705. level = (parms.level || "AA").toUpperCase();
  82706. size = (parms.size || "small").toLowerCase();
  82707. if (level !== "AA" && level !== "AAA") {
  82708. level = "AA";
  82709. }
  82710. if (size !== "small" && size !== "large") {
  82711. size = "small";
  82712. }
  82713. return {"level":level, "size":size};
  82714. }
  82715. // Node: Export function
  82716. if ( true && module.exports) {
  82717. module.exports = tinycolor;
  82718. }
  82719. // AMD/requirejs: Define the module
  82720. else if (true) {
  82721. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module),
  82722. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  82723. }
  82724. // Browser: Expose to window
  82725. else {}
  82726. })(Math);
  82727. /***/ }),
  82728. /***/ "./node_modules/vue-ref/index.js":
  82729. /*!***************************************!*\
  82730. !*** ./node_modules/vue-ref/index.js ***!
  82731. \***************************************/
  82732. /*! no static exports found */
  82733. /***/ (function(module, exports, __webpack_require__) {
  82734. "use strict";
  82735. Object.defineProperty(exports, "__esModule", {
  82736. value: true
  82737. });
  82738. exports.default = {
  82739. install: function install(Vue) {
  82740. var options =
  82741. arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  82742. var directiveName = options.name || "ref";
  82743. Vue.directive(directiveName, {
  82744. bind: function bind(el, binding, vnode) {
  82745. Vue.nextTick(function() {
  82746. binding.value(vnode.componentInstance || el, vnode.key);
  82747. });
  82748. binding.value(vnode.componentInstance || el, vnode.key);
  82749. },
  82750. update: function update(el, binding, vnode, oldVnode) {
  82751. if (oldVnode.data && oldVnode.data.directives) {
  82752. var oldBinding = oldVnode.data.directives.find(function(directive) {
  82753. var name = directive.name;
  82754. return name === directiveName;
  82755. });
  82756. if (oldBinding && oldBinding.value !== binding.value) {
  82757. oldBinding && oldBinding.value(null, oldVnode.key);
  82758. binding.value(vnode.componentInstance || el, vnode.key);
  82759. return;
  82760. }
  82761. }
  82762. // Should not have this situation
  82763. if (
  82764. vnode.componentInstance !== oldVnode.componentInstance ||
  82765. vnode.elm !== oldVnode.elm
  82766. ) {
  82767. binding.value(vnode.componentInstance || el, vnode.key);
  82768. }
  82769. },
  82770. unbind: function unbind(el, binding, vnode) {
  82771. binding.value(null, vnode.key);
  82772. }
  82773. });
  82774. }
  82775. };
  82776. /***/ }),
  82777. /***/ "./node_modules/warning/warning.js":
  82778. /*!*****************************************!*\
  82779. !*** ./node_modules/warning/warning.js ***!
  82780. \*****************************************/
  82781. /*! no static exports found */
  82782. /***/ (function(module, exports, __webpack_require__) {
  82783. "use strict";
  82784. /**
  82785. * Copyright (c) 2014-present, Facebook, Inc.
  82786. *
  82787. * This source code is licensed under the MIT license found in the
  82788. * LICENSE file in the root directory of this source tree.
  82789. */
  82790. /**
  82791. * Similar to invariant but only logs a warning if the condition is not met.
  82792. * This can be used to log issues in development environments in critical
  82793. * paths. Removing the logging code for production environments will keep the
  82794. * same logic and follow the same code paths.
  82795. */
  82796. var __DEV__ = "development" !== 'production';
  82797. var warning = function() {};
  82798. if (__DEV__) {
  82799. var printWarning = function printWarning(format, args) {
  82800. var len = arguments.length;
  82801. args = new Array(len > 1 ? len - 1 : 0);
  82802. for (var key = 1; key < len; key++) {
  82803. args[key - 1] = arguments[key];
  82804. }
  82805. var argIndex = 0;
  82806. var message = 'Warning: ' +
  82807. format.replace(/%s/g, function() {
  82808. return args[argIndex++];
  82809. });
  82810. if (typeof console !== 'undefined') {
  82811. console.error(message);
  82812. }
  82813. try {
  82814. // --- Welcome to debugging React ---
  82815. // This error was thrown as a convenience so that you can use this stack
  82816. // to find the callsite that caused this warning to fire.
  82817. throw new Error(message);
  82818. } catch (x) {}
  82819. }
  82820. warning = function(condition, format, args) {
  82821. var len = arguments.length;
  82822. args = new Array(len > 2 ? len - 2 : 0);
  82823. for (var key = 2; key < len; key++) {
  82824. args[key - 2] = arguments[key];
  82825. }
  82826. if (format === undefined) {
  82827. throw new Error(
  82828. '`warning(condition, format, ...args)` requires a warning ' +
  82829. 'message argument'
  82830. );
  82831. }
  82832. if (!condition) {
  82833. printWarning.apply(null, [format].concat(args));
  82834. }
  82835. };
  82836. }
  82837. module.exports = warning;
  82838. /***/ }),
  82839. /***/ "./node_modules/webpack/buildin/global.js":
  82840. /*!***********************************!*\
  82841. !*** (webpack)/buildin/global.js ***!
  82842. \***********************************/
  82843. /*! no static exports found */
  82844. /***/ (function(module, exports) {
  82845. var g;
  82846. // This works in non-strict mode
  82847. g = (function() {
  82848. return this;
  82849. })();
  82850. try {
  82851. // This works if eval is allowed (see CSP)
  82852. g = g || new Function("return this")();
  82853. } catch (e) {
  82854. // This works if the window reference is available
  82855. if (typeof window === "object") g = window;
  82856. }
  82857. // g can still be undefined, but nothing to do about it...
  82858. // We return undefined, instead of nothing here, so it's
  82859. // easier to handle this case. if(!global) { ...}
  82860. module.exports = g;
  82861. /***/ }),
  82862. /***/ "./node_modules/webpack/buildin/module.js":
  82863. /*!***********************************!*\
  82864. !*** (webpack)/buildin/module.js ***!
  82865. \***********************************/
  82866. /*! no static exports found */
  82867. /***/ (function(module, exports) {
  82868. module.exports = function(module) {
  82869. if (!module.webpackPolyfill) {
  82870. module.deprecate = function() {};
  82871. module.paths = [];
  82872. // module.parent = undefined by default
  82873. if (!module.children) module.children = [];
  82874. Object.defineProperty(module, "loaded", {
  82875. enumerable: true,
  82876. get: function() {
  82877. return module.l;
  82878. }
  82879. });
  82880. Object.defineProperty(module, "id", {
  82881. enumerable: true,
  82882. get: function() {
  82883. return module.i;
  82884. }
  82885. });
  82886. module.webpackPolyfill = 1;
  82887. }
  82888. return module;
  82889. };
  82890. /***/ }),
  82891. /***/ "./package.json":
  82892. /*!**********************!*\
  82893. !*** ./package.json ***!
  82894. \**********************/
  82895. /*! exports provided: name, version, title, description, keywords, main, module, typings, files, scripts, repository, license, bugs, homepage, peerDependencies, devDependencies, dependencies, sideEffects, default */
  82896. /***/ (function(module) {
  82897. module.exports = JSON.parse("{\"name\":\"ant-design-vue\",\"version\":\"1.7.5\",\"title\":\"Ant Design Vue\",\"description\":\"An enterprise-class UI design language and Vue-based implementation\",\"keywords\":[\"ant\",\"design\",\"antd\",\"vue\",\"vueComponent\",\"component\",\"components\",\"ui\",\"framework\",\"frontend\"],\"main\":\"lib/index.js\",\"module\":\"es/index.js\",\"typings\":\"types/index.d.ts\",\"files\":[\"dist\",\"lib\",\"es\",\"types\",\"scripts\"],\"scripts\":{\"dev\":\"webpack-dev-server\",\"start\":\"cross-env NODE_ENV=development webpack-dev-server --config webpack.config.js\",\"test\":\"cross-env NODE_ENV=test jest --config .jest.js\",\"compile\":\"node antd-tools/cli/run.js compile\",\"pub\":\"node antd-tools/cli/run.js pub\",\"pub-with-ci\":\"node antd-tools/cli/run.js pub-with-ci\",\"prepublish\":\"node antd-tools/cli/run.js guard\",\"pre-publish\":\"node ./scripts/prepub\",\"prettier\":\"prettier -c --write '**/*'\",\"pretty-quick\":\"pretty-quick\",\"dist\":\"node antd-tools/cli/run.js dist\",\"lint\":\"eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./components\",\"lint:site\":\"eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./antdv-demo\",\"lint:docs\":\"eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue,.md ./antdv-demo/docs/**/demo/**\",\"lint:style\":\"stylelint \\\"{site,components}/**/*.less\\\" --syntax less\",\"codecov\":\"codecov\",\"postinstall\":\"node scripts/postinstall || echo \\\"ignore\\\"\"},\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/vueComponent/ant-design-vue.git\"},\"license\":\"MIT\",\"bugs\":{\"url\":\"https://github.com/vueComponent/ant-design-vue/issues\"},\"homepage\":\"https://www.antdv.com/\",\"peerDependencies\":{\"vue\":\"^2.6.0\",\"vue-template-compiler\":\"^2.6.0\"},\"devDependencies\":{\"@commitlint/cli\":\"^8.0.0\",\"@commitlint/config-conventional\":\"^8.0.0\",\"@octokit/rest\":\"^16.0.0\",\"@vue/cli-plugin-eslint\":\"^4.0.0\",\"@vue/server-test-utils\":\"1.0.0-beta.16\",\"@vue/test-utils\":\"1.0.0-beta.16\",\"acorn\":\"^7.0.0\",\"autoprefixer\":\"^9.6.0\",\"axios\":\"^0.19.0\",\"babel-cli\":\"^6.26.0\",\"babel-core\":\"^6.26.0\",\"babel-eslint\":\"^10.0.1\",\"babel-helper-vue-jsx-merge-props\":\"^2.0.3\",\"babel-jest\":\"^23.6.0\",\"babel-loader\":\"^7.1.2\",\"babel-plugin-import\":\"^1.1.1\",\"babel-plugin-inline-import-data-uri\":\"^1.0.1\",\"babel-plugin-istanbul\":\"^6.0.0\",\"babel-plugin-syntax-dynamic-import\":\"^6.18.0\",\"babel-plugin-syntax-jsx\":\"^6.18.0\",\"babel-plugin-transform-class-properties\":\"^6.24.1\",\"babel-plugin-transform-decorators\":\"^6.24.1\",\"babel-plugin-transform-decorators-legacy\":\"^1.3.4\",\"babel-plugin-transform-es3-member-expression-literals\":\"^6.22.0\",\"babel-plugin-transform-es3-property-literals\":\"^6.22.0\",\"babel-plugin-transform-object-assign\":\"^6.22.0\",\"babel-plugin-transform-object-rest-spread\":\"^6.26.0\",\"babel-plugin-transform-runtime\":\"~6.23.0\",\"babel-plugin-transform-vue-jsx\":\"^3.7.0\",\"babel-polyfill\":\"^6.26.0\",\"babel-preset-env\":\"^1.6.1\",\"case-sensitive-paths-webpack-plugin\":\"^2.1.2\",\"chalk\":\"^3.0.0\",\"cheerio\":\"^1.0.0-rc.2\",\"codecov\":\"^3.0.0\",\"colorful\":\"^2.1.0\",\"commander\":\"^4.0.0\",\"compare-versions\":\"^3.3.0\",\"cross-env\":\"^7.0.0\",\"css-loader\":\"^3.0.0\",\"deep-assign\":\"^2.0.0\",\"enquire-js\":\"^0.2.1\",\"eslint\":\"^6.8.0\",\"eslint-config-prettier\":\"^6.10.1\",\"eslint-plugin-html\":\"^6.0.0\",\"eslint-plugin-markdown\":\"^2.0.0-alpha.0\",\"eslint-plugin-vue\":\"^6.2.2\",\"fetch-jsonp\":\"^1.1.3\",\"fs-extra\":\"^8.0.0\",\"glob\":\"^7.1.2\",\"gulp\":\"^4.0.1\",\"gulp-babel\":\"^7.0.0\",\"gulp-strip-code\":\"^0.1.4\",\"html-webpack-plugin\":\"^3.2.0\",\"husky\":\"^4.0.0\",\"istanbul-instrumenter-loader\":\"^3.0.0\",\"jest\":\"^24.0.0\",\"jest-serializer-vue\":\"^2.0.0\",\"jest-transform-stub\":\"^2.0.0\",\"js-base64\":\"^3.0.0\",\"json-templater\":\"^1.2.0\",\"jsonp\":\"^0.2.1\",\"less\":\"^3.9.0\",\"less-loader\":\"^6.0.0\",\"less-plugin-npm-import\":\"^2.1.0\",\"lint-staged\":\"^10.0.0\",\"marked\":\"0.3.18\",\"merge2\":\"^1.2.1\",\"mini-css-extract-plugin\":\"^0.10.0\",\"minimist\":\"^1.2.0\",\"mkdirp\":\"^0.5.1\",\"mockdate\":\"^2.0.2\",\"nprogress\":\"^0.2.0\",\"optimize-css-assets-webpack-plugin\":\"^5.0.1\",\"postcss\":\"^7.0.6\",\"postcss-loader\":\"^3.0.0\",\"prettier\":\"^1.18.2\",\"pretty-quick\":\"^2.0.0\",\"querystring\":\"^0.2.0\",\"raw-loader\":\"^4.0.0\",\"reqwest\":\"^2.0.5\",\"rimraf\":\"^3.0.0\",\"rucksack-css\":\"^1.0.2\",\"selenium-server\":\"^3.0.1\",\"semver\":\"^7.0.0\",\"style-loader\":\"^1.0.0\",\"stylelint\":\"^13.0.0\",\"stylelint-config-prettier\":\"^8.0.0\",\"stylelint-config-standard\":\"^19.0.0\",\"terser-webpack-plugin\":\"^3.0.3\",\"through2\":\"^3.0.0\",\"url-loader\":\"^3.0.0\",\"vue\":\"^2.6.11\",\"vue-antd-md-loader\":\"^1.1.0\",\"vue-clipboard2\":\"0.3.1\",\"vue-draggable-resizable\":\"^2.1.0\",\"vue-eslint-parser\":\"^7.0.0\",\"vue-i18n\":\"^8.3.2\",\"vue-infinite-scroll\":\"^2.0.2\",\"vue-jest\":\"^2.5.0\",\"vue-loader\":\"^15.6.2\",\"vue-router\":\"^3.0.1\",\"vue-server-renderer\":\"^2.6.11\",\"vue-template-compiler\":\"^2.6.11\",\"vue-virtual-scroller\":\"^1.0.0\",\"vuex\":\"^3.1.0\",\"webpack\":\"^4.28.4\",\"webpack-cli\":\"^3.2.1\",\"webpack-dev-server\":\"^3.1.14\",\"webpack-merge\":\"^4.1.1\",\"webpackbar\":\"^4.0.0\",\"xhr-mock\":\"^2.5.1\"},\"dependencies\":{\"@ant-design/icons\":\"^2.1.1\",\"@ant-design/icons-vue\":\"^2.0.0\",\"@simonwep/pickr\":\"~1.7.0\",\"add-dom-event-listener\":\"^1.0.2\",\"array-tree-filter\":\"^2.1.0\",\"async-validator\":\"^3.0.3\",\"babel-helper-vue-jsx-merge-props\":\"^2.0.3\",\"babel-runtime\":\"6.x\",\"classnames\":\"^2.2.5\",\"component-classes\":\"^1.2.6\",\"dom-align\":\"^1.10.4\",\"dom-closest\":\"^0.2.0\",\"dom-scroll-into-view\":\"^2.0.0\",\"enquire.js\":\"^2.1.6\",\"intersperse\":\"^1.0.0\",\"is-mobile\":\"^2.2.1\",\"is-negative-zero\":\"^2.0.0\",\"ismobilejs\":\"^1.0.0\",\"json2mq\":\"^0.2.0\",\"lodash\":\"^4.17.5\",\"moment\":\"^2.21.0\",\"mutationobserver-shim\":\"^0.3.2\",\"node-emoji\":\"^1.10.0\",\"omit.js\":\"^1.0.0\",\"raf\":\"^3.4.0\",\"resize-observer-polyfill\":\"^1.5.1\",\"shallow-equal\":\"^1.0.0\",\"shallowequal\":\"^1.0.2\",\"vue-ref\":\"^2.0.0\",\"warning\":\"^4.0.0\"},\"sideEffects\":[\"site/*\",\"components/style.js\",\"components/**/style/*\",\"*.vue\",\"*.md\",\"dist/*\",\"es/**/style/*\",\"lib/**/style/*\",\"*.less\"]}");
  82898. /***/ }),
  82899. /***/ 0:
  82900. /*!*********************!*\
  82901. !*** multi ./index ***!
  82902. \*********************/
  82903. /*! no static exports found */
  82904. /***/ (function(module, exports, __webpack_require__) {
  82905. module.exports = __webpack_require__(/*! ./index */"./index.js");
  82906. /***/ }),
  82907. /***/ "moment":
  82908. /*!******************************************************************************************!*\
  82909. !*** external {"root":"moment","commonjs2":"moment","commonjs":"moment","amd":"moment"} ***!
  82910. \******************************************************************************************/
  82911. /*! no static exports found */
  82912. /***/ (function(module, exports) {
  82913. module.exports = __WEBPACK_EXTERNAL_MODULE_moment__;
  82914. /***/ }),
  82915. /***/ "vue":
  82916. /*!******************************************************************************!*\
  82917. !*** external {"root":"Vue","commonjs2":"vue","commonjs":"vue","amd":"vue"} ***!
  82918. \******************************************************************************/
  82919. /*! no static exports found */
  82920. /***/ (function(module, exports) {
  82921. module.exports = __WEBPACK_EXTERNAL_MODULE_vue__;
  82922. /***/ })
  82923. /******/ });
  82924. });
  82925. //# sourceMappingURL=antd.js.map